16-/32-Bit Bin Data To Gray Code Conversion - Mitsubishi MELSEC-Q Series Programming Manual

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

Advertisement

6.3.9

16-/32-bit BIN data to Gray code conversion

GRY(P)
DGRY(P)
Structured ladder
GRY
EN
ENO
s
d
Input argument,
EN:
Executing condition
s:
BIN data
Output argument,
ENO:
Execution result
d:
Converted Gray code
Setting
data
s
d
Function
GRY(P)
Converts 16-bit BIN data in the device specified for
device specified for
Negative values cannot be specified for
s
BIN
1234
d
Gray code 1234
P: Executing condition
ST
ENO:=
(EN, s, d);
GRY
Internal device
R, ZR
Bit
Word
Bit
.
d
s
16 bits
b15
0
0
0
0
0
1
0
0
b15
0
0
0
0
0
1
1
0
6.3.9 16-/32-bit BIN data to Gray code conversion
instructions.
GRY
DGRY
: Bit
: ANY16/32
: Bit
: ANY16/32
J
\
U
\G
Word
to Gray code, and stores the result to the
s
.
b0
1
1
0
1
0
0
1
0
b0
1
0
1
1
1
0
1
1
6.3 Data Conversion Instructions
GRY, DGRY
GRY, DGRY
High
Universal
Performance
UD
:
indicates any of the following
GRYP
DGRYP
Constant
Zn
Others
K, H
6-87
6

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qcpu

Table of Contents