463
6
6 Positioning and Interpolation PWM: Pulse width modulation
S1 indicates the pulse output width. S1 must be less than or equal to S2. The range is 0 to 32,767 ms.
S2 indicates the pulse output period. S1 must be less than or equal to S2. The range is 1 to 32,767 ms.
D indicates the pulse output port which cannot be occupied by other high-speed instructions.
This instruction is executed by interruption. When the instruction ow is OFF, the output stops immediately.
S1 and S2 can be modied when the PWM instruction is executed.
◆
Note
The current pulse position cannot be modied when the pulses are output through the PWM instruction.
S1 and S2 can be modied when the PWM instruction is executed.
The PWM instruction is not supported by the H3U-PM model.
◆
Program example
( PWM K100 K300 Y0 )
S1
S2
D
X10
Y0
100ms
300ms
X10