6-92
GBIN(P),DGBIN(P)
6.3.10 Conversion of Gray code to BIN 16 and 32-bit data
(GBIN(P),DGBIN(P))
GBIN(P),DGBIN(P)
Function
GBIN
Converts Gray code data at device designated by to BIN 16-bit data and stores at device
designated by .
DGBIN
Converts Gray code data at device designated by to BIN 32-bit data and stores at device
designated by .
: Gray code data or head number of the devices where the Gray code data is stored (BIN 16/32 bits)
:
Head number of the devices where the converted BIN data 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
GBINP, DGBINP
GBIN, DGBIN
P
indicates an instruction symbol of GBIN/DGBIN.
S
D
S
D
S
D
b15
0Gray code 1234 0 0 0 0
1 1
0
1
0
1 1 1
0
11
b0
16 bit
0
BIN 1234
0
0 0 0 1 0 0 1 1 0 1 0 0 10
b15 b0
S
D
S
D
+1 (Upper 16 bits) (Lower 16 bits)
+1
0
BIN 305419896
00
1
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
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
b31 b16 b0b15
b31 b16
b0b15
S
D
S
D
S
D