Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 571

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Conversion Instructions
Description
Note
Restrictions
Area
Index Registers
Indirect addressing
using Index Registers
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.
Conversion mode
Binary Mode
BCD Mode
360 Mode
1. GRY(474) is normally used when inputting, through a DC Input Unit, a par-
n
allel signal (2
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.
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
C
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
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.
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.
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.
) from an absolute encoder that outputs a gray binary code.
Section 3-12
S
Function
D
531

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents