Conversion Of Gray Code To Bin 16 And 32-Bit Data (Gbin, Gbinp, Dgbin, Dgbinp) - Mitsubishi MELSEC QCPU Programming Manual

Programmable logic controller
Table of Contents

Advertisement

6 BASIC INSTRUCTIONS
6.3.8 Conversion of Gray code to BIN 16 and 32-bit data
(GBIN, GBINP, DGBIN, DGBINP)
Internal Devices
Set
(System, User)
Data
Bit
Word
S
D
[Instruction Symbol] [Execution Condition]
GBIN, DGBIN
GBINP, DGBINP
[Set Data]
Set Data
S
D
[Functions]
GBIN
Converts Gray code data at device designated by
designated by
Gray code 1234
S
BIN
D
DGBIN
Converts Gray code data at device designated by
designated by
Gray code 305419896
S
BIN
D
6 - 69
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
MELSECNET/10(H)
File
Direct J \
Register
Bit
Command
Command
Gray code data or the head number of device where Gray code data is
being stored
Head number of the device to store BIN data after conversion
D
.
b15
0
0
0
0
b15
1234
0
0
0
0
D
.
+1 (upper 16 bits)
S
b31
0
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
305419896
0
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
QCPU
PLC CPU
Basic
High Performance
Usable Devices
Special
Function
Module
Word
U \G
indicates GBIN or DGBIN
Meaning
to BIN 16-bit data and stores at device
S
16 Bits
0
1
1
0
1
0
1
1
0
1
0
0
1
1
0
1
to BIN 32-bit data and stores at device
S
(lower 16 bits)
S
b16
b15
D
+1
b16
b15
MELSEC-Q/QnA
QnA
Process CPU
Index
Constant
Register
K, H
Zn
S
D
P
S
D
Data Type
Gray code
BIN 16/32 bits
b0
1
0
1
1
b0
0
0
1
0
b0
D
b0
6 - 69
Q4AR
Other

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents