LD InputChannel I_SCALE ScalingInput0Percent,ScalingInput100Percent ST ScaledValue
ScaledValue := I_SCALE (InputChannel, ScalingInput0Percent, ScalingInput100Percent) ;
Parameter
|
Data type
|
Meaning
|
---|---|---|
CHANNEL
|
Input channel
|
|
MN
|
Scaling input, 0 percent
|
|
MX
|
REAL
|
Scaling input, 100 percent
|
Parameter
|
Data type
|
Meaning
|
---|---|---|
OUT
|
REAL
|
Scaled value
|
Name
|
Type
|
Comment
|
---|---|---|
valuePtr |
UDINT |
3x or 4x raw value register |
rawControl |
BYTE |
Control Byte(internal use only) |
rawSpecific |
BYTE |
Specific Byte (internal use only) |
offset |
INT |
Offset Value |
range |
WORD |
Input range (resolution) |
channel |
BYTE |
Input Channel number |
statusMode |
BYTE |
Status Mode (internal use only) |
statusPtr |
UDINT |
Identifies high byte or low byte of status register |
warnCode |
BYTE |
Warning Code (internal use only) |