Call_3Ph

The method is called to scale the input data in a three-phase system of type INT according to the configured parameters. LREAL is output.

Syntax

METHOD Call_3Ph : BOOL
VAR_INPUT
    pInputBuffer_UL1   : POINTER TO INT;
    pInputBuffer_UL2   : POINTER TO INT;
    pInputBuffer_UL3   : POINTER TO INT;
    pInputBuffer_IL1   : POINTER TO INT
    pInputBuffer_IL2   : POINTER TO INT
    pInputBuffer_IL3   : POINTER TO INT
    nInputBufferSize   : UDINT;
    pOutputBuffer_UL1  : POINTER TO LREAL; 
    pOutputBuffer_UL2  : POINTER TO LREAL; 
    pOutputBuffer_UL3  : POINTER TO LREAL;
    pOutputBuffer_IL1  : POINTER TO LREAL; 
    pOutputBuffer_IL2  : POINTER TO LREAL; 
    pOutputBuffer_IL3  : POINTER TO LREAL;
    nOutputBufferSize  : UDINT;
END_VAR
VAR_OUTPUT
END_VAR

Call_3Ph 1: Inputs

Name

Type

Description

pInputBuffer_UL1 .. UL3

POINTER TO INT

Pointer to an array of voltage values. These can be added individually or as an oversampling array.

pInputBuffer_IL1 .. IL3

POINTER TO INT

Pointer to an array of current values. These can be added individually or as an oversampling array.

nInputBufferSize

UDINT

Indicates the size of a single input buffer in bytes.

pOutputBuffer_UL1 .. UL3

POINTER_TO_LREAL

Pointer to an array in which the scaled voltage values are to be stored.

pOutputBuffer_IL1 .. IL3

POINTER_TO_LREAL

Pointer to an array in which the scaled current values are to be stored.

nOutputBufferSize

UDINT

Indicates the size of a single output buffer in bytes.

Call_3Ph 2: Return value

Name

Type

Description

Call_3Ph

BOOL

Indicates whether the method was executed successfully. Further information is provided in the Event interface of the function block.