Справочник Пользователя для Mitsubishi Electronics QCPU

Скачать
Страница из 1204
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
D
S
GBINP, DGBINP
GBIN, DGBIN
P
indicates an instruction symbol of 
GBIN/DGBIN.
S
D
S
D
S
D
b15
0
Gray code 1234
0
0
0
0
1
1
0
1
0
1
1
1
0
1
1
b0
16 bit
0
BIN 1234
0
0
0
0
1
0
0
1
1
0
1
0
0
1
0
b15
b0
S
D
S
D
+1 (Upper 16 bits)
(Lower 16 bits)
+1
0
BIN 305419896
0
0 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 0 0
0
Gray code 305419896 0
0 1 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 0 0
b31
b16
b0
b15
b31
b16
b0
b15
S
D
S
D
S
D