First time to try build my xml for not listed ethercat in-out component

More
1 year 6 months ago #326713 by bkt
so now modify my xml in these way .... but have error .... onf: ERROR: Parse error at line 1: not well-formed (invalid token)  .... and real these is not understand ....

Warning: Spoiler!

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

More
1 year 6 months ago #326723 by Hakan
Run the "lcec_configgen" command and put the output in a file.
It will have all the pdos, but you can just delete all except the ones you need. So you need to figure out which PDOs you need to use.
It will also have all the numbers etc in the right places, so if you are lucky it can work.
At least use it as starting point.
 
The following user(s) said Thank You: bkt

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

More
1 year 6 months ago #326747 by bkt
Thanks but lcec configgen and ethercat pdos ... seems to reply with complete list of supported expansion module of coupler S1-M20.... maybe module need to be configure via tc3 for see from linuxcnc .....

.xml send to me from svelec talk exactly of 0x1600 and 0x1601 register that not compare in the list .... compare only 0x1600 and 0x1610 .... real strange situation. Perhaps I verify el1x.c file .... ecl16dp-in is equal to el1809 module, 16bit register for 0x1600 .... and el2x.c file can work for ecl16dp-out too with same register ...

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

More
1 year 6 months ago #326748 by Hakan
Please post the output of lcec_configgen.
The following user(s) said Thank You: bkt

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

More
1 year 6 months ago #326795 by bkt

Please post the output of lcec_configgen.

is these ..... as you can see little bit too long ...

File Attachment:

File Name: S1-M20.xml
File Size:388.63 KB

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

More
1 year 6 months ago #326796 by bkt
i Try to use these config and seems to work ...
Code:
<masters> <master idx="0" appTimePeriod="8000000" refClockSyncCycles="1">       <slave idx="0" type="generic" vid="0x00000b3d" pid="0x29c9f7b1" name="D1">       <!--S1-M20-->       <syncManager idx="0" dir="in"/>       <syncManager idx="1" dir="out"/>       <syncManager idx="2" dir="out">         <pdo idx="1600">           <!--Output Data-->           <pdoEntry idx="7000" subIdx="01" bitLen="8" halPin="out1" halType="u32"/>       </pdo>       <pdo idx="1601">           <!--Output Data-->           <pdoEntry idx="7010" subIdx="01" bitLen="8" halPin="out2" halType="u32"/>       </pdo>       </syncManager>       <syncManager idx="3" dir="in">         <pdo idx="1a00">           <!--Input Data-->           <pdoEntry idx="6000" subIdx="01" bitLen="8" halPin="in1" halType="u32"/>       </pdo>         <pdo idx="1a01">           <!--Input Data-->           <pdoEntry idx="6010" subIdx="01" bitLen="8" halPin="in2" halType="u32"/>       </pdo>       </syncManager>     </slave>   </master> </masters>

no w try to divide byte to bit .... hope it work

 

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

Time to create page: 0.126 seconds
Powered by Kunena Forum