18: P
ULSE
O
UTPUT
I
NSTRUCTIONS
18-14
FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
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.
Settings
Function
Device address
Setting value
Details
Output pulse frequency
D0000
50
50 Hz
Pulse width ratio
D0001
300
30%
Pulse counting
—
Disable pulse counting
—
Preset value
D0002, D0003
—
—
M0000
M8120
I0000
I0001
REP
D1 -
D0001
MOV(W)
S1 -
300
REP
D1 -
D0001
MOV(W)
S1 -
600
D1
M0100
S2
M0000
PWM
1
S1
D0001
I0000
Turn on initialization input (M0000)
Set pulse width ratio (D0001) to 60 (60% ON)
When PWM1 instruction input (I0001) turns on, start output
of a pulse with the pulse width ratio of 30% or 60%
Set pulse width ratio (D0001) to 30 (30% ON)
Summary of Contents for MICROSmart FC6A Series
Page 1: ...B 1726 7 FC6A SERIES Ladder Programming Manual ...
Page 8: ...Preface 7 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 32: ...1 OPERATION BASICS 1 20 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 96: ...3 INSTRUCTIONS REFERENCE 3 18 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 130: ...4 BASIC INSTRUCTIONS 4 34 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 192: ...9 SHIFT ROTATE INSTRUCTIONS 9 12 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 272: ...12 DISPLAY INSTRUCTIONS 12 24 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 284: ...14 REFRESH INSTRUCTIONS 14 6 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 502: ...25 DATA LOG INSTRUCTIONS 25 22 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 546: ...26 SCRIPT 26 44 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 598: ...APPENDIX A 14 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...