background image

CP130 User Guide Page 11 of 11 

9 GETTING 

STARTED 

 
You may find that you can connect up the printer to your Personal Computer (PC), and everything 
works perfectly first time.  However, there are many variables, and the following guide may help if you 
find you need some assistance.  These are only suggestions, and may not work with all PC’s. 
 

9.1 

CONNECTING TO A PC – A CHECKLIST 

 

 

First, you need to 

GET THE PRINTER GOING

   

 

 

Make sure that the power supply is switched on and connected.  The LED indicator should light; if it 
does not, check the power supply and connections.  
 
Load paper and then press the feed button to check that paper feeds.  Press the paper feed button 
again twice in quick succession (like double-clicking a PC mouse) and the printer should print a self-
test message.  This will show that the printer is operational, and also reports the way in which the 
printer’s serial data interface is configured. 
 

 

Next, you need to make some 

HARDWARE CONNECTIONS

 

 
The back panel of a PC typically includes several D-type (keystone-shaped) connectors.  One of 
these is usually: 
 
D-9  Plug (male):  

 

COM1:  Serial port for mouse, modem, serial printer, etc 

 
You can use any available serial port for the CP130.  COM1: is assumed in what follows, as most 
likely to be available. 
 

 

Now you will need to

 SET UP YOUR COMPUTER’S SERIAL PORT

 to match the printer (it is also  

possible to change the printer’s settings, but not until you have established communication with 
the 

computer). 

     

 

 

Your proposed application program may have a way of doing this, or you can get to the DOS prompt 
[eg 

C:\>

] and type the following command line (assuming you have connected the printer to COM1:): 

 

 

 

MODE  COM1:9600,N,8,2 [RETURN] 

 
This will set up the port (COM1:) to 

9600

 baud, 

N

o parity, 

8

 data bits, and 

2

 stop bits which is the 

default setting for the CP130. 
 

 Now, 

SEND SOME DATA TO THE PRINTER

  from your computer.  An easy way to do this from 

the DOS prompt is to type: 

 

 

DIR >COM1: [RETURN]

    

 

 

This should send a directory listing to the printer.  The lines will probably overflow, but it will at least 
show that the communication between the computer and the printer is working.   
 
You can also send data from 

QBASIC

 

OPEN “COM1:9600,N,8,2” FOR RANDOM AS #1

 

 PRINT#1, 

“Hello”

 

Alternatively, in Windows, use the 

TERMINAL

 program to send some text to the printer. 

 
 

9.2 YOUR 

APPLICATION 

PROGRAM 

 
Once communications between your computer and the printer have been established, you can try 
driving the printer from your application program.  As referred to in the Programmers Guide, the 
CP130 has a control code set based on the EPSON ESCPOS protocol.  Many of the commands are 
as closely compatible as they can be, given the mechanical differences between printers, but if the 
application program was originally written for another printer, it may need to be modified. 
 

Summary of Contents for CP130

Page 1: ...USER GUIDE to the CP130 Thermal Printer Revision 1 0 Filename CP130 Users Guide v1 0 doc Date 29 March 2011...

Page 2: ...ed Indications 6 6 Printer Operation and Programming 7 6 1 Data Buffer 7 6 2 Spool Mode 7 6 3 Character Printing and Fonts 7 6 4 Graphics Printing and Other Programming Modes 7 7 Interface Details 8 7...

Page 3: ...mised fonts which may be created using the Font Editor Utility Refer to the factory for more information in this feature if required 2 2 COPYRIGHT NOTICE AND DISCLAIMER Copyright subsists in the manuf...

Page 4: ...n 1 and 65534 seconds 3 1 IDLE MODE In idle mode the printer is ready to receive data which will be printed as soon as complete lines or graphics patterns are decoded It responds to the paper feed but...

Page 5: ...s as follows 1 Slide the Lid Release Button forwards until the Lid springs open 2 Unwind a small amount of paper from the roll and Insert the Paper Roll into the Printer 3 Close the Lid down and the p...

Page 6: ...ive and no printing can take place Red warns of a low power supply voltage or other problem No light indicates that the unit is off LED Pattern Table Pattern Power Status Buffer Mode Constant Green OK...

Page 7: ...by a command from the host Paper Out condition or Head Up condition being sensed an error condition e g head over temperature over voltage etc In spool mode the buffered data are stored without being...

Page 8: ...nformation to the host at the same Baud rate and in the same format as the serial data input The hardware busy line is true nominal 12V when busy Both serial output lines will relax to approximately 0...

Page 9: ...tail RJ12 Pin Input Output CP130 CP130 Function 1 i p No Connection 2 i p Wake up Input Only when optional sleep mode is enabled 3 i p RS 232 Rx data 4 o p RS 232 Tx data 5 o p RS 232 Busy 6 0V Common...

Page 10: ...for details The recommended power supply input is either a 12V or 24V vehicle battery this allows the printer to perform at its best However the printer will automatically accommodate any DC input vol...

Page 11: ...PUTER S SERIAL PORT to match the printer it is also possible to change the printer s settings but not until you have established communication with the computer Your proposed application program may h...

Reviews: