FB_PLCDBAutoLogEvt
Function block with four methods for starting and stopping of defined AutoLog groups and for reading of the corresponding group status.
Syntax
Definition:
FUNCTION_BLOCK FB_PLCDBAutoLogEvt
VAR_INPUT
sNetID: T_AmsNetID := '';
tTimeout: TIME := T#5S;
END_VAR
VAR_OUTPUT
bBusy: BOOL;
bError: BOOL;
ipTcResult: Tc3_EventLogger.I_TcMessage;
bBusy_Status: BOOL;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
sNetID | T_AmsNetID | AMS network ID of the target device at which the ADS command is directed. |
tTimeout | TIME | Indicates the time before the function is cancelled. |
Outputs
Name | Type | Description |
---|---|---|
bBusy | BOOL | TRUE as soon as a method of the function block is active, except for the Status method. |
bError | BOOL | TRUE when an error occurs. |
ipTcResult | Tc3_EventLogger.I_TcMessage | Result interface with detailed information on the return value. |
bBusy_Status | BOOL | The Status method can be executed independently of the other three methods of the function block and therefore has its own Busy flag. Is TRUE as soon as the Status method is active. |
Methods
Name | Definition location | Description |
---|---|---|
Local | Executes the AutoLog group once | |
Local | Starts AutoLog mode with the corresponding configured AutoLog groups | |
Local | Queries the status of the AutoLog groups. | |
Local | Stops AutoLog mode |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1 Build 4022.20 | PC or CX (x86) | Tc3_Database |