Quote Originally Posted by handlewanker View Post
Hi....yes, that is understandable......setting the new zero offset for each fixture or job on a batch of work pieces is straight forward.....but do you have to write the entire code sequence at each offset again and again?.....that is the tedious part.

I'm referring to hand written coding......making 20 or so lines of code for the first part and then having to re-write it multiple times is not my cup of tea..........what is the procedure for creating a block of code.......or a macro....that repeats at each offset.....that is my question.
Ian.
There is no magic, that is why I said it is very inefficient way to do programing, you can just cut and paste the first program as many times as you like, then edit it for the different offsets, and of cause you have to set those offset in the control

The most efficient way is using a sub program like this, and or also writing a macro

This program below does the same as the above post, this cuts 3 Parts or as many as you want

%
O1
M98P2L3
G92X.95
M30
O2
N1G17G40G80
T4M6
M8
G54
S3450M3
G90G0X-.25Y0.
G43Z.1H4
G1Z-.5F20.
Y-1.5F60.
G3X.25Y-2.I.5
G1X1.75
G3X2.25Y-1.5J.5
G1Y0.
G3X1.75Y.5I-.5
G1X.25
G3X-.25Y0.J-.5
G0Z.2
M9
M5
G53Y0.
G90
G92X-.85
M99
%