Inserting an Output-ON M-Code in QtPlasmac g-code
- sin-do-re
- Offline
- Junior Member
Less
More
- Posts: 23
- Thank you received: 1
25 Jul 2024 21:05 #306034
by sin-do-re
Inserting an Output-ON M-Code in QtPlasmac g-code was created by sin-do-re
Hey everyone.
I need to have the functionality of triggering M3 $0 S1 (plasma start) , and then, after a while, turn on another output. What G-Code can i use for this?
Then, I woud add also another one at M5 to turn off both at the same time.
M5 $0 (plasma end)
M7 $0
I cannot use the same output from M3 a timer for this, because the delay between both outputs will be variable and parameterized with the g-code.
Can i use the output from the marker? what if i also need the marker, are there other options available?
thank you.
I need to have the functionality of triggering M3 $0 S1 (plasma start) , and then, after a while, turn on another output. What G-Code can i use for this?
Then, I woud add also another one at M5 to turn off both at the same time.
M5 $0 (plasma end)
M7 $0
I cannot use the same output from M3 a timer for this, because the delay between both outputs will be variable and parameterized with the g-code.
Can i use the output from the marker? what if i also need the marker, are there other options available?
thank you.
Please Log in or Create an account to join the conversation.
- rodw
- Offline
- Platinum Member
Less
More
- Posts: 10752
- Thank you received: 3543
26 Jul 2024 00:15 #306045
by rodw
Replied by rodw on topic Inserting an Output-ON M-Code in QtPlasmac g-code
linuxcnc.org/docs/stable/html/gcode/m-code.html#mcode:m62-m65
qtplasmac may uses some of these internally.
qtplasmac may uses some of these internally.
Please Log in or Create an account to join the conversation.
- sin-do-re
- Offline
- Junior Member
Less
More
- Posts: 23
- Thank you received: 1
26 Jul 2024 15:01 #306097
by sin-do-re
Replied by sin-do-re on topic Inserting an Output-ON M-Code in QtPlasmac g-code
Thank you Rod.
Assuming I use M64 P3 and M65 P3,
How is the “3” linked to HMOT CARD ssr output 3, in the HAL file?
I assume there should be some reference to the output number 3 in the Hal file otherwise it won’t work.
Assuming I use M64 P3 and M65 P3,
How is the “3” linked to HMOT CARD ssr output 3, in the HAL file?
I assume there should be some reference to the output number 3 in the Hal file otherwise it won’t work.
Please Log in or Create an account to join the conversation.
- Aciera
- Away
- Administrator
Less
More
- Posts: 3969
- Thank you received: 1717
26 Jul 2024 15:39 #306104
by Aciera
Replied by Aciera on topic Inserting an Output-ON M-Code in QtPlasmac g-code
The connection would be made in your hal file:
linuxcnc.org/docs/2.9/html/man/man9/motion.9.html
net digital-pin3 <= motion.digital-out-03 => your_HMOT_CARD_ssr_output_3_pin
linuxcnc.org/docs/2.9/html/man/man9/motion.9.html
Please Log in or Create an account to join the conversation.
- phillc54
- Offline
- Platinum Member
Less
More
- Posts: 5698
- Thank you received: 2082
26 Jul 2024 23:59 #306132
by phillc54
Replied by phillc54 on topic Inserting an Output-ON M-Code in QtPlasmac g-code
QtPlasmaC uses digital-out-01~03 internally so digital-out-00 is the only free pin available unless you add extra pins with num_dio when loading the motion module:
linuxcnc.org/docs/2.9/html/man/man9/motion.9.html
linuxcnc.org/docs/2.9/html/man/man9/motion.9.html
Please Log in or Create an account to join the conversation.
Time to create page: 0.055 seconds