IDEC MICROSmart FC6A Series Ladder Programming Manual page 303

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

Sample program
This section describes an example program that outputs 5,000 pulses (each at 200 Hz) and then 60,000 pulses (each at 500 Hz)
from output Q0
M8120
SOTU
M0101
I0000 M0101
SOTU
M0001
Settings
Function
Output pulse frequency
Pulse counting
Preset value
MOV(D)
S1 -
D1 -
500
D0000
MOV(D)
S1 -
D1 -
60000
D0002
PULS
S1
S2
1
D0000
M0000
Device Address
D0000
D0002, D0003
FC6A S
MICROS
L
ERIES
MART
Turn on initialization input (M0000)
M0000
REP
Store 500 (500 Hz) in frequency
(D0000, D0001)
REP
60,000 is stored in the preset value
(D0002, D0003).
S
M0001
Turn on M0001 to output next pulse
D1
When the PULS1 instruction input (I0) turns on, a 200 Hz frequency
M0100
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)
R
M0101
Setting Value
200
1
5000
P
M
ADDER
ROGRAMMING
ANUAL
18: P
O
ULSE
UTPUT
Ladder (1)
Details
200 Hz
Enable pulse counting
Preset value=5,000
FC9Y-B1726
I
NSTRUCTIONS
18-7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents