M62-M68 codes not working

More
22 May 2025 20:55 #328937 by Cdub
M62-M68 codes not working was created by Cdub
I can figure out why my feed rate percentages and thc on/off isn’t working. Feed rate is just constantly the same and doesn’t change unless I change it manually and thc doesn’t turn off unless I turn it off manually. The g code commands are doing nothing. G code attached bellow. I made a new install media with 9.4 and reinstalled linuxcnc completely just to make sure I wasn’t out of date with anything. 




(test2)
(5/22/2025 2:48 PM)
(ProNest LT 16.2.0.9215 PostBuilder 2.88 Linux CNC PlasmaC)
N10 G20
N15 G90 G40
N20 G17 G91.1
N25 G64 P0.01 Q0.01
N30 M52 P1 (Allow paused motion)
N35 M52 P0 (Disable paused motion)
N40 M65 P2 (Enable THC)
N45 M65 P3 (Allow torch on)
N50 M68 E3 Q0 (100% feed)
N55 G0 X3.088 Y3.9014

(0.375--1--D751-0243-00-Default - Seq 1)

N60 M190 P1 (Select material 1)
N65 M66 P3 L3 Q1 (1s delay to allow material selection)
N70 F#<_hal[plasmac.cut-feed-rate]>
N75 M3 $0 S1
N80 M68 E3 Q20 (Set to 20% feed)
N85 M62 P2 (Disable THC)
N90 G3 X2.8229 Y3.6363 I-0.1325 J-0.1326
N95 G3 X2.8229 Y3.6363 I0.4329 J0.4329
N100 G3 X3.088 Y3.6363 I0.1326 J0.1325
N105 M68 E3 Q100 (Reset to 100% feed)
N110 M5
N115 M65 P2 (Enable THC)

N120 G0 X0.7118 Y0.4627
N125 M3 $0 S1
N130 M63 P2 (Enable THC)
N135 G1 X0.7118 Y0.8377
N140 G1 X0.7118 Y5.8999
N145 G1 X1.2376 Y6.4257
N150 G1 X4.274 Y6.4257
N155 G1 X5.2998 Y5.3999
N160 G1 X5.2998 Y1.8635
N165 G1 X4.274 Y0.8377
N170 G1 X0.7118 Y0.8377
N175 G1 X0.4618 Y0.8377
N180 M5

N185 G0 X0.0 Y0.0
N190 M30

Please Log in or Create an account to join the conversation.

More
22 May 2025 20:58 #328938 by Cdub
Replied by Cdub on topic M62-M68 codes not working
I also tested the default qtplasmac preamble instead of the preamble outputted by the pronest post pro to see if that had anything to do with it but didn’t change anything.


(test2)
(5/22/2025 2:07 PM)
(ProNest LT 16.2.0.9215 PostBuilder 2.88 Linux CNC PlasmaC)
N10 G20
N15 G40
N20 G49
N25 G64 P0.01
N30 G80
N35 G90
N40 G92.1
N45 G94
N50 G97
N55 G0 X3.088 Y3.9014

(0.375--1--D751-0243-00-Default - Seq 1)

N60 M190 P1 (Select material 1)
N65 M66 P3 L3 Q1 (1s delay to allow material selection)
N70 F#<_hal[plasmac.cut-feed-rate]>
N75 M3 $0 S1
N80 M68 E3 Q20 (Set to 20% feed)
N85 M62 P2 (Disable THC)
N90 G3 X2.8229 Y3.6363 I-0.1325 J-0.1326
N95 G3 X2.8229 Y3.6363 I0.4329 J0.4329
N100 G3 X3.088 Y3.6363 I0.1326 J0.1325
N105 M68 E3 Q100 (Reset to 100% feed)
N110 M5
N115 M65 P2 (Enable THC)

N120 G0 X0.7118 Y0.4627
N125 M3 $0 S1
N130 M63 P2 (Enable THC)
N135 G1 X0.7118 Y0.8377
N140 G1 X0.7118 Y5.8999
N145 G1 X1.2376 Y6.4257
N150 G1 X4.274 Y6.4257
N155 G1 X5.2998 Y5.3999
N160 G1 X5.2998 Y1.8635
N165 G1 X4.274 Y0.8377
N170 G1 X0.7118 Y0.8377
N175 G1 X0.4618 Y0.8377
N180 M5

N185 G0 X0.0 Y0.0
N190 M30

Please Log in or Create an account to join the conversation.

More
23 May 2025 14:57 - 23 May 2025 15:35 #328985 by snowgoer540
Replied by snowgoer540 on topic M62-M68 codes not working
The code (at least the code in your first post), works fine on 2.10.008.064.  I realize you are on some version of 2.9, just was easy for me to test on that. 

Can you state the specific version of 2.9 you are on (like above, as taken from the window title with QtPlasmaC open)?

Back when, there was a commit that temporarily broke feed reductions, but it was fixed. I honestly can’t remember if it was in 2.9 or master or both, but perhaps you have an older version that has the bug.
Last edit: 23 May 2025 15:35 by snowgoer540.

Please Log in or Create an account to join the conversation.

More
23 May 2025 20:23 #329011 by andypugh
Replied by andypugh on topic M62-M68 codes not working
M62 and friends need connections in HAL to have any effect. Do these connections exist? (motion.digital-out-NN etc)

Please Log in or Create an account to join the conversation.

Moderators: snowgoer540
Time to create page: 0.067 seconds
Powered by Kunena Forum