Library: IODrvEtherCAT
This function block is for reading the memory of EtherCAT Slaves.
Name |
Data type |
Description |
---|---|---|
|
|
Rising edge: Starts the reading. Falling edge: Resets outputs.
If a falling edge occurs before the function block has completed the command, the outputs continue working normally. They are reset only if the command has either been fully executed or aborted ( |
|
|
|
|
|
Index number of the EtherCAT master (1 for the first master…) |
|
|
Automatically increased address or physical address of the device. |
|
|
Flag for interpretation of the address |
|
|
Flag indicating whether broadcast reading is to be used.
|
|
|
Offset of the memory in the EtherCAT slave memory image |
|
|
Number of bytes to be read. |
|
|
Buffer for the storage of the data |
|
|
Watchdog time for the command in ms |
Name |
Data type |
Description |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Example: reading the register 0x130 (current status)
PROGRAM PLC_PRG
VAR
etcreadmemory : ReadMemory;
wStatus : WORD;
xRead : BOOL;
END_VAR
etcreadmemory(xExecute := xRead, usiCom:=1, wSlaveAddress := 1002,
xAutoIncAdr := FALSE, xBroadcast := FALSE, uiMemOffset := 16#130,
iSize := 2, pDest := ADR(wStatus), udiTimeout := 500);
See also: