Converting 16-Bit Binary Gray Code Data To 16-Bit Binary Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Converting 16-bit binary Gray code data to 16-bit binary data

GBIN(P)(_U)
RnPCPU
RnCPU RnENCPU
(Process)
These instructions convert the specified 16-bit binary Gray code data to 16-bit binary data.
Ladder
(s)
FBD/LD
EN
ENO
s
d
■Execution condition
Instruction
GBIN
GBIN_U
GBINP
GBINP_U
Setting data
■Description, range, data type
Operand
(s)
GBIN(P)
GBIN(P)_U
(d)
GBIN(P)
GBIN(P)_U
EN
ENO
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB,
FX, FY
(s)
(d)
Processing details
• These instructions convert the 16-bit binary Gray code data in the device specified by (s) to 16-bit binary data, and store the
converted data in the device specified by (d).
b15
0
0
(s)
1234
b15
(d) BIN
1234
0
0
6 BASIC INSTRUCTIONS
430
6.6 Data Conversion Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(d)
Execution condition
Description
Gray code data or the device where the Gray
code data is stored
Device for storing the converted binary data
Execution condition
Execution result
Word
J\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
∙∙∙
0
0
0
0
0
1
1
1
∙∙∙
0
0
0
1
0
0
1
1
ST
ENO:=GBIN(EN,s,d);
ENO:=GBINP(EN,s,d);
Range
0 to 32767
0 to 65535
U\G, J\,
Z
U3E\(H)G
b0
0
1
1
1
1
1
b0
0
1
0
0
1
0
ENO:=GBIN_U(EN,s,d);
ENO:=GBINP_U(EN,s,d);
Data type
16-bit signed binary
16-bit unsigned binary
16-bit signed binary
16-bit unsigned binary
Bit
Bit
Double word Indirect
specification
LT, LST,
LZ
LC
Data type (label)
ANY16_S
ANY16_U
ANY16_S
ANY16_U
BOOL
BOOL
Constant
Others
K, H E
$

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents