Open satiowadahc opened 2 years ago
The documentation looks great.
I'm wondering if you need to change:
<modParam name="fsoeSlaveIdx" value="3"/>
To this:
<modParam name="fsoeSlaveIdx" value="2"/>
Because the safety terminals are [ EL1904 idx="2" ] and [ EL2904 idx="4"] .
Regards
Thanks! The documentation is useful. But I can't run well on the WAGO 750-354 coupler. It only works when attach it after the EK1100 by the cable. And I didn't know why the WAGO modules can't work independently.
I find I almost always need an EK1100 in the circuit. Have you checked for out put in dmesg?
I find I almost always need an EK1100 in the circuit. Have you checked for out put in dmesg?
No I was't check out the dmesg. But after I remake the source code, the wago module can work independently now. Though I did'n know why it happens.
I've been compiling a little reference for myself. Figured I'd share here if its of any use to anyone:
LinuxCnc EtherCat (LCEC)
Installing
Setup
1) Install Realtime Kernel https://gnipsel.com/linuxcnc/uspace/latency.html 1) Install linuxcnc https://github.com/linuxcnc/linuxcnc 1) Install igh-ethercat https://gitlab.com/etherlab.org/ethercat/
Install
1) git clone https://github.com/sittner/linuxcnc-ethercat 1) cd linuxcnc-ethercat 1)
make
1)sudo make install
How to Use
lcec_conf is a user space component to configure how the ethercat system is set up. It parses your custom XML file and initializes the configuration.
lcec is the real time component that runs the ethercat procedures.
Example XML
Testing Code
halrun is a Linuxcnc testing interface that runs light weight linuxcnc to test components.
Line by Line: 1) In a terminal typing halrun will put you into the hal environment 2) load the configuration file 3) load the realtime component 4) load a thread to run the realtime component A) period1 must match the appTimePeriod of the xml file B) fp1 is to notate that you need to use floating point numbers 5) Add your component to the thread. A) Read must come before write, or you have unmatched datagrams 6) Start actually begins the thread processing
Helpful tips:
ethercat debug [0,1,2]
will change the debug levelethercat master
will show if its actually online