beautypg.com

GW Instek PSM-Series Programming Manual User Manual

Page 8

background image

PSM SERIES PROGRAMMABLE POWER SUPPLY

PROGRAMMER MANUAL

⎯ 13 ⎯

z RS232 message terminators

As there is no signal of end message on RS232 bus, therefore, use LF 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.

Entering Commands

The standards that govern the command set for the programmable power
supply allow for a certain amount of flexibility when you enter commands.
For instance, you can abbreviate many commands or combine commands
into one message that you send to the programmable power supply. This
flexibility, called friendly listening, saves programming time and makes the
command set easier to remember and use.

Command Characters

The programmable power supplies are not sensitive to the case of
command characters. You can enter commands in either uppercase or
lowercase.

You can execute any command with white space characters. You must,
however, use at least one space between the parameter and the command
header

Abbreviating Commands

Most commands have a long form and a short form. The listing for each
command in this section shows the abbreviations in uppercase. For
instance, you can enter the query :VOLTage 1.23 simply as :VOLT 1.23

Because the programmable power supply hypothesis that a command starts
from the root, you have the option of beginning the initial command header
with a colon (:).

PSM SERIES PROGRAMMABLE POWER SUPPLY

PROGRAMMER MANUAL

⎯ 14 ⎯

Combining Commands

You can use a semicolon (;) to combine commands. For example:

OUTP 1;MEAS:VOLT?;MEAS:CURR?----------------

If the command that follows the semicolon has a different header path from
the root level, you must use a colon to force a return to the root level:

VOLT:PROT 20;:OUTP 1

If the command that follows the semicolon has the same header path, you
may omit the colon and the path and state only the new leaf node. For
example:

VOLT:PROT: LEV 12.34; VOLT:PROT:STAT 1

is equal to

VOLT:PROT:LEV 12.34; STAT 1

You can combine commands and queries into the same message. Note, for
example, the following combination:

VOLT 12.34;VOLT ?

Synopsis of Commands

The tables in this section summarize the command of the programmable
power supply. These tables divide the commands into three functional
classifications:

z

General Setting Commands

z

Trigger Commands

z

Status Commands

z

System Commands

z

Calibration Commands

z

RS232 Interface Commands

z

IEEE-488.2 Common Commands

z

Miscellaneous Commands