M63 - Output PWM

Sets PWM output pin state.

It is possible to set frequency, frequency with duty cycle of RC servo motor position.

Syntax

M63 P Q <E>

Parameters

P Output pin number [1..8].
Q Frequency.
E Duty cycle [0..100]. (optional)

Syntax

M63 P R

Parameters

P Output pin number [1..8].
R RC servo motor position [0..100].

Examples

Set PWM on output pin 6 to 25% at 10kHz.

M63 P6 Q10000 E25

Set RC srvo motor connected to pin 6 to 25%.

M63 P6 R25