subroutine errors: Unknown g code used
- mistik1
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
10 May 2018 12:05 #110504
by mistik1
subroutine errors: Unknown g code used was created by mistik1
I am running linuxcnc 2.7.13 with gmoccapy gui, and no matter what I try I cannot get it to run simple subroutines/macros without very vague errors.
Cam someone please tell me why this code will not run on my machine but runs on the simulator just fine.
Any help would be greatly appreciated
Cam someone please tell me why this code will not run on my machine but runs on the simulator just fine.
filename: columns_and_rows.ngc
O<columns_and_rows> sub
(MSG, Inside sub!)
G17 G20 G54 G61 G40 G49 G80 G90
#<x_gap> = 1 (X increment between parts)
#<y_gap> = 1 (Y increment between parts)
#<x_count> = 6 (number of parts in X direction)
#<y_count> = 3 (number of parts in Y direction)
#<x_pos> = 0 (X location relative to G54, initialized to 0)
#<y_pos> = 0 (Y location relative to G54, initialized to 0)
(MSG, Step 2)
o200 while [#<y_pos> LT #<y_count>]
G52 Y#<y_pos>
o201 while [#<x_pos> LT #<x_count>]
G52 X#<x_pos>
G0X0.0000Y0.0000
G0X0.5625Y0.0000
G2 X0.5625 Y0.0000 I0.4375 J0 F40
#<x_pos> = [#<x_pos> + #<x_gap>]
o201 endwhile
#<x_pos> = 0
#<y_pos> = [#<y_pos> + #<y_gap>]
o200 endwhile
(MSG, Step 3)
(reset zero)
G52 Y0X0
G0X0.0000Y0.0000
(MSG, All done!)
O<columns_and_rows> endsub
M2
Any help would be greatly appreciated
Please Log in or Create an account to join the conversation.
- mistik1
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
11 May 2018 03:30 #110563
by mistik1
Replied by mistik1 on topic subroutine errors: Unknown g code used
Sorry for the noise guys after some sleep and doc diving the problem turns out to be G52 no longer supported. The error could have been more descriptive though.
Please Log in or Create an account to join the conversation.
Moderators: newbynobi, HansU
Time to create page: 0.086 seconds