Star Micronics RS232 manual Character codes, Control codes

Page 33

3) 2-character codes

Control codes

CODE

FORMAT

NUL

00H

%@ 25H

40H

SOH

01H

%A

25H

41H

STX

02H

%B

25H

42H

ETX

03H

%C

25H

43H

EOT

04H

%D

25H

44H

ENQ

05H

%E

25H

45H

ACK

06H

%F

25H

46H

BEL

07H

%G

25H

47H

BS

08H

%H

25H

48H

HT

09H

%I

25H

49H

LF

0AH

%J

25H

4AH

VT

0BH

%K 25H

4BH

FF

0CH

%L

25H

4CH

CR

0DH

%M 25H

4DH

SO

0EH

%N

25H

4EH

SI

0FH

%O

25H

4FH

DLE

10H

%P

25H

50H

DC1

11H

%Q

25H

51H

DC2

12H

%R

25H

52H

DC3

13H

%S

25H

53H

DC4

14H

%T

25H

54H

NAK

15H

%U 25H

55H

SYN

16H

%V

25H

56H

ETB

17H

%W 25H

57H

CAN

18H

%X

25H

58H

EM

19H

%Y 25H

59H

SUB

1AH

%Z

25H

5AH

ESC

1BH

%[

25H

5BH

FC

1CH

25H

5CH

GS

1DH

%]

25H

5DH

RS

1EH

%^

25H

5EH

US

1FH

%_

25H

5FH

DEL

7FH

%5

25H

35H

Special code

 

CODE

FORMAT

%

25H

%0 25H 30H

Function codes

CODE

FORMAT

 

 

FNC1

%1

25H

31H

 

FNC2

%2

25H

32H

 

FNC3

%3

25H

33H

 

FNC4

%4

25H

34H

MODE

 

Start codes

 

 

 

 

STAR

 

 

 

 

 

CODE

FORMAT

 

 

START A

%6

25H

36H

 

START B

%7

25H

37H

 

START C

%8

25H

38H

 

For CODE 128 only.

– 29 –

Image 33
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 DTR or XON/XOFF mode Selected by DIP Interface SpecificationsSwitch Asynchronous serial interfaceInterface Circuit Output DTR, FAULT, TXD, RTSRS-232C Interface Input RXD, DSRConnectors 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 Is 1 LOW is Goes LOW to trigger data readPrinter outputs this pulse for approxi Mately 9μs to indicate that data read isPeripheral 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 Print Download Characters Commands to Print Dot GraphicsCommands to Control Peripheral Devices Commands to Control Auto CutterCan Other CommandsSelect zero style Command SpecificationSelect bar code printing Dk RSJAN/EAN-13 Code Narrow wide Dots Code 39, NW-7, ITFValue of k is optional, and the maximum Digits maximum in modeValue also differs according to the modes If the data is number of an odd digits, 0 isControl codes Character codesHEX HEX N1 n2 Cancels highlight printing Cancel highlight printingCancel inverted printing Cancels inverted printingSelect emphasized printing Cancels the bottom margin Cancel bottom marginSet page length in lines Set bottom marginHEX Line feed This command is ignored when CR code is invalidCarriage return Feed paper n linesVertical tab Space setting for lines is not changedStop and moves the print position to the left margin Is at or below the last vertical tab stopOne 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 Using 10ms units Control peripheral device #1 Other than standard 200 ms pulse time and delay timeDefine drive pulse width for peripheral device #1 Escbel n1Partial-cut command to the auto cutter Full-cut command to the auto cutterOr ESC d Or 1BError Cancel last line & Initialize printerSet select mode When the printer receives a DC1 code, the deselect mode isSet memory switch N1n2n3n4 LF NULAlways Initialize printer Always 0 DefaultESC @ EnquiryStatus 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.