Mitsubishi MELFA CR1D Instruction Manual page 340

Table of Contents

Advertisement

4MELFA-BASIC IV
Mkd$
[Function]
Converts the value of an equation (double-precision real number) into a eight-byte string.
[Format]
<Character String Variable >=Mkd$(<Equation>)
[Reference Program]
1 C1$=Mkd$(10000.1)
2 M1=Cvd(C1$)
[Explanation]
(1) Converts the lowest eight bytes of the value of an equation (single-precision real number) into the
strings.
(2) Use Cvd to convert the string to a value.
(3) This can be used to reduce the amount of communication data when transmitting numerical data to
external devices.
[Reference]
Asc, Cvi, Cvs, Cvd, Mki$,
PosCq
[Function]
Checks whether the given position is within the movement range.
[Format]
<Numeric Variable>=PosCq(<Position Variables>)
[Reference Program]
1 M1=PosCq(P1)
[Explanation]
(1) Check whether the position data given by an argument is within the movement range of the robot. Value
1 will be returned if it is within the movement range of the robot; value 0 will be returned if it is outside
the movement range of the robot.
(2) Arguments must give either the position data type or joint data type.
4-327 Detailed Explanation of Functions
'
' 10000.1 is assigned to M1.
Mki$
' M1 will contain 1 if the position P1 is within the movement range.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melfa cr2dMelfa cr3d

Table of Contents