FB_CxGetDeviceIdentification
The functionblock FB_CxGetDeviceIdentification can be used to get the device identification of a CX-Device.
VAR_INPUT
VAR_INPUT
bExecute : BOOL;
tTimeout : TIME;
END_VAR
bExecute: Command is executed with rising edge.
tTimeout: Timeout to cancel the function call.
VAR_OUTPUT
VAR_OUTPUT
bBusy : BOOL;
bError : BOOL;
nErrorID : UDINT;
stDevIdent : ST_CxDeviceIdentification;
END_VAR
bBusy: Data are read from the CX-Device. Data are stored in stDevIdent if bBusy = FALSE and bError = FALSE.
bError: Gets TRUE, with any error.
nErrorID: Contains the error id if bErr is TRUE.
stDevIdent: Contains the read data, see ST_CxDeviceIdentification.