GW Instek GRS-6000A Series User Manual
Page 37

GRS-6052A/6032A OSCILLOSCOPE
USER MANUAL
⎯ ⎯
68
Message Terminator and Message Separator
As there is no signal of end message on RS232 bus, therefore use LF (Line Feed, 0×
0A) as message terminator. When a series of commands are sent to the instrument, it
must add a LF to be a judgment for message terminator. As for query command, the
return message of the instrument is also added a LF for PC to judge message
terminator.
A semicolon separates one command from another when the commands appear on
the same line.
Return Data Format
If instrument received question mark (?) at the third byte (command type) of
the command, it will answers 3 bytes value in ASCII format and 1 byte
message terminator of LF (0x0A).
The following example ask the Time base scale, and instrument will return
010 (.1s/DIV):
Example: H 1 ? (ASCII)
Return: 0 1 0 (3 bytes, ASCII format)
If instrument receives WA?-WD?. It will return 1000 bytes channel 1, channel 2 or
2 recalled waveforms data in Binary format and 1 byte message terminator.
Example: W A ? (ASCII)
Return:
1000 bytes waveform data
Message
terminator
0x01
0x05
……
0x09
0x0A
GRS-6052A/6032A OSCILLOSCOPE
USER MANUAL
⎯ ⎯
69
If instrument receives W0?-W9?. It will return 3 bytes waveform information, 1000
bytes waveforms data in Binary format and 1 byte message terminator.
Example: W 5 ? (ASCII)
Return:
VAR
Vertical
scale
Horizontal
scale
1000 byte waveform
data
Message
terminator
0x01
0x05
0x10
0x01, 0x05,……,0x09
0x0A
VAR=0: Vertical VAR function disable.
VAR=1: Vertical VAR function enable.
Vertical scale: 1-14(20V/DIV – 1mV/DIV).
Horizontal scale: 10-27(.1s/DIV - .2us/DIV).
Combining Commands
You can use a semicolon (;) to combine commands and queries. The GRS-60X2A
executes coherent commands in the order it receives them. When you coherent
queries, the GRS-60X2A combine the responses into a single response message. For
example, if the channel 1 display is ON (001) and horizontal time base scale equals
to 1ms/DIV (016), the query commands (must add 1 byte message terminator)
V 3 ? A ; H 1 ?
Instrument will return the message
0 0 1 0 1 6