Mitsubishi Electric CR750-Q Instruction Manual page 301

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

Advertisement

RelM (Release Mechanism)
[Function]
This instruction is used in connection with control of a mechanism via task slots during multitask operation.
It is used to release the mechanism obtained by the GetM instruction.
[Format]
RelM
[Reference Program]
(1) Start the task slot 2 from the task slot 1, and control the mechanism 1 in the task slot 2.
Task slot 1
1 RelM
2 XRun 2,"10"
3 Wait M_Run(2)=1
:
Task slot 2. (Program "10")
1 GetM 1
2 Servo On
3 Mov P1
4 Mvs P2
5 Servo Off
6 RelM
7 End
[Explanation]
(1) Releases the currently acquired mechanism resource.
(2) If an interrupt is applied while the mechanism is acquired and the program execution is stopped, the
acquired mechanism resource will be automatically released.
(3) This instruction cannot be used in a constantly executed program.
[Related instructions]
GetM (Get Mechanism)
' Releases the mechanism in order to control mechanism 1 using slot 2.
' Start the program 10 in slot 2.
' Wait for the starting confirmation of the slot 2.
' Get the control of mechanism 1.
' Turn on the servo of mechanism 1.
' Turn off the servo of mechanism 1.
' Releases the control right of mechanism 1.
Detailed explanation of command words 4-281
4MELFA-BASIC V

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr750Cr751-qCr751-dCr760-dCr760-qCr750-d

Table of Contents