EasyManua.ls Logo

Mitsubishi CR750-Q Series - Page 105

Mitsubishi CR750-Q Series
158 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...
19 Maintenance of robot program
M_EncL
(Latched Encoder data)
[Function]
At the instant of receipt of a TREN signal for Q17EDPX module, a stored encoder data is read.
Also, 0 is written to clear the stored encoder data to zero.
[Format]
Example)<Numeric Variable>=M_EncL[(<logic encoder number>)] --------referencing
M_EncL[(<logic encoder number>)]=<Constants>
--------writing
[Terminology]
<Numeric Variable> Specify the numerical variable to substitute.
Available argument type
Numeric value
Position Joint
Character
string
Integer
Real
number
Double-precision
real number
Variable
(member data)
(member data)
-
Error 4220
Available -Not availablesyntax error at input time
<logic encoder number> (can be omitted) Specify the value of an logic encoder number
Available argument type
Numeric value
Position Joint
Character
string
Integer
Real
number
Double-precision
real number
Constants
Rounding
Rounding
-
-
-
Error 4220
Variable
Rounding
Rounding
(member data)
(member data)
-
Error 4220
Available -Not availablesyntax error at input time
<Constants> Specify the stored encoder data to initial value(zero or other).
Available argument type
Numeric value
Position Joint
Character
string
Integer
Real
number
Double-precision
real number
Constants
-
Error 4220
-
Error 4220
-
Error 4220
Variable
(member data)
(member data)
-
Error 4220
Available -Not availablesyntax error at input time
[Reference Program]
1 MENC1#=M_EncL(1) At logic encoder number 1, assign encoder data stored at the time of receipt
of a TREN signal to the variable MENC1#.
2 MENC2#=M_EncL(M1%) At a logic encoder number specified in the variable M1%, assign encoder
data stored at the time of receipt of a TREN signal to the variable MENC2#.
3 TrWrt P1, MEncL(1), MK Write work position data P1, encoder value M_EncL(1) present at the time of
receipt of a TREN signal and work category number MK onto the buffer 1 for
tracking.
4 M_EncL(1)=0 Use latched data to clear the encoder to zero as it is not required until next
latched data is used.
[Explanation]
Stored encoder value corresponding to the encoder number being specified in <logical encoder number> is
acquired.
Encoder value is stored in memory at a low-to-high or high-to-low transition of TREN signal which has been
specified with a DIP switch on Q17EDPX module.
Encoder value thus acquired is written onto the buffer for tracking by using a TrWr command so as to
perform tracking operations.
MELFA-BASIC V Instructions 19-95

Table of Contents

Related product manuals