FB_FIASGetDeviceInfo
This block reads the name and the version number of the TwinCAT FIAS Server.
VAR_INPUT
sNetId : T_AmsNetId;
bExecute : BOOL;
tTimeout : TIME := t#5s;
sNetId: A string containing the AMS Net ID of the target device to which the command is addressed.
bExecute: The command is triggered by a rising edge at this input.
tTimeout: States the time before the function is cancelled.
VAR_OUTPUT
bBusy : BOOL;
bError : BOOL;
udiErrorId : UDINT;
udiDeviceVersion : UDINT;
sDeviceName : STRING;
bBusy: This output remains TRUE until the block has executed a command request, but at the longest for the time period set at the tTimeout input. No new commands are accepted at the inputs if bBusy = TRUE.
bError: This output is switched to TRUE as soon as an error occurs during the execution of a command. The command-specific error code is contained in udiErrorId. Is reset to FALSE by the execution of a command at the inputs.
udiErrorId: Contains the command-specific error code of the most recently executed command. Is reset to 0 by the execution of a command at the inputs.
udiDeviceVersion: Version of the TwinCAT FIAS Server.
sDeviceName: Name of the TwinCAT FIAS Server.
Requirements
Development environment | Target system | Required libraries |
---|---|---|
TwinCAT 2.11 R3/x64 | PC/CX | TcFIAS library from V1.0.0 |