1. Left click on the HSIO tab in the upper left of the CPU in the Dashboard.
2. Select PWM 1, 2, or 3 from the High Speed I/O setup page.
3. Select "Enable PWM" and assign the outputs. Optionally rename the device. Note the Heap Item name, something like $PWMOut1.
4. After accepting the config changes, the system creates the heap item, which is what you use to control the PWM.
There are no instructions associated with the PWM, just the heap item. Set 'EnableOutput' to start it. 'PeriodScale' let's you change the time scale that defines the PWM period between microseconds or milliseconds. 'Period' is the PWM period defined in us or ms. 'DutyCycle' is a floating point value that specifies the duty cycle as a value from 0.0 to 100.0.
Check out help topic DMD0408.