EasyManua.ls Logo

Xinje XL Series - Page 217

Xinje XL Series
456 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...
216
When SM0 is on, HSC0 counts X0 port in single-phase incremental mode, the setting
value is K888888, and reads the high-speed counting value to D0 (double-word) in real
time.
When D0 (double words) is less than D2 (double words), Y0 is ON, when D0 (double
words) is equal to or larger than D2 (double words) and less than D4 (double words), Y1
is ON. when D0 (double words) is equal to or larger than D4 (double words), Y2 is ON.
When M1 rising edge is coming, reset HSC0 and HSCD0(double words).
As the high speed counter is double words counter, please use double words instruction
DLD < and DLD ≥.
M8
DMOV HSC0
D0
D
D0 K3000
CNT_AB HSC0
K999999
SM0
Y2
M9
RST HSC0
( )
When M8 is ON, HSC0 starts to count. The signal inputs from X0 (A phase) and X1 (B
phase).
When SM0 is ON, the value in HSCD0 (double words) related to HSC0 is written to D0
(double words) in real-time.
When the present counting value is over 3000, Y2 is ON.
When the rising edge of M9 is coming, reset HSC0 and HSCD0 (double words).
Since the high-speed count value is 32-bit, the
instructions here are all 32-bit
instructions.Such as DMOV
DLD
,
DLD
AB phase input mode
tudonghoatoancau.com

Table of Contents

Related product manuals