FB_Results

If results of the analysis has to be stored or streamed, the result FB managed this and streamed the selected variables to the message broker or store the data into the analytics binary file.

Syntax

Definition:

FUNCTION_BLOCK FB_Results 
VAR_OUTPUT
    stResults: ST_Results;
END_VAR

FB_Results 1: Outputs

Name

Type

Description

stResults

ST_Results

Result struct which contains all items of the result stream

FB_Results 2: Methods

Name

Definition location

Description

Call

Local

Method for background communication. The method must be called cyclically.

AddResult

Local

Add a sample to the result stream

SendResults

Local

Sends all buffered samples of the result stream

Release

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