beautypg.com

Figure 3-2. rs 232 implementation, 1 echo mode, 2 prompt method – KEPCO ABC-DM SERIES User Manual

Page 48: Echo mode -16, Prompt method -16, Rs 232 implementation -16

background image

3-16

ABC 040104

FIGURE 3-2. RS 232 IMPLEMENTATION

Only four 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

)

• Escape (ESC, 01B

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 ABC
by the command originator. When the line is parsed and the commands are sent to the analog
processor, the ABC sends the line terminator sequence CR LF to the command originator.

The ESC character is used for synchronization, causing the ABC to reset its input buffer and
return a CR LF sequence.

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-2).

3.6.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-2).

3.6.3.2

PROMPT METHOD

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

H

, 62

10

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