beautypg.com

Figure 3-3. rs 232 implementation, 1 echo mode, 2 prompt method – KEPCO BHK-MG 200W (Full Rack) Series User Manual

Page 66: 3 xon xoff method, Echo mode -22, Prompt method -22, Xon xoff method -22, Rs 232 implementation -22, E 3-3, Figure 3-3 illustrates

background image

3-22

BHK-MG (OPR) 022014

FIGURE 3-3. RS 232 IMPLEMENTATION

Only three control characters (characters between 00

H

and 1F

H

) are acknowledged by the

power supply:

• Carriage Return (CR, 0D

H

)

• Line Feed (LF, 0A

H

)

• Back Space (BS, 08

H

)

BS deletes the last character entered, with the exception of CR or LF characters. Either the CR
or LF character acts as the line terminator, initiating parsing of the ASCII data sent to the BHK-
MG by the command originator. When the line is parsed, the BHK-MG sends the line terminator
sequence CR LF to the command originator.

All non-control characters are sent via the serial port of the command originator. The control
character BS is echoed as BS Space BS. Only the first control character is returned in response
to either a CR LF or LF CR character sequence (see Figure 3-3).

3.4.3.1

ECHO MODE

In echo mode each byte (character) is echoed back to the sender where it is verified as the
same character that was just sent.

All non-control characters are sent via the serial port of the command originator. The control
character BS is echoed as BS Space BS. Only the first control character is returned in response
to either a CR LF or LF CR character sequence (see Figure 3-3).

3.4.3.2

PROMPT METHOD

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

H

, 62

10

) is received. The BHK-MG 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.

3.4.3.3

XON XOFF METHOD

The XON XOFF method allows the BHK-MG to control when the command originator is allowed
to send data. The command originator can only send data after the XON (transmission on) char-
acter (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.