FB_InputSource

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]_InputSource IMPLEMENTS I_InputSource
VAR
END_VAR

FB_InputSource 1: Interfaces

Type

Description

I_InputSource

Interface for communication with a data source

FB_InputSource 2: 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.

NewDataAvailable

Local

Method to check if new data is available.

AddClient

Local

Method for adding data Clients

ClientDone

Local

Method to signal that the client has received all data.

FB_InputSource 3: Properties

Name

Type

Access

Description

bReadNewData

BOOL

Get

.

eDataState

E_DataSourceState

Get

 

nDataHandle

ULINT

Get

 

nElements

UDINT

Get

 

nMaxOversamplingFactor

UDINT

Get

 

Requirements

Development environment

Target platform

Plc libraries to include

TwinCAT v3.1.4024.0

PC or CX (x64, x86)

Tc3_Analytics