Response, Response -2 – Yokogawa µR20000 User Manual
Page 45
4-2
IM 04P01B01-17E
• Query
• A question mark is used to specify a query.
• By placing a query after a command or parameter, the setting information of
the corresponding command can be queried. Some commands cannot execute
queries. For the query syntax of each command, see sections 4.4 to 4.7.
Example 1
SR[p1]?
SR? or SRp1? can be executed.
Example 2
SA[p1[,p2]]? SA?, SAp1?, or SAp1,p2? can be executed.
• Delimiter
• A comma is used as a delimiter.
• Parameters are separated by delimiters.
• Sub Delimiter
• A semicolon is used as a sub delimiter.
• By separating each command with a sub delimiter, up to 10 commands can be
specified one after another. However, the following commands and queries cannot
be specified one after another. Use them independently.
• Output commands other than
BO, CS, and IF commands.
•
YE command
• Queries
* If there are consecutive sub delimiters, they are considered to be single. In addition, sub
delimiters at the front and at the end are ignored.
Example
;SR01,VOLT;;;SR02,VOLT;
SR01,VOLT;SR02,VOLT
• Terminator (Terminating Character)
Use either of the following two characters for the terminator.
• CR + LF (
0DH 0AH in ASCII code.)
• LF (
0AH in ASCII code.)
Note
• The total data length from the first character to the terminator must be less than 2047 bytes.
In addition, the character string length of 1 command must be less than 512 bytes.
• Commands are not case sensitive (with the exception of user-specified character strings).
• All the commands that are listed using sub delimiters are executed even if one of the
commands is erroneous.
• Spaces that are inserted before and after a parameter are ignored. However, if spaces are
inserted before a command, after a sub delimiter, or after a query, an error occurs.
Response
The recorder returns a response (affirmative/negative response) to a command that is
separated by a single terminator.* The controller should follow the one command to one
response format. When the command-response rule is not followed, the operation is not
guaranteed.
For the response syntax, see section 5.1.
* The exceptions are the RS-422A/485 dedicated commands (see section 4.8).
Note
When using the RS-422A/485 interface, allow at least 1 ms before sending the next command
after receiving a response. Otherwise, the command may not be processed correctly.
4.1 Command Syntax