Mitsubishi Electric CR750-Q Instruction Manual page 438

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

Advertisement

4MELFA-BASIC V
Mki$
[Function]
Converts the value of an equation (integer) into a two-byte string.
[Format]
<Character String Variable >=Mki$(<Equation>)
[Reference Program]
1 C1$=Mki$(20299)
2 M1=Cvi(C1$)
[Explanation]
(1) Converts the lowest two bytes of the value of an equation (integer) into a strings.
(2) Use Cvi 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, Mks$,
Mks$
[Function]
Converts the value of an equation (single-precision real number) into a four-byte string.
[Format]
<Character String Variable >=Mks$(<Equation>)
[Reference Program]
1 C1$=Mks$(100.1)
2 M1=Cvs(C1$)
[Explanation]
(1) Converts the lowest four bytes of the value of an equation (single-precision real number) into the strings.
(2) Use Cvs 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$,
4-418 Detailed Explanation of Functions
' "OK" is assigned to C1$.
' 20299 is assigned to M1.
Mkd$
' "100.1" is assigned to C1$.
' 100.1 is assigned to M1.
Mkd$

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr750Cr751-qCr751-dCr760-dCr760-qCr750-d

Table of Contents