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 6 of 7

TPSK Printer Series 24 & 12V User Manual, pages 51 to 60

Pages 51 to 60 of 67

The original document is the PDF (1.9 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 Axiohm TPSK

Page 51

Print Bar Code (continued) Values First Variation: Data string terminated with NULL Character M

Bar Code

D n, Length

0

UPC-A

48- 57 (ASCII numerals)

Fixed Length: 11, 12

1

UPC-E

48- 57

Fixed Length: 11, 12

2

JAN13 (EAN)

48- 57

Fixed Length: 12, 13

3

JAN8 (EAN)

48- 57

Fixed Length: 7,8

4

Code 39

Variable Length

5

Interleaved 2 of 5

48- 57, 65- 90 (ASCII alphabet), 32, 36, 37, 43, 45, 46, 47 (ASCII special characters) d1 = dk = 42 (start/stop code is supplied by printer if necessary) 48- 57

Variable Length (Even Number)

Second Variation Length of Byte Specified at Beginning of String The value of m selects the bar code system as described in the table. The variable d indicates the character code to be encoded into the specified bar code system. See the table. If character code d cannot be encoded, the printer prints the bar code data processed so far, and the following data is treated as normal data. m

Bar Code

D n, Length

65 66 67 68 69

UPC-A UPC-E JAN13 (EAN) JAN8 (EAN) CODE39

Fixed Length: 11, 12 Fixed Length: 11, 12 Fixed Length: 12, 13 Fixed Length: 7, 8 Variable

70

Interleaved 2 of 5 (ITF) Code 128

48- 57 (ASCII numerals) 48- 57 48- 57 48- 57 48- 57, 65- 90 (ASCII alphabet), 32, 36, 37, 43, 45, 46, 47 (ASCII special characters) d1 = dk = 42 (start/stop code is supplied by printer if necessary) 48- 57

73

0-105 d1 = 103-105 (must be a Start code) d2 = 0-102 (data bytes) (Stop code is provided by the printer)

TPSK 12 & 24 V User’s Manual

Page 50 / 66

Variable (Even Number) Variable

Reference: FDE 31 08 972 Issue Z

Page 52

5.12 Flash firmware download commands These commands are used to load firmware into the printer. There are two ways to enter the download mode. While the printer is running normally, send the command, “Switch to Flash Download Mode (1B 5B 7D)” to leave normal operation and enter the download mode. If the Flash if found corrupted during Level 0 diagnostics the download mode is automatically entered after a printer reset. The printer never goes directly from the download mode to normal operating mode. To return to normal printer operation, the operator must turn the unit off and on to reboot, or the application must send a command to cancel download mode and reboot (1D FF). When each flash download command is received, the printer returns either ACK or NAK to the host computer: ACK (hexadecimal 06) Is sent when the printer has received a host transmission and has successfully completed the request. NAK (hexadecimal 15) Is sent when a request is unsuccessfully completed. Each command is described in the following pages.

Firmware Download Sequence By providing a set of low-level commands, great freedom of implementation is given to customer application to customize the sequence to match its specific requirements. The main steps of a typical Firmware download sequence are shown here after: Error checking and error recovery are not described 1) Switch to Flash Download Mode 2) Check Flash Memory Size 3) Erase all Flash Memory sectors, except Boot Sector 4) Download Code to Active Flash Sector 4.1) Select Flash memory sector #n (each sector contains 64kbytes) 4.1.1) Program segment of N bytes 4.1.2) if more segments, loop back to 4.1.1) 4.2) if more sectors to program, loop back to 4.1) 5) Check Flash CRC 6) Reboot Printer

TPSK 12 & 24 V User’s Manual

Page 51 / 66

Reference: FDE 31 08 972 Issue Z

Page 53

COMMANDS SWITCH TO FLASH DOWNLOAD MODE Sets the printer in flash download mode. When this command is received, the printer leaves normal operation and can no longer print transactions until the Reboot the Printer command (1D FF) is received or the printer is rebooted. This command does not affect the current communication parameters. Once the printer is in flash download mode, this command is no longer available. ASCII Hexadecimal Decimal

ESC [ } 1B 5B 7D 27 91 125

Related Information

See Entering Flash Download Mode elsewhere in this book to put the printer in flash download mode using the Configuration Menu.

REQUEST FLASH MEMORY SIZE Returns the size of the flash used. There may be 2 sectors (64K each) in flash memory. This command assures that the firmware to be downloaded has the appropriate size for flash memory. ASCII Hexadecimal Decimal

GS SOH 1D 01 29 1

The returned value corresponds to the highest sector number that can be accepted by the Select Sector to Download (1D 02 nn) command : 1 = 128 Kbytes Flash

Exceptions

Available only in download mode.

