- Posts: 3
- Thank you received: 0
Reading seperate bits from sensors implemented in servo controller
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
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.
1 year 10 months ago #316934
by rodw
Replied by rodw on topic Reading seperate bits from sensors implemented in servo controller
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
github.com/rodw-au/linuxcnc-cia402/blob/...t-conf-diewu.xml#L31
Please Log in to join the conversation.
1 year 10 months ago #316941
by Felthaus
Replied by Felthaus on topic Reading seperate bits from sensors implemented in servo controller
Thank you rodw, thats exactly what I was looking for!
Please Log in to join the conversation.
Time to create page: 0.082 seconds
