M64 and M65
- Holzwurm56
- Offline
- Premium Member
-
Less
More
- Posts: 133
- Thank you received: 0
28 Jan 2017 22:16 #86860
by Holzwurm56
M64 and M65 was created by Holzwurm56
Hello,
can someone tell me in what kind of way i can switch on and off an outputpin with M64 and M65? I use wheezy with Linuxcnc 2.7.8.
Thanks
Hans
can someone tell me in what kind of way i can switch on and off an outputpin with M64 and M65? I use wheezy with Linuxcnc 2.7.8.
Thanks
Hans
Please Log in or Create an account to join the conversation.
- Todd Zuercher
-
- Offline
- Platinum Member
-
Less
More
- Posts: 4987
- Thank you received: 1455
29 Jan 2017 03:33 #86877
by Todd Zuercher
Replied by Todd Zuercher on topic M64 and M65
The M64/M65 codes control the hal pins "motion.digital-out-NN".
so to make the value of the hal pin motion.digital-out-00 true you would use this in your G-code.
so to make the value of the hal pin motion.digital-out-00 true you would use this in your G-code.
M64 P00
Please Log in or Create an account to join the conversation.
- Holzwurm56
- Offline
- Premium Member
-
Less
More
- Posts: 133
- Thank you received: 0
29 Jan 2017 12:48 #86897
by Holzwurm56
Replied by Holzwurm56 on topic M64 and M65
Hello Todd,
i write this line in the custom hall: net motion.digtal-out-10 hm2_5i25.0.7i77.0.0.output-10
but this does not work.
What is my mistake?
Hans
i write this line in the custom hall: net motion.digtal-out-10 hm2_5i25.0.7i77.0.0.output-10
but this does not work.
What is my mistake?
Hans
Please Log in or Create an account to join the conversation.
- Todd Zuercher
-
- Offline
- Platinum Member
-
Less
More
- Posts: 4987
- Thank you received: 1455
30 Jan 2017 04:53 #86943
by Todd Zuercher
Replied by Todd Zuercher on topic M64 and M65
your net command needs to reference a signal name. The signal name is an arbitrary name you create.
So if your digital out put is for turning on a blue light you might want to use a name like this.
So if your digital out put is for turning on a blue light you might want to use a name like this.
net blue-light-on <= motion.digtal-out-10 => hm2_5i25.0.7i77.0.0.output-10
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23279
- Thank you received: 4933
31 Jan 2017 02:08 #87030
by andypugh
Replied by andypugh on topic M64 and M65
Also, by default you will only have 8 digital-out pins. But you can increase the number with a command-line parameter (num_dio) to motion (loadrt motmod).
linuxcnc.org/docs/2.7/html/man/man9/motion.9.html
linuxcnc.org/docs/2.7/html/man/man9/motion.9.html
Please Log in or Create an account to join the conversation.
- cgc
-
- Offline
- Senior Member
-
Less
More
- Posts: 46
- Thank you received: 10
31 Jan 2017 08:32 #87043
by cgc
Replied by cgc on topic M64 and M65
I think, there are only 4 by default, see:
linuxcnc.org/docs/2.7/html/gcode/m-code.html#mcode:m62-m65
"The P-word ranges from 0 to a default value of 3"
linuxcnc.org/docs/2.7/html/gcode/m-code.html#mcode:m62-m65
"The P-word ranges from 0 to a default value of 3"
Please Log in or Create an account to join the conversation.
Time to create page: 0.054 seconds