Mitsubishi Electric CR750-Q Instruction Manual page 427

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

Advertisement

Cvi
[Function]
Converts the character codes of the first two characters of a string into an integer.
[Format]
<Numeric Variable>=Cvi(<Character String Expression>)
[Reference Program]
1 M1=Cvi("10ABC")
[Explanation]
(1) Converts the character codes of the first two characters of a string into an integer.
(2) An error will be generated if the string consists of one character or less.
(3) Mki$ can be used to convert numerical values into a string.
(4) This can be used to reduce the amount of communication data when transmitting numerical data with
external devices.
[Reference]
Asc, Cvs, Cvd, Mki$, Mks$,
Cvs
[Function]
Converts the character codes of the first four characters of a string into a single precision real number.
[Format]
<Numeric Variable>=Cvs(<Character String Expression>)
[Reference Program]
1 M1=Cvs("FFFF")
[Explanation]
(1) Converts the character codes of the first four characters of a string into an single-precision real number.
(2) An error will be generated if the string consists of three character or less.
(3) Mks$ can be used to convert numerical values into a string.
[Reference]
Asc, Cvi, Cvd, Mki$, Mks$,
' &H3031 is assigned to M1.
Mkd$
' 12689.6 is assigned to M1.
Mkd$
Detailed Explanation of Functions 4-407
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