Hal confusion

More
20 Aug 2019 02:36 #142539 by cmorley
Replied by cmorley on topic Hal confusion
Did you check all the HAL files?
iocontrol.0.user-enable-out could be connected in another HAL file- it is connected in the main HAL file if the config was generated with stepconf for instance.

The other possibility is you are not running the config/files that you think you are.I have had two versions of a config and edited the wrong one sometimes.

Chris M

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

More
20 Aug 2019 14:31 #142596 by jensor
Replied by jensor on topic Hal confusion
Yes 2 occurrences of iocontrol.0.user-enable-out:
49 net enable iocontrol.0.user-enable-out iocontrol.0.emc-enable-in
66 net estopactivated iocontrol.0.user-enable-out parport.2.pin-03-out

Line 49 shows iocontrol.0.user-enable-out (an output) being connected to
iocontrol.0.emc-enable-in (an input)

Since iocontrol.0.user-enable-out is an output while can't it be connected as an input to the parallel port card?

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

More
20 Aug 2019 14:38 #142597 by PCW
Replied by PCW on topic Hal confusion
It can, but you must use the same signal name

You have two different signals (enable and estopactivated) connected to the same hal output

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

More
20 Aug 2019 14:38 #142598 by jensor
Replied by jensor on topic Hal confusion
Ok - got it fixed - can't have 2 different signal names on a pin!

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

More
20 Aug 2019 15:01 - 20 Aug 2019 15:01 #142606 by Todd Zuercher
Replied by Todd Zuercher on topic Hal confusion
Pin names can only ever be used once (in, out... doesn't matter)

You get around this with signals. Signals names can be used repeatedly as often as you like on different lines and different hal files, but each signal name can only ever be connected to one output pin, but as many input pins as you like.
Last edit: 20 Aug 2019 15:01 by Todd Zuercher.

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

Time to create page: 0.065 seconds
Powered by Kunena Forum