Chapter 2 Commands

2.1 Command Summary

2.1.1 Standard Commands Specified by IEEE 488.2
CommandData
(for a query, response data)
Explanation
*CLS Clears the status byte and associated queues.
*ESR? A<NR1>:0 to 255 Queries SESR.
*IDN? Maker's name, model number
serial number(not used, 0)
software version
Queries device ID.
*OPC Sets the LSB of SESR after all action has been
*OPC? A<NR1> ASCII 1 is the response after all action has been
*OPT? A1,A2,A3,A4,A5,A6,A7,A8<NR1>
A = 0 to 4
0: Unit none
1: 8948 Voltage/Temp Unit
2: 8996 Digital/Pulse Unit
3: 8949 Universal Unit
4: 8997 Alarm Unit
Queries device option provision.
*RST Device initial setting.
*STB? A<NR1>:0 to 255 Reads the STB and the MSS bit,without performing
serial polling.
*TST? A<NR1>:0=OK,1=NG Queries the result of the ROM/RAM check.
*WAI Executes the following command after action has
:ESR0?A<NR1>:0 to 255 Queries ESR0.


2.1.2 Specific Commands

(1) Execution control etc.
CommandData
(for a query, response data)
Explanation
:ABORTForce halt.
:CERRor?A,B,C<NR1>(number of times)
A:parity error,
B:overrun error,
C:framing error
Queries the communication errors.
:ERRor?A<NR1>:error numberQueries error number.
:HEADer A$
:HEADer?
A$:OFF,ON
A$
Enables and disables headers.
Queries headers.
:STARtSame as the START key.
:STATUS?A<NR1>:bit6 to bit0Query the storage status.
:STOPSame as the STOP key.


(2) CONFigure command (Setting and querying the time axis range, the recording length, etc.)

Command
:CONFigure
Data
(for a query, response data)
Explanation
:ATSAve
A$(,"B$")
:ATSAve?
A$:OFF,BIN
B$:file name(8 character)
A$(,"B$")
Sets auto save

Queries
:EXTRECSamp A
:EXTRECSamp?
A:sample number
A<NR3>
Sets sample number at external function
Queries
:RECTime day,hour,
min,sec



:RECTime?
day:0 to 999(day)
hour:0 to 23(hour)
min:0 to 59(min)
sec:0 to 59(sec)
day,hour,min,sec<NR1>
0,0,0,0 = cont
Sets recording time




Queries
:SAMPKind A$
:SAMPKind?
A$:NORMal,DUAL,EXT
A$
Sets function
Queries
:SAMPle A
:SAMPle?
A:interval(unit s) (fast)
A<NR3>(unit s)
Sets recording interval (fast)
Queries
:SAMPl2 A
:SAMPl2?
A:interval(unit s) (slow)
A<NR3>(unit s)
Sets recording interval (slow)
Queries
:SAVEKind A$
:SAVEKind?
A$:NORMal,DIVide,REGUlarly
A$
Sets realtime save division
Queries
:SAVELen day,hour,
min

:SAVELen?
day:0 to 30(day)
hour:0 to 23(hour)
min:0 to 59(min)
day,hour,min<NR1>
Sets division length


Queries
:SAVEMode A$
:SAVEMode?
A$:FILEfull,ENDless,REMove
A$
Sets realtime save mode
Queries
:SAVEReg hour,min

:SAVEReg?
hour:0 to 23(hour)
min:0 to 59(min)
hour,min<NR1>
Sets regular time

Queries
:SAVETime A
:SAVETime?
A:time(unit min)
A<NR3>(unit min)
Sets division time
Queries
:SYNCMstslv A$
:SYNCMstslv?
A$:MASTER,SLAVE
A$
Sets Sync MASTER/SLAVE
Queries
:SYNCSet A$
:SYNCSet?
A$:OFF,ON
A$
Sets Sync OFF/ON
Queries


(3) UNIT command (Setting and querying input channel)
Command
:UNIT
Data
(for a query, response data)
Explanation
:FILTer A$
:FILTer?
A$:OFF,50HZ,60HZ
A$
Sets input channel filter. (fast)
Queries
:FILT2 A$
:FILT2?
A$:OFF,50HZ,60HZ
A$
Sets input channel filter. (slow)
Queries
:INMOde unit$,ch$,A$
:INMOde? unit$,ch$
A$:VOLTAGE,TC,RTD,HUMIDITY
unit$,ch$,A$
Sets input channel mode.
Queries
:PCOMOde unit$,ch$,A$
:PCOMOde? unit$,ch$
A$:ADD,INST
unit$,ch$,A$
Sets input pulse count mode.
Queries
:PCOUnt unit$,ch$,A

