The Code below works fine in Mach3 but not in Mach4:
G17 G21 G40 G80 G90 G91.1 G92.1 G94
S99 M07

#1001=1 (X counter)
#1002=1 (Y counter)
#1003=15 (X starting point on the sheet)
#1004=20 (Y starting point on the sheet)
#1005= 95 (X offset part to part)
#1006= 133 (Y offset part to part)

(== Cut Part ==)
G00 X[#1003] Y[#1004] (1x/1y)
M98 P1001

G00 X[#1003] Y[#1004+[1*#1006]] (1x/2y)
M98 P1001
.....................

How do I create an array using a subroutine in Mach4?
I have not found any info on registers or math functions.
Bertho