Mitsubishi Electric CR750-Q Instruction Manual page 326

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

Advertisement

4MELFA-BASIC V
XRst (X Reset)
[Function]
This instruction returns the program control to the first step if the program of the specified task slot is paused
by a command within the program (program reset). It is used during multitask operation.
[Format]
XRst[]<Slot No.>
[Terminology]
<Slot No.>
[Reference Program]
1 XRun 2
2 Wait M_Run(2)=1
:
10 XStp 2
11 Wait M_Wai(2)=1
:
15 XRst 2
16 Wait M_Psa(2)=1
:
20 XRun 2
21 Wait M_Run(2)=1
[Explanation]
(1) This is valid only when the slot is in the stopped state.
(2) 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
[Related parameter]
ALWENA
[Related system variables]
M_Psa
(Slot number) (1: Program selection is possible, 0: Program selection is impossible)
M_Run
(Slot number) (1: Executing, 0: Not executing)
M_Wai
(Slot number) (1: Stopping, 0: Not stopping)
4-306 Detailed explanation of command words
Specify a slot number in the range from 1 to 32 as a constant or variable.
' Start.
' Wait to confirm starting.
' Stop.
' Wait for stop to complete.
' Set program execution start step to head step.
' Wait for program reset to complete.
' Restart.
' Wait for restart to complete.
Load),
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