About Types Of Numeric Relationships - Mitsubishi QD51 Programming Manual

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

3 LET'S CREATE AND EXECUTE A PROGRAM

3.14 About Types of Numeric Relationships

3 - 46
There are functions in BASIC that allow trigonometric functions to be used. The
following describes how to express the trigonometric functions that can be used in
BASIC.
(1) Trigonometric Functions
• sin x
• cos x
• tan x
-1
• arc tan
(2) Exponential functions and logarithmic functions
x
• e
• logeX
There is no function that can directly obtain a value for log10X (standard log). Please
logeX
use log
X=
loge10 .
10
(3) Square roots
x
SQR(X)
(4) Numeric Conversions
• Integer conversion
• Absolute values
• Sign
• Round off decimal point
(5) Random numbers
• Random numbers between 0 and 1
For details on function arguments, see the detailed descriptions.
SIN(X)
COS(X)
TAN(X)
ATN(A)
EXP(X)
LOG(X)
This is a natural log
INT(X)
ABS(X)
SGN(X)
FIX(X)
MELSEC-Q
Use only radian angular
measurements when obtaining
trigonometric values.
π
Radians = Angle x
180
RMD(X)
3 - 46

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents