IDEC MICROSmart FC6A Series Ladder Programming Manual page 310

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

Advertisement

18: P
O
I
ULSE
UTPUT
NSTRUCTIONS
Sample program
This section describes an example program that outputs a pulse with the pulse width ratio of 30% when I0 is off, and a pulse with
the pulse width ratio of 60% when I0 is on.
M8120
I0000
I0000
I0001
Settings
Function
Output pulse frequency
Pulse width ratio
Pulse counting
Preset value
18-14
MOV(W)
S1 -
D1 -
300
D0001
MOV(W)
S1 -
D1 -
600
D0001
PWM
S1
S2
1
D0001
M0000
Device address
D0000
D0001
D0002, D0003
FC6A S
MICROS
L
ERIES
MART
Turn on initialization input (M0000)
M0000
REP
Set pulse width ratio (D0001) to 30 (30% ON)
REP
Set pulse width ratio (D0001) to 60 (60% ON)
When PWM1 instruction input (I0001) turns on, start output
D1
of a pulse with the pulse width ratio of 30% or 60%
M0100
Setting value
50
300
Disable pulse counting
P
M
ADDER
ROGRAMMING
ANUAL
Details
50 Hz
30%
FC9Y-B1726

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents