14.4 Command/Response Format
14-7
14
Operation with Serial Command Communications
14.4
Command/Response Format
The following diagram shows the command/response format.
Note: In ASCII, the [CR] character is 0Dh and the [LF] character is 0Ah.
Command (Host controller
→
INDEXER Module)
Response (Host controller
←
INDEXER Module)
Note: When full-duplex wiring is being used, either [CR] or
[CR] [LF] can be used as the delimiter.
When half-duplex wiring is being used, set the delim-
iter to either [CR] or [CR] [LF] with parameter PnB00.
In both cases, [CR] [LF] will be returned as the echo-
back.
Upper-case and lower-case characters can be used
in the command (including the axis number) and are
treated the same.
Note: The response’s delimiter is always [CR] [LF].
Alphabetical characters in the response are always
upper-case.
To maximize communications reliability, confirm the echoback and responses to each command
while communicating with the INDEXER Module. When the echoback and responses are not
being confirmed, improve the communications reliability by reading the status when appropriate.
Axis no. Command character string
Delimiter
Example:
1SVON [CR]
2SVON [CR]
1POS10000 [CR]
2POS10000 [CR]
1ST [CR]
2ST [CR]
1PUN [CR]
2PUN [CR]
Example:
1OK [CR] [LF]
2OK [CR] [LF]
1OK [CR] [LF]
2OK [CR] [LF]
1OK [CR] [LF]
2OK [CR] [LF]
1PUN = +00004567 [CR] [LF]
2PUN = -00002345 [CR] [LF]
Axis no. Response character string
Delimiter
Important