IOL_DataStorage (FB)
FUNCTION_BLOCK IOL_DataStorage
This function block reads or updates the the Data Storage object in the Master (IOLD Backup data object) Backup and restore has to be enabled for the IO-Link device.
- InOut:
Scope
Name
Type
Comment
Input
xExecuteBOOLRising edge: Execute
IDDWORDIO-Link Device ID
RD_WRBOOLRead / Write data
LENINTActual data length of DS_DATA (read or write) specified in input IOL_DATA. The maximum size is 2 048 octets.
DS_DATAPOINTER TO BYTE
On-request Data to be written to, or to be read from the Device
Output
xDoneBOOLAction successfully completed
xBusyBOOLFunction block active
xErrorBOOLerror occurred, function block aborts action
STATUSDWORDBus error code
RD_LENINTActual Length of data that has been read.