Mitsubishi MELFA CR1D Instruction Manual page 302

Table of Contents

Advertisement

4MELFA-BASIC IV
M_Psa
[Function]
Returns whether the program is selectable by the specified task slot.
1 : Program is selectable.
0 : Program not selectable (when the program is paused).
[Format]
Example)<Numeric Variable>=M_Psa [(<Equation>)]
[Terminology]
<Numeric Variable>
<Equation>
[Reference Program]
1 M1=M_Psa(2)
[Explanation]
(1) Returns whether the program is selectable by the specified task slot.
(2) This variable only reads the data.
M_Ratio
[Function]
Returns how much the robot has approached the target position (0 to 100%) while the robot is moving.
[Format]
Example)<Numeric Variable>=M_Ratio [(<Equation>)]
[Terminology]
<Numeric Variable>
<Equation>
[Reference Program]
1 Mov P1 WthIf M_Ratio>80, M_Out(1)=1' The output signal 1 will turn ON when the robot has moved
[Explanation]
(1) This is used, for instance, when performing a procedure at a specific position while the robot is moving.
(2) This variable only reads the data.
4-289 Detailed explanation of Robot Status Variable
Specifies the numerical variable to assign.
1 to 32, Specifies the task slot number. If this parameter is omitted, the current
slot will be used as the default.
' M1 will contain the program selectable status of task slot 2.
Specifies the numerical variable to assign.
1 to 32, Specifies the task slot number. If this parameter is omitted, the current
slot will be used as the default.
80% of the distance until the target position is reached
while moving toward P1.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melfa cr2dMelfa cr3d

Table of Contents