Mitsubishi Electric CR750-Q Instruction Manual page 324

Cr750/cr751/cr760 series
Hide thumbs Also See for CR750-Q:
Table of Contents

Advertisement

4MELFA-BASIC V
XClr (X Clear)
[Function]
This instruction cancels the program selection status of the specified task slot from within a program.
Enabling the execution of a new program in the specified task slot. It is used during multitask operation.
[Format]
XClr[]<Slot No.>
[Terminology]
<Slot No.>
[Reference Program]
1 XRun 2,"1"
:
10 XStp 2
11 Wait M_Wai(2)=1
12 XRst 2
13 Wait M_Psa(2)=1
14 XClr 2
15 End
[Explanation]
(1) An error occurs at execution if the specified slot does not select the program.
(2) If the designated program is being operating, an error will occur at execution.
(3) If the designated program is being pausing, an error will occur at execution.
(4) If this instruction is used within a constantly executed program, it becomes enabled by changing the
value of the "ALWENA" parameter from 0 to 7 and turning the controller's power off and on again.
[Related instructions]
XLoad (X
Load),
[Related parameter]
ALWENA
4-304 Detailed explanation of command words
Specify a slot number in the range from 1 to 32 as a constant or variable.
' Executes the first program in task slot 2.
' Pauses the program of task slot 2.
' Waits until the program of task slot 2 pauses.
' Cancels the pause status of the program of task slot 2.
' Waits until selection of a program is possible in task slot 2.
' Cancels the program selection status of task slot 2.
XRst (X
Reset),
XRun (X
Run),
XStp (X Stop)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr750Cr751-qCr751-dCr760-dCr760-qCr750-d

Table of Contents