Author Topic: PWM CONTROLLING  (Read 10045 times)

bigbadbobszoomzoom

  • Guest
PWM CONTROLLING
« on: September 05, 2005, 09:01:12 AM »
Am seeking information on how to set the pwm output on a T100MD 888+ plc.  Currently the pwm output is set in a custom function as,  set pwm 7,1,32.  Seven being the output, one being the percentage and 32 being the pulse .  Later in the logic ladder, in another custom function is, set bit output {1},6.  This designates the output to #7.  No mater how I change the set pwm, 1,32 or 20,500 or whatever, the pulse width remains the same.  Any help is appreciated.

Joel Moore

  • Full Member
  • Posts: 128
    • View Profile
Re:PWM CONTROLLING
« Reply #1 on: September 06, 2005, 10:57:53 AM »
The n parameter of the setPWM function represents the channel number, not the output number.  It should be set to 1 or 2, which correspond to outputs 7 and 8 respectively.  It documentation is a little confusing on this matter (mentioning that n should be a number between 1 and 8).

I don't understand what you were saying in the second half of your post but you shouldn't be doing anything with output 7 elsewhere in the ladder if you intend on using it as a PWM output.