IOL_IdentificationAndDiagnosis (FB)ΒΆ
FUNCTION_BLOCK IOL_IdentificationAndDiagnosis
Example
PROGRAM GetIOLinkInfo
VAR
iolInfo : IOL_IdentificationAndDiagnosis;
END_VAR
iolInfo.xExecute := true;
iolInfo(usiCom := 1, uiDevice := 1002, Port := 2); //start request for IO-Link device data
- InOut:
Scope
Name
Type
Initial
Comment
Input
xExecute
BOOL
A trigger causes the function selected with variable Function to be executed
usiCom
USINT
Index of master 1: first ETC master
uiDevice
UINT
The physical slave address to access the EtherCAT slave
Port
BYTE
Port number 0 for the first port
Func
IOL_IdentificationAndDiagnosis_Function.rd_all
This variable selects the functionality to be triggered by a Request
BackupEnable
BOOL
This variable configures the behavior of the FB in case of the requested function wr_ident.
ApplicationSpecificTagIn
STRING(32)
serves as a free user specific tag
LocationTagIn
STRING(32)
extended identification parameter which can be used for overall localisation and identification of any Device (requires FunctionClass ExtendedIdentification).
FunctionTagIn
STRING(32)
extended identification parameter which can be used for overall localisation and identification of any Device (requires FunctionClass ExtendedIdentification).
Output
xDone
BOOL
The signal is set, if the FB has completed a requested operation.
xBusy
BOOL
The signal is set, if the FB is executing a requested operation.
xError
BOOL
The signal is set, if an error occurred during execution of a re-quested operation.
STATUS
UDINT
The value represents the current status of the FB operation and ex-ecuted functions. The content is system specific and contains the status information
ProfileIDList
ARRAY [0..(IOL_Constants.MaxNumProfileID - 1)] OF IOL_ProfileIdentifier
List of ProfileIDs supported by the Device
FunctionClassIDList
ARRAY [0..(IOL_Constants.MaxNumProfileID - 1)] OF IOL_ProfileIdentifier
List of FunctionClassIDs supported by the Device
IdentificationObjects
Structured list of identification objects
DeviceOK
BOOL
The signal is set when no further diagnosis info is available, it is false when further information is available at DeviceStatus and DetailedDeviceStatus
DeviceStatus
BYTE
See Device parameter in clause B.2.18 in [1]
DetailedDeviceStatus
ARRAY [0..(IOL_Constants.MaxNumDetailedDeviceStatus - 1)] OF DWORD
This parameter contains the type casted values from the Device parameter defined in clause B.2.19 in [1]