When the PULS1 instruction input (I0) turns on, a 200 Hz frequency
pulse is output, and after 5,000 pulses, pulse output complete
(M0101) turns on and pulse output stops.
Then ladder (1) is executed, and after the frequency and preset
value are changed, a 500 Hz pulse is output, and after 60,000 pulses,
pulse output complete (M0101) turns on and pulse output stops.
Pulse output complete (M0101) turns off (pulse output not complete)
Turn on M0001 to output next pulse
60,000 is stored in the preset value
(D0002, D0003).
Store 500 (500 Hz) in frequency
(D0000, D0001)
Turn on initialization input (M0000)
Ladder (1)