FB_Analysis

In the analysis FB the whole analytics routine is defined. All configured networks with their modules and error handling is created.

Syntax

Definition:

FUNCTION_BLOCK FB_Analysis
VAR_INPUT
    [network FBs]
END_VAR
VAR_OUTPUT
    bError: BOOL;
    ipTcResult: I_TcMessage;
END_VAR

FB_Analysis 1: Inputs

Name

Type

Description

Network FBs

 

FBs of the configured networks

FB_Analysis 2: Outputs

Name

Type

Description

bError

BOOL

Becomes TRUE as soon as an error situation occurs.

ipTcResult

I_TcMessage

Message interface from the TwinCAT 3 EventLogger, which provides details on the return value.

FB_Analysis 3: Methods

Name

Definition location

Description

Call

Local

Method for background communication with the TwinCAT driver. The method must be called cyclically.

Reset

Local

Reset the whole analysis

ResultStream

Local

Optional: If a result stream has to be created

Requirements

Development environment

Target platform

Plc libraries to include

TwinCAT v3.1.4024.0

PC or CX (x64, x86)

Tc3_Analytics