FB_ALY_BinaryStream_File

Syntax

Definition:

FUNCTION_BLOCK FB_ALY_StreamHelper
VAR_INPUT
    nCycleTime: UDINT;
    stSystemID: GUID;
    sPath: T_MaxString;
    nMaxFileSize: UINT;
END_VAR
VAR_OUTPUT
    bError: BOOL;
    ipResultMessage: I_TcMessage;
END_VAR

FB_ALY_BinaryStream_File 1: Inputs

Name

Type

Description

nCycleTime

UDINT

Logging cycle time

stSystemID

GUID

Twincat System ID

sPath

T_MaxString

Folder path to log in

nMaxFileSize

UINT

Max file size

FB_ALY_BinaryStream_File 2:Outputs

Name

Type

Description

bError

BOOL

TRUE if an error has been occurred

ipResultMessage

I_TcMessage

Eventlogger

FB_ALY_BinaryStream_File 3:Methods

Name

Definition Location

Description

Call

Local

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

Close

Local

Close the opened tay file

CreateDescriptionFile

Local

Create *.tad file for stream desciption

CreateSymbolsFile

Local

Create *.tas file for symbol description

WriteData

Local

Write data to *.tay file

Requirements

Development environment

Target platform

Plc libraries to include

TwinCAT v3.1.4024.0

PC or CX (x64, x86)

Tc3_Analytics