7.14 GRY (Conversion: Binary → Gray Code)
■
Ladder diagram
■
Available operation units (●: Available)
Operatio
bit
n unit
i
■
List of operands
Operand
Description
S
The device address where the data for conversion are stored, or the constant
D
Storage device address
(Note 1)
For gray codes, refer to the "Correspondence Table: BIN / Gray Code."
■
Available devices (●: Available)
Operan
d
W
W
X
Y
S
●
●
D
●
●
(Note 1)
Cannot be specified when the operation unit is 16-bit integer (US).
(Note 2)
Only 16-bit devices, and integer constants can be modified. (32-bit devices, real number constants,
and character constants cannot be specified.)
(Note 3)
Index register (I0 to IE)
■
Outline of operation
● This instruction converts a value of the device address or the constant specified by [S] to
gray code, and stores it in the device address specified by [D].
WUME-FP7CPUPGR-12
US
●
16-Bit device:
W
W
W
S
D
L
R
L
S
D
T
D
●
●
●
●
●
●
●
●
●
●
7.14 GRY (Conversion: Binary → Gray Code)
SS
UL
●
32-Bit
device:
(Note 1)
TS
TE
U
W
WI
C
C
M
O
S
E
●
●
●
●
●
SL
SF
Real
Integer
numbe
r
IX
(N
K
H
SF
U
ote
3)
●
●
DF
St
rin
g
Index
modifie
r
D
(Note 2)
" "
F
●
●
7-31