3 prompt method, 3 using scpi commands for rs 232 communication, 4 isolating rs 232 communication problems – KEPCO BOP 1KW-MG Operator Manual, Firmware Ver.2.38 to 2.47 User Manual

Page 115: 6 scpi programming, Prompt method -51, Using scpi commands for rs 232 communication -51, Isolating rs 232 communication problems -51, Scpi programming -51, R. 3.6, 6; app

Advertising
background image

BOP HIPWR 080709

3-51

3.5.6.2.3 PROMPT METHOD

The command originator sends a message line (command) to the BOP and waits until the
prompt sequence CR LF > (3E

H

, 62

10

) is received. The BOP sends the prompt sequence

CR LF > to the command originator indicating the power supply is ready to receive the next
command and data will not be lost. This method is useful in an interactive mode as well as with
certain process controllers.

3.5.6.3

USING SCPI COMMANDS FOR RS 232 COMMUNICATION.

The unit must be in remote mode before the RS 232 commands to affect the output can be exe-
cuted (e.g., VOLT 10;OUTP ON). This can be accomplished by sending SYST:REM ON prior to
sending any commands that affect the power supply output. (See PAR. B.139 and Figure B-11)

3.5.6.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. From the power-up screen press

%

key to enter the General Setup menu, then highlight

Revisions/TEST. press

!

to enter the Test Subsystem menu.

2. Highlight Serial Interface and press

#

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

#

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 step 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.6

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 com-
mands are sent to the BOP Power Supply as ASCII output strings within the selected program-
ming language (PASCAL, BASIC, etc.) in accordance with the manufacturer’s requirements 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-

Advertising