B
Communication Command Guide
B-2
1. Communication specifications
1.1 Communication parameter specifications
The communication parameters on the mating unit, such as personal computer must be set as follows. Refer to
the relevant unit's operation manual for the setting procedure.
Communication parameter specifications
n
Parameter
Setting
Baudrate
38,400bps
Data bit
8 bits
Parity
Odd
Stop bit
1 bit
Flow control
None
n
NOTE
Data that does not conform to the controller specifications may be received due to a variety of factors during
RS-232C communication.
1.2 Communication command specifications
The TS series robot controller provides ASCII character string communication commands to communicate with
an external communication device.
The communication commands are classified into four categories as follows.
Type
Contents
Robot operation command
Operates or stops the robot.
Status change command
Changes the servo or brake status.
Edit command
Writes the parameter or point data.
Query command
Reads the data or robot status.
n
NOTE
The communication commands are applicable to the controller software version Ver.1.04.106 or higher.
The basic format of the communication command is as follows.
Data transmission format
@<command>[<data number/status>][.n] c/r l/f
@<command>[<data number>][.n]=<setting value> c/r l/f
n: Node number
Data response format
OK.n c/r l/f
NG.n=<alarm number>c/r l/f
RUN.n c/r l/f
END.n c/r l/f
n: Node number
• All communication commands consist of an ASCII character string that begins with a start code '@'(=40h) and ends
with c/r(=0Dh)l/f(=0Ah).
• 'n' (node number) is used for the daisy chain connection. One host communication device communicates with one
robot controller, or with all the daisy-chained controllers (up to 16 controllers).
n
NOTE
When 'n' (node number) is omitted, commands are sent to all the daisy-chained controllers.
c
CAutIoN
Make sure to perform automatic node number setting when you first use the daisy-chained controller or when
you have replaced the controllers.
to perform the node number setting, execute "Automatic node number assignment" in the support software
tS-Manager or send the "Automatic node number setting (SEtID)" command (communication command).
• The number of bytes, which can be output by one command response, is 255.
• " , " (comma) means the same as c/r l/f during data transmission.