OnPWM
(Library)

Performs PWM switching on a specified axis (exclusively for a four-axis robot).

OnPWM (<specified axis>)

PWM switching means that robot arms are controlled and their positions are held.

The pacman.h file is necessary.

-
Set PWM switching as the robot stops. If it is set during path operation, an error may occur.
-
Execute this command on a task that obtains robot control conditions (TAKEARM). If robot control conditions are not obtained, error message "21F7 Arm semaphore cannot be fetched." is reported.

CALL OnPWM(1)
|
'PWM switching on 1 axis
|
CALL OnPWM(1)
|
'PWM switching on all axes
|