Conversion From Bin 16 And 32-Bit Data To Gray Code (Gry(P),Dgry(P)) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

6.3.9
Conversion from BIN 16 and 32-bit data to Gray code
(GRY(P),DGRY(P))
GRY(P),DGRY(P)
GRY, DGRY
GRYP, DGRYP
Setting
Data
S
D
Function
GRY
Converts BIN 16-bit data at the device designated by
device designated by
S
BIN 1234
D
Gray code 1234
DGRY
Converts BIN 32-bit data at the device designated by
device designated by
S
BIN 305419896
Gray code 305419896 0
D
Command
Command
: BIN data or head number of the devices where the BIN data is stored (BIN 16/32 bits)
S
: Head number of the devices where the converted Gray code will be stored (BIN 16/32 bits)
D
Internal Devices
R, ZR
Bit
Word
.
D
b15
0
0
0
0
0
1
0
b15
0
0
0
0
0
1
1
.
D
S
+1 (Upper 16 bits)
b31
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
D
+1
b31
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
High
Basic
performance
indicates an instruction symbol of
J
\
U
\G
Bit
Word
to Gray code, and stores result at
S
16 bits
0
1
1
0
1
0
0
1
0
1
0
1
1
1
0
1
to Gray code, and stores result at
S
S
(Lower 16 bits)
b16
b15
D
b16
b15
GRY(P),DGRY(P)
Process
Redundant Universal
LCPU
GRY, DGRY.
S
D
S
D
P
Constants
Zn
Other
K, H
––
––
––
b0
0
b0
1
b0
b0
6-91
1
2
3
4
4
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents