Features II JS/JSR4400N SCARA Robot
JSG GANTRY Robot
JR2000N Desktop Robot
1
EXPRESSION STRUCTURE
Expression
An expression is fixed numbers (string type and numeric type), variables, functions, and operators
combined.
Fixed Number
There are two types of fixed numbers, numeric type (e.g. 125, 2.0, 2e15) and string type (e.g. "ABC").
Numeric type fixed numbers are handled as 8-byte real type (double type), and string type fixed
numbers are handled as 255-byte.
For string type fixed numbers, characters can be specified in hexadecimal code using the
%
symbol.
e.g. eoutCOM port2,"%0D%0A"
: Output CR
・
LF code.
If there is any character other than 0 – 9, A – F, and a second
%
symbol after the first
%
, the second
%
is treated as a character.
e.g. eoutCOM port2,"%G01"
: Output
%G01
.
If there is any character from 0 – 9 and A – F, enter
%%
to output
%
.
e.g. eoutCOM port2,"%%300"
: Output
%300
.
Variable
A variable is a container into which numeric and string values are placed.
You can use the built-in variables (which are built into the robot as a function) and the user-defined
variables (which can be freely defined by the user).
User-defined variables other than local variables (variables effective only in defined point job data
which are defined by the
declare
command) are defined in the Customizing mode. (See the operation
manual
Features IV
for details of the Customizing mode.)
Boolean type (boo):
1-bit variable which holds only 1 (true) or 0 (false)
Numeric type (num):
8-byte real type (double type) variable
String type (str):
255-byte variable