Features II JS/JSR4400N SCARA Robot
JSG GANTRY Robot
JR2000N Desktop Robot
12
x, y: Numerical value or numerical variable
n, m: Numeric value becomes larger than a certain value through rounding or truncation
a, b: String or string variable
Category 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)
Arithmetic
System
num pow (x,y) x to the power of y
str chr (x)
Return a string (1 character) with the given character code.
num ord (a) Return the top character code. Other codes are ignored.
num len (a) Return the string length (non-multibyte).
num strPos (a,b) Return the first part string position in a matching b.
str strMid (a,n,m)
Return the strings n – m counted from the top of the given
string a.
str str (x) Convert a numeric value to a decimal digit string.
str strBin (n,m)
Convert a numeric value to a binary string.
m: Number of binary string digits
str strHex (n,m)
Convert a numeric value to a hexadecimal string.
m: Number of hexadecimal string digits
str str1SI (x)
Round a numeric value to a 1-byte signed integer to convert
it to a 1-byte string. (1-byte Signed Integer)
str str2SIBE (x)
Round a numeric value to a 2-byte signed integer to convert
it to a 2-byte string using the Big Endian byte order. (2-byte
Signed Integer Big Endian)
str str2SILE (x)
Round a numeric value to a 2-byte signed integer to convert
it to a 2-byte string using the Little Endian byte order.
(2-byte Signed Integer Little Endian)
str str4SIBE (x)
Round a numeric value to a 4-byte signed integer to convert
it to a 4-byte string using the Big Endian byte order. (4-byte
Signed Integer Big Endian)
String
System
str str4SILE (x)
Round a numeric value to a 4-byte signed integer to convert
it to a 4-byte string using the Little Endian byte order.
(4-byte Signed Integer Little Endian)