×
Forum Header
How to set a bit in the paralell port
- Fredrik2556
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
08 Dec 2015 17:50 #66635
by Fredrik2556
How to set a bit in the paralell port was created by Fredrik2556
Hi
I want to set a bit in the parallell port to a permanent high, it is connected to the enable on all steppet drivers. How do I do it, is it possible?
Best regards
Fredrik
I want to set a bit in the parallell port to a permanent high, it is connected to the enable on all steppet drivers. How do I do it, is it possible?
Best regards
Fredrik
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1441
08 Dec 2015 20:02 #66640
by Todd Zuercher
The most basic way would be a setp in your hal file (for pin 6 on the first port)
If you'd rather it change state, say with e-stop or machine power on, then connect it to one of those pins instead.
Replied by Todd Zuercher on topic How to set a bit in the paralell port
Hi
I want to set a bit in the parallell port to a permanent high, it is connected to the enable on all steppet drivers. How do I do it, is it possible?
Best regards
Fredrik
The most basic way would be a setp in your hal file (for pin 6 on the first port)
setp parport.0.pin-6-out true
If you'd rather it change state, say with e-stop or machine power on, then connect it to one of those pins instead.
Please Log in or Create an account to join the conversation.
Time to create page: 0.059 seconds