Star Micronics RS232 manual Commands to Print Dot Graphics, Commands to Print Download Characters

Page 27

Commands to Print Dot Graphics

Control codes

Hexadecimal

Function

Page

codes

 

 

 

 

<ESC> “K”

n <0>

1B

4B n 00 m1 m2

Print normal density graphics

41

m1 m2 ...

 

...

 

 

 

 

 

<ESC> “L”

n1 n2

1B

4C n1 n2 m1 m2

Print high density graphics

43

m1 m2 ...

 

...

 

 

 

 

 

<ESC> “k”

n <0> d1 ...

1B

6B n 00 d1 ...

Print fine density graphics

44

 

 

 

 

 

 

<ESC> “X”

n1 n2 m1 ...

1B

58 n1 n2 d1 ...

Print fine density graphics

47

 

 

 

 

 

 

Commands to Print Download Characters

 

 

 

 

 

 

 

 

 

Control codes

 

 

Hexadecimal

Function

Page

 

MODE

 

 

 

 

 

 

codes

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

<ESC> “&” <1> <1>

 

 

1B 26 01 01

n

 

 

 

STAR

n m1 m2 ... m48

 

 

m1 m2 ... m48

Define download character

48

 

 

 

 

 

 

 

 

 

 

 

 

<ESC> “&” “1” “1”

 

1B 26 31 31

n

 

 

 

 

 

 

 

n m1 m2 ... m48

 

 

m1 m2 ... m48

 

 

 

 

<ESC> “&” <1> <0>

n

 

1B 26 01 00 n

Delete a download character

49

 

 

 

 

 

 

 

 

 

<ESC> “&” “1” “0”

n

 

1B 26 31 30 n

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

<ESC> “%” “1”

 

1B 25 31

 

Enable download character set

49

 

 

<ESC> “%” <1>

 

1B 25 01

 

 

 

 

 

 

 

 

 

<ESC> “%” “0”

 

1B 25 30

 

Disable download character set

50

 

 

<ESC> “%” <0>

 

1B 25 00

 

 

 

 

 

 

 

 

 

Commands to Control Peripheral Devices

Control codes

Hexadecimal

Function

Page

codes

 

 

 

<ESC> <BEL> n1 n2

1B 07 n1 n2

Define drive pulse width for peripheral

51

 

 

device #1

 

 

 

<BEL>

07

Control peripheral device #1

51

 

 

 

 

<FS>

1C

Control peripheral device #1 immediately

51

 

 

 

 

<EM>

19

Control peripheral device #2 immediately

51

 

 

 

 

<SUB>

1A

Control peripheral device #2 immediately

51

 

 

 

 

Commands to Control Auto Cutter

Control codes

 

Hexadecimal

Function

Page

 

codes

 

 

 

 

 

 

 

 

 

<ESC> “d” “0”

1B 64 30

Full-cut command to the auto cutter

52

<ESC> “d” <0>

1B 64 00

 

 

 

 

 

 

 

<ESC> “d” “1”

1B 64 31

Partial-cut command to the auto cutter

52

<ESC> “d” <1>

1B 64 01

 

 

 

 

 

 

 

– 23 –

