Pwm Output Function - Panasonic FP0R User Manual

Hide thumbs Also See for FP0R:
Table of Contents

Advertisement

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
Data table
DT100
Control code *1
DT101
Duty *2
*1: Specify the control code by setting the K constant.
K
Frequency (Hz)
K3
6
K4
7.5
K5
12.5
K6
25
K7
50
K8
100
K9
200
K10
400
K11
600
K12
800
K13
1.0 k
K14
1.2 k
K15
1.6 k
K16
2.0 k
K17
3.0 k
K18
4.8 k
*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.
8-58
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.
: K13
: 50%
Period (ms)
166.67
133.33
80.00
40.00
20.00
10.00
5.00
2.50
1.67
1.25
1.00
0.83
0.63
0.50
0.33
0.21

Advertisement

Table of Contents
loading

Table of Contents