Using the PWM (Pulse Width Modulation)

Return to Introduction  Previous page  Next page

 

 

The two on-board PWM (Pulse Width Modulation) of LadderDIP is accessible, in the Ladder diagram, using the PWMOUT function block.

 

This block has un unique input pin that receive the value to be converted in an analog signal (0...3V). The supplied value can span from 0 to 1023 (10 bits)

 

In order, to use the PWMOUT block, follow the listed instructions

 

Use the PWMOUT block configuring the CHANNEL parameter according to the following table

 

 

ANALOG INPUT

POSITION

PIN

CHANNEL

PWM1

P1-1

IO1

1

PWM2

P1-8

IO7

2

 

Using the Pin Configuration Dialog (Options Menu_Navigate_ArrowConfiguration Menu_Navigate_Arrow"Pin Configuration Tab") set the pin function to "PWM"