8-58
8.5 PWM Output Function
8.5.1 Overview
PWM output function
With the F173 (PWMH) instruction, the pulse width modulation output of the specified duty ratio is
obtained.
System register setting
In order to use the PWM output function, it is necessary to set system register numbers no.402.
8.5.2 PWM Output Instruction F173
While X6 is on, a pulse with a period of 1 ms and duty
ratio of 50% is output from Y0 of specified channel
CH0.
When the program runs, the data table will be as
shown below.
Data table
DT100
Control code *1
: K13
DT101
Duty *2
: 50%
*1: Specify the control code by setting the K constant.
K
Frequency (Hz) Period (ms)
K3
6
166.67
K4
7.5
133.33
K5
12.5
80.00
K6
25
40.00
K7
50
20.00
K8
100
10.00
K9
200
5.00
K10
400
2.50
K11
600
1.67
K12
800
1.25
K13
1.0 k
1.00
K14
1.2 k
0.83
K15
1.6 k
0.63
K16
2.0 k
0.50
K17
3.0 k
0.33
K18
4.8 k
0.21
*2: Specify the duty by setting the K constant.
Duty: K0 to K999(1000 resolutions)
Note:
•
If a value outside the specified range is written to the duty area while the instruction is being executed,
a frequency corrected to the maximum value is output. If written when instruction execution is started,
an operation error is occurred.
Summary of Contents for FP0R Series
Page 1: ......
Page 6: ...iv ...
Page 14: ...xii ...
Page 15: ...Chapter 1 Functions and Restrictions of the Unit ...
Page 24: ...1 10 ...
Page 25: ...Chapter 2 Specifications and Functions of Control Unit ...
Page 38: ...2 14 ...
Page 39: ...Chapter 3 Expansion ...
Page 45: ...3 7 3 4 Terminal layout diagram Model No Terminal layout diagrams E8RS E8RM E16RS E16RM E8YRS ...
Page 48: ...3 10 ...
Page 49: ...Chapter 4 I O Allocation ...
Page 53: ...Chapter 5 Installation and Wiring ...
Page 73: ...Chapter 6 Preparation of USB Port ...
Page 77: ...6 5 5 Click Finish on the following screen to be displayed ...
Page 79: ...6 7 4 Double click on FP0R 5 Click Update Driver ...
Page 84: ...6 12 ...
Page 85: ...Chapter 7 Communication ...
Page 139: ...7 55 Sample program For Type II Use a program as below to directly specify a MODBUS address ...
Page 141: ...Chapter 8 High speed Counter Pulse Output and PWM Output Functions ...
Page 142: ...8 2 ...
Page 199: ...Chapter 9 Security Functions ...
Page 211: ...Chapter 10 Other Functions ...
Page 217: ...Chapter 11 Self Diagnostic and Troubleshooting ...
Page 227: ...Chapter 12 Precautions During Programming ...
Page 242: ...12 16 ...
Page 243: ...Chapter 13 Specifications ...
Page 254: ...13 12 ...
Page 255: ...Chapter 14 Dimensions and Others ...
Page 262: ...14 8 ...
Page 263: ...Chapter 15 Appendix ...
Page 344: ...15 82 15 7 ASCII Codes ...
Page 346: ......
Page 347: ......
Page 348: ......