ST_OnSrvLock (Statement) [Version 1.9 or later]


Servo-locks a specified axis (exclusively designed for four-axis robots).


ST_OnSrvLock <specified axis>


Provides a function similar to that of the ON SVLOCK instruction in the conventional language.
Servo lock means that robot arms are controlled and their positions are held.



  • Set servo lock as the robot stops. If it is set during path operation, an error may occur.
  • Execute this command in a TAKEARMed task which has obtained arm semaphore.
    If the command is executed without arm semaphore obtained, Error "21F7 Cannot take arm semaphore" will result.


ST_OnSrvLock 1
'Servo lock for the 1st axis.
ST_OnSrvLock 0
'Servo lock for all axes.


Top