Megatron MTH-2500 User manual

MTH-2500, 2700 & 3500
THERMAL PRINTERS
WITH ELM-208 HEAD
●Interface TTL serial RS232C RS422
USB 2.0 thernet Parallel etc...
●Protocol: None or Modbus (RTU)
●Paper case Ø 31 mm or Ø 60 mm
●High definition and fast printing
●Bar codes and Graphic printing capabilities
●24 and 42 characters per line
●2 downloadable character sets
●Logo downloading and printing via interface
or by closing a dry contact
●5 VDC or 9 to 40 VDC supply voltage
●Setup by menu or interface
●Temperature control of the printing head
●Windows 10, 8.1, 8, 7, Vista, XP
●Selftest and hexadecimal dump
Version 3.4 – englis
MTH-3500
MTH-2500

SUMMARY
1 General information.......................................................................................3
1.1 Printer operation.........................................................................................3
1.2 Material Description....................................................................................4
1.3 Part number...............................................................................................4
1.4 Technical data............................................................................................5
1.5 Print Head Technical Data.........................................................................6
2 Wiring Information.........................................................................................7
2.1 DC 5V Power Supply..................................................................................7
2.2 DC 9-40 V Power Supply...........................................................................7
2.3 Serial TTL and RS232C.............................................................................8
2.4 USB............................................................................................................9
2.5 RS422 Serial..............................................................................................9
2.6 Other Interfaces..........................................................................................9
2.7 Backup Battery.........................................................................................10
2.8 Rewinder..................................................................................................10
2.9 xt Input...................................................................................................10
3 Printer Operation.........................................................................................11
3.1 Start-Up....................................................................................................11
3.2 System Reinitialization (R S T)..............................................................11
3.3 Paper Loading..........................................................................................11
3.4 Control Panel............................................................................................11
3.5 Self Test or Hexadecimal Dump...............................................................12
4 Characters & Commands............................................................................13
4.1 Character Set...........................................................................................13
4.2 Printer Language or Compatibility............................................................14
4.3 MTH Commands......................................................................................15
4.4 PCL Raw command.................................................................................27
4.5 Labels.......................................................................................................28
5 Appendix.....................................................................................................30
5.1 Dimensions and Cut-out...........................................................................30
5.2 Cables and Papers...................................................................................32
5.3 MTH-2500 in special cases......................................................................33
5.4 Status L D...............................................................................................34
5.5 Setup Menu..............................................................................................35
5.6 Modbus.................................................................................................... 39
5.7 Documentation revisions..........................................................................39
MTH-2500, 2700 & 3500 v3.4 2
PRELIMINARY NOTE
Because of the evolution of standards and technologies and in a permanent concern for
improvement, Megatron reserves itself the right to modify the characteristics of the device
described in this document without advanced notice.

1 GENERAL INFORMATION
1.1 PRINTER OPERATION
The basic idea for the conception of the MTH-2500 printer, was to push
miniaturization as far as possible. The whole printer: case - head - interface
holds in the volume of a big matchbox and consists of very robust elements.
Small size also implies a small dimension for the paper roll, and also the
change of paper was optimized to be extremely simple: you just need to
open the upper lid, insert the paper roll and push the lid back to its initial
position.
Could it be more simple?
MTH-3500 printer as the same basis with a greater paper case (Ø 60 mm).
Thanks to this greater size, this printer can use labels rolls.
Numerous features are enclosed in the management software of the printer
allowing for the printing of graphs and bar codes as well as numerous special
effects.
Bonus:
üA 8K-bytes logo can be stored in the flash memory. The printing of this
logo can be made through the printer interface or by closing a separate
dry contact.
üTwo character sets are embarked to allow you to vary your printed tickets.
üA very simple to implement graphic mode allows you to realize nice
curves without complicated calculation.
üWindows 10, 8.1, 8, Seven, Vista, XP, 2K drivers are available and can be
downloaded from our web site. This driver uses graphic compression tiff4
to increase the printing speed. It allows to select printing between paper
or labels rolls. These drivers are unsigned , please disable the protection
of drivers signed under the recent Windows to allow installation.
The printing speed and the silence of operation makes it the ideal instrument
for point of sale terminals, ticket machines, cash registers and medical
applications.
The 203 dpi density ( 8 points/mm ) authorizes the printing of graphs, curves
and bar codes with excellent quality and resolution.
3 MTH-2500, 2700 & 3500 v3.4

