EasyManuals Logo

Mitsubishi MELFA CR1D User Manual

Mitsubishi MELFA CR1D
458 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
Page #323 background imageLoading...
Page #323 background image
4MELFA-BASIC IV
Detailed Explanation of Functions 4-310
Asc
[Function]
Returns the character code of the first character in the string.
[Format]
[Reference Program]
1 M1=Asc("A") ' &H41is assigned to M1.
[Explanation]
(1) Returns the character code of the first character in the string.
(2) An error will be generated if the string is a null string.
[Reference]
Chr$, Val, Cvi, Cvs, Cvd
Atn/Atn2
[Function]
Calculates the arc tangent.
[Format]
[Terminology]
<Numeric Variable> Calculates the arc tangent with specified expression, and returns the result. The unit is radian.
<Equation> Calculated value of delta Y/delta X.
<Equation 1> delta Y
<Equation 2> delta X
[Reference Program]
1 M1=Atn(100/100) 'PI/4 is assigned to M1.
2 M2=Atn2(-100,100) '-PI/4 is assigned to M1.
[Explanation]
(1) Calculates the arc tangent of a given equation. Unit is in radians.
(2) The range of the returned value for Atn is -PI/2 < Atn < PI/2.
(3) The range of the returned value for Atn2 is -PI < Atn < PI.
(4) If <Equation 2> evaluates to 0, Atn2 will return PI/2 when <Equation 1> evaluates to a positive value and
-PI/2 when <Equation 1> evaluates to a negative value.
(5) In the case of Atn2, it is not possible to describe a function that contains an argument in <Equation 1>
and <Equation 2>. If such a function is described, an error will be generated during execution.
NG example
M1=Atn2(Max(MA,MB), 100)
M1=Atn2(Cint(10.2), 100)
[Reference]
Sin, Cos, Tan
<Numeric Variable>=Asc(<Character String Expression>)
<Numeric Variable>=Atn(<Equation>)
<Numeric Variable>=Atn2(<Equation 1>, <Equation 2>)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELFA CR1D and is the answer not in the manual?

Mitsubishi MELFA CR1D Specifications

General IconGeneral
BrandMitsubishi
ModelMELFA CR1D
CategoryController
LanguageEnglish

Related product manuals