SELECT FLASH MEMORY SECTOR TO DOWNLOAD Selects the flash sector (nn) for which the next download operation applies. The values of the possible sector are restricted, depending upon the flash part type. The printer transmits an ACK if the sector number is acceptable or an NAK if the sector number is not acceptable. Sector numbers start at 0 ASCII GS STX nn Hexadecimal 1D 02 nn Decimal 29 2 nn Value and Range of n

0-1

= 128k bytes Flash

Exceptions

Available only in download mode.

TPSK 12 & 24 V User’s Manual

Page 52 / 66

Reference: FDE 31 08 972 Issue Z

Page 54

GET FLASH FIRMWARE CRC STATUS This command gives the Flash firmware CRC. This is performed normally after downloading completely a new firmware to verify that the downloaded firmware is valid The printer transmits ACK if the calculated CRC is correct; NAK if the CRC is incorrect ASCII Hexadecimal Decimal

GS ACK 1D 06 29 6

RETURN BOOT SECTOR CRC Returns the CRC calculated over the boot sector code area. ASCII Hexadecimal Decimal

GS BEL 1D 07 29 7

Formulas

ACK <low byte> <high byte>

ERASE ALL FLASH CONTENTS EXCEPT BOOT SECTOR Erases the entire flash memory. The printer returns ACK if the command is successful; NAK if it is unsuccessful. ASCII Hexadecimal Decimal

GS SO 1D 0E 29 14

Exceptions

Available only in download mode.

RETURN MAIN PROGRAM FLASH CRC Returns the CRC calculated over the flash firmware code area. The format of the response is ACK <low byte> <high byte>. ASCII Hexadecimal Decimal

GS SI 1D 0F 29 15

TPSK 12 & 24 V User’s Manual

Page 53 / 66

Reference: FDE 31 08 972 Issue Z

Page 55

ERASE SELECTED FLASH SECTOR Erases the previously selected sector. The printer transmits ACK when the sector has been erased. If the previous sector is not successfully erased, or if no sector was selected, the printer transmits NAK. ASCII Hexadecimal Decimal

GS DLE n 1D 10 n 29 16 n

Value and Range of n

0-1

= 128k bytes Flash

Exceptions

Available only in download mode.

DOWNLOAD TO ACTIVE FLASH SECTOR Contains a start address (ah x 256 + al) and count (ch x 256 + cl) of binary bytes to load into the selected sector, followed by that many bytes. The start address is relative to the start of the sector. Addresses run from 0 to 64K. The printer may return one of several responses. ACK means that the data was written correctly and the host should transmit the next block. NAK means that, for some reason, the data was not written correctly. This could mean that communications failed or that the write to flash failed. The alternatives seem to be to retry the block or halt loading and assume a hardware failure. ASCII

GS DC1 al ah cl ch d1…dn

Hexadecimal

1D 11 al ah cl ch d1…dn 29 17 al ah cl ch d1…dn

Decimal Value of al Value of ah Value of cl Value of ch Value of d

= low byte of the address (it is sent before the high byte) = high byte of the address (it is sent after the low byte) = low byte of the count (it is sent before the high byte) = high byte of the count (it is sent after the low byte) = data bytes, from 1 to n

Value of n (for number of data bytes)

Range of Address (al ah)

Range of Count (cl ch)

((ch * 256) + cl)

0000-FFFF (hexadecimal)

0001-FFFF (hexadecimal)

Range Addresses run from 0 to 64K. Related Information

Available only in download mode.

TPSK 12 & 24 V User’s Manual

Page 54 / 66

Reference: FDE 31 08 972 Issue Z

Page 56

ERASE BOOT SECTOR + DOWNLOAD NEW BOOT CODE Waits for new boot code to be downloaded, then if CRC on this new boot code is valid, the boot code sector is erased and reprogrammed with new code. Printer automatically reboots after program sequence is complete. ASCII Hexadecimal Decimal

US SOH d1 .. d8192 1F 01 d1 .. d8192 31 01 d1 .. d8192

Exceptions

Available only in download mode.

Note:

During erase and download sequence, power supply must be maintained and no reset sequence should be performed.

TPSK 12 & 24 V User’s Manual

Page 55 / 66

Reference: FDE 31 08 972 Issue Z

Page 57

5.13 User flash memory commands ERASE USER FLASH SECTOR Erases a section of user flash memory and sends a carriage return when the operation is complete. ASCII Decimal

GS @ n 1D 40 n 29 64 n

Value of n

49

Hexadecimal n = 49 (ASCII n = 1)

This command erases all 64K Flash memory sectors allocated to logo storage. Those sectors should be erased when the logo definition area is full and the driving application is attempting to define new logos. All logo definitions are erased and must be redefined. Important: While erasing flash memory, all communication is disabled. The printer responds to the application only when the erase sequence is completed. After sending the Erase User Flash Sector (1D 40-n) command, an application should wait for the printer response before sending new data. Otherwise, data will be lost. If an application is unable to receive data, it should wait a minimum of five seconds after sending the Erase User Flash Sector (1D 40 n) command before sending data.

