beautypg.com

4 program message structure, Table 3-4. scpi command index, 1 keyword – KEPCO MST 488 Programmer User Manual

Page 34: Program message structure -8, Keyword -8, Scpi command index -8, E 3-4)

background image

3-8

MST488-27 013004

3.4.4

PROGRAM MESSAGE STRUCTURE

SCPI program messages consist of one or more message units ending with a terminator. The ter-
minator is not part of the syntax; it is defined by the way your programming language indicates
the end of a line. The message unit is a keyword consisting of a single command or query word
followed by a terminator (e.g., CURR? or TRIG). The message unit may
include a data parameter after the keyword separated by a space; the parameter is usually
numeric (e.g., CURR 5), but may also be a string (e.g., OUTP ON). Figure
3-3 illustrates the message structure, showing how message units are combined. The following
subparagraphs explain each component of the message structure.

NOTE: An alternative to using the message structure for multiple messages defined in the fol-

lowing paragraphs is to send each command as a separate line. In this case each com-
mand must use the full syntax shown in Appendix B.

3.4.4.1

KEYWORD

Keywords are instructions recognized by a decoder within the MST 488-27 controller, referred to
as a “parser.” Each keyword describes a command function; all keywords used by the MST 488-
27 controller are listed in Figure 3-2.

TABLE 3-4. SCPI COMMAND INDEX

COMMAND

PAR.

REFERENCE

COMMAND

PAR.

REFERENCE

COMMAND

PAR.

REFERENCE

*CLS

A.2

INST:SEL, ?

B.7, B.8

STAT:QUES?

B.28

*ESE

A.3

INST:STAT

B.9

STAT:QUES:COND?

B.29

*ESE?

A.4

MEAS:CURR?

B.10

STAT:QUES:ENAB

B.30

*ESR?

A.5

MEAS:VOLT?

B.11

STAT:QUES:ENAB?

B.31

*IDN?

A.6

OUTP:[STAT]

B.12

STAT:QUES:INST[1]?

B.32

*OPC

A.7

OUTP:[STAT}?

B.13

STAT:QUES:INST2?

B.33

OPC?

A.8

[SOUR]:CURR

B.14

STAT:QUES:INST[1]:ENAB, ?

B.34, B.35

OPT?

A.9

[SOUR]:CURR?

B.15

STAT:QUES:INST2:ENAB, ?

B.36, B.37

*RST

A.10

[SOUR]:CURR:TRIG

B.16

STAT:QUES:INST:ISUM?

B.38

*SRE

A.11

[SOUR]:CURR:TRIG?

B.17

STAT:QUES:INST:ISUM:ENAB, ?

B.39, B.40

*SRE?

A.12

[SOUR]:VOLT

B.18

SYS:COMM:GPIB:ADDR

B.41

*STB?

A.13

[SOUR]:VOLT?

B.19

SYST:COMM:SER:BAUD

B.42

*TRG

A.14

[SOUR]:VOLT:TRIG

B.20

SYST:COMM:SER:ECHO

B.43

*TST

A.15

[SOUR]:VOLT:TRIG?

B.21

SYST:COMM:SER:PACE

B.44

*WAI

A.16

[SOUR]:FUNC:MODE

B.22

SYST:COMM:SER:PROM

B.45

INIT[:IMM]

B.2

STAT:OPER:COND?

B.23

SYST:ERR

B.46

INIT:CONT

B.3

STAT:OPER:ENAB

B.24

SYST:LANG

B.47

INIT:CONT?

B.4

STAT:OPER:ENAB?

B.25

SYST:SET

B.48

INST:CAT

B.5

STAT:OPER?

B.26

SYST:VERS?

B.49

INST:NSEL

B.6

STAT:PRES

B.27