
16: C
OORDINATE
C
ONVERSION
I
NSTRUCTIONS
16-2
FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
Note:
The XYFS instruction cannot be used in an interrupt program.
If used, a user program execution error will result, turning on special internal relay M8004 and the ERR LED on the FC6A Series MICROSmart. For
details about the user program execution errors, see "User Program Execution Errors" on page 3-10.
CVXTY (Convert X to Y)
Valid Devices
For valid device address ranges, see "Device Addresses" on page 2-1.
Special internal relays cannot be designated as D1.
When T (timer) or C (counter) is used as S2, the timer/counter current value (TC or CC) is displayed. When T (timer) or C (counter) is used as D1,
the data is written in as a preset value (TP or CP) which can be 0 through 65,535.
S1 (Format number)
Select a format number 0 through 7 which have been set using the XYFS instruction. When an XYFS instruction with the corresponding format
number is not programmed, or when XYFS and CVXTY instructions of the same format number have different data type designations, a user
program execution error will result, turning on special internal relay M8004 and the ERR LED on the FC6A Series MICROSmart. For details about the
user program execution errors, see "User Program Execution Errors" on page 3-10.
S2 (X value)
Enter a value for the X coordinate to convert, within the range specified in the XYFS instruction.
D1 (Destination to store results)
The conversion result of the Y value is stored to the destination.
Valid Data Types
Data Conversion Error
The data conversion error is ±0.5.
Note:
The CVXTY instruction cannot be used in an interrupt program.
If used, a user program execution error will result, turning on special internal relay M8004 and the ERR LED on the FC6A Series MICROSmart. For
details about the user program execution errors, see "User Program Execution Errors" on page 3-10.
When input is on, the X value assigned by device S2 is converted into the
corresponding Y value according to the linear relationship defined in the XYFS
instruction. Device S1 selects a format from a maximum of 8 XY conversion formats.
The conversion result is set to the device assigned by D1.
CVXTY(*)
S1
*
S2
*****
D1
*****
Device
Function
I
Q
M
R
T
C
D
P
Constant
Repeat
S1 (Source 1)
Format number
—
—
—
—
—
—
—
—
0 to 7
—
S2 (Source 2)
X value
X
X
X
X
X
X
X
—
0 to 65,535
—
D1 (Destination 1)
Destination to store results
—
X
X
X
X
X
—
—
—
Data Type
Word
Integer
S2 (X value)
0 to 65,535
0 to 65,535
D1 (Y value)
0 to 65,535
–32,768 to 32,767
Valid Coordinates
Y
0
65,535
65,535
X
Y
0
32,767
–32,768
X
65,535
W (word)
X
When a bit device such as I (input), Q (output), M (internal relay), or R (shift register) is assigned as S2 or D1, 16
points are used.
When a word device such as T (timer), C (counter), or D (data register) is assigned as S2 or D1, 1 point is used.
I (integer)
X
D (double word)
—
L (long)
—
F (float)
—
Summary of Contents for MICROSmart FC6A Series
Page 1: ...B 1726 7 FC6A SERIES Ladder Programming Manual ...
Page 8: ...Preface 7 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 32: ...1 OPERATION BASICS 1 20 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 96: ...3 INSTRUCTIONS REFERENCE 3 18 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 130: ...4 BASIC INSTRUCTIONS 4 34 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 192: ...9 SHIFT ROTATE INSTRUCTIONS 9 12 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 272: ...12 DISPLAY INSTRUCTIONS 12 24 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 284: ...14 REFRESH INSTRUCTIONS 14 6 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 502: ...25 DATA LOG INSTRUCTIONS 25 22 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 546: ...26 SCRIPT 26 44 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 598: ...APPENDIX A 14 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...