Supported platforms: CODESYS 2.3, CODESYS 3.5
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.
This function is primarily intended for ProportionalValveControl library's internal use. |
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 |
Data type |
Range |
Description |
|
UINT |
0..2500 mA |
Calculated current request |
-
Source file Topic000334.htm
Last updated 21-Feb-2025