EasyManua.ls Logo

Xinje XD5 - Page 342

Xinje XD5
389 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...
341
Component explanation:
PLC
component
Control explanation
Mark
M0
Start button, X0 is ON when pressed
ET0
Precise timer
HD0
Precise timer setting value (unit: ms)
HSC0
High speed counter
D10
The measured frequency (unit: s)
Program:
RST ET0
M0
STR ET0 HD0
M0
FEND
I3000
SM0
STR ET0 HD0
IRET
END
M0
CNT HSC0 K999999999
DMOV HSC0 D0
SM0
DFLT D0 D2
DFLT HD0 D4
EDIV K1000 D4 D6
EMUL D2 D6 D8
DINT D8 D10
DMOV K0 HSC0
Program explanation:
1. Set the high speed counter sampling period register HD0, the unit is ms.
2. Set ON M0 to start the precise timer interruption and high speed counter, calcuate the
frequency
3. The frequency range is 0-80KHz, the precision is 0.005%.

Table of Contents

Related product manuals