![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| G-Code Programing Discuss G-code programing and problems here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
Anyone knows if there is any way to automatically read a workingoffset and set a new one dependant of the first. For example, I would like to automatically set the G59 X and Y as double of the G54 X and Y and keep the same Z in both G54 and G59, measuring only the G54 workingoffset. I know that I can write to the G59 using G90 G10 L2 P6 Xvalue Yvalue Yvalue but I don't know if it's possible to read the information in a similar way. I would like to do this on a Fanuc serie 310is-A5. I think that other possible way is to make a custom Macro but I also don't know how. Thank you all; RC |
|
#2
| |||
| |||
| I never use G10 I just directly read/write to the variables. On every machine I have seen the work offsets are at these variables and can be read and written. There may be some machines that are different but this seems to be one of the more widely used standards. Not all machines use the Ext. offset or us them in the same way. Code: Axis 1 Axis 2 Axis 3 Axis 4 Ext. #5201 #5202 #5203 #5204 G54 #5221 #5222 #5223 #5224 G55 #5241 #5242 #5243 #5244 G56 #5261 #5262 #5263 #5264 G57 #5281 #5282 #5283 #5284 G58 #5301 #5302 #5303 #5304 G59 #5321 #5322 #5323 #5324 So #5321 = [#5301 + 10.000] Would set G59 X to G58 X plus 10 inches. Also if you run out of variables in the #100 and #500 locations you can use the extra unused work offsets in your macros, same for tool offset varables. |
|
#4
| |||
| |||
Try this O9999(PROGRAM) : STUFF): : STUFF): : #5321=[#5221*2](X G59=G54x2) #5322=[#5222*2](Y G59=G54x2) #5323=#5223(Z G59=G54) ;(MORE STUFF) ; ; ; ; M30 Bluesman |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| reading modbus inputs | howling60 | Mach Software (ArtSoft software) | 1 | 04-17-2007 07:41 AM |
| problem with cnc reading bob/cad OR something | jr2840 | Bridgeport and Hardinge Mills | 4 | 09-08-2006 11:28 AM |
| Reading only new posts | PEU | Forum Questions or Problems | 1 | 06-04-2005 10:22 PM |
| CNC recommended reading? | margni74 | General Metal Working Machines | 7 | 12-29-2003 09:28 PM |