Total Solution for Industrial Automation
14
CH 4. Functions
4.1
Enable of PWM output (Buffer Memory Offset 0)
When PWM-capable points’ BIT value is set to 0, it will be possible to use them as
general output points. Similarly, if it is set to 1, it will be operated as PWM output.
The PWM output function can be enabled by using TO instruction in the buffer
memory Offset 0. Please refer to the 3.2 for information about the buffer memory.
[Table 5] Enabled points of PWM output
Example to enable PWM output of CH1, 3, 9 and output the frequency of CH1 to
1000pps and duty cycle to 50.0%.
BIT
15
BIT
14
BIT
13
BIT
12
BIT
11
BIT
10
BIT
9
BIT
8
BIT
7
BIT
6
BIT
5
BIT
4
BIT
3
BIT
2
BIT
1
BIT
0
Buffer
Memory
Offset 0
0 0
0
0
0
0
0
1
0
0
0
0
0
1
0
1
Binary
(H0105)
Disable
CH
12
CH
11
CH
10
CH
9
CH
8
CH
7
CH
6
CH
5
CH
4
CH
3
CH
2
CH
1
Channel
No.
Operates as below when M00 is ON:
a)
Enable the PWM output in CH1, CH3, CH9.
b)
Set the frequency of CH1 as 1000pps.
c)
Set the duty cycle of CH1 as 50.0%.
In case of power reset or CPU stop, enable the PWM output again by using TO
instruction as all value of the buffer memory will be initialized to 0.
BIT
15
BIT
14
BIT
13
BIT
12
BIT
11
BIT
10
BIT
9
BIT
8
BIT
7
BIT
6
BIT
5
BIT
4
BIT
3
BIT
2
BIT
1
BIT
0
Buffer
Memory
Offset 0
Disable
CH
12
CH
11
CH
10
CH
9
CH
8
CH
7
CH
6
CH
5
CH
4
CH
3
CH
2
CH
1
Channel
No.
Example 1: Enable PWM Output