Command syntax – Martel Electronics M2000 User Manual

Page 13

Advertising
background image

13

except for the commands LOCAL, REMOTE, and LOCKOUT, which are implemented per IEEE
Standards as messages.

Command Syntax

The following syntax rules apply to all the remote commands. Information about syntax of
response messages is also given.

Parameter Syntax Rules

Table 6 lists the units accepted in command parameters and used in responses. All com-
mands and units may be entered in upper or lower case.

Table 6. Units Accepted in Parameters and Used in Responses

Units Meaning

uV

Volts in units of microvolts

1

mV

Volts in units of millivolts

1

V

Volts in units of volts

kV

Volts in units of kilovolts

1

uA

Current in units of microamperes

1

mA

Current in units of milliamps

1

A

Current in units of amps

1. Parameter only

General Rules The general rules for parameter usage is as follows:

1. Numeric parameters may have up to 15 significant digits and their exponents can be in

the range +/-1.0E+/-20.

2. Including too many or too few parameters causes a command error.

3. Null parameters cause an error, e.g., the adjacent commas in OUT 1V, ,;OPER.

4. Expressions, for example 4+2*13, are not allowed as parameters.

Extra Space or Tab Characters

In the command descriptions, parameters are shown separated by spaces. One space after a
command is required (unless no parameters are required). All other spaces are optional.
Spaces are inserted for clarity in the manual and may be left in or omitted as desired. You can
insert extra spaces or tabs between parameters as desired. Extra spaces within a parameter
are generally not allowed, except for between a number and its associated multiplier or unit.

Terminators

Table 7 summarizes the terminator characters for both the IEEE-488 and RS-232 remote inter-
faces.

Table 7. Terminator Characters

Terminator

ASCII Character

Control Command

Language
Command

Function Number

Program

Terminator Terminator

Carriage Return (CR)

13

Chr(13)

<Cntl> M

\n

Line Feed (LF)

10

Chr(10)

<Cntl> J

\r

Examples:
RS-232 Mode using a terminal OUT 1 V <Enter>
RS-232 Mode using a program Comm1.Output = "OUT 1 V" + Chr(10)
IEEE-488 Mode OUT 1 V

Advertising