PG_Scan Statement
Starts the continuous spinning motion of the PG robot axes.
Syntax
PG_Scan direction As Integer
Parameters
- direction
- Specify the direction of rotation for continuous rotation.
- 0: + (CW) direction
- 1: + (CCW) direction
Description
The PG_Scan starts the continuous spinning motion of the current PG robot.
To execute the continuous spinning motion, you need to enable the PG parameter continuous spinning by the robot configuration.
When the program execution task is completed, the continuous spinning stops.
See Also
PG_FastStop
PG_Scan Statement Example
The following example spins the PG axis for 10 seconds and stops it suddenly.
Function main
Motor On
Power High
Speed 10; Accel 10,10
PG_Scan 0
Wait 10
PG_SlowStop
Fend