Originally posted by WOODKNACK
F10
G20 G90
M98 P1234 Q50
o1234
G1 x4
G1 x0
m99 the "O"1234 is for a seperate program.
Do this;
Code:
%
O1
F10.
G20 G90
M98 P1234 Q50
M30
O1234
G91
G1X4.
X-4.
M99
%
Assuming you're on a Fanuc compatable, make it just like that. You don't have decimal points on your feeds and X moves either.
The G90 and G20 are ok on the same line, G20 is (likely, depending on the control,) Inch programming, the G90 is Aboslute.
:edit:
If you're typing this in at the controller, you'll need to remove the "%"'s, and seperate the program. Create a new program, using 1234 as the number, and put the "lower" code in that program.
:/edit:
'Rekd teh B.U.M.A.