EasyManua.ls Logo

Mitsubishi MELFA CR1D - Page 274

Mitsubishi MELFA CR1D
458 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
4-261 Detailed explanation of command words
4MELFA-BASIC IV
XStp (X Stop)
[Function]
This instruction pauses the execution of the program in the specified task slot from within a program. If the
robot is being operated by the program in the specified task slot, the robot stops. It is used in multitask oper-
ation.
[Format]
[Terminology]
<Slot No.> Specify a slot number in the range from 1 to 32 as a constant or variable.
[Reference Program]
1 XRun 2 ' Execute.
:
10 XStp 2 ' Stop.
11 Wait M_WAI(2)=1 ' Wait for stop to complete.
:
20 XRun 2 ' Restart.
[Explanation]
(1) If the program is already stopped, an error will not occur.
(2) XStp can also stop the constant execution attribute program.
(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 instructions]
XClr (X Clear), XLoad (X Load), XRst (X Reset), XRun (X Run)
[Related parameter]
ALWENA
[Related system variables]
M_Wai (Slot number) (1: Stopping, 0: Not stopping)
XStp[]<Slot No.>

Table of Contents

Related product manuals