<div dir="ltr">Hello,<div><br></div><div>I've made my own Simulink block with de generic slave from the EtherLab library. The M-file for this is made by the command "<span style="color:rgb(0,0,0);white-space:pre-wrap">ethercat pdos --skin etherlab</span>".</div>
<div>Now I got a data type problem using my Simulink block. The Simulink error says that the PDO has data type "Unsigned16", but according to the manual this should be a "int16".</div><div>I've checked this in the terminal using ethercat: <br>
</div><div># ethercat pdos</div><div> ...</div><div> PDO entry 0x7002:01, 16 bit, "Aout 1"</div><div> ...</div><div># ethercat xml</div><div> ...</div><div> <Index>#x7002</Index></div><div> <SubIndex>1</SubIndex></div>
<div> <BitLen>16</BitLen></div><div> <Name>Aout 1</Name></div><div> <DataType>UINT16</DataType></div><div> ...</div><div># ethercat sdos</div><div> ...</div><div> 0x7002:01, rwrwrw, int16, 16 bit, "Aout 1"<br>
</div><div> ...</div><div><br></div><div>This should be a "int16" like in the SDOs. How can I fix this problem?</div><div><br></div><div>Attached:</div><div>* Terminal data</div><div>* generated M-file</div><div>
<br clear="all"><div><div dir="ltr"><div>Thank you in advance,</div><div><b>Ralph Oosterveld</b></div><div><br></div></div></div>
</div></div>