Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 15 of 28

MK1000 MicroKiosk Product Reference Guide: Chapter 5 PCK Emulation, pages 127 to 136

Pages 127 to 136 of 240, from MK1000 MicroKiosk Product Reference Guide

The original document is the PDF (2.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Symbol MK-1000

Page 127

PCK Emulation

Draw Commands Table 5-5. Draw Commands Command

Description

Syntax

Example

Draw Point

Draws a single ESC [Px;PyP point on the display

Draw Line

Draws a line ESC[Px;Py; Px;PyL ESC[5;10;200;50L draws a between two points line from (5,10) to (200,50) in the current color. Note: If either endpoint is off the screen, the line is not drawn.

Draw Rectangle

Draws a rectangle ESC[Px1;Py1;Px2; between two Py2;PfR points. If Pf = 1, the rectangle is filled. If Pf = 0, it is not filled.

Set Color

Sets the drawing color for subsequent graphics commands.

Draw Bitmap

Draws the bitmap ESC[Pi;Px;Py;PmD specified by Pi at location (Px,Py) on the screen, with the upper-left corner at (Px,Py). The pixels are combined with the current screen image according to the Pm parameter.

ESC[30m sets the color to black. ESC[37m sets the color to white.

ESC[10;20P sets a point at column 1 row 20 in the current color.

ESC[10;10;100;40;1R draws a filled rectangle from (10,10) to (100,40) in the current color. Note: If any corner is off the screen, the rectangle is not drawn. N/A

ESC[42;10;25;1D draws bitmap #42 at (10,25) with its colors XORed with the current screen image.

5-11

Page 128

MK1000 MicroKiosk Product Reference Guide

Text/Font Commands Table 5-6. Text/Font Commands Command

Description

Syntax

Example

Select Font

Font number Pi ESC[PiF becomes the current font for any subsequent text output.

ESC[37F This is a test This sets the current font to #37, then draws the text "This is a test."

Font Height Query (Supported in PCK emulation versions 1.06 or greater)

Returns the height, in pixels, of the currently selected font.

Unit responds with the ASCII representation of the font height.

Set Text Drawing Mode

Sets the drawing mode ESC[PmM for subsequent text output commands. When Pm = 0 any text output overlays the current image, when Pm = 1 it is XORed with the current image.

Position Cursor

Positions text cursor to ESC[Px; PyT a specified point on the display, characters are drawn with the left side of the character cell at the X cursor position, and the character baseline at the Y cursor position.

Font Screen Position (Supported in PCK emulation versions 1.06 or greater)

Changes the current position at which the unit draws fonts to Px, Py. The positioning is done by the current font's height and average width.

5-12

ESC[H

ESC[Px;Pyp

ESC[10;3p Draws fonts to column 10, row 3.

Page 129

PCK Emulation

Message Commands A message is composed of display commands and text to be displayed. Commands are executed in the same manner as host commands. The MK1000 has four default messages (see Table 5-4 on page 5-10) that can be replaced using the Resource Manager to create messages with the same ID numbers. The following commands display user-defined messages, and send messages to store in RAM. Table 5-7. Message Commands Message

Syntax

Description

Display Stored Messages

ESC[PiJ

Message number Pi is displayed after the current packet, and pending packets are processed. Messages stored in RAM override any messages from Resource files with the same ID. Messages in RAM or from Resource files override default messages. Be sure messages do not call each other recursively. A message called from another is not displayed until the first message is done. Approximately 10 messages waiting to be displayed can be stored. Commands from the host are also stored.

Store Message

ESC[PiK <Message Text>

The MK1000 stores everything in the packet following this command as a message with ID number Pi. This message can be displayed using the Display Stored Message command above. Up to 50 messages of up to 20 characters each may be stored. The message may contain any text or commands the MK1000 supports, including commands to display bitmaps, change fonts, etc.

Flush Stored Messages ESC[I

This command deletes all messages stored in RAM.

5-13

Page 130

MK1000 MicroKiosk Product Reference Guide

MK1000 Command Examples - Host to PCK Software All commands have the following format: stx FF <Command Syntax> <Data> etx lrc where: stx = 02 (Start of Transmission) FF = 0C Command Syntax = Optional text, font, or position command (e.g., xy coordinates to position a message) <Data> = message etx = 03 lrc = Exclusive - or of all characters transmitted except for the stx character (calculated longitudinal redundancy check).

Command Syntax Examples Table 5-8. Clear Screen 02

0C

03

0F stx

FF etx lrc

Table 5-9. Send Text esc [

1

;

1

T

Table 5-10. Position Cursor Then Send Text esc [

5-14

Px

;

Py

T

Page 131

PCK Emulation

Table 5-11. Display Stored Message esc [

Pi

J

Complete String Examples Table 5-12. Clear Screen & Send “HI” 02

0C

1B

5B

31

3B

31

54

48

49

03

21 stx

FF esc

[

1

;

1

T

H

I etx lrc

Table 5-13. Clear Screen & Send “HI” at Position 100x32 02

0C

1B

5B

31

30

30

3B

33

32

54

48

49

03

11 stx

FF esc

[

1

0

0

;

3

2

T

H

I etx lrc

Table 5-14. Clear Screen & Send Stored Message #1002 02

0C

1B

5B

31

30

30

32

4A

03

06 stx

FF esc

[

1

0

0

2

J etx lrc

5-15

Page 132

MK1000 MicroKiosk Product Reference Guide

Button Press - Event Notification When one of the MK1000 function buttons is depressed, a string is sent to the host where <Keypad digit, 1 through 4> is the number of the button pressed. For example, "BTN4" is sent to the host when the right most button, ‘4’, is pressed. This event notification must be surrounded by the normal framing characters used by the PCK emulation firmware (which are dependent on communications type described in Table 5-2 on page 5-3).

Button Event Sent to Host RS-232 MK1000

Host

<STX>BTN4<ETX><LRC> <ACK> <EOT>

Scan Engine Commands Changing the Scanning Mode (Scan Pattern) To change the scanning mode, the host sends the MK1000 the following command sequence: <Esc> [ <scanning mode number> s The following is a list of scanning mode numbers: Number

Scan Mode

1

Smart Raster

2

Always Raster

6

Cyclone Omnidirectional (1D scanning only)

7

Semi-Omni Pattern

To change the scanning mode to Smart Raster, the scanning mode number 1 would be used.

5-16

Page 133

PCK Emulation

To change the scanning mode from Cyclone (factory default) to Smart Raster, use the following syntax: MK1000

Host

<STX><ESC>[1s<ETX> <LRC> <ACK> <EOT>

Pass Through Scanner Commands A special "ParamSend" escape sequence is available in the PCK emulation application to allow "pass through" scanner programming commands. These scanner commands consist of the "PARAM_SEND" programming group as defined in the Simple Serial Interface (SSI) Programmer's Guide, 72-40451-xx, along with the SE3223 scanner parameter values as defined in the SE 2223/3223 Scan Engine Integration Guide, 70-36636-xx. The MK1000 "ParamSend" escape sequence, along with the scanner parameter data, allows complete customization of the scanner’s operational behavior. Note: Parameter changes can be issued singly. The general format of the ParamSend message is: <ESC>[255s<0xC6><0x04><0x00><0xFF><Parameter><ParamData> Where: <ESC>

= The Escape control character, 0x1B.

[255s

= The MK1000 ParamSend command string.

<0xC6>

= The SSI_PARAM_SEND command byte. Required.

<0x04>

= Data from the host. Required.

<0x00>

= The status byte. The value 0 indicates that this is a temporary parameter change. You MUST have this and it must be set to zero. Parameter changes are only effective until the MK1000 is rebooted.

<0xFF>

= The beep code. The scanner's beeper output is not monitored. 0xFF indicates no beep, and it should be set to 0xFF.

5-17

Page 134

MK1000 MicroKiosk Product Reference Guide

<Parameter> = Any valid SSI ParamSend value. <ParamData> = Any valid SSI ParamSend data value.

Redirecting Data To The Serial Port ESC[B<Data For Auxiliary Port> redirects data to the Serial port. All data following this command up to the end of the current packet is sent out the auxiliary port. Data is sent "as is" without processing, except for the Shift Out/In control codes, to allow the host to send all 256 possible codes to the auxiliary port. Note: When the MK1000 is running in PCK emulation mode, data received on the Auxiliary port is sent to the host. It is sent in packets, up to a maximum of 128 bytes, as the data is received. It is framed according to the current Software Handshaking Type setup in the unit.

Beep Commands ESC[PbS sounds the beeper. Pb is the beep code parameter that is, the beep code value specified in ASCII digits (see the table below). Table 5-15. Beep Sequences Decimal Value

5-18

Beep Sequence

0

1 Short High Beep

1

2 Short High Beeps

2

3 Short High Beeps

3

4 Short High Beeps

4

5 Short High Beeps

5

1 Short Low Beep

6

2 Short Low Beeps

7

3 Short Low Beeps

8

4 Short Low Beeps

Page 135

PCK Emulation

Table 5-15. Beep Sequences (Continued) Decimal Value

Beep Sequence

9

5 Short Low Beeps

10

1 Long High Beep

11

2 Long High Beeps

12

3 Long High Beeps

13

5 Long High Beeps

14

2 Long High Beeps

15

1 Long Low Beep

16

2 Long Low Beeps

17

3 Long Low Beeps

18

4 Long Low Beeps

19

5 Long Low Beeps

20

Fast Hi-Lo-Hi-Lo Warble

21

Slow Hi-Lo-Hi-Lo Warble

22

Hi-Low Beep

23

Low-High Beep

24

Hi-Lo-Hi Beep

25

Lo-Hi-Lo Beep

5-19

Page 136

MK1000 MicroKiosk Product Reference Guide

5-20