107
PW3335A985-01
Set and Query the RS-232C Execution Confirmation Message Setting
Syntax
Command
:RS232c:ANSWer <ON/OFF>
Query
:RS232c:ANSWer?
Response
<ON/OFF>
Description
Sets or queries the RS-232C execution confirmation message output
setting (ON or OFF).
When set to ON, a response is also received when sending a command.
In addition, an execution confirmation message is included after
the response to a query.
The execution confirmation message is a 3-digit numerical value ("nnn").
"000" is returned when an operation is executed successfully. If an error
occurs, the number of the nnnth command where the error occurred will be
returned instead of "000".
Example (when HEADER OFF):
Command
Response
Comments
:RS232C:ANSWER
ON
000
Operation completed
successfully.
:ABCDF
001
"ABCDF" is an error.
:VOLT:RANGE?;CUR
R:RANGE?
15;0.1;000
Operation completed
successfully.
:VOLT:RANGE?;CUR
R:RANGE?
;
ABC
15;0.1;003
An error occurred with
the third command,
"ABC".
Example
Command
:RS232:ANSW ON
Query
:RS232:ANSW?
Response
(When HEADER ON)
:RS232C:ANSWER ON;000
(When HEADER OFF)
ON;000
Note
・
This command and query can be executed even when a system error has occurred.
・
When set to ON, operation may become unstable if the controller (the device that
sends commands) does not receive an execution confirmation message response.
・
Please have received execution confirmation message also when sending
blank line.
・
This command is used to synchronize operation with the controller over RS-232C,
but can also be used with the GP-IB and LAN interfaces.
・
However, be sure to always receive sent execution confirmation messages.
This query and setting command can be used with the RS, LAN, and GP-IB interfaces.
Query RS-232C Communications Errors
Syntax
Query
:RS232c:ERRor?
Response
<Communications error information (NR1)>
128
64
32
16
8
4
2
1
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
Over run
Framing
Description
Returns RS-232C communications error information in NR1 format and
clears that information.
The communications error information can also be reset to 0 via the *CLS
command.
The response message has no header.
bit 2: Overrun error (missed data)
bit 1: Framing error (erroneous data read)
Example
Query
:RS232:ERR?
Response
4
Note
・
This command can be executed even when a system error has occurred.
・
This query can be used with the RS, LAN, and GP-IB interfaces.
www.
.com
1.800.561.8187