
Features II JS/JSR4400N SCARA Robot
JSG GANTRY Robot
JR2000N Desktop Robot
85
COM INPUT/OUTPUT
■
COM Input/Output: outCOM, eoutCOM, inCOM, setWTCOM,
cmpCOM, ecmpCOM, clrCOM, shiftCOM
By point job data commands, data can be input or output from COM.
Command Category Command
Parameter
Job
outCOM
Input/Output, Output Data Output a character string from COM.
eoutCOM
Input/Output, Output Data Output an evaluation of the string
expression from COM.
inCOM
Variable Name, Input/Output,
Character Length
Assign the data received on COM to
a specified variable.
setWTCOM Input/Output,
Wait
Time
Set [Wait Time] (timeout period) for
receiving data on COM.
cmpCOM Input/Output, Compare Data
Compare the received data on COM
with a character string. The result is
entered into the system flag
(sysFlag1 – 20).
ecmpCOM Input/Output, Compare Data
Compare the received data on COM
with a string expression. The result
is entered into the system flag
(sysFlag1 – 20).
clrCOM Input/Output
Clear
the COM port receive buffer.
COM Input/Output
shiftCOM Input/Output,
Shift
Number
Shift the data received on COM.
Delete data from the top by [Shift
Number].
■
COM Output:
outCOM
,
eoutCOM
Up to a 255-character strings can be output from COM.
Select [outCOM] or [eoutCOM] and then select the desired COM port number on the Input/Output
selection screen. The Output Data entry screen will appear. Enter the character string you wish to
output and press the ESC key. (For the key operations on Character entry screen, see “Entering
Characters and Formulas” in the
Teaching Pendant Operation
manual.) Enclose the character strings
to be output in double quotes (“”) (See e.g.1) When outputting variables and formulas, do not use
double quotes (“”) (See e.g.2)
e.g.1: eoutCOM port2,"ERROR"
: Output the character string
ERROR
.
e.g.2: eoutCOM port2,#sv(24) & #sv(25) : Output a value combining character string variables
#sv(24) and #sv(25).