FB_GetDongleSystemID
The function block FB_GetDongleSystemID reads the system ID and the volume ID of the TwinCAT 3 license dongle as GUID.
Inputs
VAR_INPUT
bExecute : BOOL;
tTimeout : TIME;
sNetId : T_AmsNetId;
stAmsAddr : AMSADDR;
END_VAR
Name | Type | Description |
---|---|---|
bExecute | BOOL | The function block is enabled by a positive edge at this input. |
tTimeout | TIME | States the length of the timeout that may not be exceeded by execution of the ADS command. |
sNetId | T_AmsNetID | AmsNetId (AMS network identifier) of the TwinCAT computer whose license status is to be read. For the local computer an empty string may be specified. |
stAmsAddr | AMSADDR | Network address (AmsNetId and port) of the license dongle |
Outputs
VAR_OUTPUT
bBusy : BOOL;
bError : BOOL;
nErrorId : UDINT;
stSystemID : GUID;
stVolumeID : GUID;
END_VAR
Name | Type | Description |
---|---|---|
bBusy | BOOL | When the function block is enabled, this output is set and remains set until a feedback is received. |
bError | BOOL | If an error occurs during the transmission of the command, this output is set after the bBusy output is reset. |
nErrorId | UDINT | Returns the ADS error number when the bError output is set. |
stSystemID | System ID of the license dongle | |
stVolumeID | Volume ID of the license dongle |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4022 | PC or CX (x64, x86) | Tc2_Utilties >= 3.3.24.0 |