EasyManua.ls Logo

Janome JR2000N Series - Arithmetic System Functions

Janome JR2000N Series
99 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
Loading...
Features II JS/JSR4400N SCARA Robot
JSG GANTRY Robot
JR2000N Desktop Robot
33
Arithmetic System Functions
The following built-in arithmetic functions can be used:
x, y : Numeric value
n, m : Rounded integer value
Type Identifier Description
num abs (x)
Absolute value
num max (x,y) Maximum value
num min (x,y) Minimum value
num degrade (x) Conversion from degree to radian (x*π/180)
num raddeg (x) Conversion from radian to degree (x*180/π)
num sqrt (x) Square root
num sin (x) Sine
num cos (x) Cosine
num tan (x) Tangent
num atan (x) Arctangent
num atan2 (x,y) Arctangent
num int (x)
Maximum integer that does not exceed x.
e.g. int (1.3) Æ 1, int (-1.3) Æ -2
num ip (x)
Integer part of x: sgn (x)*int (abs(x))
(If x is a negative number, sgn (x) becomes -1. If x is a positive
number, sgn (x) becomes +1.)
e.g. ip (1.3) Æ 1, ip (-1.3) Æ -1
num fp (x)
Decimal part of x: x-ip (x)
e.g. fp (1.3) Æ 0.3, fp (-1.3) Æ -0.3
num mod (x,y) Value of x modulo y: x-y*int (x/y)
num remainder (x,y) Remainder of dividing x by y: x-y*ip (x/y)
num pow (x,y) x to the power of y

Table of Contents

Related product manuals