- Posts: 52
- Thank you received: 2
How to let M101 turn on multiple digital output and wait digital input
- tar_san
- Topic Author
- Offline
- Senior Member
-
Less
More
9 months 2 weeks ago #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
- Senior Member
-
Less
More
- Posts: 51
- Thank you received: 14
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.
The following user(s) said Thank You: tommylight, tar_san
Please Log in or Create an account to join the conversation.
- tar_san
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 52
- Thank you received: 2
9 months 4 hours ago #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.
Time to create page: 0.129 seconds