Accessing pins from remap code?

More
24 Mar 2014 00:56 #45158 by rodfrey
Hi. I'm trying to implement a rack-style toolchanger using only python code and the remap functionality in 2.6.0-pre.

I can activate the power drawbar and cleaning blow easily enough because those pins are mapped via dout signals to M54 P0-3 etc. But I want to read signals from my spindle indicating that the tool has been unloaded, loaded and so on.

Those are currently hooked up to pins in my mesa 7i76 and can be accessed through that component's pins.

Is there any way to look at hal pins from python code? Reading what python code I can find shows me how I can create new pins through the hal component, but not how to examine existing pins.

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

More
24 Mar 2014 01:33 #45160 by cmorley
there is no python equivalent to halcmd. so reading arbitrary HAl pins is not directly available.

Use the python HAL component to create pins for your tool changing code, connect them (in the HAL file) to the pins you would like to monitor.

Chris M

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

Time to create page: 0.065 seconds
Powered by Kunena Forum