Reading seperate bits from sensors implemented in servo controller

More
1 year 10 months ago #316916 by Felthaus
Hi

I've recently recieved my Ethercat servo controller, and have gotten this up and running with linuxcnc.

I'm trying to extract bit 0-4 in 60FD in my HAL file I'm reading the values via HAL using:

net io-status-signal lcec.0.0.io-status

The last 5 bits are I/O high/low sensor values from endstop and homing, however I cant seem to get access to these bits individually.
Am I missing something fundamental?
I've attached my entire (simple) setup as I'm still tinkering with the control via Ethercat

Attachment not found

Please Log in to join the conversation.

More
1 year 10 months ago #316934 by rodw
In your xml file, you need a complex entry to parse out the bits. SOmething like this example of mine. Don't just assume this is exactly what you want!
github.com/rodw-au/linuxcnc-cia402/blob/...t-conf-diewu.xml#L31

Please Log in to join the conversation.

More
1 year 10 months ago #316941 by Felthaus
Thank you rodw, thats exactly what I was looking for!

Please Log in to join the conversation.

Time to create page: 0.082 seconds
Powered by Kunena Forum