beautypg.com

Table 2-2. rs 232 setup, Rs 232 setup -4 – KEPCO KLR Series Developers Guide User Manual

Page 22

background image

2-4

KLR-DEV 060713

NOTE: Kepco strongly recommends the XON XOFF method for data transfer via RS 232 proto-
col for all Kepco products. If this method is not selected, it is the user's responsibility to ensure
completion of any response by the power supply prior to issuance of subsequent commands.

The XON XOFF method allows the KLR Power Supply to control when the command originator
is allowed to send data. The command originator can only send data after the XON (transmis-
sion on) character (011

H

) has been received; the command originator stops sending data after

receiving the XOFF (transmission off) character (013

H

), and waits until the XON character is

received before sending additional data.

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 KLR returns the nor-
mal sequence of CR LF (if echo mode is enabled).

Prior to use, the RS 232 port must be initialized be sending either CR, LF or ESC.

The RS 232 port of the KLR must be configured properly to work with the three drivers (see
Table 2-2). The baud rate is not automatically detected and must be set correctly by the user
using either the front panel, LabView G, VXI plug&play or Programming environment. The IVI-
COM driver can not modify RS 232 setup. In the VXI plug&play environment the program must
use the Kepco Serial Initialize routine instead of the standard KpKLRInit routine.

TABLE 2-2. RS 232 SETUP

Environment

Method

IVI-COM

Automatically enabled

LabView

Automatic - uses Kepco Serial Initialize

VXI plug&play

KpKLR_Serial Initialize