Internet PLC Forum

General => Technical support => Topic started by: bigbadbobszoomzoom on September 05, 2005, 09:01:12 AM

Title: PWM CONTROLLING
Post by: bigbadbobszoomzoom 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.
Title: Re:PWM CONTROLLING
Post by: Joel Moore 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.