:PCOUnt? unit$,ch$
A:pulse num per revolve

unit$,ch$,A<NR1>
Sets pulse num per revolve.
Queries
:PFILTer unit$,ch$,A$
:PFILTer? unit$,ch$
A$:OFF,ON
unit$,ch$,A$
Sets input pulse channel filter.
Queries
:PINMOde unit$,ch$,A$
:PINMOde? unit$,ch$
A$:COUNT,REVOLVE
unit$,ch$,A$
Sets input pulse channel mode.
Queries
:PLSLogic unit$,ch$,A$
:PLSLogic? unit$,ch$
A$:PLS,LOGIC
unit$,ch$,A$
Sets pulse or logic.
Queries
:PSLOPe unit$,ch$,A$
:PSLOPe? unit$,ch$
A$:UP,DOWN
unit$,ch$,A$
Sets input pulse channel slope.
Queries
:PTHRe unit$,ch$,A$
:PTHRe? unit$,ch$
A$:1V,4V
unit$,ch$,A$
Sets pulse threshold level.
Queries
:RANGe unit$,ch$,A

:RANGe? unit$,ch$
A:voltage axis range(unit V,C,%)

unit$,ch$,A<NR3>
Sets input channel voltage
or tc or humid axis range.
Queries
:RJC unit$,ch$,A$
:RJC? unit$,ch$
A$:INT,EXT

unit$,ch$,A$
Sets point of contact compensation
for tc mode.
Queries
:RCONnect unit$,ch$,A$
:RCONnect? unit$,ch$
A$:3LINE,4LINE
unit$,ch$,A$
Sets connect kind for rtd mode.
Queries
:RTYPe unit$,ch$,A$
:RTYPe? unit$,ch$
A$:PT100,JPT100
unit$,ch$,A$
Sets rtd kind for rtd mode.
Queries
:SAMPNo unit$,A$
:SAMPNo? unit$
A$:SAMP1,SAMP2
unit$,A$
Sets unit sampling kind.
Queries
:SENSor unit$,ch$,A$
:SENSor? unit$,ch$
A$:K,J,E,T,N,R,S,B,W
unit$,ch$,A$
Sets sensor kind for tc mode.
Queries
:STORe unit$,ch$,A$
:STORe? unit$,ch$
A$:OFF,ON
unit$,ch$,A$
Sets store channel for record data.
Queries
:WIRE unit$,ch$,A$
:WIRE? unit$,ch$
A$:OFF,ON
unit$,ch$,A$
Sets disconnection detection for tc mode.
Queries


(4) SCALing command (Setting and querying scaling)
Command
:SCALing
Data
(for a query, response data)
Explanation
:KIND unit$,ch$,A$
:KIND? unit$,ch$
A$:POINT,RATIO
unit$,ch$,A$
Sets the type of scaling.
Queries
:OFFSet unit$,ch$,A

:OFFSet? unit$,ch$
A:-9.9999E+9 to 9.9999E+9
unit$,ch$,A<NR3>
Sets scaling offset
(RATIO).
Queries
:PKIND unit$,ch$,A$

:PKIND? unit$,ch$
A$:SET1,SET2
unit$,ch$,A$
Sets the type of pulse count
scaling.
Queries
:SCUPLOw unit$,ch$,B,C

:SCUPLOw? unit$,ch$
B:C: -9.9999E+29 to 9.9999E+29
unit$,ch$,B,C<NR3>
Sets the scaling SC UP, LOW
(POINT).
Queries
:SET unit$,ch$,A$
:SET? unit$,ch$
A$:OFF,SCI,ENG
unit$,ch$,A$
Sets scaling kind.
Queries
:UNIT unit$,ch$,"A$"
:UNIT? unit$,ch$
A$:scaling unit(7 character)
unit$,ch$,"A$"
Sets scaling unit.
Queries
:VOLT unit$,ch$,A

:VOLT? unit$,ch$
A:-9.9999E+9 to 9.9999E+9
unit$,ch$,A<NR3>
Sets the scaling conversion value
(RATIO)
Queries
:VOUPLOw unit$,ch$,B,C

:VOUPLOw? unit$,ch$
B,C:-9.9999E+29 to 9.9999E+29
unit$,ch$,B,C<NR3>
Sets the scaling VOLT UP, LOW
(POINT).
Queries


(5) COMMent command (Setting and querying comments)
Command
:COMMent
Data
(for a query, response data)
Explanation
:CH unit$,ch$,"A$"

:CH? unit$,ch$
A$:comment string
(20 characters)
unit$,ch$,(NO$,)"A$"
Sets comment string for each channel.

Queries
:TITLe A$,"B$"

:TITLe?
A$:comment string
(20 characters)
"A$"
Sets title comment mode and strings.

Queries


(6) TRIGger command (Setting and querying trigger.)
Command
:TRIGger
Data
(for a query, response data)
Explanation
:DETECTDate
year,month,day

:DETECTDate?
year:0 to 99
month: 1 to 12
day:1 to 31
year,month,day <NR1>
Sets the date for trigger detection.


Queries
:DETECTTime
hour,min,sec

:DETECTTime?
hour: 0 to 23
min: 0 to 59
sec:0 to 59
hour,min,sec <NR1>
Sets the time for trigger detection.


Queries
:EXTErnal A$
:EXTErnal?
A$:OFF,ON
A$
Sets external trigger.
Queries
:KIND unit$,ch$,A$
:KIND? unit$,ch$
A$:OFF,LEVEl,WINDow
unit$,ch$,A$
Sets type of trigger.
Queries
:LEVEl unit$,ch$,A

:LEVEl? unit$,ch$
A:trigger level(unit V,C,%)

unit$,ch$,A<NR3>
Sets the trigger level of the level
trigger.
Queries
:LOGAnd unit$,A$

:LOGAnd? unit$
A$:OFF,OR,AND

unit$,A$
Sets AND/OR for the logic trigger
pattern.
Queries
:LOGPat unit$,"A$"

:LOGPat? unit$
A$:xxxxxxxxxxxxxxx
trigger pattern(x,0,1)
unit$,"A$"
Sets the pattern for a logic trigger.

Queries
:LOWEr unit$,ch$,A

:LOWEr? unit$,ch$
A:lower limit level(unit V,C,%)

unit$,ch$,A<NR3>
Sets lower limit level of
window-in/-out trigger.
Queries
:MODE A$
:MODE?
A$:SINGle,REPEat
A$
Sets trigger mode.
Queries
:PLEVEl unit$,ch$,A

:PLEVEl? unit$,ch$
A:trigger level(unit c,r/s)

unit$,ch$,A<NR3>
Sets the pulse trigger level of the
level trigger.
Queries
:PLOWEr unit$,ch$,A

:PLOWEr? unit$,ch$
A:lower limit level(unit c,r/s)

unit$,ch$,A<NR3>
Sets lower limit of
window-in/-out pulse trigger.
Queries
:PRETrig day,hour,
min,sec


:PRETrig?
day:0 to 999
hour:0 to 23
min:0 to 59
sec:0 to 59
day,hour,min,sec<NR1>
Sets pre-trigger.



Queries
:PUPPEr unit$,ch$,A

:PUPPEr? unit$,ch$
A:upper limit level(unit c,r/s)

unit$,ch$,A<NR3>
Sets upper limit of window-in/-out
pulse trigger.
Queries
:SET A$
:SET?
A$:OFF,ON
A$
Sets Trigger use
Queries
:SLOPe unit$,ch$,A$

:SLOPe? unit$,ch$
A$:UP,DOWN

unit$,ch$,A$
Sets the trigger slope
(level trigger).
Queries
:SIDE unit$,ch$,A$

:SIDE? unit$,ch$
A$:IN,OUT

unit$,ch$,A$
Sets the trigger side
(window trigger).
Queries
:SOURce A$

:SOURce?
A$:OR,AND

A$
Sets trigger logical operator to
AND or OR.
Queries
:TIMEr A$
:TIMEr?
A$:OFF,ON
A$
Sets timer trigger.
Queries
:TMINTvl
day,hour,min,sec


