MS300 EtherCAT not going into OP state with CMM-02 (rev 131328)

More
2 years 4 months ago #302244 by db1981
-can you show the output of ethercat pdos for this slave ?

-maybe this thread helps : forum.linuxcnc.org/ethercat/45099-trunca...-bit-signed-integers

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #302343 by silden
We checked and no PDO are shown in the ethercat master.The debug info shows warnings for SM2 and SM3 are not found and error that the FFMU doesn't have a sync manager configured.

[  487.220742] EtherCAT WARNING 0-0: PDOs configured for SM2, but slave does not provide the sync manager information!
[  487.220744] EtherCAT WARNING 0-0: PDOs configured for SM3, but slave does not provide the sync manager information!
[  487.220745] EtherCAT ERROR 0-0: Failed to determine PDO sync manager for FMMU!

( github.com/West-Coast-R-C-Works/linuxcnc...2.log#L701C1-L703C82 )

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #302399 by zmrdko
I have the same drive with ethercat comm card and it works - gets to an OP state. Can you share full config? I can check for differences.

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #302401 by silden
Hi,

the full config is on GitHub.
you can check the link above.

Thank you for your support

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #302416 by zmrdko
what happens if you remove init commands?
so that you will have only
Code:
<slave idx="0" type="DeMS300" name="DRV" />
in your ethercat.xml file.

second try would be:
refClockSyncCycles="-1" and reorder, so that EK1100 goes first and DeMS300 second (you have to swap ethernet cables as well)
then
1) run in terminal ethercat slaves (post screenshot)
2) launch linuxcnc
3) re-run in terminal ethercat slaves again and (post screenshot)

also what ethercat master device are you running? generic?

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #302654 by silden
I figured it out, the CMM-EC02 does not include the FMMU Sync Manager bindings in it's EEPROM; which isn't writable through TwinCAT, nor the Beckhoff EtherCAT configurator; though it is possible to write, and commit using 
Code:
ethercat sii_write
.
To generate the file, you'll need  siitool , and the ESI file from Delta.
You'll likely need to modify the ESI file to get the right PDOs if you want to use it with TwinCAT, since the official ESI file lacks some standard PDOs at the time of writing, furthermore, to avoid a slip-up, I removed all cards except my own revision from the ESI file.

The command to generate the binary from the ESI XML file is:
Code:
siitool -p -o etherlab_ms300_cmm_ec02.sii DeltaMS300.xml

The next step is taking a backup of the SII data from the CMM-EC02 card for safety:
Code:
ethercat sii_read -s <YOUR MS300 ADDRESS HERE (can be found with the first number in ethercat slaves)> > original_ms300_cmm_ec02.sii

To compare the files, you can use (the first command outputs the original, the second the modified sii data):
Code:
siitool -p original_ms300_cmm_ec02.sii siitool -p etherlab_ms300_cmm_ec02.sii

To actually write, you can use (editor note: don't use --force, since it likely means something's wrong with the SII file):
Code:
ethercat sii_write -s <YOUR MS300 ADDRESS HERE (can be found with the first number in ethercat slaves)> etherlab_ms300_cmm_ec02.sii




The reason for the discrepancy is that TwinCAT uses the ESI file to find the Sync Manager addresses for the MS300, which is correct, while the EtherLab master uses the MS300 SII data, which apparently is incomplete (as hinted at by the warning and error messages from 
Code:
dmesg
)
The following user(s) said Thank You: rodw, zmrdko

Please Log in or Create an account to join the conversation.

Time to create page: 0.423 seconds
Powered by Kunena Forum