Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 2

Multiple location set-up Using one workoffset

I wrote this set-up for a customer that posts their NC program G55. When they
have multiple pieces that are the same. They copy the program multiple times
changing the G55 to G56 ETC. So this will allow you to set-up G56, G57, G58, G59
and run G55 posted program.

Macro variables

G56 variables are stored here


X=#5261
Y=#5262
Z=#5263

G57 variables are stored here


X=#5281
Y=#5282
Z=#5283

So this can be set-up like this. The operator measures the parts normally G56, G57

Now we have two or more new programs just for setting the locations.

( L 2 refers to a fixed mandatory offset group number that indentifies the offset input type
Work offset.) ( L 20 would be for height offset)

O0001 (G56 LOCATION WRITES TO G55)


G90
G10 L2 P2 X#5261 Y#5262 Z#5263 ( P2=G55)
M99

O0002 (G57 LOCATION WRITES TO G55)


G90
G10 L2 P2 X#5281 Y#5282 Z#5283 ( P2=G55)
M99

(OPTONAL G58,G59)
O0003 (G58 LOCATION WRITES TO G55)
G90
G10 L2 P2 X#5301 Y#5302 Z#5303 ( P2=G55)
M99

O0004 (G59 LOCATION WRITES TO G55)


G90
G10 L2 P2 X#5321 Y#5322 Z#5323 ( P2=G55)
M99

Now are main program looks like this


M98P0001
M198P300
M98P0002
M198P300

Select CS X Y Z A B C U V W
G54 1 5221 5222 5223 5224 5225 5226 5227 5228 5229
G55 2 5241 5242 5243 5244 5245 5246 5247 5248 5249
G56 3 5261 5262 5263 5264 5265 5266 5267 5268 5269
G57 4 5281 5282 5283 5284 5285 5286 5287 5288 5289
G58 5 5301 5302 5303 5304 5305 5306 5307 5308 5309
G59 6 5321 5322 5323 5324 5325 5326 5327 5328 5329
G59.1 7 5341 5342 5343 5344 5345 5346 5347 5348 5349
G59.2 8 5361 5362 5363 5364 5365 5366 5367 5368 5369
G59.3 9 5381 5382 5383 5384 5385 5386 5387 5388 5389
Table: Coordinate Systems

John J Smith

Roeders/Makino ex Employee.

You might also like