Sets the PWM duty cycle in %.  The PWM outputs run at 500Hz and can range from 1% - 99% on-time duty cycle


Applies to: CMD-4CR, CMD-4EX-SA, PMX-4EX-SA, PMX-4ET-SA, PMX-2ED-SA, PMX-2EX-SA


ASCII/Standalone                PWM

Syntax:                        

Read:

PWM[channel]                

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


Write:

PWM[channel]=[percentage]                 

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

[percentage]   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

2.1.3.3.3 Pulse-width modulated Outputs