5-3
IM WT310E-17EN
Programming Overview
1
2
3
4
5
6
7
8
9
App
Index
Example A portion of the commands from the
integration command group
:INTEGrate?
:INTEGrate:MODE
:INTEGrate:TIMer
:INTEGrate:STARt
:INTEGrate:STOP
:INTEGrate:RESet
• When Concatenating Commands of the Same
Group
This instrument stores the hierarchical level of the
command that is currently being executed and
processes the next command on the assumption
that it belongs to the same level. Therefore,
the common header section can be omitted for
commands that belong to the same group.
Example
:INTEGrate:MODE NORMal;
TIMer 1,0,0<PMT>
• When Concatenating Commands of Different
Groups
If the subsequent command does not belong to the
same group, place a colon in front of the header (this
colon cannot be omitted).
Example
:INTEGrate:MODE NORMal;:INPut:
MODE RMS<PMT>
• When Concatenating Simple Headers
If a simple header follows another command, place
a colon in front of the simple header (this colon
cannot be omitted).
Example
:INTEGrate:MODE NORMal;:HOLD
ON<PMT>
• When Concatenating Common Commands
Common commands that are defined in IEEE
488.2-1992 are independent of hierarchy. A colon is
not needed before a common command.
Example
:INTEGrate:MODE NORMal;*CLS;:
INTEGrate:TIMer 1,0,0<PMT>
• When Separating Commands with <PMT>
If you separate two commands with a terminator,
two program messages will be sent. Therefore,
the common header must be specified for each
command even when commands belonging to the
same command group are being concatenated.
Example
:INTEGrate:MODE NORMal<PMT>:
INTEGrate:TIMer 1,0,0<PMT>
5.2 Commands
Commands
There are three types of commands (program headers)
that a controller may send to this instrument. The
commands differ in their program header formats.
Common Command Header
Commands that are defined in IEEE 488.2-1992 are
called common commands. The common command
header syntax is shown below. Be sure to include an
asterisk (
*
) at the beginning of a common command.
*
<Mnemonic>
?
Common command example:
*CLS
Compound Header
Commands, other than common commands, that are
specific to this instrument are classified and arranged
in a hierarchy according to their functions. The
compound header syntax is shown below. Be sure to
use a colon to specify a lower hierarchical level.
:
<Mnemonic>
?
:
Compound header example:
:INPut:MODE
Simple Header
These commands are functionally independent and are
not contained within a hierarchy. The format of a simple
header is shown below.
<Mnemonic>
?
:
Simple header example:
:HOLD
Note
A <mnemonic> is an alphanumeric character string.
When Concatenating Commands
•
Command Groups
A command group is a group of commands that
have common compound headers arranged in a
hierarchy. A command group may contain sub-
groups.