FB_DataSource

The FB DataSource manages the receipt of input values from the various sources. In the OUTPUT declaration you will find all configured inputs.

Syntax

Definition:

FUNCTION_BLOCK FB_T[n]_DataSource IMPLEMENTS I_DataSource, I_V[n]_Virtual_Input_Source
VAR_OUTPUT
eDataState: E_DataSourceState;
END_VAR

FB_DataSource 1: Methods

Name

Definition location

Description

Call

Local

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

GetData

Local

Method to retrieve the data of the specified element.

GetDataOversampling

Local

Method to retrieve the oversampling data of the specified element.

NewDataAvailable

Local

Method to check if new data is available.

HistoricalCtrl

Local

Method for retrieving historical data.

UpdateRecordList

Local

Method for updating the historical record list.

Requirements

Development environment

Target platform

Plc libraries to include

TwinCAT v3.1.4024.0

PC or CX (x64, x86)

Tc3_Analytics