Gets/sets the PWM percentage [value] for [channel].


Access: Read/Write

Category: pmw

Applies to: 2CR, 4CR, 4ED, 4EX, CM3, 8CR

ASCII/Standalone                PWM


Syntax        

               

Read

PWM[channel]                

[channel] specifies the PWM output (1 or 2)


Write

PWM[channel]=[value]                 

[channel]    specifies the PWM output (1 or 2)

[value]   specifies the on-time duty cycle in % (1-99)


Reply 

Command is accepted and executed


Read         

Returns the % on-time duty cycle for the specified PWM output (1 or 2)

Write           

OK


Command cannot be processed

       An error message is returned. See Error Codes


Example 

Read        

PWM2                * Returns the on-time duty cycle value the signal is high

Write        

PWM1=50         * Sets the time the signal is low for PWM output 1 to 50%.


Notes

None


See also

I/O Setup


Commander Manual

Pulse-width modulated Outputs