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
xExecute
BOOL
Rising edge: Execute
ID
DWORD
IO-Link Device ID
RD_WR
BOOL
Read / Write data
LEN
INT
Actual data length of DS_DATA (read or write) specified in input IOL_DATA. The maximum size is 2 048 octets.
DS_DATA
POINTER TO BYTE
On-request Data to be written to, or to be read from the Device
Output
xDone
BOOL
Action successfully completed
xBusy
BOOL
Function block active
xError
BOOL
error occurred, function block aborts action
STATUS
DWORD
Bus error code
RD_LEN
INT
Actual Length of data that has been read.