:TMINTvl?
day: 0 to 99
hour: 0 to 23
min: 0 to 59
sec:0 to 59
day,hour,min,sec<NR1>
Sets time interval for timer trigger.



Queries
:TMSTArt
year,month,day,
hour,min


:TMSTArt?
year:0 to 99
month:1 to 12
day:1 to 31
hour:0 to 23
min:0 to 59
month,day,hour,min<NR1>
Sets start time of timer trigger.




Queries
:TMSTOp
month,day,
hour,min
:TMSTOp?
same as TMSTArt
Sets stop time of timer trigger.


Queries
:UPPEr unit$,ch$,A

:UPPEr? unit$,ch$
A:upper limit level(unit V,C,%)

unit$,ch$,A<NR3>
Sets upper limit level
of window-in/-out trigger.
Queries
:TIMIng A$
:TIMIng?
A$:START,STOP,S_S
A$
Sets trigger timing.
Queries
:SEXTErnal A$
:SEXTErnal?
A$:OFF,ON
A$
Sets external trigger at stop.
Queries
:SKIND unit$,ch$,A$
:SKIND? unit$,ch$
A$:OFF,LEVEl,WINDow
unit$,ch$,A$
Sets type of trigger at stop.
Queries
:SLEVEl unit$,ch$,A

:SLEVEl? unit$,ch$
A:trigger level(unit V,C,%)

unit$,ch$,A<NR3>
Sets the trigger level of the level
trigger at stop.
Queries
:SLOGAnd unit$,A$

:SLOGAnd? unit$
A$:OFF,OR,AND

unit$,A$
Sets AND/OR for the logic trigger
pattern at stop.
Queries
:SLOGPat unit$,"A$"

:SLOGPat? unit$
A$:xxxxxxxxxxxxxxx
trigger pattern(x,0,1)
unit$,"A$"
Sets the pattern for a logic trigger at stop.

Queries
:SLOWEr unit$,ch$,A

:SLOWEr? unit$,ch$
A:lower limit level(unit V,C,%)

unit$,ch$,A<NR3>
Sets lower limit level of
window-in/-out trigger at stop.
Queries
:SPLEVEl unit$,ch$,A

:SPLEVEl? unit$,ch$
A:trigger level(unit c,r/s)

unit$,ch$,A<NR3>
Sets the pulse trigger level of the
level trigger at stop.
Queries
:SPLOWEr unit$,ch$,A

:SPLOWEr? unit$,ch$
A:lower limit level(unit c,r/s)

unit$,ch$,A<NR3>
Sets lower limit of
window-in/-out pulse trigger at stop.
Queries
:SPUPPEr unit$,ch$,A

:SPUPPEr? unit$,ch$
A:upper limit level(unit c,r/s)

unit$,ch$,A<NR3>
Sets upper limit of window-in/-out
pulse trigger at stop.
Queries
:SSLOPe unit$,ch$,A$

:SSLOPe? unit$,ch$
A$:UP,DOWN

unit$,ch$,A$
Sets the trigger slope
(level trigger) at stop.
Queries
:SSIDE unit$,ch$,A$

:SSIDE? unit$,ch$
A$:IN,OUT

unit$,ch$,A$
Sets the trigger side
(window trigger) at stop.
Queries
:SSOURce A$

:SSOURce?
A$:OR,AND

A$
Sets trigger logical operator to
AND or OR at stop.
Queries
:SUPPEr unit$,ch$,A

:SUPPEr? unit$,ch$
A:upper limit level(unit V,C,%)

unit$,ch$,A<NR3>
Sets upper limit level
of window-in/-out trigger at stop.
Queries


(7) ALARm command (Setting and querying alarm.)
Command
:ALARm
Data
(for a query, response data)
Explanation
:HOLD A$
:HOLD?
A$:OFF,ON
A$
Sets alarm hold
Queries
:KIND alm_unit$,alm_ch$,A$
:KIND? alm_unit$,alm_ch$
A$:OFF,LEVEl,WINDow
alm_unit$,alm_ch$,A$
Sets type of alarm.
Queries
:LEVEl alm_unit$,alm_ch$,A
:LEVEl? alm_unit$,alm_ch$
A:alarm level(unit V,C,%)
alm_unit$,alm_ch$,A<NR3>
Sets the alarm level of the level alarm.
Queries
:LOGAnd alm_unit$,alm_ch$,A$
:LOGAnd? alm_unit$,alm_ch$
A$:OFF,OR,AND
alm_unit$,alm_ch$,A$
Sets AND/OR for thelogic alarm pattern.
Queries
:LOGPat alm_unit$,alm_ch$,"A$"

