Xinje XD Series User Manual page 342

Hide thumbs Also See for XD Series:
Table of Contents

Advertisement

Component explanation:
PLC
component
M0
ET0
HD0
HSC0
D10
Program:
M0
STR
M0
M0
CNT HSC0 K999999999
DMOV HSC0 D0
FEND
I3000
SM0
DFLT
DFLT HD0
EDIV K1000 D4 D6
EMUL D2 D6 D8
DINT
DMOV K0 HSC0
SM0
STR ET0 HD0
IRET
END
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%.
Control explanation
Start button, X0 is ON when pressed
Precise timer
Precise timer setting value (unit: ms)
High speed counter
The measured frequency (unit: s)
ET0
HD0
RST ET0
D0
D2
D4
D8
D10
341
Mark

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xl seriesXd3Xd5

Table of Contents