manual_ect_clu_e
The EtherCAT realtime library system of SYBERA enables a custom ethernet adapter under Windows as an EtherCAT Master
The EtherCAT realtime library system of SYBERA enables a custom ethernet adapter under Windows as an EtherCAT Master
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
EtherCAT<br />
Realtime Master Library<br />
Documentation<br />
SYBERA Copyright © 2014<br />
{ Cmd = LRW_CMD; DataSize = DataSize; Addr.bit32 = LogicalAddr; }<br />
if ((pStation->OutDescNum != 0) && (pStation->InDescNum == 0))<br />
{ Cmd = LWR_CMD; DataSize = DataSize; Addr.bit32 = LogicalAddr; }<br />
if ((pStation->OutDescNum == 0) && (pStation->InDescNum != 0))<br />
{ Cmd = LRD_CMD; DataSize = DataSize; Addr.bit32 = LogicalAddr; }<br />
if ((pStation->OutDescNum == 0) && (pStation->InDescNum == 0))<br />
{<br />
Cmd = BRD_CMD; DataSize = sizeof(AL_STATUS);<br />
Addr.bit16[0] = 0x0000;<br />
Addr.bit16[1] = 0x0130;<br />
}<br />
//Set cyclic telegram<br />
__EcatSetCyclicTelegram(<br />
&pStation->TxTel,<br />
(UCHAR)pStation->Index,<br />
Cmd,<br />
Addr.bit16[0],<br />
Addr.bit16[1],<br />
DataSize,<br />
NULL,<br />
0x0000);<br />
}<br />
//Set station update<br />
pStation->bUpdate = TRUE;<br />
SYBERA GmbH, Hohenzollernstr. 2, 71088 Holzgerlingen, Germany, Tel: +49-7031-411-781 Page 22