RETURN USER FLASH MEMORY ALLOCATION STATUS Returns the amount of Flash memory available in user section. ASCII Decimal

US w n 1F 77 n 31 119 n

Value of n

49

Hexadecimal

Returns the number of bytes available as a zero terminated ASCII string. Each digit is coded in decimal.

TPSK 12 & 24 V User’s Manual

Page 56 / 66

Reference: FDE 31 08 972 Issue Z

Page 58

5.14 Peripheral control commands SET COMMUNICATION INTERFACE PARAMETERS Synopsis:

Setting communication parameters

ASCII Hexadecimal Decimal

US 1F 31

STX 02 2 n1 n1 n1 n2 n2 n2 n3 n3 n3 n4 n4 n4 n5 n5 n5 n6 n6 n6

Description: n1 00h

Interface RS232 n2, bit [0..2] 03h 04h 05h 06h 07h

RS232 Baudrate 9600 19200 38400 57600 115200 n2, bit 4 0 1

RS232 Number of stop bits 1 2 n2, bit 5 0

RS232 Number of data bits 8 n3 0x00 0x01

RS232 Parity Odd parity Even parity n4 0x00 0x01

RS232 Parity mode No parity Enabled and set using parameter described above n5 0x00 0x01

RS232 Handshaking Xon/Xoff DTR/DSR n6 0x00 0x01

RS232 Parity Error Processing Ignore Print ' ?'

Notes: 1) This command is processed only in boot mode. If the printer is running in normal mode, send first command “switch to Boot Mode” (1B 5B 7D). 2) This command must be followed by “Printer Reset” command (1D FF).

TPSK 12 & 24 V User’s Manual

Page 57 / 66

Reference: FDE 31 08 972 Issue Z

Page 59

SET AUTOTEST AFTER CLOSE MODE ASCII

US

ETX

Hexadecimal Decimal

1F 31

03 3

Value of n

0 = disable 1 = enable

Range of n

0-1

Default

1 (enable)

n AA 178 n n

SET VOLTAGE MECHANISM This command will store the Voltage Mechanism parameter setting in non-volatile memory. ASCII Hexadecimal Decimal

US 1F 31

ETX 03 3

Operand: Value Decimal n 0

= Mode selection

1 Default

1

Limit :

Dec:

í A1 161 n n n

12 Volts

10.8V ≤ voltage range ≤ 13.2V (On Average)

24 Volts

20.0V ≤ voltage range ≤ 26.4V (On Average)

0≤n≤1

Hex:

Note :

00 ≤ n ≤ 01 Voltage range: components tolerance not taken into consideration. This command must be followed by a reset.

PAPER LOW SENSOR OPTION This command will store the paper low sensor option in non-volatile memory (NVRAM). ASCII Hexadecimal Decimal

US 1F 31

ETX 03 3

Operand: Value Decimal n 0

= mode Selection

Default:

1 2 0

Limit:

Dec:

ETX 03 3 n n n

Disabled Enabled (Sensor) Enabled (switch)

0≤n≤2

Hex:

Note:

00 ≤ n ≤ 02 This command must be followed by a reset.

TPSK 12 & 24 V User’s Manual

Page 58 / 66

Reference: FDE 31 08 972 Issue Z

Page 60

ENABLE/ DISABLE PAPER FEED BUTTON This command turns the paper feed button enable or disable. ASCII

US

ETX

Hexadecimal Decimal

1F 31

03 3

Value of n

0 = disable 1 = enable

Range of n

0-1

Default

1 (enable)

n B2 178 n n

SET PRE-HEATING MODE Synopsis: ASCII Hexadecimal Decimal Operand: Value Decimal Default Limit: Description: Note:

Set Print head pre – Heating mode (NVRAM). US ETX VT n 1F 03 0B n 31 3 11 n n 0 1 0

= Mode selection Disabled Enabled

0≤n≤1 Dec: 00 ≤ n ≤ 01 Hex: This command will store the print-head pre-heating option in non-volatile memory (NVRAM). When this mode is enabled, the controller monitors the print-head temperature and keeps it above 19-24°C. If the temperature is around 0°C and the preheating mode is active, the preheating will be automatically start until the temperature will be around 19-24°C. After the preheating will become not active again. This command must be followed by a reset.

SET PAPER PASS (FLAPPER) SENSOR THRESHOLD ASCII

US

ETX

û n

Hexadecimal Decimal

1F 31

03 3

96 150 n n

Limit:

Decimal:

10 ≤ n ≤ 60 & n = 255 will disable the sensor

Hex:

0A ≤ n ≤ 3C

TPSK 12 & 24 V User’s Manual

Page 59 / 66

Reference: FDE 31 08 972 Issue Z