1.2 MATERIAL DESCRIPTION
The printer is designed around a Microchip PIC18F67J50 microprocessor,
128K-bytes of flash ROM and 3904 Bytes of RAM (2k-bytes are reserved for
the receive buffer). An internal watchdog in the microprocessor is activated to
insure an operation in strongly polluted industrial environment.
The printer can be connected in serial in TTL or RS232C levels, RS422
(without protocol or Modbus over serial), in USB 2.0, in thernet
(Raw TCP/IP) ou (ModBus over TCP) or in parallel. Characters received by
the interface are stored in its memory and interpreted by the micro-processor.
Different features such as line-feed and menu buttons, control L D, paper-
end detector and rewinder are directly driven by the MTH-2500, MTH-2700 or
MTH-3500 printers.
1.3 PART NUMBER
Several versions of the electronics are available. To completely define your
product, it is necessary to add a suffix to the name of the printer to specify the
selected computer connection
(P1) Logic VCC and Power VPP must be supplied in 5VDC. To use a unique
supply, please consult our AN117 application note on our web site.
(P2) Power supply is unique and must be any value between DC 9 to 40 V.
MTH-2500, 2700 & 3500 v3.4 4
MTH- xx1x2x3- xc
Time Clock
[C] : installed [ ] : not installed
Power Supply
[1] : DC 5 V(P1) [3] : from DC 9 to 40 V(P2)
Interface
[1] : TTL serial [2] : RS232C serial
[4] : Parallel [6] : USB
[7] : thernet (Printing TCP/IP) [8] : RS422 (without protocol
[9] : thernet (ModBus over TCP) or Modbus over serial)
Paper case & Enclosure
[25] : standard for Ø 31 mm
[27] : standard for Ø 31 mm in DIN 96x96 case
[35] : Deep for Ø 60 mm

1.4 TECHNICAL DATA
Character sets IBM-II
Text print speed 7 character lines / second
Character size (H x W) H= 3mm (24 dots) x
W= 2mm (16 dots) or 1,125mm (9 dots)
Interfaces
Serial
TTL Level : 0/5V
RS232C/V24 Level : ± 12V
Handshake : XON/XOFF and RTS/CTS
RS422 Level : 0/5V
Protocols : Without Protocol (Receive only)
or Modbus over serial
USB version 2.0
Printer class
Parallel Handshake Busy
Paper- nd
Et ernet
Printing TCP/IP Lantronix Xport module
Modbus over TCP Lantronix Xport-IAP module
MTH-xxx1 Power supply DC 5 V
Consumption Waiting mode 90 mA
Black printing ~3 A
MTH-xxx3 Power supply from DC 9 to 40 V
Consumption Waiting mode 50 mA (under DC 12V)
Black printing ~1,5 A ( under DC 12V)
for MTH-2xxx
Weight (without roll) ~75 g
Size in mm 77 x 77 x 40 ( W x D x H )
Operating temperature 0 to 50°C
Paper MPA-TH-57-31-TL-SB
for MTH-3xxx
Weight (without roll) ~105 g
Size in mm 77 x 113 x 70 ( W x D x H )
Operating temperature 0 to 50°C
Paper MPA-TH-57-50-1
5 MTH-2500, 2700 & 3500 v3.4

1.5 PRINT HEAD TECHNICAL DATA
LM208-HS
Technology Thermal
Power supply Head 5,5-9,5 V / Logic 3-5,25 V
Paper width 58 mm
Dots / line 384
Printing density 203 dpi (8 points / mm)
Characters / line 24 or 42 according to selected font
Distance between dots 0,125 mm
Distance between lines 0,125 mm (two motor steps )
Head temperature sensor Thermistor on the head
Paper-end sensor Reflective optical sensor
Life 100 x 106 pulses, 50 kms
Dimensions in mm 68 x 22 x 31
Weight ~ 40 g
MTH-2500, 2700 & 3500 v3.4 6
ELM-208-HS

