ReadWriteEEprom (FB)ΒΆ
FUNCTION_BLOCK ReadWriteEEprom
Read or write the EEprom of an EtherCAT slave device
- InOut:
Scope
Name
Type
Initial
Comment
Input
xExecuteBOOLRising edge: ACTION starts Falling edge: Resets outputs If a falling edge occurs before the function block has completed its action, the outputs operate in the usual manner and are only reset if either the action is completed or in the event of an error. In this case, the corresponding output values (xDone, xError) are present at the outputs for exactly one cycle.
usiComUSINTInstance of master
uiSlaveAddressUINTAddress of slave 1001 + n or Autoincrement address if bAutoIncrementAddress is set
pbyDataPOINTER TO BYTE
Pointer to 2048 bytes
udiByteSizeUDINT2048
Number of Bytes to write or read
xWriteBOOLFALSE
True: EEprom should be written
uiStartEEpromAddressUINT16#0
Start of Eeprom address to read or write
bAutoIncrementAddressBOOLFALSE
True: access should be done with auto increment address, False: Access with physical address
bWaitForPacketsBOOLTRUE
True: The function block should wait for the packets.
Output
xDoneBOOLTRUE: Action successfully completed
xBusyBOOLTRUE: Function block active
xErrorBOOLTRUE: Error occurred, function block aborts action, FALSE: No error