Retail Display Commands

The following table describes the Retail Display commands supported:

Command

Function

08

Backspace — moves the cursor to the left by one character.

09

Horizontal Tab — moves the cursor to the right by one character.

0A

Line Feed — moves the cursor to one lower line.

0B

Home — moves the cursor to the home position.

0C

Clear Display — clears the display screen and moves the cursor to the home position.

0D

Carriage Return — moves the cursor to the left end of the same line.

1F 43

Selects cursor ON or OFF.

1B 40

Initializes the display. Returns to default.

1F 28 67 01

Enables selection of font size for Single Byte characters

1F 28 68 02

Enables or disables Double Byte character mode

1F 28 67 0F

Selects a Double Byte Code Page

1B 52

Selects a Single Byte International Font set

1B 74

Selects a Single Byte Code Page

1F 02

Moves the cursor up one by one line

1F 03

Moves the cursor horizontally by one space

1F 01

Enables overwrite mode

1B 58

Enables adjustment of brightness level of whole display screen.

Backspace

Format

08

Description

This command moves the cursor to the left by one character.

Horizontal Tab

Format

09

Description

This command moves the cursor to the right by one character.

Line Feed

Format

0A

Description

This command moves the cursor down to the lower line.

Home

Format

0B

Description

This command moves the cursor to the home position.

Clear Display

Format

0C

Description

This command clears the display screen and moves the cursor to the home position

Carriage Return

Format

0D

Description

This command moves the cursor to the left end of the same line.

Enable/Disable Cursor

Format

1F 43 nn

where nn = Display cursor ON/OFF

00 — Cursor OFF

01 — Cursor ON

Default: nn = 00

Description

This command causes a flashing cursor to be used whenever the Display On state is in force. The cursor is displayed by 1x8 dots (vertical).

Initialize Display

Format

1B 40

Description

This command returns the VFD module into its default status. All configurations made to the VFD module returns to its default settings. Codepage turns back to CP 437 at 5x7 dot pixels.

Set Font Size

Format

1F 28 67 01 nn

where nn = font size

01 — 5x7 dot character

02 — 8x16 dot character

Default: nn = 01

Description

This command toggles between a 5x7 dot character and 8x16 dot character. This command is also required to enable the 16x16 dot double byte character mode.

Note:  It is recommended that before sending a displayable character, this command must be sent first.

Enable/Disable Double Byte Character Mode

Format

1F 28 67 02 nn

where nn = enable/disable double byte mode

00 — Disable double byte character mode

01 — Enable double byte character mode

Default: nn = 00

Description

This command sets the display to Double Byte character mode.

Note:  The command 1F 28 67 01 02 (set font to 8x16 mode) is required before sending the double byte mode enable command. This is followed by the Double Byte Code Page Select 1F28 67 0F n to select the desired code page. Refer below for an example.

Select the font size

1F 28 67 01 02

Enable Double Byte Mode

1F 28 67 02 01

Select Double Byte Code Page

1Fh 28h 67h 0Fh 02h

Send Double Byte Character

B0 A2 (double byte character code)

Double Byte Code Page Select

Format

1F 28 67 0F nn

where nn = double byte character code page font

00 — Japanese JISX0208 (Shift JIS)

01 — Korean (KSC5601-87)

02 — Simplified Chinese (GB2312-80)

03 — Traditional Chinese (Big-5)

Default: nn = 01

Description

This command selects the double byte code page. This command requires the Set font size 1F 28 67 01 02 command & Enable double byte character mode 1F 28 67 02 01. Refer below for an example.

Select the font size

1F 28 67 01 02

Enable Double Byte Mode

1F 28 67 02 01

Select Double Byte Code Page

1Fh 28h 67h 0Fh 02h

Send Double Byte Character

B0 A2 (double byte character code)

Single Byte International Code Page Select

Format

1B 52 nn

where nn = International Font Set

00 — America

01 — France

02 — Germany

03 — England

04 — Denmark 1

05 — Sweden

06 — Italy

07 — Spain 1

08 — Japan

09 — Norway

10 — Denmark 2

11 — Spain 2

12 — Latin America

13 — Korea

Default: nn = 00

Description

This command loads and modifies the International Codepage 437 into a territory‑specific code page. This command is only applicable for International Code Page and is not the same as the Code Page Select function 1B 74 n.

Single Byte Code Page Select

Format

1B 74 nn

where nn = Code Page Select

00 — CP437(USA – Euro std)

01 — Katakana – Japanese

02 — CP850 (Multilingual)

03 — CP860 (Portuguese)

04 — CP863 (Canadian – French)

05 — CP865 (Nordic)

16 — CP1252 (Latin 1)

17 — CP866 (Cyrillic)

18 — CP852 (Latin 2)

19 — CP858 (International)

Default: nn = 00

Description

This command loads the selected code page stored in the VFD module.

Vertical Scroll

Format

1F 02

Description

This command moves the cursor up one line at a time. Characters move up one line once the display is filled with the 128 characters (for 8x16 mode). All impending characters sent to the VFD display start at the last line of the display.

Note:  The Command 1F 01 is used to revert the scrolling back to the default Overwrite Mode.

Horizontal Scroll

Format

1F 03

Description

This command moves the cursor horizontally one space at a time. The position of the cursor determines the line where the characters scroll. The characters above or below the current cursor position are not affected.

Note:  Once this command is activated, all impending characters are in horizontal scroll mode, unless it is cancelled by the Overwrite Mode 1F 01.

Overwrite Mode

Format

1F 01

Description

This is the default mode of the VFD Display. This command overwrites or replaces the existing characters of the VFD Display once the display is filled with all the 128 characters (for 8x16). Once all 128 is filled, all impending characters start back at position zero and continue to write forward.

Brightness Level Adjustment

Format

1F 58 nn

where nn = Brightness level setting

01 — 12.5%

02 — 25%

03 — 37.5%

04 — 50%

05 — 62.5%

06 — 75%

07 — 87.5%

08 — 100%

Default: nn = 08

Description

This command adjusts the brightness of the entire display. Individual characters or display positions are not adjusted.