![Xinje XD Series Скачать руководство пользователя страница 193](http://html.mh-extra.com/html/xinje/xd-series/xd-series_user-manual_887444193.webp)
192
5-8
.
HSC Example
The following takes XD3-60 as an example to show the programming method of HSC.
CNT
HSC0
K2000
M0
M1
RST
HSC0
When the M0 is ON, HSC0 counts the rising edge of the OFF to ON of the input X0 port at
high speed.
When M1 rising edge comes, reset HSC0 high-speed counter and HSCD0 (double word).
SM0
DMOV
HSC0
CNT
HSC0
K88888888
M1
RST
HSC0
D
<
D0
D2
Y0
D
≥
D0
D2 D0
D
<
D4
D
≥
D0
D4
( )
Y1
Y2
D0
( )
( )
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
≥
.
Single-phase incremental mode
Since the high-speed count value is 32-bit, the
instructions here are all 32-bit instructions.
Such as DMOV
,
DLD
<
, DLD
≥
Содержание XD Series
Страница 1: ...XD XL series PLC User manual Instruction WUXI XINJE ELECTRIC CO LTD Data No PD05 20201022 3 5 ...
Страница 210: ...209 ...
Страница 314: ...313 B Double click the middle part to modify ...