Response – Yokogawa Button Operated MV2000 User Manual
Page 75
4-2
M-4662
Query
• A question mark is used to specify a query.
• You can insert a question mark after a command or parameter to query the
corresponding command setting. Queries are not allowed on some commands. For
the query syntax of each command, see sections 4.4 to 4.7.
Example 1 SR[ p1]?
You can execute SR? or SRp1?.
Example 2 SA[ p1[,p2]]? You can execute SA?, SAp1?, and SAp1,p2?.
Delimiter
• A comma is used as a delimiter.
• Separate each parameter with a delimiter.
Sub Delimiter
• A semicolon is used as a sub delimiter.
• You can specify up to 10 commands consecutively by separating each command with
a sub delimiter. However, you cannot do this with the commands listed below and all
queries. Specify them independently.
• Output commands other than BO, CS, and IF
• Queries
* If there are consecutive sub delimiters, they are considered to be one. Sub delimiters at the
front and at the end of a command sequence are ignored.
Example ;SR001,VOLT;;;SR002,VOLT;
R002,VOLT
Terminator
Use either of the following for the terminator.
• CR+ LF (0DH 0AH in ASCII code)
• LF (0AH in ASCII code)
Note
• Do not specify a channel or relay number that is not available on the MV. If you do, an error
will occur.
• The total data length from the first character to the terminator must be less than 2048 bytes.
• Commands are not case-sensitive except for user-specified character strings.
• All commands that are listed with sub delimiters are executed even if any of the commands
is in error.
• 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 will occur.
Response
The MV returns a response (affirmative/negative response) to a command that is
delimited by a terminator.
*
The controller should follow the one command to one
response format. If the command-response rule is not observed, the operation is not
guaranteed. For the response syntax, see section 5.1.
• RS-422/485 commands (see section 4.9) and instrument information output commands
(section 4.12) are exceptions.
4.1 Command Syntax