![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Fanuc Discuss Fanuc controllers here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#2
| |||
| |||
| My machine has an "M" code to prepare CNC for communication then a "POPEN" to start communication flow. All information is contained in brackets "[" "]" then a "PCLOS" to stop communication. A "DPRINT" is on every line of code. Example DPRINT [ MOVE Xx Yx ZX]. Finally an "M" code to finish. The "M" code is M70 but I am sure tha was designated by the manufacturer. |
|
#3
| |||
| |||
Hi 'Igreeves' Thanks for your reply. There is obviously more to this than I imagined. I am a self-employed machine tool engineer, mainly service, and a customer has asked me if I can advise in some way. They had previously contacted Hitachi Seiki who could not advise them? Do you know if there is a manual available somewhere, or some instuctions on the programming syntax? Obviously, if an M-Code is used to prepare, then we must get back to the MTB and pressurise them for information!? Can you type me an example of how it would appear in the prog? Regards Rich. |
|
#4
| ||||
| ||||
| Your machine must have the User Macro option turned on to use DPRINT. I don't believe there's any special M code required. The following example is from the Fanuc 18iM Operator's Manual (Mill): #2=128.47398 #5=-91.2 #30=123.456 POPEN DPRNT[X#2[53]Y#5[53]T#30[20]] PCLOS Note: [53], [53], [20] are paired: the 1st # is the number of significant digits in the integer part, and the 2nd # is the number of significant digits in the decimal part. If prm 6001 bit 1 (PRT) = 1, the above DPRNT command should output the following to the active RS232 port: X128.474Y-91.200T23; The POPEN can be commanded anywhere prior to the DPRNT and the PCLOS can be commanded anywhere after. Just be sure they're matching pairs. Hope this helps. Dave |
|
#6
| |||
| |||
| could some one suggest how to use drpnt command for following need 1. job count (i hope we can store the part count in macro b variable) and send to pc 2. unused M code to run specific sub programs (where we can store the dprnt command like machine breakdown reason). so that we can use in MDI mode to run this M code to get detail on computer. 3. DETAIL on macro b variable storage and retrieve thro DPRNT. |
|
#7
| ||||
| ||||
| I think this will work 1. O0001;(PARTS COUNT OUTPUT) POPEN DPRNT[PROGRAM-#4115[50]] DPRNT[DATE-#3011[80]] DPRNT[TIME-#3012[60]] DPRNT[PARTSCOUNT-#3901[90]OF#3902[90]] PCLOS M2 2 Parameter 6070 = 69 M69 runs program O9009 O9009 {Output of alarms is not possible} {ADD DPRNT data here} M02 3. Because of the limitations of the DPRNT command this has to be written longhand O0001;(VARIABLE OUTPUT) ;(FOR VARIABLES 1 TO 149) POPEN DPRNT[VARIABLES-1-TO-149] DPRNT[VARIABLE1-#1[99]] DPRNT[VARIABLE2-#2[99]] DPRNT[VARIABLE3-#3[99]] ~ DPRNT[VARIABLE149-#149[99]] PCLOS ;(OUTPUT G53 SETTINGS) POPEN DPRNT[G53] DPRNT[X#5201[94]] DPRNT[Y#5202[94]] DPRNT[Z#5203[94]] PCLOS ;(OUTPUT G54 SETTINGS) POPEN DPRNT[G54] DPRNT[X#5221[94]] DPRNT[Y#5222[94]] DPRNT[Z#5223[94]] PCLOS M02
__________________ *********************************************************** *~~Darwinian Man, though well-behaved, At best is only a monkey shaved!~~* *********************************************************** *__________If you feel inclined to pay for the support you receive__________* *_______Please give to charity http://www.oxfam.org/en/getinvolved_______* *********************************************************** |
|
#8
| ||||
| ||||
| I know that I am digging this thread up, but i am at a place where I would like the common variable to be printed out from the control. Here is what is going on: I'm using a probe to do a first article on a part, then having the operator write down the numbers created on our inspection sheets. Here is what I want to happen: Probe to do first article and error out if part is out of tolerance.(I will write the macros as needed). Then the control to print out the dimensions so the operator will attach that information to the inspection sheet. So... How can that happen using the dprnt command?
__________________ WANNA GO FASTER |
|
#9
| ||||
| ||||
| I don't know how your customer(s) feel about this, but I believe that if you want to use your machine as a verification (measuring) tool, then you have to have it calibrated just like all of your off-line measuring tools, at regular intervals before you start using its results in your verification documentation. |
|
#10
| ||||
| ||||
__________________ WANNA GO FASTER |
| Sponsored Links |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |