beautypg.com

Terminal mode protocol, Terminal mode protocol -4, Cursor up (ctrl-k) -4 – Rockwell Automation 2706-LV2S_LV4S DL40 PLUS SLAVE USER MANUAL User Manual

Page 41: Cursor down (ctrl-v) -4, Cursor left (ctrl-h) -4, Cursor right (ctrl-l) -4, Line feed (ctrl-j) -4, Clear screen (esc and then *) -4

background image

Publication 2706-6.3

6-2

Terminal Mode

Terminal Mode Protocol

Message text and control codes are sent serially to the DL40 Plus
Slave in terminal mode. The following control codes are used:

Cursor Up (Ctrl-K )

(0B hex)

Positions the cursor directly above the current cursor position. If the
cursor is on the first line, the cursor is moved to the last line on the
display.

Cursor Down (Ctrl-V)

(16 hex)

Positions the cursor directly below the current cursor position. If the
cursor is on the last line, the cursor is moved to the first line on the
display.

Cursor Left (Ctrl-H)

(08 hex)

Moves the cursor one position to the left of the current cursor
position. If the cursor is at the leftmost position on a line, the cursor
is moved to the rightmost position on the line above. If the cursor is
at the leftmost position of the first line, the cursor is moved to the
rightmost position of the last line.

Cursor Right (Ctrl-L)

(0C hex)

Moves the cursor one position to the right of the current cursor
position. If the cursor is at the rightmost position on a line, the cursor
is moved to the leftmost position on the next lower line. If the cursor
is at the rightmost position of the last line, the cursor is moved to the
leftmost position of the first line.

Cursor Return (Ctrl-M)

(0D hex)

Moves the cursor to the leftmost position on the current line.

Line Feed (Ctrl-J)

(0A hex)

Moves the cursor directly below the current position. If the cursor is
on the last line, the cursor stays in its position and every line is moved
up one line (first line is removed).

Reverse Line Feed (Esc and then J )

(1B, 4A hex)

Moves the cursor directly above the current position. If the cursor is
on the first line, the cursor stays in its position and every line is
moved down one line (last line is removed).

Cursor Home (Ctrl-T)

(14 hex)

Moves the cursor to the leftmost position on the first line of the
display.

Clear Screen (Esc and then *)

(1B, 2A hex)

Clears the display and moves the cursor to the leftmost position on
the first line of the display.