2 WIRING INFORMATION
2.1 DC 5V POWER SUPPLY
Supply must be connected on CN2
(type Molex KK – 5 pins male connector at 2.54mm step)
CN2 Power supply
8 VPP (power)
9 VPP (power)
10 GND
11 GND
12 VCC (Logic)
2.2 DC 9-40 V POWER SUPPLY
Basis board is only powered in DC 5V. To add DC 9-40 V Power supply, we
install add-on cards directly fixed under the bottom of the printer case.
Power supply connector is similar on all the add-on cards. It is a 2 pins
connector (Phoenix MCV105/12G at 3,81mm step). Corresponding "Power
Supply" connector is delivered with the printer. It is a "Miniconnec MC 1,5/2-
ST-3,81" and can be mounted without special tool.
Depending of the versions, add-on cards can offer other fonctionnalities like
parallel interface, thernet interface, RS485, Communication Class USB
interface and battery support for the clock chip and so on...
7 MTH-2500, 2700 & 3500 v3.4
CN2
5V 8
5V 9
GND 10
GND 11
5V 12
Alimentation 9-40 VDC
1 VPP (DC 9-40 V)
2 GND

2.3 SERIAL TTL AND RS232C
TTL serial connections in 0/5V levels must be connected
on CN2 : type Molex KK – 4 pins male at 2.54mm step
Available on MTH-2500 & 3500
Not available on MTH-2700
RS232C serial connections in ± 12V levels must be connected
on CN2 : type Molex KK – 4 pins male at 2.54mm step
for MTH-2500 & MTH-3500 without add-on card
PAPER END MONITORING
•If a paper-end occurs, a 19h character is sent on the serial interface.
•When a new paper roll is installed, a XON character (11h) is sent on
the serial interface
MTH-2500, 2700 & 3500 v3.4 8
CN2 S RIAL WAY
3 GND -
4 RTS Output
5 RXD Input
6 TXD Output
CN2
GND 3
RTS 4
RXD 5
TXD 6
On Sub-D 9 pins female socket :
5 4 3 2 1
9 8 7 6
n.c.
n.c.
n.c. n.c.
RTS RxD
TxD
n.c.
GND
on the add-on card
for MTH-2500 & 3500 with add-on card
at the back of the DIN96x96 enclosure
for MTH-2700
For information: RS232C serial is active if bridges L , L2 and L3
are opened and U component : MAX-232 is present.
For information: TTL serial is active if bridges
L , L2 and L3 are closed and U component :
MAX-232 is absent.

2.4 USB
USB interface apply to the USB 2.0 specifications and answer to the Printer
Class. USB interface is powered directly by the printer. It can be connected in
CN2 (type Molex KK – 4 pins males at 2.54mm step)
xcept when ordering specific housing including its USB connectivity,
the printer comes with a small USB cord with a female socket type A,
length ~ 18cm .
2.5 RS422 SERIAL
Two modes are possible : « Wit out protocol » (only the data reception is
possible) or in « Modbus over serial » ( voir § 5.6)
2.6 OTHER INTERFACES
Other interfaces are available on add-on cards. They are not described in this
manual but in others specific manuals delivered with your product:
9 MTH-2500, 2700 & 3500 v3.4
CN2 USB
2 GND
3 GND
4 D+
5 D-
6 VUSB
On Sub-D 9 pins female socket :
n.c.
n.c.
n.c.
Bridge 3-4 adds a 120 Ω
terminator resistor.
on the add-on card
for MTH-2500 & 3500
n.c.
n.c.
Bridges 1-2 and 5-6 can be
closed for polarise A and B
lines.
A/RX- B/RX+
C/Gnd
CN2
GND 2
GND 3
D+ 4
D- 5
VUSB 6
Note:
VUSB input is not used to powered the printer
but only to detect if the host computer is present.
A/RX-
at the back of the DIN96x96 enclosure
for MTH-2700
•Parallel interface on a Sub-D 25 pins socket
•thernet Raw TCP/IP interface
•thernet ModBus over TCP interface
•etc...
5 4 3 2 1
9 8 7 6

2.7 BACKUP BATTERY
Only for printer versions with incorporated clock, to preserve the clock
settings, a DC 3 V battery must be connected to CN2 (type Molex KK – 2
pins at 2.54 step).
A battery holder and its battery can installed by our factory service on an
additional card, depending on options chosen.
CN2 BATT RY POLARITY
1 BAK + +
3 BAK - -
2.8 REWINDER
The rewinder of the MP-200-60-62 serie allows the rolling-up of the printed
paper for archiving. Their DC 5 V supply voltage is supplied by the printer.
To connect on CN4 (type Molex KK – 2 pins at 2.54 step)
CN4 R BOBIN UR References: Rewinder
MP-210-60-62: without fastening stands
MP-220-60-62: with fastening stands
1 Rewinder + (VCC)
2 Rewinder - (Signal)
2.9 EXT INPUT
xt input is available on CN3 (type Molex KK – 2 pins at 2.54 step).
CN3 xt Input Advanced->Ext input menu allows to choose the use of
the xt input on CN3 connector between Not Used,
Print Logo, Analog Input (ADC) and Counting Input (CPT).
1 GND
2 XT
MTH-2500, 2700 & 3500 v3.4 10
CN3
GND 1
EXT 2
CN4
WIND+ 1
WIND- 2
CN2
BAT+ 1
2
GND 3

