Gray Code Convert: Gry(474) - Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Conversion Instructions

3-12-18 GRAY CODE CONVERT: GRY(474)

Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
15
12
C
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
15
12
C+2
Note: The above setting is valid when the resolution is set to 0 hex in bits 00 to 03 of C.
530
Converts the gray binary code in a specified word to standard binary data,
BCD data, or an angle at the specified resolution.
This instruction is supported by only CS/CJ-series CPU Unit Ver. 2.0 or later
(including CS1-H, CJ1-H, and CJ1M CPU Units from lot number 030201 or
later).
GRY(474)
C
S
D
Variations
Immediate Refreshing Specification
Block program areas
OK
C: Control Word
Specifies the parameters for the conversion as shown below.
11
8
7
4 3
Do not
use (0).
Conversion Mode
0 hex = Binary Mode, 1 hex = BCD Mode, 2 hex = 360 Mode
Operating Mode
0 hex = Gray binary code conversion
data cannot be specified.
11
Encoder Remainder Compensation (Binary Data)
Note: The range that can be set depends on the user-specified resolution.
User-specified Resolution
0 hex = 256, 1 hex = 360, 2 hex = 720, 3 hex = 1,024, 4 to F hex = Do not use.
C: First control word
S: Source word
D: First destination word
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported
Step program areas
OK
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.
0
Section 3-12
GRY(474)
@GRY(474)
Not supported
Subroutines
Interrupt tasks
OK
OK

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents