FB_VirtualInputSource

The FB VirtualInputSource abstracts the InputSources for the different analysis configurations. The virtual inputs configured in the Analytics Workbench are set here.

Syntax

Definition:

FUNCTION_BLOCK FB_V[n]_C[n]_VirtualInputSource IMPLEMENTS I_VirtualInputSource, I_V[n]_VirtualInputSource
VAR
END_VAR

FB_VirtualInputSource 1: Interfaces

Type

Description

I_VirtualInputSource

Interface for communication with a data source

I_V[n]_VirtualInputSource

Interface that provides all defined virtual inputs

FB_VirtualInputSource 2: Methods

Name

Definition location

Description

SourceSync

Local

Method for synchronizing multiple FB instances

NextData

Local

Method to accept the next data set

Done

Local

Method of signaling that the entire data packet has been processed.

FB_VirtualInputSource 3: Properties

Name

Type

Access

Description

bEndOfData

BOOL

Get

Signals the end of the data packet

dtTimestamp

DCTIMESTRUCT

Get

Timestamp of the currently accepted data set

nDataHandle

ULINT

Get

Data handle

nContext

DWORD

Get

Data context

tTimestamp

ULINT

Get

Timestamp of the currently received data set

Requirements

Development environment

Target platform

Plc libraries to include

TwinCAT v3.1.4024.0

PC or CX (x64, x86)

Tc3_Analytics