Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read XML problem #8

Open
Lordrinium opened this issue Sep 10, 2024 · 4 comments
Open

Read XML problem #8

Lordrinium opened this issue Sep 10, 2024 · 4 comments

Comments

@Lordrinium
Copy link

Lordrinium commented Sep 10, 2024

Dear developer!

Thank you very much for your work!
I encountered this problem, what am I doing wrong?

Thank you for your help!

Bash out:
./ethercat_src_test ./ethercat.cfg
09:48:13 reading file './ethercat.cfg'
09:48:13 xmlfilenameparam: /etc/openplc/ethercat.xml
09:48:13 ethercat_device_indexparam: 0
09:48:13 verboseparam: 0
09:48:13 configonlyparam: 1
09:48:13 ERROR /root/OpenPLC_v3/utils/ethercat_src/src/xml_conf_parser/xml_conf_parser.c:305: Invalid configuration file, expected root name EtherCATInfoList but got EtherCATInfo
09:48:13 ERROR /root/OpenPLC_v3/utils/ethercat_src/src/ethercat_src.c:95: failed to parse configuration file

XML:
ethercat.xml.txt

@rainer-kordmaa-foxconn
Copy link

Hi, your xml is simply malformed, I can't actually try it right now, but I fixed couple of obvious mistakes in your file, try it like that.
ethercat.xml.fixed.txt

@Lordrinium
Copy link
Author

Thanks for the answer!

Yes, that's how the variables appeared.
I have one more question because I don't know how to start.

I have the list but I don't get a value.
In the meantime, I can't switch from preop mode.

This is what I get.

I have the ESI file. how can i start

root@SoftPLC:/etc/openplc# ethercat states OP -a 0
root@SoftPLC:/etc/openplc# sudo tail -f /var/log/kern.log | grep EtherCAT
Sep 11 09:42:43 SoftPLC kernel: EtherCAT ERROR 0-0: SDO upload 0x1800:26 aborted.
Sep 11 09:42:43 SoftPLC kernel: EtherCAT ERROR 0-0: SDO abort message 0x06020000: "This object does not exist in the object directory".
Sep 11 09:42:43 SoftPLC kernel: EtherCAT ERROR 0-0: Failed to process SDO request.
Sep 11 09:43:20 SoftPLC kernel: EtherCAT ERROR 0-0: SDO upload 0x1800:26 aborted.
Sep 11 09:43:20 SoftPLC kernel: EtherCAT ERROR 0-0: SDO abort message 0x06020000: "This object does not exist in the object directory".
Sep 11 09:43:20 SoftPLC kernel: EtherCAT ERROR 0-0: Failed to process SDO request.
Sep 11 09:44:29 SoftPLC kernel: EtherCAT ERROR 0-0: ecrt_master_sdo_upload(): Buffer too small.
Sep 11 09:49:43 SoftPLC kernel: EtherCAT ERROR 0-0: Failed to set SAFEOP state, slave refused state change (PREOP + ERROR).
Sep 11 09:49:43 SoftPLC kernel: EtherCAT ERROR 0-0: AL status message 0x001E: "Invalid input configuration".
Sep 11 09:49:43 SoftPLC kernel: EtherCAT 0-0: Acknowledged state PREOP.

Thank you very much for your quick reply

@rainer-kordmaa-foxconn
Copy link

What exactly do commands sudo ethercat rescan and sudo ethercat xml print out?

@Lordrinium
Copy link
Author

Dear rainer-kordmaa-foxconn!

I uploaded the factory ESI file and the ethercat xml files.

Thank you very much for your help!

gx-od-ethecat-xml.txt
Omron GX-Analog IO.xml.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants