Help with Inovance IS620N Servo Drive - Stays in PREOP

More
11 months 4 weeks ago #337699 by conman
Hello everyone, I am relatively new user here. I was trying to test my is620n drives from inovance with linuxcnc ethercat and kept running into problems.
I am using the hal file and xml from another user here on the forum but slightly modified.
The problem I am facing is that the drive stays in PREOP and I am not able to get any motion out of it.

I am posting my files here, thank you!

 

File Attachment:

File Name: is620n-test.hal
File Size:1.84 KB

File Attachment:

File Name: ethercat-conf.xml
File Size:1.12 KB

File Attachment:

File Name: is620n-test.ini
File Size:737 B

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

More
11 months 4 weeks ago #337702 by Hakan
You need to add the vid and pid item in the <slave line.
You find the numbers with "ethercat slaves -v"

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

More
11 months 4 weeks ago #337728 by conman
Hello, thank you for that, I added it but still the same result.

<masters>
<master idx="0" appTimePeriod="1000000" refClockSyncCycles="1">
<slave idx="0" type="generic" name="IS620N_ECAT_v2.6.8" vid="0x00100000" pid="0x000C0108" configPdos="true">
<dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="0"/>
<syncManager idx="2" dir="out">
<pdo idx="1701">
<pdoEntry idx="6040" subIdx="00" bitLen="16" halPin="cia-controlword" halType="u32"/>
<pdoEntry idx="6060" subIdx="00" bitLen="8" halPin="OperationMode" halType="s32"/>
<pdoEntry idx="607A" subIdx="00" bitLen="32" halPin="TargetPosition" halType="s32"/>
<pdoEntry idx="60FF" subIdx="00" bitLen="32" halPin="TargetVelocity" halType="s32"/>
</pdo>
</syncManager>
<syncManager idx="3" dir="in">
<pdo idx="1b01">
<pdoEntry idx="6041" subIdx="00" bitLen="16" halPin="cia-statusword" halType="u32"/>
<pdoEntry idx="6064" subIdx="00" bitLen="32" halPin="ActualPosition" halType="s32"/>
<pdoEntry idx="6061" subIdx="00" bitLen="8" halPin="ActualOperationMode" halType="s32"/>
<pdoEntry idx="606C" subIdx="00" bitLen="32" halPin="ActualVelocity" halType="s32"/>
<pdoEntry idx="6077" subIdx="00" bitLen="32" halPin="ActualTorque" halType="s32"/>
</pdo>
</syncManager>
</slave>
</master>
</masters>

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

More
11 months 4 weeks ago #337730 by conman
Forgot to mention, I get this output from

cnc@debian:~$ sudo dmesg | grep lcec
[16318.518328] lcec_conf[18018]: segfault at 2000000004 ip 00007ff18a193ffe sp 00007fff53f417b8 error 4 in libc.so.6[7ff18a053000+155000] likely on CPU 17 (\core 5, socket 0)



cnc@debian:~$ sudo dmesg | tail -n20
[16005.505127] EtherCAT WARNING 0: 3 datagrams UNMATCHED! [16010.521123] EtherCAT WARNING 0: 3 datagrams UNMATCHED! [16019.541129] EtherCAT WARNING 0: 3 datagrams UNMATCHED! [16029.589122] EtherCAT WARNING 0: 3 datagrams UNMATCHED! [16041.645130] EtherCAT WARNING 0: 3 datagrams UNMATCHED! [16066.753139] EtherCAT WARNING 0: 3 datagrams UNMATCHED! [16090.805133] EtherCAT WARNING 0: 6 datagrams UNMATCHED! [16105.865142] EtherCAT WARNING 0: 3 datagrams UNMATCHED! [16107.694312] EtherCAT 0: Master thread exited. [
16107.694318] EtherCAT 0: Starting EtherCAT-IDLE thread.
[16107.694349] EtherCAT ERROR 0-0: Failed to receive AL state datagram: Datagram initialized.
[16107.694351] EtherCAT 0: Releasing master...
[16107.694359] EtherCAT 0: Released.
[16108.065140] EtherCAT WARNING: Datagram 00000000e31e2a72 (master-fsm) was SKIPPED 1 time.
[16318.518325] show_signal_msg: 7 callbacks suppressed
[16318.518328] lcec_conf[18018]: segfault at 2000000004 ip 00007ff18a193ffe sp 00007fff53f417b8 error 4 in libc.so.6[7ff18a053000+155000] likely on CPU 17 (core 5, socket 0)
[16318.518333] Code: 1f 84 00 00 00 00 00 0f 1f 44 00 00 89 f8 09 f0 c1 e0 14 3d 00 00 00 f8 0f 87 2e 03 00 00 62 e1 fe 28 6f 0f 62 b2 75 20 26 d1 <62> f3 75 22 3f 0e 00 c5 fb 93 c9 ff c1 74 53 0f 1f 00 f3 0f bc c9
[16727.336124] EtherCAT ERROR 0-0: Failed to set SAFEOP state, slave refused state change (PREOP + ERROR).
[16727.336155] EtherCAT ERROR 0-0: AL status message 0x001E: "Invalid input configuration".
[16727.337102] EtherCAT 0-0: Acknowledged state PREOP.


Could this be an issue?

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

More
11 months 4 weeks ago #337733 by Hakan
For sure that is an issue.
So many UNMATCHED datagrams points to the ethernet adapter.
Do you have a realtek adapter? Find out with  "lspci -k".
If so, install the realtek dkms drivers, it has helped many.
Think it is called r8168-dkms or r8125-dkms. Search the forum, many have installed it.

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

More
11 months 4 weeks ago #337748 by conman
Hello Hakan, thank you very much for your help so far!
Yes I have a realtek adapter on my MSI B650M motherboard.

Let me install the drivers and get back to you.

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

Time to create page: 0.326 seconds
Powered by Kunena Forum