![IDEC OpenNet series Скачать руководство пользователя страница 270](http://html.mh-extra.com/html/idec/opennet-series/opennet-series_user-manual_617384270.webp)
19: C
OORDINATE
C
ONVERSION
I
NSTRUCTIONS
O
PEN
N
ET
C
ONTROLLER
U
SER
’
S
M
ANUAL
19-3
CVYTX (Convert Y to X)
Valid Operands
For the valid operand number range, see page 6-2.
▲
Internal relays M0 through M2557 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.
S1 — Format number
Select a format number 0 through 29 which have been set using the XYFS instruction. When an XYFS instruction
with the corresponding format number is not programmed, a user program execution error will result, turning on spe-
cial internal relay M8004 and the ERROR LED.
S2 — Y value
Enter a value for the Y coordinate to convert, within the range specified in the XYFS instruction. Although the integer
value can be –32768 t32767, any value out of the range specified in the XYFS results in a user program exe-
cution error, turning on special internal relay M8004 and the ERROR LED.
D1 — Destination to store results
The conversion results of the X value is stored to the destination. The integer value of the conversion results can be
0 t32767.
Valid Data Types
When a bit operand such as I (input), Q (output), M (internal relay), or R (shift register) is designated as S2 or D1, 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 S2 or D1, 1
point (integer data type) is used.
Data Conversion Error
The data conversion error is ±0.5.
Operand
Function
I
Q
M
R
T
C
D
L
Constant
Repeat
S1 (Source 1)
Format number
—
—
—
—
—
—
—
—
0 to29
—
S2 (Source 2)
Y value
X
X
X
X
X
X
X
X
–32768 to 32767
—
D1 (Destination 1)
Destination to store results
—
X
▲
X
X
X
X
X
—
—
W (word)
I (integer)
D (double word)
L (long)
—
X
—
—
When input is on, the Y value designated by operand S2 is converted
into corresponding X value according to the linear relationship defined
in the XYFS instruction. Operand S1 selects a format from a maximum
of 30 XY conversion formats. The conversion result is set to the oper-
and designated by D1.
CVYTX(I)
S1
**
S2
*****
D1
*****
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]