× Forum Header

How to set a bit in the paralell port

More
08 Dec 2015 17:50 #66635 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

Please Log in or Create an account to join the conversation.

More
08 Dec 2015 20:02 #66640 by Todd Zuercher

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
Powered by Kunena Forum