3468
« on: November 30, 2012, 11:43:20 PM »
HIYA DAVE I see noone has answered you yet so I will take a swing at it.
First the code you have will not LOAD as is. Mach3 will error with a note about teh P values being out of range. Mach3 is limited to 255 fixture offsets.
Next the Sub program order is not correct. The M30 HAS to be at teh tale end of the code string BUT in front of the sub itself. You will get anerror as is about a sub return call with no sub in effect.
Try it this way. It will load and run
%
(Multi Bridge Program)
(Cuts 12 bridges in an array: 3 in Y by 4 in X)
G17 G20 G64 F100
(Setup Work Offset Coordinate Systems)
G10 L2 P101 X-27.5 Y4.0
G10 L2 P102 X-27.5 Y12.0
G10 L2 P103 X-27.5 Y20.0
G10 L2 P104 X-30.0 Y4.0
G10 L2 P105 X-30.0 Y12.0
G10 L2 P106 X-30.0 Y20.0
G10 L2 P107 X-32.5 Y4.0
G10 L2 P108 X-32.5 Y12.0
G10 L2 P109 X-32.5 Y20.0
G10 L2 P110 X-35.0 Y4.0
G10 L2 P111 X-35.0 Y12.0
G10 L2 P112 X-35.0 Y20.0
(Cut 12 bridges referencing subroutine P12345)
G59 P101 (P101)
M98 P12345
G59 P102 (P102)
M98 P12345
G59 P103 (P103)
M98 P12345
G59 P104 (P104)
M98 P12345
G59 P105 (P105)
M98 P12345
G59 P106 (P106)
M98 P12345
G59 P107 (P107)
M98 P12345
G59 P108 (P108)
M98 P12345
G59 P109 (P109)
M98 P12345
G59 P110 (P110)
M98 P12345
G59 P111 (P111)
M98 P12345
G59 P112 (P112)
M98 P12345
M5
M30
(Define subroutine program to cut 1 part. Normally there a zillion lines below; this just marks the utline.)
O12345
G0 X0.0 Y0.0 Z0.1
M3 S5000
G0 X0.0 Y-3.5
G1 Z-0.1 F500
Y3.5
X1.5
Y-3.5
X0.0
G0 Z0.1
M99
NOW as to the tooPath display (;-) It is a glitch in the original toolPath code. It will SHOW the complete pathing BUT when tht ecode starts to run it only shows the original starting OFFSET toolpath. Then as you apply the next offset XY ZERO gets moved to another spot BUT the toolpathing still sees it starting on X0Y0 again so the display repeats the original path. It does NOT know that the XOYO had been moved as it still starts at XOYO.
The machine WILL cut correctly.
Hope that helps, (;-)TP