FB_ReadProcessValue

FB_ReadProcessValue 1:

A function block of this type is used to supply a function block of type FB_ProcessHandlerBase with actual values.

Syntax:

FUNCTION_BLOCK FB_ReadProcessValue EXTENDS FB_MessageBase IMPLEMENTS I_ReadProcessValue
VAR_INPUT
END_VAR
VAR_OUTPUT
fActualValue: LREAL;
END_VAR

FB_ReadProcessValue 2: Outputs

Name

Type

Description

fActualValue

LREAL

The current actual value.

FB_ReadProcessValue 3: Properties

Name

Type

Access

Description

Offset

LREAL

Get, Set

The offset taken into account when calculating the actual value.

ProcessValue

LREAL

Get

The current process value calculated by the last call to Cyclic().

Weighting

LREAL

Get, Set

The scaling factor.

FB_ReadProcessValue 4: Methods

Name

Description

Cyclic

This method must be called by the application once per cycle. It checks the EtherCAT connection and updates the ProcessValue with a filtered actual value.

DoReset

A call of this method with bExecute=TRUE resets the connected sensor interface and clears all local errors.