3 PRINTER OPERATION
3.1 START-UP
1. Connect the power supply and connection cables
2. Turn power on
The interface will control its memory, set its parameters according to the data
menu stored in its Flash memory, look for the possible presence of a clock
circuit and moves the printing head 8 steps to synchronize the step motor. At
the end of this initialization cycle, the printer is ready for receiving characters.
3.2 SYSTEM REINITIALIZATION (RESET)
The printer is designed with a watchdog which makes a reset at power-up
authorizing the use of a slow ascent supply. About 300 milli-seconds after the
controller is powered-up, this one is ready for operation, having ended its
reset cycle.
3.3 PAPER LOADING
•Open the printer
•Remove the old
paper roll
•Install the new
paper roll
•Close the printer
3.4 CONTROL PANEL
The control panel allows the user to interact with the printer with two
pushbuttons and a status light.
•Button ► is used to feed the paper, to do the self-test of the printer, to
activate the hex dump mode (§ 3.5) and for the setup menu (§ 5.5).
•Button ■ is used for the setup menu (§ 5.5).
•The bicolour L D informs the user of any malfunctions. A continuous
GR N light indicates proper operation, a flashing R D light informs an
anomaly whose description is detailed in the table in § 5.6.
11 MTH-2500, 2700 & 3500 v3.4

3.5 SELF TEST OR HEXADECIMAL DUMP
If, after a reset, the linefeed button ► is
maintained pushed, a special cycle is run.
The printer starts by printing the 4 first lines
of the self test then wait until the button ► is
released.
Selftest :
Simply release the button ► without other
actions, the printer goes into self-test cycle.
Printer parameters and character set ate
printed. The selftest gives only a probability
of correct operation of the printer; indeed, the
selftest procedure does not use transmission,
this one can only be tested in real mode.
Then connect interface and power supply.
The printer is ready for use !
Here is an example
of partial selftest→
Hexadecimal Dump:
Depressed the button ■ before releasing the
button ►, the printer will switch to hexadecimal dump mode. It will print the
text "H X DUMP:”
In this mode, the hexadecimal values of
successive characters are printed in a first
column and their ASCII shapes in a second
column. Warning: the control codes are not
interpreted any more. This mode is used for
connection debugging. ach line begins by a
characters counter (also in hexadecimal).
A hexadecimal dump is implemented in the
printer. This mode can be activated for a long
time by setting the setup menu :
Advanced->Compatible on HEXA.
MTH-2500, 2700 & 3500 v3.4 12
Dump Hexa xample

4 CHARACTERS & COMMANDS
4.1 CHARACTER SET
Two complete sets of 255 IBM-II characters are available in ROM as well as
national characters. Characters exist in 16x24 and 9x24 matrix allowing 24
and 42 characters by line with uppercase and lowercase letters.
The selection of national characters is done by software or by the setup
menu.
Other fonts can be uploaded in the printer to replace existing fonts. very
other fonts or sizes (maxi 16x24) are conceivable like Cyrillic, Greek, Kanji,
etc...
Ask to our technical department for special fonts.
13 MTH-2500, 2700 & 3500 v3.4
Standard - Matrix 6x24
Standard 9x24
Standard 6x24

4.2 PRINTER LANGUAGE OR COMPATIBILITY
MTH: The default printer language is called MTH. It is near SC/P commands
essentially in text printing. In graphic, only one horizontal dot line is printed at
once while SC/P mode uses 8 or 24 vertical dot lines.
PCL: Last mode is PCL Raw. Only the graphic raw modes are interpreted
with several compression types : No compression, Run Length, Tiff and Delta
Row. A graphical scaling mode is implemented to fit large graphic printouts in
the width of the printer.
EPS24 Lite: This mode is reserved to special applications.
It is not a full pson 24 needles compatibility.
Hexa: In this mode, the hexadecimal values of successive characters are
printed in a first column and their ASCII shapes in a second column. Warning:
the control codes are not interpreted any more. This mode is used for
connection debugging. ach line begins by a characters counter (also in
hexadecimal). This mode can be temporary activated at the power-up (see
chapter 3.5).
MTH-2500, 2700 & 3500 v3.4 14
CP737 - Greek CP855 – Eastern Europe CP866 - Russian
Handy FontTimes Font Modern Font

