Supported platforms: CODESYS 2.3, CODESYS 3.5

 

PVC_To_CurrentReq (FUN)

Description

This function scales the control signal value to the current request according to given parameters.

If i_Control is 0 or i_Enable is false, the function will return 0.

Limitations

This function is primarily intended for ProportionalValveControl library's internal use.

Inputs

Input variable name

Data type

Range

Description

i_Enable

BOOL

TRUE/FALSE

Enables return value calculation

i_Control

INT

0..32767

Control signal to be scaled

i_MaxCurrent

UINT

1..2500 mA

Max current

i_MinCurrent

UINT

1..2500 mA

Min current

Return value

Return value

Data type

Range

Description

 

UINT

0..2500 mA

Calculated current request

Example code

See also

-

 

Source file Topic000334.htm

Last updated 13-Jun-2024