- Posts: 178
- Thank you received: 1
M64 and M65
- Holzwurm56
- Topic Author
- Offline
- Elite Member
-
Less
More
9 years 9 months ago #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 to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
Less
More
- Posts: 4739
- Thank you received: 2
9 years 9 months ago #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.
Code:
M64 P00
Please Log in to join the conversation.
- Holzwurm56
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 178
- Thank you received: 1
9 years 9 months ago #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 to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
Less
More
- Posts: 4739
- Thank you received: 2
9 years 9 months ago #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.
Code:
net blue-light-on <= motion.digtal-out-10 => hm2_5i25.0.7i77.0.0.output-10
Please Log in to join the conversation.
9 years 9 months ago #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 to join the conversation.
9 years 9 months ago #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 to join the conversation.
Time to create page: 0.168 seconds
