EasyManua.ls Logo

Inovance H3U Series - GRY Gray Code Conversion

Inovance H3U Series
737 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...
332
4
4 Instructions4.12.4 Other Peripheral Instructions
Application
X10
ROTC D200 K10 K2 M0
S m1
Dm2
The variable space occupied by the preceding code is as follows:
Variable Function Operation
D200
Used as a counter
register
The three units are preset by the user program.D201
Called window number
setting
D202
Called workpiece
number setting
M0 A-phase signal
The following code is executed before the user
program scans this statement:
X1
X0
M0
M1
X2
M2
M1 B-phase signal
M2
Zero-point detection
signal
M3
High-speed rotation in
the forward direction
The results of M3 to M7 are automatically
acquired when X10 = ON.
M3 to M7 are OFF when X10 = OFF.
M4
Low-speed rotation in
the forward direction
M5 Stop
M6
Low-speed rotation in
the reverse direction
M7
High-speed rotation in
the reverse direction
M3 to M7 are output by Y ports in the following user program. Only externally executed elements need to
be controlled.
D200 is cleared when the ow is active and the zero-point signal M2 = ON. Operation starts only after the
clearing operation is completed.
The ROTC instruction can be executed only once in a program.
GRY: Gray code conversion
Overview
The GRY instruction converts binary numbers to gray code equivalents.
GRY S D
Gray code
conversion
Applicable model:
H3U
S
Data
source
BIN data source or data variable unit to be converted, in the
range 0 to 32,767 in 16-bit operation or 0 to 2,147,483,647 in
32-bit operation
16-bit instruction (5
steps)
GRY: Continuous
execution
GRYP: Pulse
execution
32-bit instruction (9
steps)
DGRY: Continuous
execution
DGRYP: Pulse
execution
D
Operation
result
Unit that stores the gray code value after conversion

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals