beautypg.com

3 command syntax abbreviations – AMETEK SLH Series RevB User Manual

Page 45

background image

SLH-Series AC High Power Electronic Load

GPIB/RS232 Programming Operation

M540073-01 Rev C

4-3

4.3 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 are listed in Table 4-3.

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

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