FB_xL3403_TcPfw()

FB_xL3403_TcPfw() 1:

This function block processes the data (voltage, line) determined by an xL3403 and makes it available to the application.

FB_xL3403_TcPfw() 2:

The FB_PowerMeasurement_TcPfw() function block should be called by the application. This function block calls FB_xL3403_TcPfw() internally.

Syntax

VAR_INPUT
    I_ratio     : LREAL:=1.0;
    CycleTime   : LREAL:=0.025;
    ReadVoltage : BOOL:=FALSE;
    Using_EL    : BOOL:=FALSE;
END_VAR
VAR_IN_OUT
    Input       : ST_TcPfw_xL3403_Input;
    Output      : ST_TcPfw_xL3403_Output;
    State       : ST_TcPfw_xL3403_State;
END_VAR

FB_xL3403_TcPfw() 3: Inputs

Name

Type

Description

I_ratio

LREAL

The ratio of the current transformers must be entered here.

CycleTime

LREAL

Cycle time with which this function block is called.

ReadVoltage

BOOL

A TRUE causes the currently measured voltage to be read out instead of the power.

Using_EL

BOOL

A TRUE tells the function block that it is an EL terminal.

FB_xL3403_TcPfw() 4: Inputs/outputs

Name

Type

Description

Input

ST_TcPfw_xL3403_Input

Provides the input data of the terminal.

Output

ST_TcPfw_xL3403_Output

Provides the output data of the terminal.

State

ST_TcPfw_xL3403_State

Returns the state of the terminal and the processed data to the application.

Behavior of the function block:

If the terminal does not report an error, the prepared input data are provided in each cycle.

FB_xL3403_TcPfw() 5:

When measuring power with the EL3403, the increased filter time must also be taken into account.