Cvxty (Convert X To Y) - IDEC FC4A-C10R2 User Manual

Fc4a series microsmart micro programmable logic controller
Table of Contents

Advertisement

19: C
C
OORDINATE
ONVERSION
Xn (X value), Yn (Y value)
Enter values for the X and Y coordinates. Three different data ranges are available depending on the system program
version and the data type.
System Program
Data Type
Xn (X value)
Yn (Y value)
Valid Coordinates
Valid Data Types
W (word)
I (integer)
W
X

CVXTY (Convert X to Y)

CVXTY(*)
Applicable CPU Modules
FC4A-C10R2/C
FC4A-C16R2/C
Valid Operands
Operand
S1 (Source 1)
S2 (Source 2)
D1 (Destination 1)
For the valid operand number range, see pages 6-1 and 6-2.
Internal relays M0 through M1277 can be designated as D1. Special internal relays cannot be designated as D1.
When T (timer) or C (counter) is used as S2, the timer/counter current value is read out. When T (timer) or C (counter) is
used as D1, the data is written in as a preset value which can be 0 through 65535.
19-2
I
NSTRUCTIONS
Old System Program Versions
Integer
0 to 32767
–32768 to 32767
Y
32767
0
32767
–32768
If the X value becomes nega-
tive, a user program execution
error will result, turning on spe-
cial internal relay M8004 and
the ERR LED.
When a bit operand such as I (input), Q (output), M (internal relay), or R (shift register) is
designated as Xn or Yn, 16 points are used.
When a word operand such as T (timer), C (counter), or D (data register) is designated as Xn
or Yn, 1 point is used.
S1
S2
D1
*
*****
*****
FC4A-C24R2/C
X
Function
Format number
X value
Destination to store results
« FC4A M
Upgraded System Program Versions
Word
0 to 65535
0 to 65535
Y
65535
X
0
When input is on, the X value designated by operand S2 is converted
into corresponding Y value according to the linear relationship defined in
the XYFS instruction. Operand S1 selects a format from a maximum of
six XY conversion formats. The conversion result is set to the operand
designated by D1.
FC4A-D20K3/S3
X
I
Q
M
— — — — — — —
X
X
X
X
S
U
'
M
ICRO
MART
SER
S
ANUAL
0 to 65535
–32768 to 32767
Y
32767
0
X
–32768
65535
FC4A-D20RK1/RS1 & FC4A-D40K3/S3
X
R
T
C
D
Constant
0 to 5
0 to 32767
X
X
X
X
0 to 65535
X
X
X
X
»
Integer
X
65535
Repeat

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents