6.3 Data Conversion Instructions
6.3.10 Gray code to 16-/32-bit BIN data conversion
6-89
6
BA
S
IC
INSTRUCTIONS
GBI
N
, DGB
IN
GBIN, DGBIN
6.3.10
Gray code to 16-/32-bit BIN data conversion
GBIN, DGBIN
F
unct
i
on
GBIN(P)
Converts Gray code data in the device specified for
to 16-bit BIN data and stores the result to
the device specified for
.
Values between 0 and 32767 can be specified for
.
GBIN(P)
DGBIN(P)
P: Executing condition
:
indicates any of the following
instructions.
GBIN
GBINP
DGBIN
DGBINP
Input argument,
EN:
Executing condition
: Bit
s:
Gray code data
: ANY16/32
Output argument,
ENO:
Execution result
: Bit
d:
Converted BIN data
: ANY16/32
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
K, H
Others
Bit
Word
Bit
Word
−
−
−
U
n
i
versa
l
UD
Hi
g
h
Per
f
ormance
Structured ladder
ST
GBIN
EN
ENO
s
d
GBIN
(EN, s, d);
ENO:=
s
d
s
d
s
b15
0
Gray
code
12
3
4
0
0
0
0
1
1
0
1
0
1
1
1
0
1
1
b
0
16 bi
t
0
B
IN 12
3
4
0
0
0
0
1
0
0
1
1
0
1
0
0
1
0
b15
b
0
s
d
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......