EasyManua.ls Logo

Mitsubishi MELSEC-Q/L

Mitsubishi MELSEC-Q/L
850 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
244
GRY, GRYP, DGRY, DGRYP
: BIN data or head number of the devices where the BIN data is stored (BIN 16/32 bits)
:
Head number of the devices where the converted Gray code will be stored (BIN 16/32 bits)
Function
GRY
Converts BIN 16-bit data at the device designated by to Gray code, and stores result at device designated by .
DGRY
Converts BIN 32-bit data at the device designated by to Gray code, and stores result at device designated by .
Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
6.3.9 GRY, GRYP Conversio n from BIN 16-bit data to Gray code
DGRY, DGRYP Conve rsion from BIN 32-bit data to Gray code
6.3.9
GRY, GRYP, DGRY, DGRYP
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
––
–– ––
Error
code
Error details
Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4100
The data at is a negative value.
Basic
Process
High
performance
Redundant
Universal
LCPU
Command
Command
S D
DS
GRYP, DGRYP
GRY, DGRY
P
indicates an instruction symbol of GRY, DGRY.
S
D
S
D
S
D
b15
0
BIN 1234
0
0 0 0
1
0 0
1 1
0
1
0 0
1
0
b0
16 bits
b15
0
Gray code 1234
0
0 0 0 1 1 0 1 0 1 1 1 0 11
b0
S
D
S
D
0
BIN 305419896
001 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 00
b31 b16 b0b15
+1 (Upper 16 bits) (Lower 16 bits)
0
Gray code 305419896
001 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 00
+1
S
D
b31 b16 b0b15
S S
D D
S

Table of Contents

Related product manuals