4-247
Detailed explanation of command words
4MELFA-BASIC IV
Servo (Servo)
[Function]
Controls the ON and OFF of the servo motor power.
[Format]
(1) The usual program
(2) The program of always (ALWAYS) execution.
[Terminology]
<On / Off>
On : When turning the servo motor power on.
Off : When turning the servo motor power off.
<Mechanism No.>
This is valid only within the program of always execution.
The range of the value is 1 to 3, and describe by constant or variable.
[Reference Program]
1 Servo On
' Servo On.
2 *L2
3 IF M_Svo<>1 GoTo *L2
' Wait for servo On.
4 Spd M_NSpd
5 Mov P1
6 Servo Off
[Explanation]
(1) The robot arm controls the servo power for all axes.
(2) If additional axes are attached, the servo power supply for the additional axes is also affected.
(3) If used in a program that is executed constantly, this instruction is enabled by changing the value of the
"ALWENA" parameter from 0 to 7 and then turning the controller's power on again.
[Related system variables]
(1 : On, 0 : Off)
[Related parameter]
ALWENA
Servo[]<On / Off>
Servo[]<On / Off> , <Mechanism No.>