[Etherlab-users] "Master0 dead" and unable to check fro masters/slaves
Henrik Barie
henrik.barie at ei.thm.de
Mon Sep 19 13:17:39 CEST 2022
Hello Mike and Andreas,
at this location I could only find the ethercatctl-file.
However I think I found the right file now in
/usr/src/etherlanmaster-code/tools. The file is named "ethercat" and I
also found several .o-files with etherlab commands like "master".
Executing it with sudo ./ethercat master worked and the output was
(after starting with "systemctl start ethercat"):
Master0
Phase: Idle
Active: no
Slaves: 4
Ethernet devices:
Main: 88:a4:c2:bf:73:10 (attached)
Link: UP
Tx frames: 45398
Tx bytes: 2782824
Rx frames: 45397
Rx bytes: 2782764
Tx errors: 0
Tx frame rate [1/s]: 479 662 523
Tx rate [KByte/s]: 28.1 39.2 31.3
Rx frame rate [1/s]: 479 662 523
Rx rate [KByte/s]: 28.1 39.2 31.3
Common:
Tx frames: 45398
Tx bytes: 2782824
Rx frames: 45397
Rx bytes: 2782764
Lost frames: 0
Tx frame rate [1/s]: 479 662 523
Tx rate [KByte/s]: 28.1 39.2 31.3
Rx frame rate [1/s]: 479 662 523
Rx rate [KByte/s]: 28.1 39.2 31.3
Loss rate [1/s]: 0 -0 0
Frame loss [%]: 0.0 -0.0 0.0
Distributed clocks:
Reference clock: Slave 0
DC reference time: 0
Application time: 0
2000-01-01 00:00:00.000000000
and for "slaves":
0:0 PREOP + EK1100 EtherCAT-Koppler (2A E-Bus)
1 0:1 PREOP + EL1104 4K. Dig. Eingang 24V, 3ms, Sensorversorgung
2 0:2 PREOP + EL2004 4K. Dig. Ausgang 24V, 0.5A
3 0:3 PREOP + EL3062 2K.Ana. Eingang 0-10V
I tried my Simulink Model again but it still doesnt work.
I will attach a Screenshot of it.
I attached a cable from Input 2 of EL1104 (which is +24 V) to Output 1
of EL2004. The LED of EL2004 Output should now be on since it recieves
24V.
I used Slave Index 1 for the EL1104 and Index 2 for the EL2004 as it was
shown in the Terminal.
Master is 0 and Vector Outputs enabled.
Also the Master State-Module doesnt show any outputs.
Regards
Henrik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto vom 2022-09-19 13-03-37.png
Type: image/png
Size: 50892 bytes
Desc: not available
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20220919/9a1215db/attachment-0001.png>
More information about the Etherlab-users
mailing list