357
5
5 High-speed Input 5.3.3 Pulse Capture
EI
M8080
PG0
M8090
X01
Enable Global Interrupts
Enable Pulse Capture at PG0
Pulse capture
flag
Clear the pulse
capture flag
PG0 input pulse width should be
greater than the high-speed filter
time (D8021*0.25 us)
In this program, turn on the "Enable Global Interrupts", and set Enable Pulse Capture M8080 to ON at PG0.
When the external PG0 input switches from OFF to ON, set the pulse capture ag M8090 interrupt to ON.
Process pulse capture events based on the status of M8090, and then reset the pulse capture ag in the
program to facilitate the next pulse capture response.
• To successfully use the pulse capture function, the corresponding input signal pulse width must be greater than
the high-speed lter time. That is, the pulse width must be greater than D8021*0.25 us.
5
.
4
High
-
speed Comparison Instructions for H
3
U
-
PM Motion Control Model
Compared with H3U standard model, H3U-PM model has more functions: its HSCS instruction has an
additional function of starting electronic cams, and HSOS and HSOR instructions are added to execute the
interrupt comparison setting/reset output of the high-speed output value or cam value, execute the counter
interrupt subprogram, and start cams.
Main instructions:
Instruction Function
HSCS (High-speed counter) Comparison setting
HSCR (High-speed counter) Comparison reset
HSZ (High-speed counter) Range comparison
HSOS High-speed interrupt comparison setting
HSOR High-speed interrupt comparison reset