EasyManua.ls Logo

Inovance H3U Series - Pulse Capture

Inovance H3U Series
737 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...
356
5
5 High-speed Input5.3.3 Pulse Capture
Settings of Enable/Disable Interrupts
M8050
Enable/Disable I00x
Interrupts
PG input interrupts: Six interrupts
correspond to interrupts on the rising/
falling edge of PG0 to PG2 ports.
x = 1: interrupt on the rising edge
x = 0: interrupt on the falling edge
Each ag bit corresponds to Enable/
Disable Interrupt control of one external
input.
OFF: enable X input interrupts
ON: disable X input interrupts
M8051
Enable/Disable I10x
Interrupts
M8052
Enable/Disable I20x
Interrupts
M8059
Enable/Disable Counter
Interrupts
Enable/Disable Counter Interrupts
OFF: Enable Counter Interrupts
ON: Disable Counter Interrupts
After the "Enable Interrupts" ag corresponding to each interrupt is turned on, the "Enable Global Interrupts"
ag must also be turned on. That is, the interrupt function can be enabled only after EI instruction (FNC04)
is executed. If the "Disable Global Interrupts" DI instruction (FNC05) is executed, all interrupt responses are
disabled. When the "Enable Interrupt Setting" ag corresponding to an input number is turned on and the
input signal complies with interrupt settings, the corresponding interrupt subprogram will be executed.
For the detailed instruction for use, see 11 "Interrupt Subroutine."
5.3.3 Pulse Capture
To respond to instant pulse signals at input ports without special requirements on the response time, use
the pulse capture function. The PLC will store signals on the rising edge of the input port in M8090-M8092.
These signals can be used as the basis for judgment and processing in the main program and manually
cleared after the completion of response.
To use the pulse capture function, turn on the "Enable Global Interrupts" EI instruction and the
corresponding "Enable Pulse Capture". After the rising edge is triggered on external input signals, turn on
the corresponding pulse capture ag. The corresponding "Enable Pulse Capture" and pulse capture ags of
each input port are shown below:
Input Port
H3U-PM Motion
Control Model
X-axis PG0 Y-axis PG1 Z-axis PG2
Enable Pulse Capture M8080 M8081 M8082
Pulse Capture Flag M8090 M8091 M8092
When "Enable Pulse Capture" is set to ON, the pulse capture function is enabled. When "Enable Pulse
Capture" is set to OFF, the pulse capture function is disabled.
The following example describes the pulse capture function for the PG0 input.
Turn on "Enable Global Interrupts"
Set "Enable Pulse Capture"
Generate the pulse capture ag and process pulse events
Clear the pulse capture ag
The program
starts running
Pulse capture
ag bit at X0
Pulse capture ag bit at X0
Enable Pulse Capture at X0

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals