FB_Results
If analysis results need to be saved or streamed, the FB Results manages this and streams the selected variables to the message broker or saves the data to the Analytics binary file.
Syntax
Definition:
FUNCTION_BLOCK FB_Results
VAR_OUTPUT
nTimestamp: ULINT;
stResults: ST_Results;
END_VAR
Outputs
Name | Type | Description |
---|---|---|
nTimestamp | ULINT | Associated timestamp of the result structure data |
stResults | ST_Results | Result structure that contains all elements of the result stream. |
Properties
Name | Type | Access | Description |
---|---|---|---|
bInitialized | BOOL | Get | Indicates whether the function block has been properly initialized |
nMaxSamples | INT | Get | Maximum number of buffered results |
nResultCount | INT | Get | Current number of buffered results |
Methods
Name | Definition location | Description |
---|---|---|
Local | Method for background communication. The method must be called cyclically. | |
Local | Add a sample to the result stream | |
Local | Sends all buffered samples of the result stream | |
Local | Close stream or file of the result stream |
Requirements
Development environment | Target platform | Plc libraries to include |
---|---|---|
TwinCAT v3.1.4024.0 | PC or CX (x64, x86) | Tc3_Analytics |