x, y: Numerical value or numerical variable
n, m: Round the numeric value up or off to the specified digit(s)
a, b: String or string variable
Robot
System
str
Teaching pendant LCD: Left priority; Items on the left are
displayed in full if there is an overlap.
num
Valid only for [Job while Moving].
Time required for the current PTP movement [sec]
num
getSystemPTPr
estTime ()
Valid only for [Job while Moving].
Time left before the current PTP movement ends (reaching
-
Pause cannot be performed halfway through a movement.
System
Conversion from degree to radian (x*π/180)
Conversion from radian to degree (x*180/π)
num int (x)
Maximum integer that does not exceed x.
e.g. int (1.3)
Æ
Æ
num ip (x)
Integer part of x: sgn (x)*int (abs(x))
(If x is a negative number, sgn (x) becomes -
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
Value of x modulo y: x-y*int (x/y)
Remainder of dividing x by y: x-y*ip (x/y)
String
System
Returns a string (1 character) with the given character code.
Returns the top character code. Other codes are ignored.
Returns the string length (non-multibyte).
Returns the first part string position in a that matches b.
str strMid (a,n,m)
Returns the string from n to the amount of m counted from
the start of string a.
Converts a numeric value to a decimal digit string.
str strBin (n,m)
Converts a numeric value to a binary string.
m: Number of binary string digits
str strHex (n,m)
Converts a numeric value to a hexadecimal string.
m: Number of hexadecimal string digits
str str1SI (x)
Rounds a numeric value to a 1-byte signed integer to
convert it to a 1-byte string. (1-byte Signed Integer)
str str2SIBE (x)
Rounds 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)
115