:LOGPat? alm_unit$,alm_ch$,
A$:xxxxxxxxxxxxxxx
alarm pattern(x,0,1)
alm_unit$,alm_ch$,"A$"
Sets the pattern for a logic alarm.

Queries
:LOWEr alm_unit$,alm_ch$,A

:LOWEr? alm_unit$,alm_ch$
A:lower limit level(unit V,C,%)

alm_unit$,alm_ch$,A<NR3>
Sets lower limit level of
window-in/-out alarm.
Queries
:OUTCh alm_unit$,alm_ch$,src_unit$,src_ch$
:OUTCh? alm_unit$,alm_ch$
alm_unit$,alm_ch$,src_unit$,src_ch$Sets alarm channel

Queries
:PLEVEl alm_unit$,alm_ch$,A

:PLEVEl? alm_unit$,alm_ch$
A:pulse alarm level(unit c,r/s)

alm_unit$,alm_ch$,A<NR3>
Sets the alarm level
of the pulse level alarm.
Queries
:PLOWEr alm_unit$,alm_ch$,A

:PLOWEr? alm_unit$,alm_ch$
A:pulse lower limit level(unit c,r/s)

alm_unit$,alm_ch$,A<NR3>
Sets pulse lower limit level
of window-in/-out alarm.
Queries
:PUPPEr alm_unit$,alm_ch$,A

:PUPPEr? alm_unit$,alm_ch$
A:pulse upper limit level(unit c,r/s)

alm_unit$,alm_ch$,A<NR3>
Sets upper limit level
of window-in/-out alarm.
Queries
:SIDE alm_unit$,alm_ch$,A$

:SIDE? alm_unit$,alm_ch$
A$:IN,OUT

alm_unit$,alm_ch$,A$
Sets the alarm side
(window alarm).
Queries
:SLOPe alm_unit$,alm_ch$,A$

:SLOPe? alm_unit$,alm_ch$
A$:HIGH,LOW

alm_unit$,alm_ch$,A$
Sets the alarm slope
(level alarm).
Queries
:UPPEr alm_unit$,alm_ch$,A

:UPPEr? alm_unit$,alm_ch$
A:upper limit level(unit V,C,%)

alm_unit$,alm_ch$,A<NR3>
Sets upper limit level
of window-in/-out alarm.
Queries


(8) SYSTem command (Setting and querying the system screen)
Command
:SYSTem
Data
(for a query, response data)
Explanation
:DATAClear
Clear data.
:DATE
year,month,day

:DATE?
year :0 to 99
month:1 to 12
day :1 to 31
year,month,day<NR1>
Sets the calendar.


Queries
:EXTFILTer A$
:EXTFILTer?
A$:OFF,ON
A$
Sets external sampling/external trigger filter
Queries
:EXTSLOPe A$
:EXTSLOPe?
A$:UP,DOWN
A$
Sets external sampling/external trigger slope
Queries
:LANGuage A$
:LANGuage?
A$:JAPAnese,ENGLish
A$
Sets the language.
Queries
:STARt A$
:STARt?
A$:ON,OFF
A$
Sets start backup.
Queries
:TIME hour,min,sec

:TIME?
hour:0 to 23
min :0 to 59
sec :0 to 59
hour,min,sec<NR1>
Sets the time.

Queries
:TMAXis A$
:TMAXis?
A$:TIME,DATE,SCALe
A$
Sets the time axis display.
Queries


(9) MEMory command (Setting and querying input and output, etc., from the memory)
Command
:MEMory
Data
(for a query, response data)
Explanation
:ADATa B,C,...


B,C<NR1>,...:
-32768 to 32767 (8949、8948 unit data)
0 to 1000000000 (8996 unit pulse data)
0,1 (8996 unit digital in data)
0,1 (8997 unit alarm out data)
Input data to memory (ASCII).


:ADATa? A



