Robotics User Manual

[ COM Input/Output ]
COM Input/Output: outCOM, eoutCOM, setCOM,
cmpCOM, ecmpCOM, clrCOM, shiftCOM
Data can be output or input from the COM.
Command
Category
Command Parameter
Job
outCOM Port, Character String
Outputs a character string from the COM.
Outputs the result of an expression from the
COM.
eoutCOM
Port, Character String
Expression
inCOM
Variable Name, Port,
Wait Time
Assigns data received from the COM to the
specified variable.
setWTCOM Port, Wait Time
Sets Wait Time (Period for Time Out) for
receiving from the COM.
cmpCOM Port, Character String
Compares received data with a character
string. The result is entered into System Flag
(sysFlag(1) to (20).)
COM
Input/Output
Compares received data with a character
string expression. The result is entered into
System Flag (sysFlag(1) to (20).)
ecmpCOM
Port, Character String
Expression
clrCOM Port
Clears a buffer received from the COM.
Shifts data received from the COM.
shiftCOM Port, Shift Number
Deletes data from the top to the Shift Number.
COM Output: outCOM, eoutCOM
A character string with up to 255 characters can be output from the COM.
Select a port (COM No.) under [outCOM]/[eoutCOM] to display the Character Entry screen. Select
the desired character string and press ESC . (For key operation on Character Entry screen, see
“Character Entry”.)
For [eoutCOM] command, characters can be specified in hexadecimal code by using “%.” If you
want to display “%” on the screen, enter “%%.”
e.g.: eoutCOM port2,"%0D%0A" : Outputs CR • LF code.
eoutCOM port2,"%%300" : Outputs %300.
eoutCOM port2,#sv(24) & #sv(25) : Outputs the value combined character string
variables #sv(24) and #sv(25.)
If there is any character other than 0 to 9, A to F or % after “%”, “%” is dealt with as a character.
Features II CARTESIAN Benchtop Robot
76