Image 27
Contents Thermal Printer TSP200 Series Programmer’s Manual Page Table of Contents Page Outline Memory Switch DIP SwitchDIP switch array OFF DIP switch #1 Factory settings of DIP switch 1 are all onSwitches Switch Operation Combined Switch OperationLED Asynchronous serial interface Interface SpecificationsDTR or XON/XOFF mode Selected by DIP SwitchInput RXD, DSR Output DTR, FAULT, TXD, RTSInterface Circuit RS-232C InterfaceConnectors and Signal Names RTS OUT Interface Connections DTR mode Bytes when the buffer size is set to 45 bytesData Protocol RXD OFF Line This mode is accessed when DIP switch 1-6 is set to OFF ON/X-OFF modeInterface Timing Parallel InterfaceParallel Interface Connector Mately 9μs to indicate that data read is Goes LOW to trigger data readIs 1 LOW is Printer outputs this pulse for approxiPeripheral Unit Drive Circuit Page Drive output 24V, max .0 a Drive circuit Recommended drive circuit is shownRecoverable Errors Power Lamp Flashing On-Line Automatic Recovery Power Lamp Flashing On-Line Lamp OnType of buzzer sound only Star mode P 50ms Pi 100ms Fatal Error Power Lamp Flashing On-Line Lamp FlashingStar Mode Command Summary Details of each command are shown in the following sectionsCommands to Select Characters Commands to Move the Print Position Commands to Set the Page FormatCommands to Control Auto Cutter Commands to Print Dot GraphicsCommands to Print Download Characters Commands to Control Peripheral DevicesCan Other CommandsSelect zero style Command SpecificationSelect bar code printing Dk RSJAN/EAN-13 Code Narrow wide Dots Code 39, NW-7, ITFIf the data is number of an odd digits, 0 is Digits maximum in modeValue of k is optional, and the maximum Value also differs according to the modesControl codes Character codesHEX HEX N1 n2 Cancels inverted printing Cancel highlight printingCancels highlight printing Cancel inverted printingSelect emphasized printing Set bottom margin Cancel bottom marginCancels the bottom margin Set page length in linesHEX Feed paper n lines This command is ignored when CR code is invalidLine feed Carriage returnIs at or below the last vertical tab stop Space setting for lines is not changedVertical tab Stop and moves the print position to the left marginOne time n/4 mm backfeed One time n/8 mm feedSet vertical tab stops HEX Print normal density graphics We will create the design below using a bit image Print high density graphics ESC ∙ ∙ ∙ Dot positionData Binary Hexa Decimal D1...d n1+n2*256*3 Print fine density graphicsDefine download character Delete a download character ESC HEX Escbel n1 Other than standard 200 ms pulse time and delay timeUsing 10ms units Control peripheral device #1 Define drive pulse width for peripheral device #1Or 1B Full-cut command to the auto cutterPartial-cut command to the auto cutter Or ESC dWhen the printer receives a DC1 code, the deselect mode is Cancel last line & Initialize printerError Set select modeSet memory switch N1n2n3n4 LF NULAlways Enquiry Always 0 DefaultInitialize printer ESC @Status byte Reset the printer hardwareControl CODES/ESC/POS Mode GS B Character Code Tables Star ModeCharacter table Normal Character table katakana Star Mode Character table IBM International Character Set ESC/POS Mode 0 PC437 USA, Standard Europe 1Katakana 2 PC850 Multilingual 3 PC860 Portuguese 4 PC863 Canadian-French 5 PC865 Nordic 255 Space International Character Set Automatic Cutter Memo Page Overseas Subsidiary Companies

RS232 specifications

Star Micronics RS232 is a versatile and widely used connectivity standard that enables seamless communication between peripheral devices and computers, particularly in point-of-sale (POS) environments. This technology is renowned for its robustness and reliability, making it a preferred choice for businesses in various sectors, including retail, hospitality, and healthcare.

One of the main features of Star Micronics RS232 is its ability to facilitate serial communication, allowing devices to exchange data one bit at a time over a single communication line. This enables simple and effective connections between devices like printers, cash registers, and barcode scanners. The standard typically operates at data rates ranging from 300 to 115200 bits per second, accommodating various application needs.

The RS232 interface is characterized by its 9-pin (DB9) or 25-pin (DB25) connectors, with the DB9 being the more commonly used in modern applications. It provides a straightforward plug-and-play experience, allowing devices to be easily connected and configured without extensive technical knowledge. This simplicity is particularly beneficial for retail staff who may not possess in-depth IT expertise.

Another significant aspect of RS232 technology is its point-to-point architecture. This means each connected device operates independently, enhancing overall system performance. Moreover, RS232 supports long-distance communication, with the ability to transmit data over cable lengths of up to 50 feet (15 meters), which is advantageous in larger retail settings.

In terms of compatibility, Star Micronics RS232 devices are designed to work seamlessly with various operating systems, including Windows, macOS, and Linux. This widespread compatibility ensures that businesses can continue to leverage their existing infrastructure without the need for costly upgrades.

Additionally, Star Micronics has incorporated advanced technologies into their RS232 products, such as built-in error checking and data control features. These enhancements help minimize data transmission errors and ensure that the information exchanged between devices remains accurate and reliable.

In summary, Star Micronics RS232 offers a robust set of features, including simple connectivity, point-to-point architecture, and compatibility with various systems. Its proven performance and reliability make it a trusted choice for businesses looking to enhance their operational efficiency and streamline their processes. As POS technology continues to evolve, the Star Micronics RS232 standard remains a foundational component for effective device communication.