Star Micronics RS232 manual We will create the design below using a bit image

Page 46

STAR MODE

EXAMPLE

 

We will create the design below using a bit image.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

m1

m2

m3

m4

m5

m6

m7

m8

m9

m10

m11

m12

m13

m14

m15

m16

m17

m18

m19

m20

m21

m22

m23

m24

m25

m26

m27

m28

m29

m30

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D7

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

First, since the volume of data is 30, n1 = (1E)H. If the data m1 ~ m30 is converted to hexadecimal, it appears as shown below.

Data

Binary

Hexa-

 

Data

Binary

Hexa-

 

Data

Binary

Hexa-

decimal

 

decimal

 

decimal

 

 

 

 

 

 

 

 

 

 

 

m1

00000001

01

 

m11

00111110

3E

 

m21

00111110

3E

m2

00011110

1E

 

m12

00000010

02

 

m22

00101110

2E

 

 

 

 

 

 

 

 

 

 

 

m3

00111110

3E

 

m13

00000010

02

 

m23

00101110

2E

 

 

 

 

 

 

 

 

 

 

 

m4

01011111

5F

 

m14

00111110

3E

 

m24

00111110

3E

m5

00011111

1F

 

m15

00111110

3E

 

m25

00101111

2F

 

 

 

 

 

 

 

 

 

 

 

m6

01011110

5E

 

m16

00101111

2F

 

m26

00101111

2F

 

 

 

 

 

 

 

 

 

 

 

m7

00011110

1E

 

m17

00101111

2F

 

m27

00111110

3E

m8

00111111

3F

 

m18

00111110

3E

 

m28

00111110

3E

 

 

 

 

 

 

 

 

 

 

 

m9

00101111

2F

 

m19

00101110

2E

 

m29

00000010

02

 

 

 

 

 

 

 

 

 

 

 

m10

00111110

3E

 

m20

00101110

2E

 

m30

00000010

02

Printing Sample

– 42 –

Image 46
Contents Thermal Printer TSP200 Series Programmer’s Manual Page Table of Contents Page Outline DIP Switch Memory SwitchDIP switch array DIP switch #1 Factory settings of DIP switch 1 are all on OFFSwitch Operation Combined Switch Operation SwitchesLED Switch Interface SpecificationsDTR or XON/XOFF mode Selected by DIP Asynchronous serial interfaceRS-232C Interface Output DTR, FAULT, TXD, RTSInterface Circuit Input RXD, DSRConnectors and Signal Names RTS OUT Interface Connections Bytes when the buffer size is set to 45 bytes DTR modeData Protocol RXD OFF Line ON/X-OFF mode This mode is accessed when DIP switch 1-6 is set to OFFParallel Interface Interface TimingParallel Interface Connector Printer outputs this pulse for approxi Goes LOW to trigger data readIs 1 LOW is Mately 9μs to indicate that data read isPeripheral Unit Drive Circuit Page Drive circuit Recommended drive circuit is shown Drive output 24V, max .0 aAutomatic Recovery Power Lamp Flashing On-Line Lamp On Recoverable Errors Power Lamp Flashing On-LineFatal Error Power Lamp Flashing On-Line Lamp Flashing Type of buzzer sound only Star mode P 50ms Pi 100msDetails of each command are shown in the following sections Star Mode Command SummaryCommands to Select Characters Commands to Set the Page Format Commands to Move the Print PositionCommands to Control Peripheral Devices Commands to Print Dot GraphicsCommands to Print Download Characters Commands to Control Auto CutterOther Commands CanCommand Specification Select zero styleDk RS Select bar code printingJAN/EAN-13 Code Code 39, NW-7, ITF Narrow wide DotsValue also differs according to the modes Digits maximum in modeValue of k is optional, and the maximum If the data is number of an odd digits, 0 isCharacter codes Control codesHEX HEX N1 n2 Cancel inverted printing Cancel highlight printingCancels highlight printing Cancels inverted printingSelect emphasized printing Set page length in lines Cancel bottom marginCancels the bottom margin Set bottom marginHEX Carriage return This command is ignored when CR code is invalidLine feed Feed paper n linesStop and moves the print position to the left margin Space setting for lines is not changedVertical tab Is at or below the last vertical tab stopOne time n/8 mm feed One time n/4 mm backfeedSet vertical tab stops HEX Print normal density graphics We will create the design below using a bit image Print high density graphics ESC Dot position ∙ ∙ ∙Data Binary Hexa Decimal Print fine density graphics D1...d n1+n2*256*3Define download character Delete a download character ESC HEX Define drive pulse width for peripheral device #1 Other than standard 200 ms pulse time and delay timeUsing 10ms units Control peripheral device #1 Escbel n1Or ESC d Full-cut command to the auto cutterPartial-cut command to the auto cutter Or 1BSet select mode Cancel last line & Initialize printerError When the printer receives a DC1 code, the deselect mode isN1n2n3n4 LF NUL Set memory switchAlways ESC @ Always 0 DefaultInitialize printer EnquiryReset the printer hardware Status byteControl CODES/ESC/POS Mode GS B Star Mode Character Code TablesCharacter 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.