HeeksCNC/EMC2: "unknown control command in o word"
- Transistor
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 25
- Thank you received: 0
10 Jun 2011 22:08 #10417
by Transistor
HeeksCNC/EMC2: "unknown control command in o word" was created by Transistor
Hello.
I've built my first 3-axis CNC and, since I don't have a router yet, have fitted a hot-wire foam cutter. I've created a little test program - a house-shaped polygon on the XY plane, exported the g-code from HeeksCNC (on my Windows box) and when I load it up in EMC2 I get error "unknown control command in o word".
Here's the code. Can anyone give me any ideas why EMC2 chokes on it? Many thanks.
I've built my first 3-axis CNC and, since I don't have a router yet, have fitted a hot-wire foam cutter. I've created a little test program - a house-shaped polygon on the XY plane, exported the g-code from HeeksCNC (on my Windows box) and when I load it up in EMC2 I get error "unknown control command in o word".
Here's the code. Can anyone give me any ideas why EMC2 chokes on it? Many thanks.
O123(Test program)
N10G10L1P1 R1.500Z15.000
N20G10L1P2 R3.000Z63.500
N30G10L1P3 R3.000Z63.500
N40G10L1P4 R1.500Z63.500
N50G10L1P5 R7.990Z63.500
N60G10L1P16 R0.500Z63.500
(tool change to Hot wire)
N70T16M06
N80G17G90G21G54
(Sketch)
N90G00X28.904Y36.071S7000M03
N100G00Z2
N110G01Z-1F200
N120G02X27.81Y33.462I-1.851J-0.757F840
N130G01X5.81Y24.462
N140G03X5.5Y24I0.189J-0.462
N150G01X5.5Y9
N160G03X6Y8.5I0.5J0
N170G01X49Y8.5
N180G03X49.5Y9I0J0.5
N190G01X49.5Y24
N200G03X49.196Y24.459I-0.5J0
N210G01X28.196Y33.459
N220G03X27.81Y33.462I-0.196J-0.459
N230G02X25.202Y34.556I-0.757J1.851
N240G00Z5
N250M02
Please Log in or Create an account to join the conversation.
- Transistor
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 25
- Thank you received: 0
11 Jun 2011 09:33 #10425
by Transistor
Replied by Transistor on topic :HeeksCNC/EMC2: "unknown control command in o word"
I've got it running. I'm not sure what the problem was but I stripped out all the unnecessary tools and the resultant code is shown below.
Make sure, if using HeeksCNC, that you select the correct machine to output to. In the Objects pane select Program, in the Properties pane set the "machine" property to match your machine.
Make sure, if using HeeksCNC, that you select the correct machine to output to. In the Objects pane select Program, in the Properties pane set the "machine" property to match your machine.
(Created with emc2b post processor 2011/06/11 09:52)
G54 (Select Relative Coordinate System)
(One pass cut)
(tool change to Hot Wire)
T1 M06
G17 G90 G21
(Sketch)
G00 X8 Y2.25
Z2
G01 Z-1 F250
G02X10 Y4.25 I2 J0
G01 X34 Y4.25
G03X34.75 Y5 I0 J0.75
G01 X34.75 Y11
G03X34.426 Y11.616 I-0.75 J0
G01 X21.426 Y20.616
G03X20.689 Y20.682 I-0.426 J-0.616
G01 X9.689 Y15.682
G03X9.25 Y15 I0.31 J-0.682
G01 X9.25 Y5
G03X10 Y4.25 I0.75 J0
G02X12 Y2.25 I0 J-2
G00 Z5
M02
Please Log in or Create an account to join the conversation.
11 Jun 2011 11:14 #10426
by BigJohnT
Replied by BigJohnT on topic Re:HeeksCNC/EMC2: "unknown control command in o word"
The unknown command error comes from the first line O123... EMC does not use program numbers in that format so it must be as a comment. Another note if you do a tool change you won't get any offsets for that tool unless you use G43. My normal tool change line is:
Tn M6 G43
John
Tn M6 G43
John
Please Log in or Create an account to join the conversation.
- Transistor
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 25
- Thank you received: 0
11 Jun 2011 22:14 #10431
by Transistor
Replied by Transistor on topic Re:HeeksCNC/EMC2: "unknown control command in o word"
Thanks. I must have selected the wrong machine for output.
Please Log in or Create an account to join the conversation.
Time to create page: 0.062 seconds