Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 452

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

GRY
Instruction
GRAY CODE CONVERT
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
C
First control word
S
Source word
D
First destination word
C: Control Word
15
12
11
Do not
C
use (0).
Operating Mode
0 hex = Gray binary code conversion
C+1
Zero Point Compensation (0000 to 7FFF Hex (Binary Data))
Note: Zero point compensation that exceeds the resolution set in the word C of the control
data cannot be specified.
15
12
11
C+2
User-specified Resolution
0 hex = 256, 1 hex = 360, 2 hex = 720, 3 hex = 1,024, 4 to F hex = Do not use.
Note: The above setting is valid when the resolution is set to 0 hex in bits 00 to 03 of C.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
GRY
@GRY
Block program areas
Step program areas
OK
OK
Description
8
7
4 3
0
Resolution
0 or 1 to F hex (1 to 15 decimal) bits
0 hex = User specified in bits 12 to 15 of C+2.
Conversion Mode
0 hex = Binary Mode, 1 hex = BCD Mode, 2 hex = 360 Mode
0
Encoder Remainder Compensation (Binary Data)
Note: The range that can be set depends on the user-specified resolution.
Function
code
Converts the gray binary code in a specified word
474
to standard binary data, BCD data, or an angle at
the specified resolution.
GRY
GRY(474)
C: First control word
C
S: Source word
S
D
D: First destination word
Subroutines
Interrupt tasks
OK
Data type
---
---
---
3. Instructions
Function
SFC action or transition
programs
OK
OK
Size
3
1
2
415
3

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?

Questions and answers

Table of Contents