FB_ALY_StreamHelper

Syntax

Definition:

FUNCTION_BLOCK FB_ALY_StreamHelper
VAR_INPUT
    stConfig : ST_ALY_StreamHelper_Config;
END_VAR
VAR_OUTPUT
    ipResultMessage: I_TcMessage;
    bError: BOOL;
    bNewResult: BOOL;
    bConfigured: BOOL;
    bConnected: BOOL;
    sStream: STRING(255);
    nNumIotSymbolsRegistered: UDINT;
    tCycleTime: LTIME;
    nNumElements: UDINT;
END_VAR

FB_ALY_StreamHelper 1: Inputs

Name

Type

Description

stConfig

ST_ALY_IotSymbol_Config

Struct to configure the FB

FB_ALY_StreamHelper 2:Outputs

Name

Type

Description

ipResultMessage

I_TcMessage

Eventlogger

bError

BOOL

TRUE if an error has been occurred

bNewResult

BOOL

TRUE if a new result has been calculated

bConfigured

BOOL

TRUE if FB is configured successfully

bConnected

BOOL

TRUE if StreamHelper connected to message broker

sStream

STRING(255)

Topic/Stream

nNumIotSymbolsRegistered

UDINT

Amount of registered IoT symbols

tCycleTime

LTIME

Cycle time of publishing system

nNumElements

UDINT

Number of elements received last call

FB_ALY_StreamHelper 3:Methods

Name

Definition Location

Description

Call

Local

 

Configure

Local

 

GetTimestampElement

Local

 

AddIotSymbol

Local

 

ContainsIotSymbol

Local

 

ReleaseAllIotSymbols

Local

 

ReleaseIotSymbol

Local

 

Requirements

Development environment

Target platform

Plc libraries to include

TwinCAT v3.1.4024.0

PC or CX (x64, x86)

Tc3_Analytics