Reading seperate bits from sensors implemented in servo controller

More
1 year 10 months ago - 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

File Attachment:

File Name: linuxcnc-cia402.zip
File Size:21 KB
Last edit: 1 year 10 months ago by Felthaus. Reason: readability
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
The following user(s) said Thank You: Felthaus, bananun
More
1 year 10 months ago #316941 by Felthaus
Thank you rodw, thats exactly what I was looking for!
The following user(s) said Thank You: rodw
Time to create page: 0.496 seconds
Powered by Kunena Forum