Call_1Ph_Autorange
The method is called to scale the input data in a single-phase system of type INT according to the configured parameters. LREAL is output. The EL3783 operates in Autorange mode.
Syntax
METHOD Call_1Ph_Autorange : BOOL
VAR_INPUT
pInputBuffer_U : POINTER TO INT;
pInputBuffer_I : POINTER TO INT;
nInputBufferSize : UDINT;
pOutputBuffer_U : POINTER TO LREAL;
pOutputBuffer_I : POINTER TO LREAL;
nOutputBufferSize : UDINT;
bEL3783_HcRangeActive : BOOL;
aEL3783_HcRange : ARRAY [0..3] OF USINT;
END_VAR
VAR_OUTPUT
END_VAR
Inputs
Name |
Type |
Description |
---|---|---|
pInputBuffer_U |
POINTER TO INT |
Pointer to an array of voltage values. These can be added individually or as an oversampling array. |
pInputBuffer_I |
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_U |
POINTER_TO_LREAL |
Pointer to an array in which the scaled voltage values are to be stored. |
pOutputBuffer_I |
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. |
bEL3783_HcRangeActive |
BOOL |
Autorange mode is active at the terminal. |
aEL3783_HcRange |
ARRAY [0..3] OF USINT |
The current measuring range information for the EL3783. |
Return value
Name |
Type |
Description |
---|---|---|
Call_1Ph_Autorange |
BOOL |
Indicates whether the method was executed successfully. Further information is provided in the Event interface of the function block. |