- GCode and Part Programs
- G&M Codes
- How to let M101 turn on multiple digital output and wait digital input
How to let M101 turn on multiple digital output and wait digital input
- tar_san
- Offline
- Junior Member
-
Less
More
- Posts: 38
- Thank you received: 2
18 Jan 2026 15:08 #341534
by tar_san
How to let M101 turn on multiple digital output and wait digital input was created by tar_san
Hello everyone.
I'd like to know this.
in G Code, for example
M101 --> M64P0, M64P1, (multiple output) , M66P0 L4 Q3
( or turn on motion.digital-out-00, 01 / wait motion.digital-in-00 )
If possible, I would like to use Python, but other method is also OK.
I'd like to know this.
in G Code, for example
M101 --> M64P0, M64P1, (multiple output) , M66P0 L4 Q3
( or turn on motion.digital-out-00, 01 / wait motion.digital-in-00 )
If possible, I would like to use Python, but other method is also OK.
Please Log in or Create an account to join the conversation.
- 3404gerber
- Offline
- Junior Member
-
Less
More
- Posts: 37
- Thank you received: 11
20 Jan 2026 19:38 #341624
by 3404gerber
Replied by 3404gerber on topic How to let M101 turn on multiple digital output and wait digital input
Hi,
As far as I understand, you'll need to remap a M-code (M200-M999). There are informations here and a thread that shows an example with python here . But as you are "only" using G-code in your M-code, you don't need to use a python script; you can simply use a ngc file and remap the M-code to it. It was six month ago so I don't remember the details, but I did something similar to send a "start" signal to a galvo laser and wait a "ready" input to move to next position and start next engraving.
As far as I understand, you'll need to remap a M-code (M200-M999). There are informations here and a thread that shows an example with python here . But as you are "only" using G-code in your M-code, you don't need to use a python script; you can simply use a ngc file and remap the M-code to it. It was six month ago so I don't remember the details, but I did something similar to send a "start" signal to a galvo laser and wait a "ready" input to move to next position and start next engraving.
The following user(s) said Thank You: tommylight, tar_san
Please Log in or Create an account to join the conversation.
- tar_san
- Offline
- Junior Member
-
Less
More
- Posts: 38
- Thank you received: 2
02 Feb 2026 18:32 #342323
by tar_san
Replied by tar_san on topic How to let M101 turn on multiple digital output and wait digital input
Thank you for the reply.
Please Log in or Create an account to join the conversation.
- GCode and Part Programs
- G&M Codes
- How to let M101 turn on multiple digital output and wait digital input
Time to create page: 0.074 seconds