DIEBOLD NIXDORF P1200 Owner's manual

P1200 Standard POS Printer
Programming Manual
01750353820B

PROGRAMMING GUIDE
ii
Contents
General......................................................................................................................................1
1. Printer basic functions .....................................................................................................1
1.1 General.............................................................................................................................. 1
1.2 Internal Buffers ................................................................................................................... 2
1.2.1 RAM (Total Size: IRAM 1.5MB, DRAM 8MB).................................................................... 2
1.2.2 FlashMemory (TotalSize: 8MB)..................................................................................... 2
2. Summary of Option Interface..........................................................................................3
2.1 RS232C Interface................................................................................................................ 3
2.2 Ethernet Interface................................................................................................................ 3
2.2.1 TCP Socket................................................................................................................. 3
2.2.2 UDP Socket................................................................................................................. 3
2.2.3 SNMP......................................................................................................................... 3
2.2.4 DHCP......................................................................................................................... 4
2.2.5 HTTP.......................................................................................................................... 4
Emulation .................................................................................................................................5
3. Command Descriptions .................................................................................................13
3.1 PrinterFunction Command..................................................................................................13
3.1.1 Clear Printer...............................................................................................................13
3.1.2 Perform Full Knife Cut..................................................................................................13
3.1.3 Perform Partial Knife Cut ..............................................................................................13
3.1.4 Generate Tone............................................................................................................13
3.1.5 Initialize Printer............................................................................................................13
3.1.6 Select Sensors to Stop Printing......................................................................................13
3.1.7 Enable or Disable FeedButton......................................................................................14
3.1.8 Generate Pulse to Open Cash Drawer............................................................................14
3.1.9 Select Cut Mode andCutPaper.....................................................................................14
3.1.10 Print Configuration Form...............................................................................................15
3.1.11 Receipt shooting flush..................................................................................................15
3.1.12 Play melody................................................................................................................15
3.1.13 Switch the printer into Sleep-Mode.................................................................................17
3.2 VerticalPositioning andPrint Commands...............................................................................18
3.2.1 Print and Feed PaperOne Line......................................................................................18
3.2.2 Print and Carriage Return.............................................................................................18
3.2.3 Feed n Print Lines........................................................................................................18

PROGRAMMING GUIDE
iii
3.2.4 Feed n Dot Rows.........................................................................................................18
3.2.5 Add nExtra Dot Rows..................................................................................................18
3.2.6 Print..........................................................................................................................19
3.2.7 Set LineSpacingto 1/6 Inch..........................................................................................19
3.2.8 Set Line Spacing.........................................................................................................19
3.2.9 Print and Feed Paper...................................................................................................19
3.2.10 Print and Feed n Lines .................................................................................................19
3.2.11 Set Horizontal and Vertical Minimum Motion Units............................................................20
3.3 Horizontal Positioning Commands.........................................................................................21
3.3.1 Horizontal Tab.............................................................................................................21
3.3.2 Set Column.................................................................................................................21
3.3.3 Set Absolute Starting Position........................................................................................21
3.3.4 Set Horizontal Tabs .....................................................................................................21
3.3.5 Set Relative PrintPosition.............................................................................................21
3.3.6 Select Justification.......................................................................................................22
3.3.7 Set Left Margin............................................................................................................22
3.3.8 Set Print AreaWidth.....................................................................................................22
3.4 Print Characteristic Commands ............................................................................................24
3.4.1 Select Double-Wide Characters.....................................................................................24
3.4.2 Select Single-Wide Characters ......................................................................................24
3.4.3 Select 90 Degrees Counter-Clockwise Rotated Print.........................................................24
3.4.4 Select Pitch (ColumnWidth)..........................................................................................24
3.4.5 Set Character Right-Side Spacing..................................................................................24
3.4.6 Select Print Modes1......................................................................................................25
3.4.7 Select or Cancel Font Smoothing...................................................................................25
3.4.8 Select or Cancel User-defined CharacterSet...................................................................25
3.4.9 Define User-defined Characters.....................................................................................26
3.4.10 Select or Cancel Underline Mode...................................................................................27
3.4.11 Copy Character Set from ROM to RAM...........................................................................27
3.4.12 Cancel User-defined Characters....................................................................................27
3.4.13 Select or Cancel Emphasized Mode...............................................................................27
3.4.14 Select Double Strike.....................................................................................................27
3.4.15 Select or Cancel Italic Print...........................................................................................28
3.4.16 Select International CharacterSet (DNEmulation)............................................................28
3.4.17 Select International CharacterSet.(ESCPOS emulation)....................................................29
3.4.18 Select character code table(ESCPOS emulation) .............................................................30
3.4.19 Select or Cancel Unicode(UTF-16) Mode........................................................................31
3.4.20 Select or Cancel 90 Degrees Clockwise Rotated Print.......................................................31
3.4.21 Select Print Color.........................................................................................................31
3.4.22 Select or Cancel Upside & Down Printing Mode...............................................................32

