Scale (Convert Analog Input) - IDEC MICROSmart FC6A Series Ladder Programming Manual

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

27: F
LOW
This chapter describes the flow calculation instructions that output flow volume and the accumulated flow volume.

SCALE (Convert Analog Input)

This instruction scales the analog input value according to the coordinates between two specified points and outputs that result.
Symbol
SCALE(*) S1
*****
Operation
When the input is on, the value of the data register specified by S1 is scaled according to the settings in the data register specified
by S2, then the calculated result is stored in the output value (D1+0, D1+1).
As shown in the diagram below, scaling is calculated by substituting the input value into a linear function that has been derived
from four points that are set by the output maximum value, output minimum value, input maximum value, input minimum value,
which are configured by S2.
Output maximum value
(S2+2, S2+3)
Output value
(D1+0, D1+1)
Output minimum value
(S2+4, S2+5)
0
minimum value
Notes:
• The SCALE instruction cannot be used in an interrupt program. If used in an interrupt program, a user program execution error occurs, the
execution of the instruction is canceled, and the next instruction is executed.
For user program execution errors, see "User Program Execution Errors" on page 3-10.
• If the value of S1 or S2 is out of range, the result is a user program execution error. Error code 28 is stored in D8006, and the output value
(D1+0, D1+1) and the output value (dead band) (D1+2, D1+3) are not updated.
For user program execution errors, see "User Program Execution Errors" on page 3-10.
• In the following cases, a user program execution error will occur. Error code 46 is stored in D8006, and the output value (D1+0, D1+1) and
the output value (dead band) (D1+2, D1+3) are not updated. For user program execution errors, see "User Program Execution Errors" on
page 3-10.
• When the input minimum value (S2+1) is the input maximum value (S2+0) or higher (input minimum value (S2+1) ≥ input maximum
value (S2+0))
• When the output minimum value (S2+4, S2+5) is the output maximum value (S2+2, S2+3) or higher (output minimum value (S2+4,
S2+5) ≥ output maximum value (S2+2, S2+3))
• When the output maximum value, the output minimum value, or the dead band (S2+6, S2+7) is INF (infinity) or NAN (not a number)
• When the dead band (S2+6, S2+7) is negative
C
ALCULATION
S2
S3
D1
*****
*****
*****
Input
Input value
Input
maximum value
(S2+1)
(S1)
(S2+0)
FC6A S
MICROS
ERIES
MART
I
NSTRUCTIONS
D2
*****
L
P
M
ADDER
ROGRAMMING
ANUAL
FC9Y-B1726
27-1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents