How to let M101 turn on multiple digital output and wait digital input

More
18 Jan 2026 15:08 #341534 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.



 

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

More
20 Jan 2026 19:38 #341624 by 3404gerber
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.
The following user(s) said Thank You: tommylight, tar_san

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

More
02 Feb 2026 18:32 #342323 by tar_san
Thank you for the reply.

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

Time to create page: 0.074 seconds
Powered by Kunena Forum