Mitsubishi Electric CR750-Q Instruction Manual page 411

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

Advertisement

P_Gps1 to P_Gps8
[Function]
This command returns XYZ coordinate data for the current position data when the condition defined in the
Def Gps command is met, using the get-position-quick function (GPS function). (Up to 400 position data can
be saved.)
The current position data of the robot at the time when the condition defined in the Def Gps command is met
can be checked. (The number of times when the condition defined in the Def Gps command is met can be
checked in the M_Gps.)
[Format]
Example) <Position Variable>=P_Gps1[(<Numeric value>)]
[Terminology]
<Position Variable>
<Numeric value>
[Reference Program]
1 Def Gps1,852,On,1
2 GpsChk On,1
3 Mvs P1
4 GpsChk Off,1
5 M1=M_Gps(1)
6 If M1=0 Then Error 9000
7 Mvs P_Gps1(1)
8 Hlt
[Explanation]
(1) The current position data of the robot is stored in this status variable when the condition defined in the
Def Gps command is met. When "1" is set in <Monitoring No.> in the Def Gps command and the condi-
tion is met three times, these position data of the robot is stored in the "P_Gps1(1), P_Gps1(2), and
P_Gps1(3)". The stored position data of the first time is shown as "P_Gps1(1)".
(2) Up to 400 position data (P_GpsX(1) to P_GpsX(400)) can be saved. When the number of stored position
data reaches 400, further position data cannot be stored.
(3) The position data corresponding to a numerical value set in array elements is returned.
(4) The value is cleared to zero when the GpsChk On command is executed.
(5) The number of times can be confirmed after the GpsChk Off command is executed.
(6) This variable only reads the data.
(7) The number of times is cleared to zero when the controller is turned on. (This command is not covered
by the continue function.)
[Related instructions]
Def Gps (Define get
Specifies the position variable to assign.
The position data corresponding to a position number set in <Numeric value> is
returned to <Position variable>. The initial value is "P_Zero" (all elements are zero).
The value is cleared to zero when the GpsChk On command is executed, and the
current position data at the time when the defined condition is met is stored after
the GpsChk Off command is executed.
Set a position number obtained using the GPS function. (1 to 400)
The first time when the condition defined in the Def Gps command is met is numbered
1, and the following times are numbered 2, 3, .... in turn. (To obtain the position
data of the first time, set "1".)
1 will be set when omitted.
' The position data of the mechanism No. 1 is recorded for the monitor-
ing No. 1 when the signal No. 852 is turned on.
' Monitoring a condition for the monitoring No. 1 is started.
' Moves to P1
' Monitoring a condition for the monitoring No. 1 is stopped.
' The number of the position data recorded in the P_Gps1 is stored.
' The error 9000 is generated if no position data is recorded.
' The robot moves its arm to the position at the first time when the signal
No. 852 is turned on.
' Halt program
position),
Def Map (Define
mapping),
GpsChk (Get position check)
Detailed explanation of Robot Status Variable 4-391
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