A:1 to 80(number of output units)
B,C<NR1>,...:
-32768 to 32767 (8949、8948 unit data)
0 to 1000000000 (8996 unit pulse data)
0,1 (8996 unit digital in data)
0,1 (8997 unit alarm out data)
Queries Output data from memory
(ASCII).


:AMAXPoint?


A<NR1>
0=not stored
1 to
Queries the end of data stored.
(when longer data is stored than the inside memory)

:APOINt unit$,ch$,A


:APOINt?
unit$,ch$
A:0 to

unit$,ch$,A<NR1>
Sets point in memory for
input and output.
(when longer data is stored than the inside memory)
Queries
:AREAl? unit$,ch$



unit$,ch$
A<NR1>
-32768 to 32767 (8949、8948 unit data)
0 to 1000000000 (8996 unit pulse data)
0,1 (8996 unit digital in data)
0,1 (8997 unit alarm out data)
Real time data output.(ASCII)



:BDATa? A

A:1 to 200(amount of output data)
Response data:binary,integer data
Performs binary transfer for
stored data
:BREAl? unit$,ch$

unit$,ch$
Response data:binary,integer data
Real time data output.
(binary)
:CHSTore? unit$,ch$

unit$,ch$,A$
A$:OFF,ON
Queries stored record data
for each channel.
:GETReal
Captures real time data.
:MAXPoint?


A<NR1>
0=not stored
1 to 16777215(CH1 MAX)
Queries the amount of data stored.


:POINt unit$,ch$,A

:POINt?
unit$,ch$
A:0 to 16777215(CH1 MAX)
unit$,ch$,A<NR1>
Sets point in memory for
input and output.
Queries
:PREPare

Prepares the memory for
receipt of waveform data.
:TARCH? unit$

ch$

Real time store channel.
(channel of storage on all)
:TAREAl? unit$



A<NR1>
-32768 to 32767 (8949、8948 unit data)
0 to 1000000000 (8996 unit pulse data)
0,1 (8996 unit digital in data)
0,1 (8997 unit alarm out data)
Real time data output.(ASCII)
(channel of storage on all)


:TVRCH? unit$

ch$

Real time store channel.
(channel of storage on all)
:TVREAl? unit$



A<NR3>

voltage,tc,humid (8949、8948 unit data)
count,revolve (8996 unit digital in data)
0,1 (8996 unit digital in data)
0,1 (8997 unit alarm out data)
Real time data output.
(channel of storage on all)
(voltage,tc,humid values)
(count,revolve)
(digital in)
(alarm out)
:TOPPoint?


A<NR1>
0=not stored
1 to
Queries the top of data stored.
(when longer data is stored than the inside memory)

:VDATa B,C,...


B,C,...:
voltage,tc,humid (8949、8948 unit data)
count,revolve (8996 unit digital in data)
0,1 (8996 unit digital in data)
0,1 (8997 unit alarm out data)
Input data to memory
(voltage,tc,humid values)
(count,revolve)
(digital in)
(alarm out)
:VDATa? A



A:1 to 40(amount of data)
B,C<NR3>...
voltage,tc,humid (8949、8948 unit data)
count,revolve (8996 unit digital in data)
0,1 (8996 unit digital in data)
0,1 (8997 unit alarm out data)
Output data to memory

(voltage,tc,humid values)
(count,revolve)
(digital in)
(alarm out)
:VREAl? unit$,ch$


unit$,ch$:CH1 to CH15,A<NR3>
A:voltage,tc,humid
count,revolve (8996 unit digital in data)
0,1 (8996 unit digital in data)
0,1 (8997 unit alarm out data)
Real time data output
(voltage,tc,humid values)
(count,revolve)
(digital in)
(alarm out)


(10) DISPlay command (Setting and querying changeover of the screen mode)
Command
:DISPlay
Data
(for a query, response data)
Explanation
:CHANge A$
:CHANge?
A$:NORMal,SET
A$
Sets the screen mode.
Queries
:DIREct A$





:DIREct?
A$:CLOCK,NUM,CF,SN,IP,MAC
ROM_VER,FPGA_VER,ZERO,SYNC,
S_TEST,DATE,TIME,DHCP,IP_SET,
MASK,PORT,GATE,G_ADR,MAC_SET,
SN_SET,ROM,RAM,BUS,KEY,LED,
LCD,LOAD,SAVE,V_UP,LANG
A$
Sets the screen mode directly.





Queries