155
────────────────────────────────────────────────────
8.4 Command Reference
────────────────────────────────────────────────────
■ Sets whether or not the execution confirmation message
Syntax
RS232c:ANSWer_<ON/OFF>
Function
・ Sets the execution confirmation message either ON or OFF.
・ When set to ON, outputs the execution confirmation message (see Section
8.1.2).
Notes
・ Even if a system error occurs, this command is executed.
・ When set to ON, if this message is not accepted the operation may become
unstable.
Errors
・
Execution error/
If the setting data is other than listed above or when using GP-IB interface
・
Command error/ If the setting data is not character data.
・ System error/ This query is not executed. A device dependent error occurs.
Example
PRINT #1,":RS232:ANSW ON" (Results )
INPUT #1,A$
PRINT A$ 000
OK
PRINT #1,"VOLT:RANG 150"
INPUT #1,A$
PRINT A$ 001
"VOLT:RANG" is error
PRINT #1,"VOLT:RANG?"
INPUT #1,A$
PRINT A$ :VOLTAGE:RANGE 150;000
Query data is OK
■ Queries whether or not execution confirmation messages are enabled.
Syntax
RS232c:ANSWer?
Function
Returns the current setting for the execution confirmation messages as ON or
OFF.
Notes
・ With this query, if any error occurs, no response message is produced.
・ Even if a system error occurs, this query is executed.
Response
syntax
Headers: ON
Headers: OFF
":RS232C:ANSWER_<ON/OFF>"
"<ON/OFF>"
Errors
・ Query error/ If the response message is longer than 1000 bytes.
・ Execution error/ If this query is executed when using GP-IB interface
Example
Transmission
Response
Headers: ON
Headers: OFF
":RS232:ANSW?"
":RS232C:ANSWER OFF"
"OFF"
RS232c:ANSWer
(Command for the RS-232C interface)
RS232c:ANSWer?
(Command for the RS-232C interface)