![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030571.webp)
531
Conversion Instructions
Section 3-12
Description
GRY(474) converts the gray binary code in the word specified in S at the res-
olution specified in C using one of the following conversion modes (binary,
BCD, or 360
°
), also specified in C, and places the results in D and D+1.
Note
1.
GRY(474) is normally used when inputting, through a DC Input Unit, a par-
allel signal (2
n
) from an absolute encoder that outputs a gray binary code.
2.
If the word specified for S is allocated to an Input Unit, the input data con-
verted by GRY(474) will be for the gray binary code from the previous CPU
Unit cycle, i.e., it will be one cycle time old.
Restrictions
The following restrictions apply to GRY(474).
■
Restrictions on the CPU Unit
GRY(474) can be used only for the following models of CPU Unit and only for
CPU Units manufactured on or after 1 February 2003 (lot number 030201 or
later, including CPU Unit Ver. 2.0 or later).
• CJ1H-CPU
@@
H-R
• CJ1M-CPU
@@
• CJ1G-CPU
@@
H
• CJ1H-CPU
@@
H
• CS1G-CPU
@@
H
• CS1H-CPU
@@
H
• CS1D-CPU
@@
S
The manufacturing date can be confirmed using the lot number given on the
side or bottom of the CPU Unit. Lot numbers indicate the manufacturing date
as follows:
YYMMDD nnnn
YY = Rightmost two digits of the year, MM = Month as a numeric value,
DD = Day of month, nnnn = Serial number
Note If GRY(474) is transferred to a CPU Unit that does not support it and the pro-
gram is read from a Programming Console, “?” will be displayed for GRY(474)
to indicate an illegal instruction. If GRY(474) is executed with an ON input
Index Registers
---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Area
C
S
D
Conversion mode
Function
Binary Mode
Gray binary code is converted to binary data between
0000 0000 and 0000 7FFF hex. Zero point offset and remainder
compensation is applied and then the result is output to D and
D+1.
BCD Mode
Gray binary code is converted to BCD data. Zero point offset
and remainder compensation is applied, the data is converted
to BCD between 0000 0000 and 0003 2767, and then the result
is output to D and D+1.
360
°
Mode
Gray binary code is converted to BCD data. Zero point offset
and remainder compensation is applied, the data is converted
to an angle between 0000 0000 and 0000 3599 (0.0
°
to 359.9
°
in 0.1
°
increments), and then the result is output to D and D+1.
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...