Total Solution for Industrial Automation
20
CH 5. Operating the PWM Output Module
Entire scan program is as below.
(1)
Use TOP instruction to enter value 2 on buffer memory Offset 0 to enable
channel PWM output.
(2)
Receive the M00 value and trigger the function. Enter 1000 on buffer memory
Offset 1, 500 on Offset 5 and 500 on Offset 11 by using TOP instruction so they
can be changed 0pps to 1000pps for 5 seconds with a duty cycle of 50.0%.
(3)
Receive the M01 value. Enter 900 on buffer memory Offset 11 and 300 on
Offset31 by using TOP instruction. The duty cycle changes from 50.0% to 90.0%
for 3 seconds.
(4)
Receive the M02 value. Enter 400 on buffer memory Offset 1 and 300 on Offset5
by using TOP instruction. The frequency changes from 1000pps to 400pps for 3
seconds.
(5)
Receive the M03 value. Enter 600 on buffer memory Offset 11 and 200 on Offset
31 by using TOP instruction. The duty cycle changes from 90.0% to 60.0% for 2
seconds.