Megatron UP-PN-II User Manual

Page 1
1 UP-PN-II v0.8
8 needles printer mechanism Easy loading of paper Powered by battery or mains Interfaces: IrDA IrLPT & IrCOMM 3-wire raw RS232C from 110 to 19200 baud USB 2.0 24 and 40 characters per line Programmable text which can be printed on internal timer or by
interface
Remote of an external instrument (RS232 or timer ) Optical detection of paper end Can print double ply paper.
Perfect for process control
English – version 0.8
UP-PN-II
Portable Dot Matrix Printer
User Manual
Page 2
UP-PN-II v0.8 2
Table of contents
Overview ..............................................................................................3
Chapter 1 specifications .....................................................................4
1.1 References .........................................................................4
1.2 Printing features ..................................................................4
1.3 Roll of paper .......................................................................4
1.4 Ribbon .................................................................................4
1.5 Print commands ..................................................................5
1.6 Interface ..............................................................................5
1.7 Power supply ......................................................................6
1.8 Power up and auto power off .............................................7
1.9 Environmental specifications .............................................7
1.10 Dimensions .......................................................................7
1.11 Weight ...............................................................................7
Chapter 2 Installation and operating .................................................8
2.1 Installation ...........................................................................8
2.2 Connecting the power .........................................................8
2.3 Loading of paper .................................................................9
2.4 Replacement of ink ribbon ...............................................10
2.5 Selecting the interface ......................................................10
2.6 Interface connection .........................................................11
2.7 Play with buttons & leds ...................................................13
Chapter 3 Configuration menu ........................................................14
Menu parameters ....................................................................17
Chapter 4 Characters & Commands ...............................................18
4.1 Driver ................................................................................18
4.2 Character set ....................................................................19
4.3 Control codes PCL Raw ...................................................19
4.4 Control codes ESC/P 9 PINS ...........................................20
4.5 Control code ESC/P Basic ................................................20
4.5.1 Character set control codes ........................................22
4.5.2 Enhancement control codes .......................................22
4.5.3 Horizontal spacing .......................................................23
4.5.4 Vertical spacing ...........................................................23
4.5.5 Graphics ......................................................................24
4.5.6 Logo & Messages .......................................................26
4.5.7 Special Commands .....................................................28
4.5.8 Optional clock: not available .......................................29
4.5.9 Configuration commands ............................................30
4.5.10 System Commands ...................................................31
Page 3
3 UP-PN-II v0.8
Overview
UP-PN-II portable eight dot matrix printer features as following:
Structure for easy paper loading Powered by mains or battery pack for quick replacing and portability IrDA infrared interface for easy interfacing and communication wireless
(IrLPT & IrCOMM 3-wire Raw classes)
Serial RS232C interface from 110 to 19200 baud
(can work at 9600 baud simultaneously with IrDA)
Interface USB 2.0 2 characters fonts allowing 24 and 40 characters per line Optical detection of paper end Copy ability; it can provide an original and a copy Pre-programmed messages activated by interface or timer Query on external RS232 peripheral on interface or timer
UP-PN-II printer is suitable: for application of mobile instrument or such as PDA, POS, devices, etc...
for application of mobile instrument, with IrDA wireless instrument or PDA, ... with computer, POS, ... In stand alone mode with RS232 measurement devices (Multimeter,
Sliding caliper, etc)
Thanks to its dot matrix technology, it is perfectly adapted to process controls where ticket must be stored.
Product and documentation can be modified
without notice .
Chapter 5 Annex ................................................................................32
5.1 Battery version ................................................................. 32
5.1.1 Battery charge ............................................................ 32
5.2 Main version ..................................................................... 32
5.3 Cables & accessories ...................................................... 33
5.4 Character set ................................................................... 34
Page 4
UP-PN-II v0.8 4
1.2 Printing features
Printing method: Dot matrix printing
Copy ability: 1(original) +1
Model: UP-PN-II uses an EPSON M-192 printing mechanism.
The main characteristics are detailed in the following table
With a font in matrix 6×10, 40 characters by line are available.
With a font in matrix 10×10, 24 characters by line are available.
Other fonts are downloadable allowing other character sets or sizes.
1.3 Paper roll
Normal paper roll, max Outer Ø: 50mm, Inner Ø: 12.5mm
Paper width: 57.5 ± 0.5mm
Paper thickness: 0.065µm, 53~64g/m2
1.4 Ribbon
MDE-250-V: cassette, purple, life: 100 000 characters.
MDE-250-N: cassette, black, life: 100 000 characters.
Model
Density
(dots/line)
Dot size
H x V (mm)
Characters
per line
6×10
(char)
Character dimension 6x10 (mm)
Characters
per line
10×10
(char)
Character dimension
10x10 (mm)
Printing
speed
(line/s)
Paper feed
speed
(lines/s)
Reliability
MCBF (lines)
UP-PNII
240 0,2 x 0,37 40 1,2 × 3,7 24 2 × 3,7 1.5 3.0 1 000 000
Chapter 1 Features
1.1 References
Reference : UP-PN-II -
X
X
X
The reference will be set by replacing each "x" character by the letter corresponding to your needs. Example: UP-PN-II -BUI
W
IRELESS INTERFACE
- No Wireless interface I IrDA interface
P
OWER SUPPLY
On battery with ext. mains charger B Mains (external mains supply) S
W
IRED INTERFACE
U USB 2.0 V Serial RS232C
Page 5
5 UP-PN-II v0.8
1.5 Printing commands
The UP-PN-II provides ESC/POS (ESC/P 9 pins and ESC/P Basic) commands and a simple PCL compatibility (raw graphic).
Two fonts are included providing 224 IBMII characters IBMII in different matrix. On request other fonts can be downloaded.
ESC/P commands provide following functions: Character and graphic printing, enlarge characters, underline, user defined characters, formatting, hexadecimal dumping.
PCL commands allow raw graphic which are suitable for most PDA and handled computer
1.6 Interface
UP-PNII exists in several versions:
with a serial RS232 interface with a serial RS232 interface and an infrared IrDA interface with a serial USB 2.0 interface with a serial USB 2.0 interface and an infrared IrDA interface
Serial RS-232 Baud : 110 to 19200 Baud (9600 at delivery) Handshake: RTS or XON/XOFF Format: 7 or 8 bits , parity: no, even ou odd, 1 or 2 stop bits Connector: RJ-12 6 pins Signal level : EIA ±3 ~±15V
Infrared port IrDA Classes IrLPT and IrCOMM-3 wire Raw Distance : 1 m (max.) Angle : 30°
Note: USB 2.0 can operate in the same time as the Irda.
RS232 can operate in the same time as the Irda. But in this case, the baudrate for the RS232 is 9600 Bd
USB 2.0 Printer class (class 7) Full Speed B typ USB Connector
Page 6
UP-PN-II v0.8 6
1.7 Power supply
Two kind of power supply are available : UP-PN-II-B: Battery and mains charger
Battery Pack 6VDC 1500mAh.
DC power plug 9~12VDC / 300mA
UP-PN-II-S: operates on mains 100-240 VAC
DC power plug 6VDC/5A
Page 7
7 UP-PN-II v0.8
1.8 Power on and auto power off
Push the « on » button for power on. The shut off can be :
Auto after a programmable delay of inactivity (1 up to 15 minutes)
Manual after the « on » button is pressed for 5 seconds.
1.9 Environmental conditions
Temperature: 0~50°C
Humidity: 10~80% RH
1.10 Size
153(L) × 116(W) × 65(H) mm
1.11 Weight
530g (without the paper roll)
Page 8
UP-PN-II v0.8 8
Chapter 2 Installation and Operation
2.1 Installation
Overview of the UP-PN-II dot matrix printer is shown figure 2-1:
2.2 Connecting the power
Mains version: the printer is not equipped with a battery
A DC power plug is delivered (6VDC/5A).
Battery version: A rechargeable battery is delivered with the printer with a mains charger. When the charger is connected, the charge begins for 14 hours. After the first use, we recommend to charge the battery.
Installation of the battery: clip the battery in the case below the printer.
You can hear a sound.
Removing the battery: press on the plastic bar which is near the battery.
(fig 2.2)
An external charger can be use for fast charging. Shut off the printer and remove the battery pack then connect the battery pack to the external charger.
Warning: The printer can't work if a battery is not connected.
Figure 2-1 overview of UP-PNII
Bottom case
IrDA window
Output of
paper
ON/OFF
Button
LF button (line feed)
Page 9
9 UP-PN-II v0.8
2.3 Loading of paper
Follow these steps : 1 Open the case (Fig 2.3 a & b) 2 Place the roll of paper in its clips. Insert the paper in the slot and press « LF » button until the paper outputs. 3 Close the case (fig 2.3 d)
Battery
Release Bar
Connectors
DC power jack
Serial RJ12
Battery place
Figure 2-2 battery
- +
Figure 2-3 loading of paper
(a)
(b)
Ink ribbon
(c)
(d)
Paper clips
Page 10
UP-PN-II v0.8 10
2.4 Replacement of ink ribbon
The ink ribbon must be replaced when the printing becomes too light. Follow these steps :
1 Open the case
2 Push on the ribbon where it is written. (fig 2.4) and remove the ribbon
3 Place a new one instead. The paper must be inside the ribbon. Turn the little wheel on the ribbon until the ribbon is tight.
4 Close the case
2.5 Selecting the interface
Use the configuration menu for select IrDA, RS232 or USB 2.0.
1) Serial Interface RS-232C :
Set the menu « Printer -> Interface » on « serial »
The whole set of parameter must match the host.
2) Infrared IrDA:
Set the menu « Printer -> Interface » on « IrDA/Ser9K6 » or « IrDA/USB »
The baud are automatically adapted to the host.
The protocol supports IrLPT et IrCOMM-3 wire Raw RS232 baudrate is limited to 9600 Baud
3) USB Interface :
Set the menu « Printer -> Interface » on « IrDA/USB ».
Figure 2-4 Ink ribbon
Page 11
11 UP-PN-II v0.8
Pin Signal Source Description
1 GND Printer Signal ground
2 RXD Host Printer receiving data sent by host
3 TXD Printer Printer sends data to host
4 GND Printer Signal ground
5 RTS Printer
“Mark” indicates printer is bussy and can't receive data “Space” indicates printer is ready to receive data
6 - - Not connected
Mark=logic “1”(EIA level -3V~-15V) Space=logic “0”(EIA level +3V~+15V)
2) Serial port signal definition
2.6.3 RS232 serial connection
UP-PN-II portable printer provides a RS-232C port : 6 pins RJ-12 modular jack
1) RJ-12 pin alignment
Figure 2-5 RJ-12
2.6 Interface connection
2.6.1 Interface IrDA
Infrared port IrDA Classes : IrLPT and IrCOMM-3 wire Raw Distance: 1m (max.) Angle: 30° Note: IrDA can operate in the same time as the USB 2.0 and RS232.
In this case, RS232 baudrate is 9600 Bd. Other parameters are freely configurable.
2.6.2 Interface USB 2.0:
USB 2.0
Printer Class type B USB connector
Page 12
UP-PN-II v0.8 12
4) Transmit parameters
Baud : 110 to 19200 Baud (9600 at delivery) Handshake: RTS or XON/XOFF Format: 7 or 8 bits , parity: no, even ou odd, 1 or 2 stop bits Connector: RJ-12 6 pins Signal level : EIA ±3 ~±15V
3) Connecting with personal computer
Figure 2-6 Connecting with PC
Printer serial
RJ-12 port
PC serial
port DB-9-M
Printer serial
RJ-12 port
DB-25-F
Port série
PC
DKM-275 cable drawing ( not included)
DB-25 male PC cable
Page 13
13 UP-PN-II v0.8
UP-PNII has two buttons « ON » « LF » (see fig 2.8)
(1) Power on : Press ON button. The red light blinks.
(2) Shut off : Auto after a delay of inactivity (1 up to 15 min), or press « ON » for 5
sec. When the 2 lights blink, release the button. The printer shuts off. You can inhibit the auto shut off with the menu « Advanced -> Power OFF -> Manual »
(3) Autotest: when the printer is off, press and maintain LF, then press ON. When
the print begins, release the buttons. The printer prints a ticket with the current parameters.
(4) Hex dump : when the printer is off, press and maintain LF, then press ON.
When the print begins, maintain the LF until the message « DUMP HEXA MODE » appears on the paper. Then release LF. The printer is now printing the received datas in Hex format.
(5) Line feed: when the printer works, press LF and the paper goes ahead.
(6) When the printer is on, press simultaneously the two buttons : The menu is
entered.
ON button Green light
LF button Red light
Figure 2-8 Lights & buttons
2.7 Play with buttons & leds
UP-PNII has two leds :
The green one « POWER » blinks when then printer is working
The red one « FAULT » blinks in case of errors (see table 2.7)
( on –  off ).
Table 2-7 Error indicator
Meaning
               
