Set PWM #1

\i I P word::duty_cycle

Parameter Type Range Description
duty_cycle word 1 ... 9999 duty cycle in units of 0.01%

Configures the PWM 1 (on relay output 1) with the specified duty cycle.

Note

Response: [ACK]

Example

\iIP\1\D2000

After sending this command, the PWM 1 on relay output 1 is running with a duty cycle of 20%. The resulting signal will have a rising edge every 1ms (1/1kHz = 1ms) and stay high for 0.2ms (20% of 1ms).

See also:

Set PWM #0
Pulse Width Modulation (PWM) Related Commands