EasyManua.ls Logo

Mitsubishi MELFA CR1D - Page 307

Mitsubishi MELFA CR1D
458 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
4MELFA-BASIC IV
Detailed explanation of Robot Status Variable 4-294
M_Timer
[Function]
Time is measured in milliseconds. This can be used to measure the operation time of the robot or to mea-
sure time accurately.
[Format]
[Terminology]
<Numeric Variable> Specifies the numerical variable to assign.
<Equation> Enter the number to 8 from 1. Parentheses are required.
[Reference Program]
1 M_Timer(1)=0
2 Mov P1
3 Mov P2
4 M1=M_Timer(1) ' M1 will contain the amount of time required to move from P1 to P2 (in ms).
Example) If the time is 5.346 sec. the value of M1 is 5346.
5 M_Timer(1) ' Set to 1.5 sec.
[Explanation]
(1) A value may be assigned. The unit is seconds when set to M_Timer.
(2) Since measurement can be made in milliseconds (ms), precise execution time measurement is possible.
Example)<Numeric Variable>=M_Timer (<Equation>)

Table of Contents

Related product manuals