Normal
              
Paper end
               
Print Head fault
               
Battery low
Red led System
No No
Yes
Yes
               
Memory fault Yes
Page 14
UP-PN-II v0.8 14
C
HAPTER
3 M
ENU
Setting of the printer is normally made with the interface (see command ESC "]"); If you can't use this method, the printer can also be set by a printing menu.
Press simultaneously LF & POWER when ON, then the menu is entered. The text 'MENU ACTIVATED' is printed. The first group of parameters is printed.
In order to modify the settings, you must navigate in the groups (1), fields (2) and values (3).
(1) Navigate in the groups:
Short push:
A short push on LF goes to the next group. A short push on POWER goes to previous.
Every group is printed after a push.
Long push:
A long push on LF enters in a field for the current group. A long push on POWER quits the group and save settings.
After the last group, the text 'MENU EXITED' is printed. The printer is initalized.
(2) Navigate in the fields:
Short push:
A short push on LF goes to the next field. A short push on POWER goes to previous. Every field is printed with its current value.
Long push:
A long push on POWER allows the return to the navigation in the groups.
A long push on LF enters the choice of values for the current field.
(3) Navigate in the values:
Short push:
A short push on LF goes to the next value. A short push on POWER goes to previous. The value is printed after a period without any push.
Long push:
A long push on POWER allows the return to the navigation in the fields. A long push on LF validates the new value. This one is then printed in bold. The printer returns to the navigation in the field.
Page 15
15 UP-PN-II v0.8
Q
UICK EXPLANATION OF PARAMETERS
:
Set Clock: (non available, for future option)
Printer:
Interface IrDA or RS232 or USB 2.0 Font: 2 fonts Direction: Sets the direction of the printing (text or data). Nat. Chars. Choice of national characters. This is useful for the accent
characters when 7 data bits.
Width: Default width of characters. Height: Default height of characters. Page Length Default page length in lines Tab Length Default character number between 2 tabulationsGR Hor_Res Zoom factor in graphic mode
Serial and Ser9600:
Baud: from 110 baud to 19k2 baud
Always 9600 Baud with Ser9600 Menu
Databits: 7 or 8 Parity: None, Odd, Even Xon: Quantity of XON transmitted at the power on
- Single XON
- Repeat XON (every 300 ms)
Advanced :
Compatible: ESC/P 9Pins, ESC/P Basic, ESC/P Cust, PCL Raw Paper end: In case of paper end, the printer can :
if 'Set Busy', stops the printing and sets RTS.
if 'Fill Buff.', stops the printing, and continues to accept datas until the buffer is full.
if 'Ignored', continues to print even there is no paper at all.
if 'Warn Host', warns the host and continues the printing
Notes: paper fault : The modes 'Set Busy', 'Fill Buff.' et 'Warn Host' warn the host by sending the character EM
(19h)
. When fault is cleared,
the printer sends ETB
(17h)
Head fault : Printer sends the character DC2 (18h), sets RTS=BUSY and sends XOFF). In this case, verify the head (paper jam). A push on LF may help to reactivate the head. When the fault is cleared, the character DLE (16h) and XON are emitted, RTS remains to FREE.
Page 16
UP-PN-II v0.8 16
Power OFF: Auto shut off in order to save batteries, or Manual. Winter/Sum: Not available. Info Stamp: Auto print of information after every printed line.
- No Stamp: nothing
- Add Date: not available
- Add Logo: prints logo
(programmable text)
Input Data - Immediate print of datas, or fills in bufferIrDA Ident Auto-reprogrammation of the Chip MCP2150
for the next Power-On. (Factory use only)
Timer : Event timer for logo or messages 2 and 3.
Timer Use : Enable / inhibit timer at power on Timer Second: Sets timer (from 0 to 59 seconds) Timer Minute: Sets timer (from 0 to 59 minutes) Timer Hour: Sets timer (from 0 to 12 hours)
Caution : if values are 0, the timer is inhibited.
Alt Print: If n>0, the timer prints n times the message 2,
then once the message 3.
Page 17
17 UP-PN-II v0.8
M
ENU PARAMETERS
G
ROUPS
F
IELDS
V
ALUES
Clock Hours
Minutes Days Months Year
Printer
Group 2
1: Interface Serial, IrDA/Ser9k6, IrDA/USB 2: Font Std_6x10 (Font 1), Std_10x10 (Font 2) 3: Direction TEXTMODE, DATAMODE 4: Nat. Chars USA, FRA, GER, ENG, DK1, SWE,
ITA, SPA, JAP, NOR, DK2, NDL 5: Width Width x1, Width x2 6: Height Height x1, Height x2 7: PageLength 1 - 255, défaut 10 8: Tab Length 1 - 16, défaut 6 9: Gr.Hor_Res No Zoom, Zoom x2, Zoom x4
Serial
Group 3
1: Baud Ser 110, 150, 300, 600, 1200,
2400, 4800, 9600, 19k2 2: Databits 7 databits, 8 databits 3: Parity No, Even, Odd parity 4: Xon Single Xon, Repeat Xon
Ser.9600
Group 4
2: Databits 7 databits, 8 databits 3: Parity No, Even, Odd parity 4: Xon Single Xon, Repeat Xon
Advanced
Group 5
1: Compatible ESC/P Basic, ESC/P 9 pins,
ESC/P Cust, PCL Raw 2: No Paper Fill Buff., Set Busy, Ignored, Warn Host 3: Power OFF 1mn, 2mn, 3mn, 4mn, 5mn, 10mn, 15mn, Manual 4: Winter/Sum Disabled, Enabled 5: Info Stamp No Stamp, Add Date, Add Logo 6: Input Data Print Imm., Buff>Print 7: IrDA Ident Disabled, Enabled
Timer
Group 6
1: Timer Use Disabled, Enabled 2: Timer Second 0..59 seconds 3: Timer Minute 0..59 minutes 4: Timer Hour 0..12 hours 5: Alt. Print 0..255
Clock Option is not available in this printer.
All settings are without effect.
Page 18
UP-PN-II v0.8 18
C
HAPTER
4
FONTS
&
CONTROL CODES
4.1 D
RIVER
Windows 2000 & XP: A driver is available on our internet site :
http://www.megatron.fr. Since this driver is not signed, you must accept the installation. In the folder Parameter, you must select the kind of compatibility that you want (ESC/P 9pins, ESC/P Basic or PCL Raw)
This parameter must match the one chosen in the menu
Advanced->Compatible of the printer.
For other OS, you can try some drivers for EPSON 9 pins or HP PCL, and setting the printer accordingly.
Page 19
19 UP-PN-II v0.8
Font 1: Std_6x10
4.2 C
HARACTER SETS
Two complete sets of 255 IBM-II characters are available in ROM as well as na­tional characters. Characters exist in 6x10 and 10x10 matrix allowing 40 or 24 characters by line with uppercase and lowercase letters.
The selection of national characters is done by software or by the configuration menu.
Font 2: Std_10x10
Mnenonics Hex PCL codes available
ESC "&" 1B 26 ESC "&" a # H
Horizontal position
ESC "*" 1B 2A ESC "*" b # W Graphics printing ESC "*" b # M Selection of compression algorithm (without, Run Length, Tiff) ESC "*" r # T Page length ESC "*" p # X Page width ESC "E" 1B 45 Soft reset
4.3 C
ONTROL CODES
PCL RAW
The compatibility PCL Raw has been implemented in order to allow the printer to work with computers. Only the graphic functions are implemented. The other control codes are ignored. The compression algorithms Run Length and Tiff are supported. Delta Row will be available as soon as possible.
Page 20
UP-PN-II v0.8 20
4.4 C
ONTROL CODES
ESC/P 9 PINS
The compatibility ESC/P 9 PINS has been implemented in order to allow the printer to works with computers. Only the graphic functions are implemented. The other control codes are ignored. The codes implemented are shown with a mark in the column ‘9 Pin’ of the table.
4.5 C
ONTROL CODE
ESC/P B
ASIC
Only the ESC/P Basic codes are detailed in the next pages. These codes are less compatible with ESC/P, but they give some functions more specific to the printer. Most of these codes work same way as 9 pins.
Attention, Major difference in graphic:
The graphic modes are very similar, but the function of the CR at the end of the graphic is different :
for ESC/P Basic, the code CR makes a line feed like a LF code.
for ESC/P 9 pins, the code CR makes only a carriage return without any
line feed. The characters with their ASCII values between 01 hex and 1F hex are control characters and are not printable. These characters allow to modify the behaviour of the interface (control characters). .
Page 21
21 UP-PN-II v0.8
Mnemo Hex Control codes
Basic 9Pins
HT 09
Tabulation x x
LF 0A
Line feed x x
FF 0C
Page feed x x
CR 0D
Carriage return x x
SO 0E
Double width x x
DC4 14
Normal width x x
ESC "!" 1B 21
Master mode x
ESC "$" 1B 24
Horizontal position: nL nH x
ESC "'" 1B 27
Graphic Printing x
ESC ")" 1B 29
Advance of n lines of characters x x
ESC "*" 1B 2A Graphic Printing : 8 points per column
(ESC "*" 0, ESC "*" 1, ESC "*" 2 or ESC "*" 3)
x x
ESC "-" 1B 2D
Underscore ON:OFF x x
ESC "2" 1B 32
Sets interlining to 0 x x
ESC "3" 1B 33
Sets interlining to n x x
ESC "@" 1B 40
Soft reset x x
ESC "C" 1B 43
Page length x x
ESC "D" 1B 44
Sets tabulations x x
ESC "F" 1B 46
Font selection x
ESC "J" 1B 4A
Advance of n lines of dots x x
ESC "K" 1B 4B
Graphic Printing : 8 dots/columns x x
ESC "L" 1B 4C
Graphic Printing : 8 dots/columns x x
ESC "M" 1B 4D
Selection of the font 1 (6x10) x
ESC "P" 1B 50
Selection of the font 2 (10x10) x
ESC "R" 1B 52
Selection of national characters x x
ESC "S" 1B 53
Control of status DEL x
ESC "V" 1B 56
Synchronisation character (RS232 only) x
ESC "W" 1B 57
Character widening x x
ESC "Y" 1B 59
Graphic Printing : 8 dots/columns x x
ESC "Z" 1B 5A
Graphic Printing : 8 dots/columns x x
ESC "a" 1B 61
Selection of the alignment x x
ESC "f" 1B 66
Printing of 1 line of dots x
ESC "g" 1B 67
Selection of the font 1 (6x10) x
ESC "j" 1B 6A
Prints but do not go back x
ESC "t" 1B 74
Selection of the table of the characters codes x
ESC "x" 1B 78
Selects the printing NLQ or Draft x
ESC "w" 1B 77
Elongation of the characters x x
ESC "{" 1B 7B
Selection of the direction of the printout : Text or Data x x
GS "V" 1D 56
Advances to the cutting bar, then n/2 lines of dots x
GS "[" 1D 5B
Switch acquisition (RS232 only) x
GS "]" 1D 5E
Configuration of the switches x
GS "^" 1D 5E
Activation of the timer x
GS "c" 1D 63
Date stamping & clock setting (clock option non available) x
GS "m" 1D 6D
Printing of a pre-stored message x
GS "p" 1D 70
Printing of the logo x
GS "s" 1D 73
Programmation of the messages & logo x
GS "u" 1D 75
Transmission of data trough the serial. (RS232 only) x
GS "v" 1D 76 Return of data towards the emitter. (RS232 only) x
Page 22
UP-PN-II v0.8 22
4.5.1 C
HARACTER SET CONTROL CODES
ESC F n (1B 54 Hex = 27 84 Dec) Select one of the 2 character fonts. Only the lowest bit of n allow to select the font.
ESC R n (1B 52 Hex = 27 82 Dec) Select national characters. Default choice is selectable by the configuration menu.
4.5.2 C
HARACTER ENHANCEMENT CONTROL CODES
SO (0E Hex = 14 Dec) Double width of characters
DC4 (14 Hex = 20 Dec) Simple width of characters
ESC - n (1B 2D Hex = 27 45 Dec) Beginning / End of underline n = 1 (01 Hex) or '1' (31 Hex) Start of underline n = 0 (00 Hex) or '0' (30 Hex) End of underline
ESC W n (1B 57 Hex = 27 87 Dec) Widening of the characters The default value of n is 0 (normal size). The maximum value depends on the actual font size. If n is too big, widening is set to the maximal possible width
ESC w n (1B 77 Hex = 27 119 Dec) Lengthening of the characters The default value of n is 0 (normal size). The maximum value of n is 9 (10 x the normal height)
ESC { n (1B 7B Hex = 27 123 Dec) Setting of the mode Text/Data n = 1 (01 Hex) or '1' (31 Hex) Data Mode n = 0 (00 Hex) or '0' (30 Hex) Text Mode (default setting) The text or data default mode is set-up by the configuration menu.
Page 23
23 UP-PN-II v0.8
4.5.3 H
ORIZONTAL SPACES
TAB (09 Hex = 9 Dec) Tabulation Move the next printing position to the next tabulation.
ESC D x1...xi NUL (1B 44 ... 00 Hex = 27 68 ... 0 Dec) Tabulations setting. You can define as many tabulations positions xi than the number of characters that can be defined in the line of characters. This command must end with the NULL character (00 Hex). By default, tabulations are positioned every 6 characters in 6, 12, 18, etc...). This value can be changed by the configuration menu
4.5.4 V
ERTICAL SPACES
LF (0A Hex = 10 Dec) Starting a new line. The LF (LineFeed) and CR (Carriage Return) characters act the same way by triggering the printing of the current line. Some word processing softwares use LF, others CR and a few others both commands to trigger a line printing. In order to avoid non required double interline spacing, in case a sequence including these two consecutive characters is received, only the first character received will trigger the printing, the other one will be ignored.
FF (0C Hex = 12 Dec) Starting a new page. See ESC C command
CR (0D Hex = 13 Dec) Carriage return. Starting a new line. See LF command above.
ESC ) n (1B 29 Hex = 27 41 Dec) Advancing for n character lines
ESC 1 (1B 31 Hex = 27 49 Dec) No effect. For compatibility with UP-PN version 1.
ESC 2 (1B 32 Hex = 27 50 Dec) Return to the default space beetween the lines. (default value = 0)
ESC 3 n (1B 33 Hex = 27 51 Dec) Setting the space beetween two character lines to n dot lines
ESC C n (1B 43 Hex = 27 67 Dec) Setting the page length in lines of characters. The default value is 10. It can be change by the configuration menu
ESC J n (1B 4A Hex = 27 74 Dec) Advancing for n dot lines
Page 24
UP-PN-II v0.8 24
4.5.5 G
RAPHICS
ESC f (1B 66 Hex = 27 102 Dec) Printing a black line.
ESC K n1 n2 x1...x
(n1+256xn2)
(1B 4B ... Hex = 27 75 ... Dec)
ESC L n1 n2 x1...x
(n1+256xn2)
(1B 4C ... Hex = 27 76 ... Dec)
ESC Y n1 n2 x1...x
(n1+256xn2)
(1B 59 ... Hex = 27 89 ... Dec)
ESC Z n1 n2 x1...x
(n1+256xn2)
(1B 5A ... Hex = 27 90 ... Dec)
8 vertical dot lines graphic printing.
n1 + 256 x n2 represent the number of characters of the graphic chain. The characters x1 to x
(n1+256xn2)
represents the desired printed pattern.
In Text mode, the line is printed from left to right with the higher weight's bits to the top. In Data mode, the line is printed from right to left with the higher weight's bits to the top. Characters and graphics cannot be printed on the same line.
Graphic chain must by terminated by a line feed command (CR, LF, ESC J, etc...)
Difference: With "ESC/P Basic"
compatibility, CR character make a linefeed. It acts as the LF character.
With "ESC/P 9 pins" compatibility, it make only a carriage return at the beginning of the line. The next graphical data are printed over the current line.
These 4 graphical commands give the same result in order to allow printing from several origins et initially destined to other different.
Zoom: The choice of the horizontal zoom factor is made by the user with the menu "Gr.Hor_Res". The options are "No zoom", "Zoom x2" or "Zoom x4":
GS V n (1D 56 Hex = 29 86 Dec) Feed until the tear bar then feed n/2 dots/line
Page 25
25 UP-PN-II v0.8
ESC ' m n1 n2 .. n
m-1 nm
(1B 27 Hex=27 39 Dec) Printing graphic curves. This command allows for easy printing of curves along the paper (vertically).
- The m value represents the number of curves (points) to be printed for the current graphic line, and must be included beetween 1 and the maximum number of printable points per line (240).
- The n1 .. nm values represent the position of these m curves; the number of points (n1 .. nm) must be equal to m. Each point must be included between 1 and the maximum number of printable points per line (240), otherwise it will not be printed. As horizontal lines printing progresses, the vertical curves will show on the paper. The vertical lengthening (ESC 'w' n) act on the graphic curves..
Example: Basic software to print 4 curves and a central axis.
y = 72 + e-0,1x y = 72 - e-0,1x y = 72 + e-0,1x * sin (x/10) y = 72 + e-0,1x * sin (x/10) y = 72
10 OPEN "COM1:9600, N, 8, 1, CS60000, DS, CD" AS #1 20 FOR X=0 TO 200 30 PRINT #1, CHR$(27); CHR$(39); CHR$(5); 40 Y=INT(72*EXP(-.01*X)): YY=INT(Y*SIN(X/10)) 50 PRINT #1, CHR$(72-YY); 60 PRINT #1, CHR$(72-Y); 70 PRINT #1, CHR$(72); 80 PRINT #1, CHR$(72+Y); 90 PRINT #1, CHR$(72+YY); 100 NEXT X 110 CLOSE #1 120 END
each dot is then printed on 1 column, 2 columns or 4 columns. This menu can adapt the small graphic to the paper width.
For new application, we suggest to not use the zoom to keep the best resolution.
ESC * m n1 n2 x1...x
(n1+256xn2)
(1B 4B ... Hex = 27 75 ... Dec)
Bit-image graphic printing
This ESC/P graphic printing command is similar to the previous ones with an additional parameter m which selects the graphic mode between 8, 24 or 48 dots by column. Only the 8 dots by columns is implemented, so the range for m character must be 0 to 3.
Other modes are NOT supported and a warning message "ESC * <###> Unknow graphic mode !" will be printed in replacement of the graphic.
.
Page 26
UP-PN-II v0.8 26
4.5.6 L
OGO
& M
ESSAGES
A bank of 16 ko flash is reserved for the downloaded messages. This bank can be used for :
- storage of a unique logo (or a large 16 k message)
- storage of 3 messages of 4 ko that can be printed by interface or timer. These 2 modes can’t be mixed.
Logo: if the 2 first bytes of the memory bank are >=0 and < 16382, the logo mode is active and the 16382 following bytes contain the data of the logo. The logo can be activated by :
- a software control code (GS p)
- the timer (if running)
- the end of form when the mode “Logo stamp” is active.
Messages: if the 2 first bytes of the memory bank are 0, the mode “messages” is entered. The memory bank is then divided into 4 banks of 4 Kbytes.
- The first one, 0 is always left empty.
- The banks 1,2,3 contain the data of the messages. These messages are printed out by the software control code (GS m), or at the power up, by the timer, or by the mode “Info stamp” according to the message.
- Message 1 : initialization message. It is activated once at the power up of the printer. The usually font in is to print a header, or to initialise an external equipment.
- Message 2 : Main message. It is activated by :
- GS m 2
- timer, if it is activated.
- the end of paragraph when mode “Logo Stamp” active.
- Message 3 : Alt message. It is activated by :
- GS m 3
- timer
A software is available on our internet site. This software is
intended to help you for design and download messages.
Page 27
27 UP-PN-II v0.8
GS s m
L mH n1 n2 n3
.. nm (1D 73 Hex=29 115 Dec) Stores the messages in the flash memory. “ml mh” contain the quantity of transmitted bytes (size = ml + 256 * mh, and must be < 16384). “n1 … nm” are the data.
In the case of logo, n1 and n2 contain the size of the logo, ie m-2 bytes. They must be followed by the (n1 + 256 * n2) bytes of the logo.
In the case of messages, you must transmit 32 messages formed by 2 bytes for the length followed by 510 bytes for data. The messages 0 and 16 are must always contain zeros. Attention : whole messages must be programmed at the same time.
GS p (1D 70 Hex=29 112 Dec) Prints the logo or message 2.
GS m n (1D 6D Hex=29 109 Dec) Prints the message “n” (n>0).
GS ^ n (1D 5E Hex=29 94 Dec) Enables or disables the print timer. If “n” is even, Timer is disabled If “n” is odd and the period is greater than zero, then the timer is enabled. When the period is reached, the message 2 is printed.
The timer can be activated at the power up by the config menu. « Timer Use ». A special field “n” called « Alt Print » , when non zero, allows the printer to print “n” times the message 2 then once the message 3. This possibility is useful for printing periodically information like header, date.
Note: Logo and messages can contain the whole set of characters and control codes, graphics and text data, except the commands relative to save, logo & messages call, reset.
Timer: It can be used to periodic printing logo or messages 2 & 3. The period is determined by the 3 values “second”, “minute” and “hour”, which can be also programmed by the menu. The period can be in the interval 0 (disabled) an 12 hours 59 minutes and 59 seconds. This function is useful for remote a measurement instrument in order to make a data logger. A non zero value “n” called “Alt Print” forces the message 2 to be printed “n” times, and once the message 3. This is useful for printing periodically an header.
Page 28
UP-PN-II v0.8 28
n
Parameter Example
0 Product name Prod.: UP-PNII-240 1 Name & version of software Soft.: F189v1.1 2 Manufacturer’s name Maker: MEGATRON 3 Date & Time Clock: JJMMAAHHMNSS 4 Paper input (scaled) Paper: 1023 5 Power voltage Volt: 5.452 6 Paper end sensor 19h (Present) ou
17h (Absent)
GS u n data1.. datan (1D 75 Hex=29 117 Dec) Transmits data to the host on serial. This command transmits on serial the “n” followed bytes (n<24). This command is mainly employed with messages and logo, in order to initialize or remote an external equipment like a measurement instrument.
If the size of data is greater than 24, you must divide them in segments.
4.5.7 S
PECIAL COMMANDS
ESC V n (1B 56 Hex=27 86 Dec) Synchronization character. When whole previous data have been printed, the sync character “n” is sent to the host on serial. The host is then certain that the printout is OK.
GS v n (1D 76 Hex=29 118 Dec) Returns status to the host. When this command is entered, one of the 6 status selected by the 2 LSB bits of “n” is sent to the host on serial. The string is ended by CR character (0Dh)
Page 29
29 UP-PN-II v0.8
4.5.8 O
PTIONAL CLOCK
: NOT AVAILABLE
Clock Option is not available for this printer.
ESC S n (1B 53 Hex= 27 83 déc) Driving of the status LED The user is allowed to control himself the status LED. The byte “n” activates or not the LED. Each bit lights the LED for 80 ms (1 = ON, 0 = OFF). See the chapter “status LED”
Attention: The system status (“head failure” and “RAM failure”) have priority and can’t be disabled.
Examples of values for n:
n Hex Déc Description Binary LED
'U' 55 85 blink 01010101
NUL 00 0 OFF 00000000
       
