2 gpib/rs-232c command list, 1 command syntax abbreviations, Gpib/rs-232c command list – AMETEK SLH Series RevC User Manual

Page 64

Advertising
background image

Remote Programming

Sorensen SLH-Series DC High Power Electronic Load

5.2

GPIB/RS-232C COMMAND LIST

5.2.1 Command Syntax Abbreviations

SP

:Space, the ASCII code is 20 Hexadecimal.

;

:Semicolon, Program line terminator, the ASCII code is OA Hexadecimal.

NL

:New line, Program line terminator, the ASCII code is OA Hexadecimal.

N

:Integer from 1 to 8.

NR2

:Digits with decimal point. It can be accepted in the range and format of ##.#####.

Example:

30.12345, 5.0

Description of GPIB Programming Command Syntax.

{ } :The contents of the { } symbol must be used as a part or data of the GPIB command, it can

not be omitted.

[ ] :The contents of the [ ] symbol indicates that the command is optional, depending on the

testing application.

|

:This symbol means to make a choice between one or the other. For example “HIGH|LOW"

means it can only use HIGH or LOW as the command, but one of the choices
must be used.

Terminator

The program line terminator character must be sent after the GPIB command; the

available command terminator characters that can be accepted in the SLH
mainframe are listed in Table 5-1.

LF
LF WITH EOI
CR, LF
CR, LF WITH EOI

Table 5-1 GPIB Command Terminator

A terminator informs GPIB that it has reached the end of statement. Normally,
this is sent automatically by your GPIB programming statements. In this
manual, the terminator is assumed at the end of each example line of code. If
it needs to be indicated, it is shown by symbol (nl); which stand for “new line

and represents ASCII code byte the OA Hexadecimal or 10 decimal.

Semicolon ”;“ The semicolon “;" is a back-up command, the semicolon allows you to combine

command statements on one line to create command message.


Table 5-2 presents a summary of the GPIB/RS-232 Setting commands, and Table 5-3 summarizes
the GPIB/RS-232 preset Query commands with applicable module types. Table 5-4 is a summary of
State commands, the System commands are in Table 5-5, Measure and Limit commands are in Table
5-6, and the Global commands are in Table 5-7.

5-2

M540074-01

Rev C

Advertising