IDEC MICROSmart FC6A Series Ladder Programming Manual page 292

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

Advertisement

16: C
C
OORDINATE
ONVERSION
Example: Linear Conversion
The following example demonstrates setting up two coordinate points to define the linear relationship between X and Y. The two
points are (X0, Y0) = (0, 0) and (X1, Y1) = (8,000, 4,000). Once these are set, there is an X to Y conversion, as well as a Y to X
conversion.
XYFS(I)
M8120
CVXTY(I)
I0
CVYTX(I)
I1
Y
D11 (2,500)
D20 (1,000)
0
(X0, Y0)
16-4
I
NSTRUCTIONS
S1
X0
Y0
0
0
0
8000
S1
S2
D1
0
D10
D20
S1
S2
S1
0
D11
D21
D10
D21
(2,000)
(5,000)
FC6A S
MICROS
ERIES
M8120 is the initialize pulse special internal relay.
X1
Y1
At startup, XYFS specifies two points.
4000
When input I0 is on, CVXTY converts the value in D10 and stores
the result in D20.
When input I1 is on, CVYTX converts the value in D11 and stores
the result in D21.
END
The graph shows the linear relationship that is defined by the two
points:
(X1, Y1)
If the value in data register D10 is 2,000, the value assigned to
D20 is 1,000.
For Y to X conversion, the following equation is used:
8,000
X
If the value in data register D11 is 2,500, the value assigned to
D21 is 5,000.
L
P
MART
ADDER
ROGRAMMING
1
Y
=
X
2
X
=
2Y
M
FC9Y-B1726
ANUAL

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents