4 isolating rs 232 communication problems, 5 scpi programming, 1 scpi messages – KEPCO BHK-MG 200W (Full Rack) Series User Manual
Page 67: Isolating rs 232 communication problems -23, Scpi programming -23, Scpi messages -23
BHK-MG (OPR) 022014
3-23
Control characters, either CR or LF, are returned as XOFF CR if echo mode is on, and as XOFF
if echo mode is off. XOFF stops data from the command originator and the BHK-MG returns the
normal sequence of CR LF (if echo mode is enabled).
3.4.4
ISOLATING RS 232 COMMUNICATION PROBLEMS
A Loop Back test can be run from the front panel to aid in isolating RS 232 communication prob-
lems. The unit is designed to pass the test only with the Loop Back test connector (part of Kit
219-0436, see Table 1-5) installed.
1. With the power supply in local mode, command entry status , press MENU key until LCD
reads
LOOP BACK TEST UNTESTED 1=RUN
.
2. Press the 1 key to run the test with the Loop Back Test connector NOT installed and verify
the LCD reads
FAILED
. If the LCD reads
PASSED
, the power supply is defective and
requires repair.
3. Install the loop back test connector into RS 232 port and press the 1 key to rerun the test. If
the LCD reads
PASSED
, the power supply is operating properly. If the LCD reads
FAILED
,
the unit requires repair.
4. To test the integrity of the cable assembly connecting the power supply RS 232 port to the
computer, remove the Loop Back test connector from the power supply RS 232 port and
connect the cable in its place. With the DB9 adapter installed on the opposite end of the
cable, connect a short jumper wire between pins 2 and 3 of the adapter connector and
repeat the test of (3) above. If the LCD display reads
FAILED
, the cord is either the improper
type (not null modem) or is defective. If the LCD display reads
PASSED
, the cable is correct;
remove the jumper and reconnect the cable to the computer.
If each of the above steps is completed successfully, the problem lies in the computer hard-
ware and/or software. Refer to the Product Support area of the Kepco website for additional
information regarding RS 232 communications problems: www.kepcopower.com/support.
3.5
SCPI PROGRAMMING
SCPI (Standard Commands for Programmable Instruments) is a programming language con-
forming to the protocols and standards established by IEEE 488.2 (reference document
ANSI/IEEE Std 488.2, IEEE Standard Codes, Formats, Protocols, and Common Commands). SCPI
commands are sent to the BHK-MG Power Supply as ASCII output strings within the selected
programming language (PASCAL, BASIC, etc.) in accordance with the manufacturer’s require-
ments for the particular GPIB controller card used.
Different programming languages (e.g., BASIC, C, PASCAL, etc.) have different ways of repre-
senting data that is to be put on the IEEE 488 bus. It is up to the programmer to determine how
to output the character sequence required for the programming language used. Address infor-
mation (GPIB address) must be included before the command sequence. (See PAR.3.3.3 to
establish the BHK-MG Power Supply GPIB address.)
3.5.1
SCPI MESSAGES
There are two kinds of SCPI messages: program messages from controller to power supply,
and response messages from the power supply to the controller. Program messages consist of
one or more properly formatted commands/queries and instruct the power supply to perform an
action; the controller may send a program message at any time. Response messages consist of