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

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 ...

Attachment not found

Please Log in 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 to join the conversation.

More
1 year 6 months ago #326797 by bkt
these seems to work ... But I'm in remote so can not verify hardware result ....  halshow show all work correctly .... only never see op-state of lcsc ... but work on demo-sim-classicladder .... never check if on sim lcec go on op-state or not .....
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="16" halType="complex">             <complexEntry bitLen="1" halPin="out-1" halType="bit"/>             <complexEntry bitLen="1" halPin="out-2" halType="bit"/>             <complexEntry bitLen="1" halPin="out-3" halType="bit"/>             <complexEntry bitLen="1" halPin="out-4" halType="bit"/>             <complexEntry bitLen="1" halPin="out-5" halType="bit"/>             <complexEntry bitLen="1" halPin="out-6" halType="bit"/>             <complexEntry bitLen="1" halPin="out-7" halType="bit"/>             <complexEntry bitLen="1" halPin="out-8" halType="bit"/>             <complexEntry bitLen="8"/>           </pdoEntry>       </pdo>       <pdo idx="1601">           <!--Output Data-->           <pdoEntry idx="7010" subIdx="01" bitLen="16" halType="complex">             <complexEntry bitLen="1" halPin="out-9" halType="bit"/>             <complexEntry bitLen="1" halPin="out-10" halType="bit"/>             <complexEntry bitLen="1" halPin="out-11" halType="bit"/>             <complexEntry bitLen="1" halPin="out-12" halType="bit"/>             <complexEntry bitLen="1" halPin="out-13" halType="bit"/>             <complexEntry bitLen="1" halPin="out-14" halType="bit"/>             <complexEntry bitLen="1" halPin="out-15" halType="bit"/>             <complexEntry bitLen="1" halPin="out-16" halType="bit"/>             <complexEntry bitLen="8"/>           </pdoEntry>       </pdo>       </syncManager>       <syncManager idx="3" dir="in">         <pdo idx="1a00">           <!--Input Data-->           <pdoEntry idx="6000" subIdx="01" bitLen="16" halType="complex">             <complexEntry bitLen="1" halPin="in-1" halType="bit"/>             <complexEntry bitLen="1" halPin="in-2" halType="bit"/>             <complexEntry bitLen="1" halPin="in-3" halType="bit"/>             <complexEntry bitLen="1" halPin="in-4" halType="bit"/>             <complexEntry bitLen="1" halPin="in-5" halType="bit"/>             <complexEntry bitLen="1" halPin="in-6" halType="bit"/>             <complexEntry bitLen="1" halPin="in-7" halType="bit"/>             <complexEntry bitLen="1" halPin="in-8" halType="bit"/>             <complexEntry bitLen="8"/>           </pdoEntry>       </pdo>         <pdo idx="1a01">           <!--Input Data-->           <pdoEntry idx="6010" subIdx="01" bitLen="16" halType="complex">             <complexEntry bitLen="1" halPin="in-9" halType="bit"/>             <complexEntry bitLen="1" halPin="in-10" halType="bit"/>             <complexEntry bitLen="1" halPin="in-11" halType="bit"/>             <complexEntry bitLen="1" halPin="in-12" halType="bit"/>             <complexEntry bitLen="1" halPin="in-13" halType="bit"/>             <complexEntry bitLen="1" halPin="in-14" halType="bit"/>             <complexEntry bitLen="1" halPin="in-15" halType="bit"/>             <complexEntry bitLen="1" halPin="in-16" halType="bit"/>             <complexEntry bitLen="8"/>           </pdoEntry>       </pdo>       </syncManager>     </slave>   </master> </masters>

Please Log in to join the conversation.

More
1 year 6 months ago #326798 by rodw
Seems what I expected. 
What happens if you change bitlen to 32 and add ports 9 to 16?
You would need to get rid of the bitlen=8 line too.

Please Log in to join the conversation.

