API
GBIN
171
D
P
bit device
X
Y
M
K
*
S
D
Notes on operand usage:
Refer to the function specifications table for each device in series
for the scope of device usage.
S: source device storing GRAY code. D: device storing BIN value after conversion.
Converts the GRAY code corresponding to the value of the device designated by
S that is converted into a BIN value, and stores it in the device designated by D.
This command converts the value of the absolute position encoder connected with
the PLC's input (this encoder usually has an output value in the form of GRAY code)
into a BIN value, and stores it in the designated register.
The valid range of S is as shown below; if you exceed this range, it is an error, and
the command does not execute.
16-bit command: 0–32,767
32-bit command: 0–2,147,483,647
When X20 = ON, converts the GRAY code of the absolute position encoder
connected with input points X0–X17 to a BIN value and stores it in D10.
Word device
H
KnX KnY KnM
T
*
*
*
*
*
*
*
*
Chapter 16 PLC Function ApplicationsMS300
Convert GRAY code to BIN
16-bit command (5 STEP)
Continuous
C
D
GBIN
execution type
*
*
32-bit command (9 STEP)
*
*
Continuous
DGBIN
execution type
Flag signal: none
745
Pulse
GBINP
execution type
Pulse
DGBINP
execution type