Special offers from our partners!
Find Replacement BBQ Parts for 20,308 Models. Repair your BBQ today.
6-90
GRY(P),DGRY(P)
6.3.9 Conversion from BIN 16 and 32-bit data to Gray code
(GRY(P),DGRY(P))
GRY(P),DGRY(P)
Function
GRY
Converts BIN 16-bit data at the device designated by to Gray code, and stores result at
device designated by .
DGRY
Converts BIN 32-bit data at the device designated by to Gray code, and stores result at
device designated by .
: BIN data or head number of the devices where the BIN data is stored (BIN 16/32 bits)
:
Head number of the devices where the converted Gray code will be stored (BIN 16/32 bits)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
––
–– ––
Basic
Process
High
performance
Redundant
Universal
Command
Command
S D
DS
GRYP, DGRYP
GRY, DGRY
P
indicates an instruction symbol of GRY, DGRY.
S
D
S
D
S
D
b15
0
BIN 1234
0
0 0 0
1
0 0
1 1
0
1
0 0
1
0
b0
16 bits
b15
0
Gray code 1234
0
0 0 0 1 1 0 1 0 1 1 1 0 11
b0
S
D
S
D
0
BIN 305419896
001 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 00
b31 b16 b0b15
+1 (Upper 16 bits) (Lower 16 bits)
0
Gray code 305419896
001 1 0 1 1 0 0 1 0 1 1 1 0 0 1 1 1 1 1 0 1 0 1 0 0 0 1 00
+1
S
D
b31 b16 b0b15
S S
D D