PROGRAMMING GUIDE
iv
3.4.23 Select CharacterSize...................................................................................................32
3.4.24 Select or CancelWhite/Black Reverse Printing Mode........................................................33
3.4.25 Selects Superscript or Subscript Modes..........................................................................33
3.5 Graphics Commands ..........................................................................................................34
3.5.1 Print RasterGraphics...................................................................................................34
3.5.2 Print RasterColor Graphics...........................................................................................34
3.5.3 Define BitmapFile as Logo...........................................................................................34
3.5.4 Select Bit ImageMode.................................................................................................35
3.5.5 Select bit-image mode - Line Graphics............................................................................36
3.5.6 Turn on/off TIFF compression........................................................................................37
3.5.7 Print Advanced RasterGraphics....................................................................................37
3.5.8 Select Single Density Graphics......................................................................................38
3.5.9 Select Double-Density Graphics.....................................................................................38
3.5.10 Print raster bit image....................................................................................................38
3.5.11 Select theCurrent Logo................................................................................................38
3.5.12 Define Bit Image as Logo..............................................................................................40
3.5.13 Print Current Logo.......................................................................................................41
3.5.14 Print Logo...................................................................................................................41
3.5.15 Define Logo in Flash Memory........................................................................................41
3.5.16 Convert 6 Dots/mmBitmap to 8 Dots/mm........................................................................42
3.5.17 Transmit entire capacity of User-defined logo in Flash Memory...........................................42
3.5.18 Transmit Remaining Size for User-defined Logo Area in Flash Memory ...............................42
3.5.19 Transmit Remaining Size for User-defined Logo Area in RAM............................................43
3.5.20 Transmit the key code for User-defined Logo in FlashMemory...........................................43
3.5.21 Delete all Logo in Flash Memory....................................................................................44
3.5.22 Delete User-defined Logo inFlashMemory.....................................................................44
3.5.23 Define Logo in Flash Memory by the keycode.................................................................44
3.5.24 Print User-defined Logo in Flash Memory........................................................................46
3.5.25 Transmit the key code for User-defined Logo in RAM........................................................46
3.5.26 Delete all User-defined Logo in RAM..............................................................................47
3.5.27 Delete User-defined Logo inRAM..................................................................................48
3.5.28 Define Logo in RAM bythe key code..............................................................................48
3.5.29 Print User-defined Logoin RAM.....................................................................................49
3.5.30 EnableWatermark printing............................................................................................49
3.5.31 Transmits set values for Watermark................................................................................51
3.5.32 Transmit Remaining Size for User-defined Logo Area.......................................................51
3.5.33 Store the graphics data in the print buffer ........................................................................52
3.5.34 Print the graphics data in the print buffer .........................................................................52
3.5.35 Download logo image...................................................................................................53
3.5.36 Cancel set values for top/bottom logo printing..................................................................54

PROGRAMMING GUIDE
v
3.5.37 Transmits set values for top/bottom logo printing..............................................................54
3.5.38 Set top logo printing.....................................................................................................56
3.5.39 Set bottom logo printing................................................................................................56
3.5.40 Make extended settings for top/bottom logo printing..........................................................57
3.5.41 Enable/disable top/bottom logo printing...........................................................................57
3.5.42 Define Windows BMP graphics data in Flash Memory.......................................................58
3.5.43 Define Windows BMP graphics data in RAM....................................................................58
3.6 Status Commands..............................................................................................................60
3.6.1 Transmit Peripheral Device Status .................................................................................61
3.6.2 TransmitPrinterStatus.................................................................................................61
3.6.3 TransmitPrinterID.......................................................................................................61
3.6.4 Transmit PrinterID, Remote Diagnostics Extension..........................................................64
3.6.5 Enable/disable Automatic Status Back (ASB)...................................................................65
3.6.6 Initialize maintenance counter........................................................................................67
3.6.7 Transmit maintenancecounter.......................................................................................69
3.6.8 TransmitStatus...........................................................................................................70
3.6.9 Send Printer Firmware Version......................................................................................71
3.6.10 Real time commands disabled.......................................................................................71
3.6.11 Execute HeadFailure Detection.....................................................................................72
3.6.12 Get Detail of Head Failure Detection...............................................................................72
3.6.13 Setcontrol point..........................................................................................................72
3.7 Real Time Commands.........................................................................................................74
3.7.1 Real Time Status Transmission.....................................................................................74
3.7.2 Real Time Request to Printer.........................................................................................76
3.7.3 Enable/disable real-time command.................................................................................76
3.7.4 Generate pulse in real-time...........................................................................................77
3.7.5 Execute power-offsequence.........................................................................................77
3.7.6 Control Buzzer(Internal buzzer).....................................................................................78
3.7.7 Select peripheral device................................................................................................78
3.7.8 Clear buffer(s).............................................................................................................78
3.7.9 Extended Real-Time Status Transmission.......................................................................79
3.7.10 Real Time Printer Status Transmission...........................................................................82
3.7.11 LED Control Request...................................................................................................82
3.7.12 Real-Time Printer Maintenance......................................................................................83
3.8 Bar Code Commands..........................................................................................................85
3.8.1 Select PrintingPositionof HRI Characters.......................................................................85
3.8.2 Select Pitch for HRI Characters .....................................................................................85
3.8.3 Select BarCode Height................................................................................................85
3.8.4 Print Bar Code............................................................................................................85
3.8.5 PDF417: Set the rowheight..........................................................................................91