More
1 year 6 months ago #326816 by bkt
I made a test in these way .....
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="32" halType="complex">             <complexEntry bitLen="1" halPin="out-1" halType="bit"/>             <complexEntry bitLen="1" halPin="out-2" halType="bit"/>             <complexEntry bitLen="1" halPin="out-3" halType="bit"/>             <complexEntry bitLen="1" halPin="out-4" halType="bit"/>             <complexEntry bitLen="1" halPin="out-5" halType="bit"/>             <complexEntry bitLen="1" halPin="out-6" halType="bit"/>             <complexEntry bitLen="1" halPin="out-7" halType="bit"/>             <complexEntry bitLen="1" halPin="out-8" halType="bit"/>             <complexEntry bitLen="1" halPin="out-9" halType="bit"/>             <complexEntry bitLen="1" halPin="out-10" halType="bit"/>             <complexEntry bitLen="1" halPin="out-11" halType="bit"/>             <complexEntry bitLen="1" halPin="out-12" halType="bit"/>             <complexEntry bitLen="1" halPin="out-13" halType="bit"/>             <complexEntry bitLen="1" halPin="out-14" halType="bit"/>             <complexEntry bitLen="1" halPin="out-15" halType="bit"/>             <complexEntry bitLen="1" halPin="out-16" halType="bit"/>           </pdoEntry>       </pdo>       </syncManager>       <syncManager idx="3" dir="in">         <pdo idx="1a00">           <!--Input Data-->           <pdoEntry idx="6000" subIdx="01" bitLen="32" halType="complex">             <complexEntry bitLen="1" halPin="in-1" halType="bit"/>             <complexEntry bitLen="1" halPin="in-2" halType="bit"/>             <complexEntry bitLen="1" halPin="in-3" halType="bit"/>             <complexEntry bitLen="1" halPin="in-4" halType="bit"/>             <complexEntry bitLen="1" halPin="in-5" halType="bit"/>             <complexEntry bitLen="1" halPin="in-6" halType="bit"/>             <complexEntry bitLen="1" halPin="in-7" halType="bit"/>             <complexEntry bitLen="1" halPin="in-8" halType="bit"/>             <complexEntry bitLen="1" halPin="in-9" halType="bit"/>             <complexEntry bitLen="1" halPin="in-10" halType="bit"/>             <complexEntry bitLen="1" halPin="in-11" halType="bit"/>             <complexEntry bitLen="1" halPin="in-12" halType="bit"/>             <complexEntry bitLen="1" halPin="in-13" halType="bit"/>             <complexEntry bitLen="1" halPin="in-14" halType="bit"/>             <complexEntry bitLen="1" halPin="in-15" halType="bit"/>             <complexEntry bitLen="1" halPin="in-16" halType="bit"/>           </pdoEntry>       </pdo>       </syncManager>     </slave>   </master> </masters>


same result ..... no lcec.0.op-state true....????

 

Please Log in to join the conversation.

More
1 year 6 months ago #326850 by rodw
I don't think the error has anything to do with your I/O module. Sounds like you are using a wrong pin name. comment it out until it opens and then review in halshow to see what you did wrong...

Please Log in to join the conversation.

More
1 year 6 months ago #326873 by Hakan
bkt, something you mentioned before.
If I understand right, there is a master module "S1-M20" and a connected sub-device "ECL16DP"
Both are EtherCAT devices or slaves. They should both show up as slaves when you do the "ethercat slaves" command.
But in the lcec_configgen listing there is only the "S1-M20" module, identified by the line
<slave idx="0" type="generic" vid="0x00000b3d" pid="0x29c9f7b1" name="D1">
where vid and pid are the numbers for S1-M20.
The config you are working on now is the S1-M20 config because of that.

In the first post you attached ESI-files for the ECL16DP unit. Identified by the lines
<VendorId>0x00000B3D</VendorId>
<ProductCode>0x1201B602</ProductCode>
in the xml file. That's the device with the inputs+outputs.

If they both are EtherCAT devices (and not meant  to be accessed through the S1-M20 in some way)
they should both show up on the EtherCAT bus. Use the command "ethercat slaves" to verify that.
They got to be visible on the EtherCAT bus before you can access them.

Please Log in to join the conversation.

More
1 year 6 months ago #326875 by bkt
on ethercat slaves command have only these reply ... 0  0:0  PREOP  +  S1-M20
..... very frustrating isn't it? here an other configuration become froam omrom plc of same product ....
Code:
<EtherCATInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="EtherCATInfo.xsd" Version="1.2">     <Vendor>         <Id>#x00000B3D</Id>         <Name>SVLEC</Name>         <ImageData16x14>424DD8020000000000003600000028000000100000000E0000000100180000000000A2020000C30E0000C30E0000000000000000000039A1EF30A1F6309FF23BA2F0E8DCD3D7D7D7D7D7D7D6D6D6D6D6D6D7D7D7D7D7D7D7D7D7D6D6D6D6D6D6D7D7D7D8D8D862809A1481D51596F71E96F1E9DBD1D6D6D6D4D4D4D7D7D7D6D6D6D7D7D7D7D7D7D4D4D4D7D7D7D4D4D4D5D5D5D7D7D73680B9CBD6E0048FF62098F1EBDED4C0C0C1D6D6D6B9B9B9C5C5C6BFBFC0BBBBBBD7D7D7BABABAD9D9D9CCCCCCD1D1D10991F8FFF1E635A2F31C96F2EEE1D69A9A9BDADADA9F9F9FC2C2C2B2B2B3B4B4B5CBCBCB939394DFDFDF9F9FA0DCDCDC1C97F441A7F33262891E9CFBECDED4B6B6B6D9D9D9C1C1C1C3C3C3BEBEBEB3B3B3D6D6D5B3B3B4DCDCDCA5A5A6D9D9D92199F3169CFF135489209EFCEADCD2E3E3E2E0E0DFD8D8D8E0E0E0DADADA3E3E3E000000E4E4E3DBDBDBE3E3E3D7D7D7219AF41C9EFF14355421A1FFEFE2D762626469696ADEDEDD747576D1D1D12C2C2D1E1E1F666668ACACAD6B6B6DDEDEDE22A3FF152436165487219FFDEFE1D7757576565658C7C7C73C3C3EBEBEBE6565676666689393947A7A7B646466ADADAE219FFD175B9116A2FF2098F1EEE1D79D9D9E8B8B8CACACAC5C5C5E9B9B9B9C9C9D979798919192636365E7E7E7D8D8D820A0FF1D466931A2F61C97F2ECDFD5B7B7B8878788B9B9B9AAAAABADADADB7B7B7B7B7B8858586939394E7E7E7DADADA1C98F445A3EAF3EEEB088FF5F4E7DC48484A717173838385C7C7C77D7D7EACACACAAAAAB6C6C6D868688626264C1C1C12199F3028CF4FCF3EE478FC6EBE3DD909091808081838384DBDBDB7E7E7FB2B2B2AFAFB0767678BABABB818182D0D0D12099F31595F5429BDE7B9BB5E0DBD7DCDCDCDEDEDEDDDDDDD6D6D6DDDDDDD9D9D9D9D9D9DEDEDED9D9D9E1E0E0AEAFB1289BF11F98F21796F52991DFE7DCD3D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4DADAD90000</ImageData16x14>     </Vendor>     <Descriptions>         <Groups>             <Group>                 <Type>EtherCAT DP16</Type>                 <Name LcId="1033">EtherCAT DP16</Name>                 <ImageData16x14>424DD8020000000000003600000028000000100000000E0000000100180000000000A2020000C30E0000C30E0000000000000000000039A1EF30A1F6309FF23BA2F0E8DCD3D7D7D7D7D7D7D6D6D6D6D6D6D7D7D7D7D7D7D7D7D7D6D6D6D6D6D6D7D7D7D8D8D862809A1481D51596F71E96F1E9DBD1D6D6D6D4D4D4D7D7D7D6D6D6D7D7D7D7D7D7D4D4D4D7D7D7D4D4D4D5D5D5D7D7D73680B9CBD6E0048FF62098F1EBDED4C0C0C1D6D6D6B9B9B9C5C5C6BFBFC0BBBBBBD7D7D7BABABAD9D9D9CCCCCCD1D1D10991F8FFF1E635A2F31C96F2EEE1D69A9A9BDADADA9F9F9FC2C2C2B2B2B3B4B4B5CBCBCB939394DFDFDF9F9FA0DCDCDC1C97F441A7F33262891E9CFBECDED4B6B6B6D9D9D9C1C1C1C3C3C3BEBEBEB3B3B3D6D6D5B3B3B4DCDCDCA5A5A6D9D9D92199F3169CFF135489209EFCEADCD2E3E3E2E0E0DFD8D8D8E0E0E0DADADA3E3E3E000000E4E4E3DBDBDBE3E3E3D7D7D7219AF41C9EFF14355421A1FFEFE2D762626469696ADEDEDD747576D1D1D12C2C2D1E1E1F666668ACACAD6B6B6DDEDEDE22A3FF152436165487219FFDEFE1D7757576565658C7C7C73C3C3EBEBEBE6565676666689393947A7A7B646466ADADAE219FFD175B9116A2FF2098F1EEE1D79D9D9E8B8B8CACACAC5C5C5E9B9B9B9C9C9D979798919192636365E7E7E7D8D8D820A0FF1D466931A2F61C97F2ECDFD5B7B7B8878788B9B9B9AAAAABADADADB7B7B7B7B7B8858586939394E7E7E7DADADA1C98F445A3EAF3EEEB088FF5F4E7DC48484A717173838385C7C7C77D7D7EACACACAAAAAB6C6C6D868688626264C1C1C12199F3028CF4FCF3EE478FC6EBE3DD909091808081838384DBDBDB7E7E7FB2B2B2AFAFB0767678BABABB818182D0D0D12099F31595F5429BDE7B9BB5E0DBD7DCDCDCDEDEDEDDDDDDD6D6D6DDDDDDD9D9D9D9D9D9DEDEDED9D9D9E1E0E0AEAFB1289BF11F98F21796F52991DFE7DCD3D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4D4DADAD90000</ImageData16x14>             </Group>         </Groups>         <Devices>             <Device Physics="YY">                 <Type ProductCode="#x1201B602" RevisionNo="#x00000003">ECL16DP</Type>                 <Name LcId="1033">ECL16DP</Name>                 <GroupType>EtherCAT DP16</GroupType>                 <Fmmu>Outputs</Fmmu>                 <Fmmu>Inputs</Fmmu>                 <Sm StartAddress="#x0f02" ControlByte="#x44" Enable="1" OpOnly="1">Outputs</Sm>                 <Sm StartAddress="#x0f03" ControlByte="#x44" Enable="1" OpOnly="1">Outputs</Sm>                 <Sm StartAddress="#x1000" ControlByte="0" Enable="1">Inputs</Sm>                 <RxPdo Fixed="1" Sm="0">                     <Index>#x1600</Index>                     <Name>Byte 0</Name>                     <Entry>                         <Index>#x7000</Index>                         <SubIndex>1</SubIndex>                         <BitLen>8</BitLen>                         <Name>Output</Name>                         <DataType>BITARR8</DataType>                     </Entry>                 </RxPdo>                 <RxPdo Fixed="1" Sm="1">                     <Index>#x1601</Index>                     <Name>Byte 1</Name>                     <Entry>                         <Index>#x7001</Index>                         <SubIndex>1</SubIndex>                         <BitLen>8</BitLen>                         <Name>Output</Name>                         <DataType>BITARR8</DataType>                     </Entry>                 </RxPdo>                 <TxPdo Fixed="1" Sm="2">                     <Index>#x1a00</Index>                     <Name>Byte 0</Name>                     <Entry>                         <Index>#x6000</Index>                         <SubIndex>1</SubIndex>                         <BitLen>8</BitLen>                         <Name>Input</Name>                         <DataType>BITARR8</DataType>                     </Entry>                 </TxPdo>                 <TxPdo Fixed="1" Sm="2">                     <Index>#x1a01</Index>                     <Name>Byte 1</Name>                     <Entry>                         <Index>#x6001</Index>                         <SubIndex>1</SubIndex>                         <BitLen>8</BitLen>                         <Name>Input</Name>                         <DataType>BITARR8</DataType>                     </Entry>                 </TxPdo>                 <Dc>                     <OpMode>                         <Name>DcOff</Name>                         <Desc>DC unused</Desc>                         <AssignActivate>#x0000</AssignActivate>                     </OpMode>                     <OpMode>                         <Name>DcSync</Name>                         <Desc>DC for synchronization</Desc>                         <AssignActivate>#x0100</AssignActivate>                         <CycleTimeSync0 Factor="1">0</CycleTimeSync0>                         <ShiftTimeSync0>0</ShiftTimeSync0>                     </OpMode>                 </Dc>                 <Eeprom>                     <ByteSize>2048</ByteSize>                     <ConfigData>040f0044102700ff000000000000</ConfigData>                 </Eeprom>             </Device>         </Devices>     </Descriptions> </EtherCATInfo>

