Mitsubishi Electric CR750-Q Instruction Manual page 452

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

Advertisement

4MELFA-BASIC V
Sqr
[Function]
Calculates the square root of an equation value.
[Format]
<Numeric Variable>=Sqr(<Equation>)
[Reference Program]
1 M1=Sqr(2)
[Explanation]
(1) Calculates the square root of the value to which the given equation evaluates.
(2) An error will be generated if the equation given by the argument evaluates to a negative value.
Strpos
[Function]
Searches for a specified string in a string.
[Format]
<Numeric Variable>=Strpos(<Character String 1>, <Character String 2>)
[Reference Program]
1 M1=Strpos("ABCDEFG","DEF")
[Explanation]
(1) Returns the position of the first occurrence of the string specified by argument 2 from the string specified
by argument 1.
(2) An error will be generated if the length of the argument 2 is 0.
(3) For instance, if argument 1 is "ABCDEFG" and argument 2 is "DEF", 4 will be returned.
(4) If the search string could not be found, 0 will be returned.
(5) It is not possible to describe a function that contains an argument in <Character String 1> and <Charac-
ter String 2>. If such a function is described, an error will be generated during execution.
4-432 Detailed Explanation of Functions
' 1.414214 is assigned to M1.
' 4 is assigned to M1.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr750Cr751-qCr751-dCr760-dCr760-qCr750-d

Table of Contents