FF 255 ON 11111111

ENQ 05 5 2 blink 00000101
       
Page 30
UP-PN-II v0.8 30
4.5.9 C
ONFIGURATION COMMANDS
GS ] n1 n2 n3 (1D 5D Hex = 29 93 Dec) Configuration command followed by 3 bytes n1 n2 n3.
n1 : - if n = 0 (00 hex) or n >=127 (7F hex) Saves adjustments in flash memory. Bytes n2 and n3 aren not necessary.
- value between 1 (01 hex) and quantity of groups
Selects the parameter group n2 : Selects the field (01 hex to number of fields)
n3 : New value for the selected field.
- if multiple choices (01h to the quantity)
- if it is a number : a valid number in the range.
See the menu table for understand the groups, field and choices.
Attention: Clock option is not available in this printer. This command is only present for compatibility purpose
Example: GS ] 03h 01h 08h sets the serial group (Serial) then the field “Baud” at the 8th choice, ie 9600 Baud. The printer send on the interface : Serial ->Baud =9600 Baud
GS ] 00h saves parameters in flash memory. The printer send : FLASH CONFIGURATION
If a certain value is false, a specific error message is sent:
GROUP Out of range ! FIELD Out of range ! VALUE Out of range ! NOTHING TO FLASH ! Clock ->xxxxx =Not allowed !
Page 31
31 UP-PN-II v0.8
GS [ n1 n2 (1D 5B Hex = 29 91 Dec) Sends on serial the config followed by 2 bytes n1 and n2. At the reception, the parameter for group n1 and field n2 is sent on the inter­face in text format.
n1 : Selects group. (01 hex to number of groups) n2 : Selects field (01 hex to number of field)
The information sent are the same than those returned by the config com­mand. Example: GS [ 03h 01h asks for the field baud for the group serial The printer then sends :
Serial ->Baud =9600 Baud
4.5.10 S
YSTEM COMMANDS
The following commands are used by the system. Do not use them.
GS <FA> (1D FA Hex=29 250 Dec) Printing of the logo on event timer
GS <FC> <datas> (1D FC Hex=29 252 Dec) Burns firmware. (reserved)
GS <FD> <zone> <Low> <High> <datas> (1D FD Hex=29 253 Dec) Burns a flash bank (reserved)
GS a n (1D 61 Hex=29 97 Dec) Prints the actual values of paper end sensor and power voltage. (ADC value, 10 bits)
GS \ n1 n2 (1D 5C Hex = 29 92 Dec) Scaling of paper end sensor & power supply voltage.
GS " n (1D 22 Hex = 29 34 Dec) Goes to hex mode
Page 32
UP-PN-II v0.8 32
Chapter 5 Annex
5.1 Battery version only
The printer works with a rechargeable battery NiMh 6VDC 1500mAh.
Do not connect the charger without a battery connected
5.1.1 Charging process
You can charge the battery directly on the printer (slow charging) or with an external battery charger from another supplier (quick charge).
1 Slow charging
Connect a power supply 9~12VDC/600mA to the printer. The process needs 12-16 hours.
2 Quick charging
Remove the battery from the printer and charge it on an external battery charger for NiMH 6V-1500 mAh
5.2 mains version only
The mains plug supplies 6VDC/5A to the printer. There is no battery available for this model.
Page 33
33 UP-PN-II v0.8
5.3 Cables and accessories
Reference Description
DKM-275-V RS232C/V24 cable
RJ12 6 pins / Sub-D9-F
Length mini 1m50
MPA-NO-58-50-1 Roll of white paper
Width 58 mm ± 0,5 mm
Outer Diameter 50 mm
Length 20 m ± 10%
DK-USB-AB-1.80 USB cable
Length 1m80
Connector USB-A &t USB-B
MPA-NO-58-50-2 Roll of paper 2 plies
Width 58 mm ± 0,5 mm
Outer Diameter 50 mm
Length 17 m ± 10%
MPA-SP-58-46-1 Roll of inked paper (ink ribbon useless)
Width 58 mm ± 0,5 mm
Outer Diameter 46 mm
Length 17 m ± 10%
MDE-250-N Black Ink ribbon
Life time, roughly 100 000 characters
MDE-250-V Blue Ink ribbon
Life time, roughly 100 000 characters
MPS-9-300 Mains plug for UP-PN-II-B (with battery)
Input 230VAC, 50Hz
Output 9VDC, 600mA
France pins
MPS-UPPN-II-2 Mains plug for UP-PN-II-S (without battery)
Input 110 – 230VAC 50/60Hz
Output 6VDC, 20W
Universal
Page 34
UP-PN-II v0.8 34
5.4 Character sets
Character set 1 Character set 2
Font 1: Std_6x10 Font 2: Std_10x10
O
THER FONTS
Different kind of fonts are available on our internet site. You must download these files to the printer. These new fonts replace one of the two embedded fonts and allow the modification of the type of characters and their matrix (number of char per line).
Consult us if you have other requirements !
Page 35
35 UP-PN-II v0.8
doc_uppnII_0807_e08
Page 36
UP-PN-II v0.8 36
A
4
1
Thonon
A
4
0
A
4
0
Noyer
A
L
L
I
N
G
E
S
N
5
D
O
U
V
A
I
N
E
B
O
N
S
D
9
0
3
D
1
2
D
1
2
D233
THONON
I
t
a
l
i
e
G
r
e
n
o
b
l
e
L
y
o
n
GENEVE
Annecy
Lac Léman
Hôpital
MEGATRON
ALLINGES
Potentiomètres de précision Résistances de précision Servo-Systèmes Capteurs Interfaçage Systèmes d'impression Claviers Techniques d'affichage
Centre de production et Bureaux Commerciaux
MEGATRON
Z.I. de Noyer B.P. 1 F- 74200 ALLINGES
Tél: +33 (0) 4.50.70.54.54 - Fax: +33 (0) 4.50.70.56.56 Internet: http://www.megatron.fr - E-mail: info@megatron.fr
Loading...