Please Log in to join the conversation.

More
1 year 6 months ago #326876 by bkt
plus ....  if try to attach some ek1100 with elxxx and send ethercat pdos .... reply correct ... if try with svelc module reply in different way .... seems not well configured or need to write a .c and .h file for it ....

Please Log in to join the conversation.

More
1 year 6 months ago #326877 by bkt
but ethercat slaves -v shoe these:
Code:
ethercat slaves -v === Master 0, Slave 0 === Device: Main State: PREOP Flag: + Identity:   Vendor Id:       0x00000b3d   Product code:    0x29c9f7b1   Revision number: 0x00000001   Serial number:   0x00004e20 DL information:   FMMU bit operation: yes   Distributed clocks: yes, 32 bit   DC system time transmission delay: 0 ns Port  Type  Link  Loop    Signal  NextSlave  RxTime [ns]  Diff [ns]   NextDc [ns]    0  MII   up    open    yes             -   1753551764           0           0    1  MII   down  closed  no              -            -           -           -    2  N/A   down  closed  no              -            -           -           -    3  N/A   down  closed  no              -            -           -           - Mailboxes:   Bootstrap RX: 0x1000/128, TX: 0x1080/128   Standard  RX: 0x1000/128, TX: 0x1080/128   Supported protocols: CoE, FoE General:   Group: EtherCAT Extend Slave   Image name:   Order number: S1-M20   Device name: S1-M20   CoE details:     Enable SDO: yes     Enable SDO Info: yes     Enable PDO Assign: yes     Enable PDO Configuration: no     Enable Upload at startup: yes     Enable SDO complete access: yes   Flags:     Enable SafeOp: no     Enable notLRW: no   Current consumption: 0 mA

Please Log in to join the conversation.

Time to create page: 0.113 seconds
Powered by Kunena Forum