4.3 MTH COMMANDS
The characters with their ASCII values between 01 hex and 1F hex are
control characters and are printable only in transparent mode (see command
SC T n).
4.3.1 CHARACTER SET
·ESC F n (1B 46 Hex = 27 70 Dec)
Select one of the 2 character fonts.
Only the two lower bits of n allow to
select the font. qual to 0 for font 0; different for font 1.
·ESC R n (1B 52 Hex = 27 82 Dec)
Select national characters.
Default choice is selectable by the setup menu.
nNATION 23 40 5B 5C 5D 5E 60 7B 7C 7D 7E
0 U.S.A. # @ [ \ ] ^ ` { | } ~
1 France # à ° ç § ^ ` é ù è "
2 Germany # § Ä Ü ^ ` ä ö ü ß
3 Great-Britain £ @ [ \ ] ^ ` { | } ~
4 Denmark 1 # @ Æ Ø Å ^ ` æ ø å ~
5 Sweden # É Ä Å Ü é ä ö å ü
6 Italy # @ ° \ é ^ ù à ò è ì
7 Spain Pt@ ¡ Ñ ¿ ^ ` ˝ ñ } ~
8 Japan # @ [ ¥ ] ^ ` { | } ~
9 Norway # É Ä Å Ü é ä ö å ü
10 Denmark 2 # É Ä Å Ü é ä ö å ü
11 Netherland £ @ [ IJ ] ^ ` { ij } ~
·ESC T n (1B 54 Hex = 27 84 Dec)
Print next character in transparent mode. Character n is not interpreted as
control character but is directly printed. This command allow printing of
characters with values smaller than 20 Hex (32 Dec).
15 MTH-2500, 2700 & 3500 v3.4
n Font C ar/line
0 0: Std_16x24 24
1 to 3 1: Std_09x24 42

4.3.2 CHARACTERS ENRICHMENT
·SO (0 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 / nd of underline
n = 1 (01 Hex) or '1' (31 Hex) Beginning of underline
n = 0 (00 Hex) or '0' (30 Hex) nd 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 and the margins :
MATRIX n MAX. ENLARGEMENT
16 x 24 23 24 times
12 x 24 31 32 times
9 x 24 41 42 times
If n is too big, widening is set to the maximal possible width.
·ESC o n (1B 6F Hex = 27 111 Dec)
Graphic design of the zero
n = 1 (01 Hex) or '1' (31 Hex) Slashed zero (default value).
n = 0 (00 Hex) or '0' (30 Hex) Non slashed zero.
·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 l n (1B 6C Hex = 27 108 Dec)
Setting the left margin in mm.
The byte n represents the distance in millimeters from the left edge of the
printing zone. This setting is independant from the text or data printing
modes. Be careful, right and left margins only affect text printing, and do
not affect graphic and bar code printing.
MTH-2500, 2700 & 3500 v3.4 16

·ESC r n (1B 72 Hex = 27 114 Dec)
Setting the right margin in mm.
The byte n represents the distance in millimeters from the right edge of the
printing zone. This setting is independant from the text or data printing
modes. Be careful, right and left margins only affect text printing, and do
not affect graphic and bar code printing
·ESC { n (1B 7B Hex = 27 123 Dec)
Setting of the mode Text/Data
n = 1 (01 Hex) ou '1' (31 Hex) Data mode
n = 0 (00 Hex) ou '0' (30 Hex) Text mode (default setting)
The text or data default mode is set-
up by the setup menu
·ESC I n (1B 49 Hex = 27 73 Dec)
Choice of printing contrast
n < 128, printing becomes brighter
n= 128, printing is normal
n > 128, printing becomes darker
4.3.3 HORIZONTAL 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 setup menu.
17 MTH-2500, 2700 & 3500 v3.4

4.3.4 VERTICAL SPACES
·LF (0A Hex = 10 Dec)
Starting a new line.
The LF (Line Feed) 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)
In normal mode, starts a new page. See SC C command.
In label mode, moves the roll at the beginning of the next label.
See GS P n 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 2 (1B 32 Hex = 27 50 Dec)
Return to the default space between the lines. (default value = 0)
·ESC 3 n (1B 33 Hex = 27 51 Dec)
Setting the space between two character lines to n dot lines
(n x 0.125 mm)
·ESC 5 n (1B 35 Hex = 27 53 Dec)
No effect
(only for compatibility with previous software versions)
·ESC C n (1B 43 Hex = 27 67 Dec)
Setting the page length in lines of characters.
The default value is set by the setup menu.
·ESC J n (1B 4A Hex = 27 74 Dec)
Advancing for n dot lines (n x 0.125 mm).
MTH-2500, 2700 & 3500 v3.4 18

4.3.5 GRAPHICS
·ESC f (1B 66 Hex = 27 102 Dec)
Printing a black line.
·ESC K n x1...xn (1B 4B ... Hex = 27 75 ... Dec)
Line by line graphic printing.
n represents the number of characters of the
graphic string. The characters string x1 to xn
represents the desired printed pattern. All
the bits of received characters are printed on
the same line.
Text and Data mode enrichment ( SC '{' n) and vertical lengthening mode
( SC 'w' n) only have an effect in graphic mode. In Text mode, the line is
printed from left to right with the higher weight’s bits to the far left. In Data
mode, the line is printed from right to left with the higher weight’s bits to the
far right. Characters and graphics cannot be printed on the same line.
The graphic data transmission can be transmitted non-compressed or using
tiff4 pack-bits compression mode (see SC 'm' command).
·ESC m n (1B 6D ... Hex = 27 109 ... Dec)
Setting of the graphic compression mode tiff4.
n = 0 (00 Hex) or '0' (30 Hex) No compression (default mode)
n ≠ 0 (00 Hex) or '0' (30 Hex) Tiff4 compression
19 MTH-2500, 2700 & 3500 v3.4
Megatron logo printed
Not compressed example: SC K <30h>ABC...X
Text Mode
Data Mode

·ESC ' mL mH nL1 nH1 .. nLm nHm (1B 27 Hex=27 39 Dec)
Printing graphic curves.
This command allows for easy printing of curves along the paper
(vertically). The m value (transmitted on 2 bytes) represents the number of
curves (points) to be printed for the current graphic line, and must be
included between 1 and the maximum number of printable points per line
(384).
The n1 .. nm values represent the position of these m curves (or points); the
number of points (n1 .. nm) must be equal to m.
ach point must be included between 1 and the maximum number of
printable points per line (384), otherwise it will not be printed. As horizontal
lines printing progresses, the vertical curves will show on the paper.
The vertical lengthening ( SC 'w' n) act on the graphic curves.
Example: Basic software to print 4 curves and a central axis.
·y = 192 + e-0,1x
·y = 192 - e-0,1x
·y = 192 - e-0,1x * sin (x/10)
·y = 192 + e-0,1x * sin (x/10)
·y = 192
MTH-2500, 2700 & 3500 v3.4 20
10 OP N "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); CHR$(0);
40 Y=INT(192* XP(-.01*X)): YY=INT(Y*SIN(X/10))
50 PRINT #1, CHR$((192-YY) mod 256);CHR$((192-YY) div 256);
60 PRINT #1, CHR$((192-Y) mod 256);CHR$((192-Y) div 256);
70 PRINT #1, CHR$(192);CHR$(0);
80 PRINT #1, CHR$((192+Y) mod 256);CHR$((192+Y) div 256);
90 PRINT #1, CHR$((192+YY) mod 256);CHR$((192+YY) div 256);
100 N XT X
110 CLOS #1
120 ND
Software in Basic
This manual suits for next models
2
Table of contents
Other Megatron Printer manuals

Megatron
Megatron TP UP-NH User manual

Megatron
Megatron PORTI-T380 User manual

Megatron
Megatron GeBE-COMPACT Plus User manual

Megatron
Megatron WSP-CP260 User manual

Megatron
Megatron MRSi-x200 User manual

Megatron
Megatron WSP-R240 User manual

Megatron
Megatron UP-PN-II User manual

Megatron
Megatron PORTI-T380 User manual

Megatron
Megatron WSP-R241 User manual

Megatron
Megatron WSP-i350 User manual