PROGRAMMING GUIDE
vi
3.8.6 PDF417: Set the error correctionlevel ............................................................................91
3.8.7 PDF417: Selectthe options...........................................................................................92
3.8.8 PDF417: Store the data inthe symbol storage area..........................................................92
3.8.9 PDF417: Printthe symbol data in the symbol storage area.................................................92
3.8.10 PDF417: Transmit the size information ofthe symbol data in the symbol storage area ...........93
3.8.11 QR Code:Select the model...........................................................................................93
3.8.12 QR Code:Set thesize ofmodule...................................................................................93
3.8.13 QR Code:Select the error correction level.......................................................................94
3.8.14 QR Code:Select encode modes....................................................................................94
3.8.15 QR Code:Store the data in thesymbolstorage area.........................................................95
3.8.16 QR Code:Print thesymbol data in thesymbolstorage area...............................................95
3.8.17 QR Code: Transmit thesize information ofthe symbol data in the symbol storage area..........95
3.8.18 2-dimensional GS1 DataBar: Set the module width...........................................................96
3.8.19 2-dimensional GS1 DataBar: Set themaximum width of GS1 DataBar Expanded Stacked......96
3.8.20 2-dimensional GS1 DataBar: Store data in the symbol storage area....................................97
3.8.21 2-dimensional GS1 DataBar: Print data in the symbol storage area.....................................97
3.8.22 2-dimensional GS1 DataBar: Transmitsize information ofthe symbol data in the symbol storage
area 98
3.8.23 Select PDF 417 parameters ..........................................................................................98
3.8.24 DataMatrix: Set thesymbol type, number ofcolumns, numberof rows...............................100
3.8.25 DataMatrix: Set the size of the module..........................................................................102
3.8.26 DataMatrix: Store the data in the symbol storage area.....................................................102
3.8.27 DataMatrix: Print the symbol data in the symbol storage area...........................................103
3.8.28 DataMatrix: Transmit the size information of thesymbol data in thesymbolstorage area......104
3.9 Page Mode Commands.....................................................................................................105
3.9.1 Print and Return to Standard Mode..............................................................................105
3.9.2 Print and feed marked paperto print starting position......................................................105
3.9.3 Cancel Print Data in Page Mode..................................................................................105
3.9.4 Print Data in Page Mode.............................................................................................106
3.9.5 Select Page Mode.....................................................................................................106
3.9.6 Select Standard Mode................................................................................................106
3.9.7 Select Print Direction in PageMode..............................................................................106
3.9.8 Set PrintingArea in Page Mode...................................................................................107
3.9.9 Set Absolute Vertical Print Position in Page Mode..........................................................107
3.9.10 Set Relative VerticalPrint Position in PageMode ...........................................................108
3.10 Macro Commands............................................................................................................109
3.10.1 Start and Terminate Macro Definition............................................................................109
3.10.2 Execute Macro..........................................................................................................109
3.11 User Data Storage Commands...........................................................................................110
3.11.1 Write User Defined Data.............................................................................................110

PROGRAMMING GUIDE
vii
3.11.2 Read UserDefined Data.............................................................................................110
3.11.3 Select Memory Type for User Defined Data...................................................................110
3.11.4 FlashMemory Allocation for User-defined Storage Area..................................................111
3.11.5 Erase User-defined storage area in FlashMemory..........................................................111
3.11.6 PrinterSetting Change...............................................................................................113
3.11.7 Read PrinterSetting...................................................................................................120
3.11.8 LED Configuration.....................................................................................................120
3.11.9 Read LEDConfiguration.............................................................................................121
3.11.10 Change into the usersetting mode...............................................................................121
3.11.11 End the user setting mode session...............................................................................122
3.11.12 Changes the memoryswitch........................................................................................122
3.11.13 Transmits the host the value for the memoryswitch........................................................124
3.11.14 Set thecustomized setting values ................................................................................124
3.11.15 Transmit the customized setting values.........................................................................131
3.11.16 Set theconfiguration item for theserial interface.............................................................133
3.11.17 Transmit the configuration item for theserial interface.....................................................134
3.11.18 Set Conditions for USBcommunication.........................................................................134
3.11.19 Transmitconditions for USBcommunication..................................................................134
3.11.20 Set Serial number......................................................................................................136
3.11.21 Set Production date...................................................................................................136
3.11.22 Sets communicationconditionof Ethernet interface. .......................................................136
3.11.23 Transmit communication condition of Ethernet interface...................................................137
3.11.24 Set adjustment value(s)..............................................................................................138
3.11.25 Set Paper type..........................................................................................................139
3.11.26 Text strike-through mode............................................................................................139
3.11.27 Download papertype description.................................................................................140
3.11.28 Return paper type description......................................................................................140
3.11.29 Set temporarymax target speed..................................................................................142
3.12 Asian charactercommand.................................................................................................143
3.12.1 Select printmodes for Asian characters ........................................................................143
3.12.2 Select Asian charactermode.......................................................................................143
3.12.3 Turn underline mode ON/OFF in Asian mode.................................................................143
3.12.4 Cancel Asiancharactermode......................................................................................143
3.12.5 Define user-defined Asian characters ...........................................................................144
3.12.6 Select Asian charactercodesystem.............................................................................144
3.12.7 Set Asiancharacterspacing........................................................................................145
3.12.8 Set quadruple mode ON/OFF in Asian mode.................................................................145
3.13 IPL(Initial Program Loader) Command.................................................................................146
3.13.1 Switch to Flash Download Mode..................................................................................146
3.13.2 Select Flash Memory Sector to Download .....................................................................146

PROGRAMMING GUIDE
viii
3.13.3 Get Firmware Sector CRC..........................................................................................146
3.13.4 Return IPL Firmware CRC..........................................................................................146
3.13.5 Erase all Flash Memory..............................................................................................147
3.13.6 Return Main Firmware CRC........................................................................................147
3.13.7 EraseSelected Flash Sector.......................................................................................147
3.13.8 Download to Active Flash Sector..................................................................................147
3.13.9 Reboot the Printer......................................................................................................147
3.14 Flash Download Commands in Main Firmware......................................................................149
3.14.1 Flash Firmware.........................................................................................................149
3.14.2 Activate Firmware in the alternative area.......................................................................149
3.15 Diagnostic Commands......................................................................................................151
3.15.1 Execute test print.......................................................................................................151
3.15.2 Dot check pattern test ................................................................................................151
3.15.3 Sensor Calibration.....................................................................................................152
3.15.4 Retrieve Detail Log....................................................................................................153
4. Appendix 1 Character sets..........................................................................................154
4.1 Charactercode table page 0 (PC437 : USA,Standard Europe)................................................154
4.2 Charactercode table Page 1 (PC850: Multilingual Latin I):......................................................154
4.3 Charactercode table Page 2 (PC852: Latin II): .....................................................................155
4.4 Charactercode table Page 3 (PC860: Portuguese):...............................................................155
4.5 Charactercode table Page 4 (PC863: Canadian French):.......................................................156
4.6 Charactercode table Page 5 (PC865: Nordic):......................................................................156
4.7 Charactercode table Page 6 (PC858: Multilingual I + Euro):...................................................157
4.8 Charactercode table Page 7 (PC866: Russian): ...................................................................157
4.9 Charactercode table Page 8 (WPC1252: Latin I):..................................................................158
4.10 Character code table Page 9 (PC862: Hebrew):....................................................................158
4.11 Character code table Page 10 (PC737: Greek): ....................................................................159
4.12 Character code table Page 11 (PC874: Thai):.......................................................................159
4.13 Character code table Page 12 (PC857: Turkish):...................................................................160
4.14 Character code table Page 13 (WPC1251: Cyrillic):...............................................................160
4.15 Character code table Page 14 (WPC1255: Hebrew):..............................................................161
4.16 Character code table Page 15 ((KZ_1048: Kazakh): ..............................................................161
4.17 Character code table Page 16 (WPC1254: Turkish):..............................................................162
4.18 Character code table Page 17 (WPC1250: Central Europe): ...................................................162
4.19 Character code table Page 18 (WPC28591: Latin 1):.............................................................163

PROGRAMMING GUIDE
ix
4.20 Character code table Page 19 (WPC28592: Latin 2):.............................................................163
4.21 Character code table Page 20 (WPC28599: Turkish): ............................................................164
4.22 Character code table Page 21 (WPC28605: Latin 9):.............................................................164
4.23 Character code table Page 22 (PC864: Arabic):....................................................................165
4.24 Character code table Page 23 (PC720: Arabic):....................................................................165
4.25 Character code table Page 24 (WPC1256: Arabic): ...............................................................166
4.26 Character code table Page 25 (WPC28596: Arabic):..............................................................166
4.27 Character code table Page 26 (KATAKANA: Asia):................................................................167
4.28 Character code table Page 27 (PC775: Baltic): .....................................................................167
4.29 Character code table Page 28 (WPC1257: Baltic):.................................................................168
4.30 Character code table Page 29 (WPC28594: Baltic):...............................................................168
4.31 Character code table Page 30 (WPC1253: Greek):................................................................169
5. Appendix 2 Printable area...........................................................................................170
6. Appendix 3 Eco function..............................................................................................171
6.1 General...........................................................................................................................171
6.2 Paper reduction................................................................................................................171
6.2.1 Remove Upper Space................................................................................................171
6.2.2 Remove Lower Space................................................................................................172
6.2.3 Line Space Reduction................................................................................................172
6.2.4 Line Feed Reduction..................................................................................................173
6.2.5 Barcode Height Reduction..........................................................................................173
6.2.6 Registered Logo Removal...........................................................................................174
6.2.7 Force Single High Font...............................................................................................174
6.2.8 Remove linescontaining onlyspaces ...........................................................................174
6.3 Power reduction...............................................................................................................175
6.3.1 Bold Font Removal ....................................................................................................175
6.3.2 Force Single Wide Font..............................................................................................175
6.3.3 No White/Black Reverse Printing..................................................................................176
6.3.4 Stand-by Mode..........................................................................................................176
6.3.5 Power OffMode........................................................................................................176
6.3.6 Speed Reduction.......................................................................................................176
6.3.7 Density Reduction......................................................................................................176
6.4 Affected commands..........................................................................................................177
7. Appendix 4 Thai font support ......................................................................................178
7.1 Outline............................................................................................................................178

PROGRAMMING GUIDE
x
7.2 Thai characterconfiguration...............................................................................................178
7.3 Thai characterdata procedure............................................................................................179
7.4 The notes for this function..................................................................................................179
8. Appendix 5 Paper low detection .................................................................................181
9. Appendix 6 Barcode Information.................................................................................182
9.1 GS k Print Barcode...........................................................................................................182
9.2 GS (k Print 2-dimensional Barcode.....................................................................................192
Diagnostics ..........................................................................................................................194
10. Offline Diagnostic.........................................................................................................194
10.1 Offline Printer Configuration...............................................................................................194
10.2 P1200 Diagnostic Functions...............................................................................................207
10.2.1 SelftestPrintout.........................................................................................................207
10.2.2 Sensor Test..............................................................................................................210
10.2.3 BlackMark test..........................................................................................................210
Printer Errors.......................................................................................................................211
11. Error Detection.............................................................................................................211
12. LED Indication..............................................................................................................213
11.1 LED Pattern in Auto Mode.................................................................................................213
11.2 LED Pattern in User Mode.................................................................................................214
Ethernet................................................................................................................................215
13. Web setting page.........................................................................................................215

PROGRAMMING GUIDE
1
General
1. Printer basic functions
1.1 General
Resolution
203.2 dpi x 203.2 dpi (8 dots/mm)
Interface (communicate with a
system)
USB Type-B 2.0 High Speed / Full Speed
Printerclass
EmulationMode
DN POS receipt
ESC/POS
Character set
SBCS
CP437 (DOS
USA),CP720(Arabic),CP737(Greek),CP775(Baltic),CP850
(DOS Latin 1), CP852 (DOS Latin 2), CP857(Turkish), CP858
(DOS Latin 1 + Euro),
CP860 (DOS Portuguese), CP862 (DOSIsrael),
CP863 (DOS Fench Canadian), CP864 (DOS Arabic),
CP865 (DOS Nordic), CP866 (DOS Russian),
CP874 (ISO Thai),CP1250(Windows Central Europe) ,
CP1251(Windows Cyrillic),CP1252 (WindowsLatin 1),
CP1253(Windows Greek),CP1254(Windows
Turkish),CP1255(Windows Hebrew), CP1256(Windows
Arabic),CP1257(WindowsLatin),CP28591(ISO Latin1)
CP28592(ISO Latin 2),CP28594(ISO Baltic),CP28596(ISO
Arabic),CP28599(ISO Turkish),CP28605(ISO Latin9),
Katakana, KZ1048(Kazakh)
DBCS
932 (Japanese), 936 (SimplifiedChinese), 949(Korean),
950 (Traditional Chinese), GB180301(Chinese),
Unicode support (UTF-16)
Receipt Printing Speed
Maximum 14 IPS (Inch PerSecond) / Minimum1.5IPS
Printing speed is defined according toprint density.
Character attribute
Double width , Double high ,rotate , underline, scalable, bold,
superscript, italic, subscript, inverse image characters
Character Cell Size
- SBCS Font A
- SBCS Font B
- DBCS
13(H) X 24(V)dots
10(H) X 24(V)dots
24(H) X 24(V)dots
Column Width
- SBCS Font A
- SBCS Font B
- DBCS
80mm Paper width
44 columns
57 columns
24 columns
58mm Paper width
31 columns
40 columns
17 columns
Printable Width
- SBCS Font A
- SBCS Font B
- DBCS
- Graphics
80mm Paper width
572 dots (71.57 mm)
570 dots (71.25 mm)
576 dots (72.07 mm)
576 dots (72.07 mm)
58mm Paper width
403 dots (50.37 mm)
400 dots (50.00 mm)
408 dots (51.00 mm)
408 dots (51.00 mm)
Print line height
Minimum 24 dots (8.46 LPI / Standard font mode)
1
CP GB18030 (Chinese font):
Double Byte : 80<First Byte<FF, 40<Second Byte<FF.
FourByte:
If First Byte = 81, Second byte =39, EE<= Third Byte <= FE, 30 <=Fourth Byte <= 39.
If First Byte = 82, 30 <= Second byte <=35, 81<= Third Byte <= FE, 30 <= Fourth Byte <= 39.

PROGRAMMING GUIDE
2
1.2 Internal Buffers
1.2.1 RAM (Total Size:IRAM 1.5MB, DRAM 8MB)
Interface Receive Data Buffer 64 KB
Interface Send Data Buffer 1 KB
User-defined Logo Buffer 256 KB
Macro Buffer 2 KB
1.2.2 Flash Memory (Total Size: 8MB)
User-defined Logo area 256 KB
User-defined Character area 64 KB
User-defined Data area 64 KB
Macro area 2 KB

PROGRAMMING GUIDE
3
2. Summary of Option Interface
The printerinitially has USBtype-B interface as theprimary interface.
It additionally allows an operator to install either RS232C interface card or Ethernet interface card as an option.
In order to make the option interface card available, the USB interface cable hasto be disconnected.
It is because the option interface card isnot activated ifUSB connection is established with a system. If USB
interface is disconnected in this condition, the printer is automatically reset and the option interface card
becomes available. In addition to this, ifUSB type-B is connected while the option interface is communicating
with a system,the printeris reset and itscontrol ischanged to USB.
2.1 RS232C Interface
Protocol
DTR / DSR, XON / XOFF
Data Length
8, 7 bits
Stop Bit
1, 2 bits
Parity
Non, Even, Odd
Baud Rate
9600, 19200, 38400, 57600, 115200 bps
2.2 Ethernet Interface
Application Layer
TCP Socket, UDP Socket,SNMP,DHCP, HTTP
Transport Layer
TCP, UDP
Network Layer
IP, ICMP, ARP
Data Link Layer
CSMA/CD
Physical Layer
10BASE-t, 100BASE-TX(IEEE802.3 Conforming)
Auto negotiation 10/100Mbps Full/Half Duplex
2.2.1 TCP Socket
It transfers printing commands and data, several status commandsand those responses by direct
socket communications.
Port number
9100 (Default)
Maximum simultaneous sessions
1
Maximum simultaneous connections
6
Time out
120 seconds (Default)
2.2.2 UDP Socket
It transfers real time commandsand those responses.
Port number
3000 (Default)
2.2.3 SNMP
SNMP is used by SNMP manager to acquire theprinterinformation and status from SNMP agent
(Printer).
SNMP version
SNMP v1 (RFC1157) compliant
Transport protocol
UDP/IP
MIB support
Part ofMIB-II (RFC1213)
Part ofHOSTResource MIB
Part ofPrinterMIB
PDUsupport
Get Request
Get Next Request
Get Response
Trap
Port numberofServer
161
Port numberforTrap transmit
162

PROGRAMMING GUIDE
4
2.2.4 DHCP
DHCP is used by DHCPclient (Printer) to acquire IP address, Subnet mask and Gateway address from
DHCP server.
Transport protocol
UDP/IP
2.2.5 HTTP
HTTP is used to configure the network setting by WEB Provision.
HTTP version
V1.1
Transport protocol
TCP/IP
Items to be able to configure
IP address
Subnet mask
Default Gateway
DHCP
DHCP address
TCP max. connection
Ethernet Physical LAN Speed
LAN Real Time Command Protocol
Link Down Timeout
TCP idle Timeout
TCP Port number
UDP Port number
SNMP Trap 1
SNMP Trap 2
SNMP Community(R/W)
SNMP Trap 1 Community
SNMP Trap 2 Community
SNMP Trap 1 IP Address
SNMP Trap 2 IP Address

PROGRAMMING GUIDE
5
Emulation
The printer supports the following commands.
Command sequence
Function
DN
ESC/
POS
Printer Function Commands
DLE
10H
Clear Printer
Y
Y
EM or ESC i
19H or 1BH 69H
Perform Full Knife Cut
Y
Y
SUB or ESC m
1AH or 1BH 6DH
Perform Partial Knife Cut
Y
Y
ESC BEL
1BH 07H
Generate Tone
Y
Y
ESC @
1BH 40H
Initialize Printer
Y
Y
ESC c 4
1BH 63H 34H
Select Sensors to Stop Printing
Y
Y
ESC c 5
1BH 63H 35H
Enable or Disable Feed Button
Y
Y
ESC p
1BH 70H
Generate Pulse to Open Cash Drawer
Y
Y
GS V
1DH 56H
Select Cut Mode and Cut Paper
Y
Y
US t
1FH 74H
Print Configuration Form
Y
Y
ESC w n 7
1BH 77H 6BH 37H
Receipt shooting flush
Y
Y
ESC w n 8
1BH 77H 6BH 38H
Play melody
Y
Y
ESC w n c
1BH 77H 6BH 63H
Switchthe printer into Sleep-Mode.
Y
Y
Vertical Positioning and Print Commands
LF
0AH
Print and Feed Paper One Line
Y
Y
CR
0DH
Print and Carriage Return
Y
Y
DC4
14H
Feed n Print Lines
Y
Y
NAK
15H
Feed n Dot Rows
Y
Y
SYN
16H
Add n Extra Dot Rows
Y
Y
ETB
17H
Print
Y
Y
ESC 2
1BH 32H
Set Line Spacing to 1/6 Inch
Y
Y
ESC 3
1BH 33H
Set Line Spacing
Y
Y
ESC J
1BH 4AH
Print and Feed Paper
Y
Y
ESC d
1BH 64H
Print and Feed n Lines
Y
Y
GS P
1DH 50H
Set Horizontal and Vertical Minimum Motion Units
Y
Y
Horizontal Positioning Commands
HT
09H
Horizontal Tab
Y
Y
ESC DC4
1BH 14H
Set Column
Y
N
ESC $
1BH 24H
Set Absolute Starting Position
Y
Y
ESC D
1BH 44H
Set Horizontal Tabs
Y
Y
ESC \
1BH 5CH
Set Relative Print Position
Y
Y
ESC a
1BH 61H
Select Justification
Y
Y
GS L
1DH 4CH
Set Left Margin
Y
Y
GS W
1DH 57H
Set Print Area Width
Y
Y

PROGRAMMING GUIDE
6
Command sequence
Function
DN
ESC/
POS
Print Characteristic Commands
DC2
12H
Select Double-Wide Characters
Y
Y
DC3
13H
Select Single-Wide Characters
Y
Y
ESC DC2
1BH 12H
Select 90 Degrees Counter-Clockw ise Rotated Print
Y
N
ESC SYN
1BH 16H
Select Pitch (Column Width)
Y
N
ESC SP
1BH 20H
Set Character Right-Side Spacing
Y
Y
ESC !
1BH 21H
Select Print Modes
Y
Y
ESC %
1BH 25H
Select or Cancel User-defined Character Set
Y
Y
ESC &
1BH 26H
Define User-defined Characters
Y
Y
ESC -
1BH 2DH
Select or Cancel Underline Mode
Y
Y
ESC :
1BH 3AH
Copy Character Set from ROM to RAM
Y
N
ESC ?
1BH 3FH
Cancel User-defined Characters
Y
Y
ESC E
1BH 45H
Select or Cancel Emphasized Mode
Y
Y
ESC G
1BH 47H
Select Double Strike
Y
Y
ESC I
1BH 49H
Select or Cancel Italic Print
Y
Y
ESC R or ESC t
1BH 52H or 1BH 74H
Select International Character Set
Y
Y
ESC V
1BH 56H
Selector Cancel 90 Degrees ClockwiseRotated Print
Y
Y
ESC r
1BH 72H
Select Print Color
Y
N
ESC {
1BH 7BH
Select or Cancel Upside & Down Printing Mode
Y
Y
GS !
1DH 21H
Select Character Size
Y
Y
GS B
1DH 42H
Select or Cancel White/Black Reverse Printing Mode
Y
Y
GS b
1DH 62H
Select or Cancel Font Smoothing
Y
Y
US ENQ
1FH 05H
Selects Superscript or Subscript Modes
Y
N
ESC +
1BH 2BH
Select or Cancel Unicode(UTF-16) Mode
Y
Y
Asian Character Command
FS !
1CH 21H
Select print modes for Asian characters
Y
Y
FS &
1CH 26H
Select Asian character mode
Y
Y
FS -
1CH 2DH
Turn underline mode ON/OFF in Asian mode
Y
Y
FS .
1CH 2EH
Cancel Asian character mode
Y
Y
FS 2
1CH 32H
Define user-defined Asian characters
Y
Y
FS C
1CH 43H
Select Asian character code system
Y
Y
FS S
1CH 53H
Set Asian character spacing
Y
Y
FS W
1CH 57H
Set quadruple mode ON/OFF in Asian mode
Y
Y

PROGRAMMING GUIDE
7
Command sequence
Function
DN
ESC/
POS
Graphics Commands
DC1 or GS 0x82
11H or 1DH 82H
Print Raster Graphics
Y
N
GS 0x83
1DH 83H
Print Color Raster Graphics
Y
N
ESC “BMP file”
1BH “BMP file”
Define Bitmap File as Logo
Y
N
ESC *
1BH 2AH
Select Bit Image Mode
Y
Y
ESC * 1
1BH 2AH 31H
Select bit-image mode - Line Graphics
Y
N
ESC * b
1BH 2AH 62H
Turn on/off TIFF compression
Y
N
ESC .
1BH 2EH
Print Advanced Raster Graphics
Y
N
ESC K
1BH 4BH
Select Single Density Graphics
Y
N
ESC Y
1BH 59H
Select Double-Density Graphics
Y
N
GS #
1DH 23H
Select the Current Logo
Y
Y
GS *
1DH 2AH
Define Bit Image as Logo
Y
Y
GS /
1DH 2FH
Print Current Logo
Y
Y
FS p
1CH 70H
Print Logo
N
Y
FS q
1CH 71H
Define Logo in Flash Memory
N
Y
US EOT
1FH 04H
Convert 6 Dots/mm Bitmap to 8 Dots/mm
Y
N
GS (L
1DH 28H 4CH
Transmit entire capacity of User-defined logo in Flash
Memory
Y
Y
GS (L
1DH 28H 4CH
Transmit Remaining Size for User-defined Logo Area
in Flash Memory
Y
Y
GS (L
1DH 28H 4CH
Transmit the key code for User-defined Logo in Flash
Memory
Y
Y
GS (L
1DH 28H 4CH
Delete all Logo in Flash Memory
Y
Y
GS (L
1DH 28H 4CH
Delete User-defined Logo in Flash Memory
Y
Y
GS 8L
1DH 38H 4CH
Define Logo in Flash Memory by the key code
Y
Y
GS (L
1DH 28H 4CH
Print User-defined Logo in Flash Memory
Y
Y
GS (L
1DH 28H 4CH
Delete User-defined Logo in RAM
Y
Y
GS 8L
1DH 38H 4CH
Define Logo in RAM by the key code
Y
Y
GS (L
1DH 28H 4CH
Print User-defined Logo in RAM
Y
Y
GS (L
1DH 28H 4CH
Enable Watermark printing
Y
Y
GS (L
1DH 28H 4CH
Transmit Remaining Size for User-defined Logo
Area
Y
Y
GS (L
1DH 38H 4CH
Store the graphics data in the print buffer
Y
Y
GS (L
1DH 28H 4CH
Print the graphics data in the print buffer
Y
Y
GS 0x84
1DH 84H
Download logo image
Y
N
FS ( E
1CH 28H 45H
Cancel set values for top/bottom logo printing
Y
Y
FS ( E
1CH 28H 45H
Transmits set values for top/bottom logo printing
Y
Y
FS ( E
1CH 28H 45H
Set top logo printing
Y
Y
FS ( E
1CH 28H 45H
Set bottom logo printing
Y
Y
FS ( E
1CH 28H 45H
Make extended settings for top/bottom logo printing
Y
Y
FS ( E
1CH 28H 45H
Enable/disable top/bottom logo printing
Y
Y
GS D
1DH 44H
Define Windows BMP graphics data in Flash Memory
Y
Y

PROGRAMMING GUIDE
8
GS D
1DH 44H
Define Windows BMP graphics data in RAM
Y
Y
Status Commands (Batch Mode)
ESC u NULL
1BH 75H 00H
Transmit Peripheral Device Status
Y
Y
ESC v
1BH 76H
Transmit Printer Status
Y
Y
GS l
1DH 49H
Transmit Printer ID
Y
Y
GS I @
1DH 49H 40H
Error! Reference source not found.
Y
Y
GS g 0
1DH 67H 30H
Initialize maintenance counter
Y
Y
GS g 2
1DH 67H 32H
Transmit maintenance counter
Y
Y
GS r
1DH 72H
Transmit Status
Y
Y
US V
1FH 56H
Send Printer Firmware Version
Y
N
US z
1FH 7AH
Real time commands disabled
Y
N
US SUB 02
1FH 1AH 02H
Execute Head Failure Detection
Y
Y
US SUB 01
1FH 1AH 01H
Get Detail of Head Failure Detection
Y
Y
ESC [ ! t
1BH 5BH 21H 74H
Set control point
Y
N
Status Commands (Real Time)
GS EOT or
DLE EOT
1DH 04H or
10H 04H
Real Time Status Transmission
Y
Y
GS ETX or
DLE ENQ
1DH 03H or
10H 05H
Real Time Request to Printer
Y
Y
DLE DC4
10H 14H
Generate pulse in real-time
N
Y
DLE DC4 or
DLE SO
10H 14H or 10H 0EH
Execute power-off sequence
Y
Y
DLE DC4
10H 14H
Control Buzzer (Internal buzzer)
N
Y
ESC =
1BH 3DH
Select peripheral device
Y
Y
DLE DC4
10H 14H
Clear buffer(s)
N
Y
DLE EM
10H 19H
Extended Real-Time Status Transmission
Y
Y
GS ENQ
1DH 05H
Real Time Printer Status Transmission
Y
Y
GS z
1DH 7AH
LED Control Request
Y
Y
GS SUB
1DH 1AH
Real-Time Printer Maintenance
Y
Y

PROGRAMMING GUIDE
9
Command sequence
Function
DN
ESC/
POS
ASB
GS a
1DH 61H
Enable/disable Automatic Status Back (ASB)
Y
Y
Barcode Commands
GS H
1DH 48H
Select Printing Position of HRI Characters
Y
Y
GS f
1DH 66H
Select Pitch for HRI Characters
Y
Y
GS h
1DH 68H
Select Bar Code Height
Y
Y
GS k
1DH 6BH
Print Bar Code
Y
Y
GS k
1DH 6BH
Print Bar Code (2D)
Y
N
GS w
1DH 77H
Error! Reference source not found.
Y
Y
GS ( k pL pH 30H
41H
1DH 28H 6BH pL pH
30H 41H
PDF417: Set the number of columns in the data
region
Y
Y
GS ( k pL pH 30H
42H
1DH 28H 6BH pL pH
30H 42H
PDF417: Set the number of rows
Y
Y
GS ( k pL pH 30H
43H
1DH 28H 6BH pL pH
30H 43H
PDF417: Set the width of the module
Y
Y
GS ( k pL pH 30H
44H
1DH 28H 6BH pL pH
30H 44H
PDF417: Set the row height
Y
Y
GS ( k pL pH 30H
45H
1DH 28H 6BH pL pH
30H 45H
PDF417: Set the error correction level
Y
Y
GS ( k pL pH 30H
46H
1DH 28H 6BH pL pH
30H 46H
PDF417: Select the options
Y
Y
GS ( k pL pH 30H
50H
1DH 28H 6BH pL pH
30H 50H
PDF417: Print the symbol data in the symbol storage
area
Y
Y
GS ( k pL pH 30H
51H
1DH 28H 6BH pL pH
30H 51H
PDF417: Transmit the size information of the symbol
data in the symbol storage area
Y
Y
GS ( k pL pH 31H
41H
1DH 28H 6BH pL pH
31H 41H
QR Code: Select the model
Y
Y
GS ( k pL pH 31H
43H
1DH 28H 6BH pL pH
31H 43H
QR Code: Set the size of module
Y
Y
GS ( k pL pH 31H
45H
1DH 28H 6BH pL pH
31H 45H
QR Code: Select the error correction level
Y
Y
GS ( k pL pH 31H
46H
1DH 28H 6BH pL pH
31H 46H
QR Code : Select encode mode.
Y
Y
GS ( k pL pH 31H
50H
1DH 28H 6BH pL pH
31H 50H
QR Code: Store the data in the symbol storage area
Y
Y
GS ( k pL pH 31H
51H
1DH 28H 6BH pL pH
31H 51H
QR Code: Print the symbol data in the symbol
storage area
Y
Y
GS ( k pL pH 31H
52H
1DH 28H 6BH pL pH
31H 52H
QR Code: Transmit the size information of the
symbol data in the symbol storage area
Y
Y
GS ( k pL pH 33H
43H
1DH 28H 6BH pL pH
33H 43H
2-dimensional GS1 DataBar: Set the widthof the
module
Y
Y
GS ( k pL pH 33H
47H
1DH 28H 6BH pL pH
33H 47H
2-dimensional GS1 DataBar: GS1 DataBar
Expanded Stacked maximum width setting
Y
Y
GS ( k pL pH 33H
50H
1DH 28H 6BH pL pH
33H 50H
2-dimensional GS1 DataBar: Store data in the
symbol storage area
Y
Y
GS ( k pL pH 33H
51H
1DH 28H 6BH pL pH
33H 51H
2-dimensional GS1 DataBar: Print the symbol data in
the symbol storage area
Y
Y

PROGRAMMING GUIDE
10
GS ( k pL pH 33H
52H
1DH 28H 6BH pL pH
33H 52H
2-dimensional GS1 DataBar: Transmit the size
information of the symbol data in the symbol storage
area
Y
Y
GS ( k pL pH 36H
42H
1DH 28H 6BH pL pH
36H 42H
DataMatrix: Set the symbol type, number of columns,
number of rows
Y
Y
GS ( k pL pH 36H
43H
1DH 28H 6BH pL pH
36H 43H
DataMatrix: Set the size of the module
Y
Y
GS ( k pL pH 36H
50H
1DH 28H 6BH pL pH
36H 50H
DataMatrix: Store the data inthe symbol storage area
Y
Y
GS ( k pL pH 36H
51H
1DH 28H 6BH pL pH
36H 51H
DataMatrix: Print the symbol data in the symbol
storage area
Y
Y
GS ( k pL pH 36H
52H
1DH 28H 6BH pL pH
36H 52H
DataMatrix: Transmit the size information of the
symbol data in the symbol storage area
Y
Y
GS p
1DH 70H
Select PDF 417 parameters
Y
N
Page Mode Commands
FF
0CH
Print and Return to Standard Mode
Y
Y
FF
0CH
Print and feed marked paper to print starting position
Y
Y
CAN
18H
Cancel Print Data in Page Mode
Y
Y
ESC FF
1BH 0CH
Print Data in Page Mode
Y
Y
ESC L
1BH 4CH
Select Page Mode
Y
Y
ESC S
1BH 53H
Select Standard Mode
Y
Y
ESC T
1BH 54H
Select Print Direction in Page Mode
Y
Y
ESC W
1BH 57H
Set Printing Area in Page Mode
Y
Y
GS $
1DH 24H
Set Absolute Vertical Print Position in Page Mode
Y
Y
GS \
1DH 5CH
Set Relative Vertical Print Position in Page Mode
Y
Y
Macro Commands
GS :
1DH 3AH
Start and Terminate Macro Definition
Y
Y
GS ^
1DH 5EH
Execute Macro
Y
Y
Other manuals for P1200
3
Table of contents
Other DIEBOLD NIXDORF Printer manuals

DIEBOLD NIXDORF
DIEBOLD NIXDORF P1200 User manual

DIEBOLD NIXDORF
DIEBOLD NIXDORF P1300 Operating instructions

DIEBOLD NIXDORF
DIEBOLD NIXDORF P1300 User manual

DIEBOLD NIXDORF
DIEBOLD NIXDORF TH210-VI User manual

DIEBOLD NIXDORF
DIEBOLD NIXDORF P1200 User manual

DIEBOLD NIXDORF
DIEBOLD NIXDORF TH250 User manual

DIEBOLD NIXDORF
DIEBOLD NIXDORF P1200 User manual