340
Component explanation:
PLC
component
Control explanation
Mark
X0
Start button, X0 is ON when button is pressed
Y2
Pulse output terminal
M0
Internal auxiliary coil
ET0
Precise timer
Program:
RST
ET0
X0
STR
ET0
K500
X0
FEND
I3000
SM0
Y2
(
S
)
Y2
PLS
M0
Y2
(
R
)
M0
Y2
SM0
STR
ET0
K500
IRET
END
Program explanation:
1.
When X0 is ON, the precise timer interruption will work, Y2 will output the pusle wave.
2.
When X0 is OFF, shut down the precise timer interruption, Y2 stop outputting.
Example 3
As the FRQM calculating the time for fixed pulse numbers, we will change the way to
calculate the pulse numbers in fixed time.