LD InputChannel I_SCALE ScalingInput0Percent,ScalingInput100Percent ST ScaledValue
ScaledValue := I_SCALE (InputChannel, ScalingInput0Percent, ScalingInput100Percent) ;
Paramètres
|
Type de données
|
Signification
|
---|---|---|
CHANNEL
|
Voie d'entrée
|
|
MN
|
Entrée de mise à l'échelle, 0 pour cent
|
|
MX
|
REAL
|
Entrée de mise à l'échelle, 100 pour cent
|
Paramètres
|
Type de données
|
Signification
|
---|---|---|
OUT
|
REAL
|
Valeur de sortie (mise à l'échelle)
|
Nom
|
Type
|
Commentaire
|
---|---|---|
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) |