Herunterladen Inhalt Inhalt Diese Seite drucken

Scpi Commands And Delimiter - Elektro-Automatik IF-U1 Benutzerhandbuch

Inhaltsverzeichnis

Werbung

Verfügbare Sprachen

Verfügbare Sprachen

About the interface cards

4.5.8 SCPI commands and Delimiter

SCPI commands are sent as plain text. The end has to be
marked with a delimiter:
LF (Line Feed, 0xA, ASCII 10).
A transmission from the device requires to first sent a mes-
sage from the host (PC/SPC etc). The IF-G1 will reply, if
the host expects a reply. This is the case, if the end of the
command is a „?".
Commands that have to set a state or a value always consist
of the command itself and one or multiple values, seperated
by commas. Example:
<COMMAND>
<Numeric value>,<Numeric value>...
You can sent any command in its short or complete form. In
the following section the short form is given in capital letters
and is always a part of the complete form.
Changes since firmware version 3.03:
• More delimiters accepted:
CR+LF (0xD, 0xA)(ASCII 13, 10)
CR+LF+EOI
LF+EOI
EOI
• Commands can also be given in lowercase letters
Syntax format
Specification according „1999 SCPI Command reference".
Following syntax formats can occur in commands and/or
replies:
<Numeric value>
This numeric value corresponds to the value in
the display of the device and depends on the
nominal values of the device. It applies:
- the value must be sent after the command and
seperated by a space
- instead of a numeric value you can also use
MIN
(corresponds to the minimum value
of the parameter)
Attention! Set values bigger than nominal
values will return an error!
<NR1>
Numeric value without decimal place
<NR>
Numeric value with decimal place
<NR3>
Numeric value with decimal place and exponent
<NRf>
Contains <NR1>,<NR>,<NR3>
<NRf+>
Contains <NR1>, <NR>, <NR3> as well as
MIN and MAX
Unit
V
A
W
OHM
s
<CHAR>
0..55: Decimal number (output)
#B0000 0000 ... #B1111 1111: Binary view
#H00... #HFF: Hexadecimal view
© 009, Elektro-Automatik GmbH & Co. KG
Volt
Ampere
Watt
Ohm
Seconds
<+INT>
0..3768: positive integer number (output)
#B0000 0000 0000 0000... #B0111 1111 1111 1111:
binary view
#H0000... #HFFFF: Hexadecimal view
<B0>
1 or ON: Function is activated
0 or OFF: Function is deactivated.
<B1>
NONE: local operation, switching to remote
control is possible
LOCal: local operation, reading of data is pos-
sible
REMote: remote control of the device is allo-
wed
<B>
ON or 1: automatic measurement with x rounds
ONCE or 0: one-shot measurement with x
rounds, triggered by *TRG
<ERR>
Error and event number (-800 to 399)
<SRD>
String
<LF>
End of line token (line feed, 0x0A)
<Time>
[[ddd], [hh], [mm], [s]s.s[s][s][s][s][s][s]
Standard format is in seconds (s.s)
;
The semicolon is used to seperate multiple
command within a message
:
The colon is used to seperate major keywords
from minor keywords
[ ]
Small letters and items in rectangular brackets
are optional
?
The question mark identifies a query. The query
can be combined with a data transmission. Here
you need to take care to wait for response of the
system before sending data
->
Reply from the device
Device specific commands and parameters
Red: only compatible with power supplies (not every model)
Blue: only compatible with electronic loads
Black: compatible to any device
Common IEEE488.2 commands
*IDN?
Returns the device identification, consisting of:
User text, device vendor, device name, device
serial number, device firmware version, serial
number(s) and firmware version(s) of plugged
interface cards<LF>
*RST
Resets the device by doing this:
- setting it into remote control mode (if allowed)
- setting output/input to OFF
- resetting all past alarms of the device
*TRG
Triggers a measurement
*CLS
Clears all event and status registers of the
GPIB controller
*ESE <CHAR> Sets the Event Status Enable Register
*ESE?
Reads the Event Status Enable Register
*ESR?
Reads the Event Status Register, which is cle-
ared after reading
*SRE <CHAR> Sets the Service Request Enable Register
EN
65

Quicklinks ausblenden:

Werbung

Kapitel

Inhaltsverzeichnis
loading

Inhaltsverzeichnis