I have made some progress, I have LinucCNC reading in the index pulse on each revolution.
I still want to read and write the DIO. So far no luck. I also need to wire up another drive (at shop).
I've added
probe-cmd
probe-status
probe1-rising
DIN-cia, which is not doing anything
I am trying to use the index pulses to home a gantry system. If anyone has an idea about how to get there from here, please let me know.
Code:
~/linuxcnc/bin/halcmd show pin lcec
Component Pins:
Owner Type Dir Value Name
39 u32 OUT 0x00000000 lcec.0.0.DIN-cia ==> x-DIN-cia
39 s32 OUT -145501 lcec.0.0.actual-position ==> x-drv-act-pos
39 s32 OUT 0 lcec.0.0.actual-torque
39 s32 OUT -1966 lcec.0.0.actual-velocity
39 u32 IN 0x00000004 lcec.0.0.cia-controlword <== x-controlword
39 u32 OUT 0x00000250 lcec.0.0.cia-statusword ==> x-statusword
39 s32 IN 8 lcec.0.0.opmode <== x-modes-of-operation
39 s32 OUT 8 lcec.0.0.opmode-display ==> x-opmode-display
39 u32 IN 0x00000017 lcec.0.0.probe-cmd <== x-probe-cmd
39 u32 OUT 0x00000003 lcec.0.0.probe-status ==> x-probe-status
39 s32 OUT -123211 lcec.0.0.probe1-rising ==> x-probe1-rising
39 bit OUT TRUE lcec.0.0.slave-online
39 bit OUT TRUE lcec.0.0.slave-oper
39 bit OUT FALSE lcec.0.0.slave-state-init
39 bit OUT TRUE lcec.0.0.slave-state-op
39 bit OUT FALSE lcec.0.0.slave-state-preop
39 bit OUT FALSE lcec.0.0.slave-state-safeop
39 s32 IN -145500 lcec.0.0.target-position <== x-drv-target-pos
39 bit OUT TRUE lcec.0.all-op
39 bit OUT TRUE lcec.0.link-up
39 s32 OUT 0 lcec.0.pll-err
39 s32 OUT 0 lcec.0.pll-out
39 u32 OUT 0x00000000 lcec.0.pll-reset-count
39 s32 OUT 0 lcec.0.read.time
39 u32 OUT 0x00000001 lcec.0.slaves-responding
39 bit OUT FALSE lcec.0.state-init
39 bit OUT TRUE lcec.0.state-op
39 bit OUT FALSE lcec.0.state-preop
39 bit OUT FALSE lcec.0.state-safeop
39 s32 OUT 0 lcec.0.write.time
39 bit OUT TRUE lcec.all-op
36 u32 OUT 0x00000001 lcec.conf.master-count
36 u32 OUT 0x00000001 lcec.conf.slave-count
39 bit OUT TRUE lcec.link-up
39 s32 OUT 6596 lcec.read-all.time
39 u32 OUT 0x00000001 lcec.slaves-responding
39 bit OUT FALSE lcec.state-init
39 bit OUT TRUE lcec.state-op
39 bit OUT FALSE lcec.state-preop
39 bit OUT FALSE lcec.state-safeop
39 s32 OUT 16436 lcec.write-all.time
Helpful doc,
docs.etherlab.org/ethercat/1.5/pdf/ethercat_doc.pdf
more LCLC-E Series Servo User Manual (detailed version)20240411 .pdf'