19: C
OORDINATE
C
ONVERSION
I
NSTRUCTIONS
« FC4A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
»
19-5
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) = (8000, 4000). Once these are set, there is an X to Y conversion, as well
as a Y to X conversion.
M8120 is the initialize pulse special internal relay.
At star tup, XYFS specifies two points.
When input I0 is on, CVXTY conver ts the value in D10
and stores the result in D20.
When input I1 is on, CVYTX conver ts the value in D11
and stores the result in D21.
M8120
XYFS(I)
Y1
4000
END
I0
CVXTY(I)
D1
D20
I1
CVYTX(I)
S1
D21
S1
0
X0
0
Y0
0
X1
8000
S1
0
S2
D10
S1
0
S2
D11
(X0, Y0)
(X1, Y1)
X
Y
0
D10
D21
D20 (1000)
D11 (2500)
The graph shows the linear relationship that is defined
by the two points:
If the value in data register D10 is 2000, the value
assigned to D20 is 1000.
For Y to X conversion, the following equation is used:
If the value in data register D11 is 2500, the value
assigned to D21 is 5000.
Y
1
2
---
X
=
X
2Y
=
8000
(2000)
(5000)
Summary of Contents for FC4A-C10R2
Page 1: ...FC4A SERIES Micro Programmable Logic Controller User s Manual FC9Y B812 ...
Page 6: ...PREFACE 4 FC4A MICROSMART USER S MANUAL ...
Page 94: ...2 MODULE SPECIFICATIONS 2 74 FC4A MICROSMART USER S MANUAL ...
Page 184: ...6 ALLOCATION NUMBERS 6 20 FC4A MICROSMART USER S MANUAL ...
Page 218: ...8 ADVANCED INSTRUCTIONS 8 8 FC4A MICROSMART USER S MANUAL ...
Page 240: ...11 BINARY ARITHMETIC INSTRUCTIONS 11 8 FC4A MICROSMART USER S MANUAL ...
Page 244: ...12 BOOLEAN COMPUTATION INSTRUCTIONS 12 4 FC4A MICROSMART USER S MANUAL ...
Page 252: ...13 SHIFT ROTATE INSTRUCTIONS 13 8 FC4A MICROSMART USER S MANUAL ...
Page 274: ...15 WEEK PROGRAMMER INSTRUCTIONS 15 8 FC4A MICROSMART USER S MANUAL ...
Page 378: ...22 DUAL TEACHING TIMER INSTRUCTIONS 22 4 FC4A MICROSMART USER S MANUAL ...
Page 386: ...23 INTELLIGENT MODULE ACCESS INSTRUCTIONS 23 8 FC4A MICROSMART USER S MANUAL ...
Page 408: ...24 ANALOG I O CONTROL 24 22 FC4A MICROSMART USER S MANUAL ...
Page 426: ...26 COMPUTER LINK COMMUNICATION 26 6 FC4A MICROSMART USER S MANUAL ...