![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268569.webp)
530
Conversion Instructions
Section 3-12
3-12-18 GRAY CODE CONVERT: GRY(474)
Purpose
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).
Ladder Symbol
Variations
Applicable Program Areas
Operands
C: Control Word
Specifies the parameters for the conversion as shown below.
GRY(474)
C
S
D
C
: First control word
S
: Source word
D
: First destination word
Variations
Executed Each Cycle for ON Condition
GRY(474)
Executed Once for Upward Differentiation
@GRY(474)
Executed Once for Downward Differentiation
Not supported
Immediate Refreshing Specification
Not supported
Block program areas
Step program areas
Subroutines
Interrupt tasks
OK
OK
OK
OK
C
0
4 3
7
8
11
12
15
C+1
C+2
15
11
12
0
Do not
use (0).
Operating Mode
0 hex = Gray binary code conversion
Conversion Mode
0 hex = Binary Mode, 1 hex = BCD Mode, 2 hex = 360
°
Mode
Resolution
0 or 1 to F hex (1 to 15 decimal) bits
0 hex = User specified in bits 12 to 15 of C+2.
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.
User-specified Resolution
0 hex = 256, 1 hex = 360, 2 hex = 720, 3 hex = 1,024, 4 to F hex = Do not use.
Encoder Remainder Compensation (Binary Data)
Note
: The range that can be set depends on the user-specified resolution.
Note
: The above setting is valid when the resolution is set to 0 hex in bits 00 to 03 of C.
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...