O
PEN
N
ET
C
ONTROLLER
U
SER
’
S
M
ANUAL 19-1
19: COORDINATE CONVERSION INSTRUCTIONS
Introduction
The coordinate conversion instructions convert
one data point to another value, using a linear
relationship between values of X and Y.
XYFS (XY Format Set)
Valid Operands
For the valid operand number range, see page 6-2.
When T (timer) or C (counter) is used as X0 through Xn or Y0 through Yn, the timer/counter current value is read out.
S1 — Format number
Select a format number 0 through 29. A maximum of 30 formats for XY conversion can be set.
Xn — X value
Enter a value for the X coordinate. The integer value can be 0 through +32767. If the X value becomes negative, a
user program execution error will result, turning on special internal relay M8004 and the ERROR LED.
Yn — Y value
Enter a value for the Y coordinate. The integer value can be –32768 through +32767.
Valid Data Types
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 (integer data type) are used.
When a word operand such as T (timer), C (counter), D (data register), or L (link register) is designated as Xn or Yn, 1
point (integer data type) is used.
Operand Function I Q M R T C D L Constant Repeat
S1 (Source 1) Format number ———————— 0 to 29 —
X0 through Xn X value XXXXXXXX 0 to 32767 —
Y0 through Yn Y value XXXXXXXX–32768 to 32767 —
W (word) I (integer) D (double word) L (long)
— X ——
(X0, Y0)
(X1, Y1)
(X2, Y2)
X
Y
When input is on, the format for XY conversion is set.
The number of XY coordinates, defining the linear
relationship between X and Y, can be 2 to 32 points.
(0 ≤ n ≤ 31)
XYFS(I) S1
**
Y0
*****
Xn
*****
.....
X0
*****
Yn
*****
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com