- Posts: 52
- Thank you received: 0
How to let M101 turn on multiple digital output and wait digital input
9 months 1 week ago #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.
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 to join the conversation.
- 3404gerber
- Offline
- Senior Member
-
Less
More
- Posts: 51
- Thank you received: 0
9 months 1 week ago #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.
Please Log in to join the conversation.
Time to create page: 0.069 seconds
