02 InterfaceManual en Markem Imaje 9040 White
02 InterfaceManual en Markem Imaje 9040 White
02 InterfaceManual en Markem Imaje 9040 White
parallel links
General 7
■ Introduction 9
■ Description of signals used 10
Reference (GND) 10
DSR (Data Set Ready) voltage level transmission 10
DTR (Data Terminal Ready) voltage level transmission 10
TXD (Transmit Data) voltage level transmission 10
RXD (Receive Data) voltage level transmission 10
■ Electrical specifications 11
■ Timing diagram 11
■ General principle of dialog 12
Data sent from computer to printer 12
Data requested by computer from printer 12
Identifier (1 hexadecimal byte) 13
Length (2 hexadecimal bytes) 13
Data 13
Check byte (Checksum) 13
Reminder 14
■ Hardware configuration 15
Presentation of the industrial interface board terminal block 15
Terminal block B1: Communication 15
Industrial interface board 16
Jumper positions 17
Recommended connection diagram 18
■ Programming the printer 19
Lists of identifiers 23
■ General list of V24 commands 25
■ List of transmissions to printer 26
■ List of requests to printer 27
A36981-A.doc
3/138
Contents
Transmissions to printer 29
■ Transmissions regarding the printer 31
Printer shutdown / start-up 31
Reset faults 32
Transmit keyboard code 33
Transmit security code 34
Permit menu modification by keyboard if DSR active 35
Transmit print acknowledgement request 36
Transmit printer initialization 41
Upload files to Master, IP65, and Contrast 43
■ Transmission concerning heads 47
Transmit jet condition/maintenance 47
■ Transmissions concerning messages 48
Transmit message number to print 48
Transmit non-library message (complete, parameters or text) 49
Transmit library message (complete, parameters or text) 50
Transmit partial message 51
Transmit external variables 53
■ Transmissions regarding variable items (counter, time
code, autodating) 54
Transmit current counter value 54
Reset counters 55
Transmit tables of months and time codes 56
Initialize autodating 57
Transmit autodating table 58
A36981-A.doc
4/138
Contents
Details of data 85
■ Details of message data 87
Structure indicator 87
General message parameters 88
Variable item parameters 89
Definition of lines 94
Definition of blocks 95
List of standard fonts 96
Detail of text 97
End of message 104
A36981-A.doc
5/138
Contents
■ Results 116
1. Direct mode 116
2. Standard mode 117
A36981-A.doc
6/138
General
A36981-A.doc
7/138
General
A36981-A.doc
8/138
General
■ Introduction
This manual concerns 9040, 9040 IP65, 9040 Contrast and 9040 S printers which have an
asynchronous, half duplex serial interface connected to a computer in V24 voltage level
mode.
The RS232C (or V24) standard describes the signals available during dialog between a
DTE (Data Terminal Equipment) and a DCE (Data Communication Equipment).
No more than 7 signals are used to connect to a printer.
A36981-A.doc
9/138
General
Reference (GND)
This is an input to the printer. This signal enables the printer's V24 mode.
A symbol is displayed on the printer display when the DSR signal is active.
( in lower left corner of display window).
This is an output from the printer. This signal is active as soon as the printer is ready to
dialog.
A36981-A.doc
10/138
General
■ Electrical specifications
The electrical specifications are defined by the V24 RS232C standard.
The input control signals (DSR, RXD) are active when their voltage level is between +3 V
and +12 V and inactive between -3 V and -12 V.
The output control signals (DTR, TXD) are active with a voltage of 9 V and inactive with a
voltage of -9 V.
■ Timing diagram
+3 V to +12 V
DSR
Printer
input The printer monitors DSR and accepts V24
control by asserting DTR (if DTR is not asserted, -3 V to -12 V
the printer is not ready to dialog).
DTR
Printer
output
The printer disables DTR when
the command is complete.
RXD
Printer input
TXD
Printer output
A36981-A.doc
11/138
General
COMPUTER PRINTER
ENQ
OPTIONAL
ACK
ACK (1 byte)
COMPUTER PRINTER
ENQ
OPTIONAL
ACK
NOTE All data coded in several bytes must be transmitted with the
high order byte first.
All bytes must be transmitted with the low order bit first.
A36981-A.doc
12/138
General
The length is a hexadecimal value representing the number of bytes present after the two
length bytes and not including the check byte (Checksum).
Data
Zero bytes for a general request from the computer to the printer.
1 byte specifying the jet number for a request concerning a jet.
n bytes starting with a byte specifying the jet number for a transmission concerning a jet.
n bytes (without specifying the jet number) for a transmission concerning the printer in
general.
This corresponds to an exclusive OR of all preceding bytes (identifier, length and data
bytes).
Truth table for the "exclusive OR" function used for the checksum.
X Y Result
0 0 0
0 1 1
1 0 1
1 1 0
Result 01000011
or in hexadecimal = 43 h
A36981-A.doc
13/138
General
Reminder
7 6 5 4 3 2 1 0
0 0 1 1 1 0 1 0
3 A i.e. 3Ah
A36981-A.doc
14/138
General
■ Hardware configuration
To access the industrial interface board, open the top of the cabinet, pass the connecting
cable through one of the cable glands and connect the wires to the appropriate terminal
block.
Connector Comments
Terminal Marked Signal I/O
HE14
IMPORTANT: The +5 V, +15 V and -15 V outputs are not fuse protected,
and they must be used with caution.
A36981-A.doc
15/138
General
S5 S7
S1
J7
S2
J13
B1 J1
J10
J12
B3 S3
J15 S4
S8
S6
J11
S9
B2
J14
J9
J6
J8 J4 J5 B4
A36981-A.doc
16/138
General
Jumper positions
The jumpers located on the industrial interface board are used to configure the serial link.
Standard
NAME MARKED POSITION FUNCTION/COMMENTS
positions
A36981-A.doc
17/138
General
WIRING DIAGRAM
Computer Printer
ground
TD TD
RD RD
RTS RTS
CTS CTS
DSR DSR
DTR DTR
A36981-A.doc
18/138
General
IMPORTANT Using the printer keyboard during V24 exchanges may slow
transmission or cause conflicts. It is highly recommend to lock
out access to the keyboard during the communication process
using the V24 commands provided.
A36981-A.doc
19/138
General
■ RS232 link
□ Direct:
The operator interface sends V24 commands to the CPU without processing them.
This is the quickest mode of operation.
In the PRODUCTION menu:
. The current message is not displayed.
. Message names are replaced by asterisks (*).
. The PC interface is not updated.
Any menu open is automatically closed when a message is received.
□ Standard:
The operator interface takes into account V24 commands on their way to the CPU.
The processing time is at least 80 ms.
In the PRODUCTION menu:
. Pressing 1 or 2 displays the current message on head 1 or 2.
. The message name varies to match the current message.
□ Test:
This mode of operation is not recommended for applications where the message
changes regularly.
Processing time to display message (3 to 10 s).
In the PRODUCTION menu:
. All messages sent or selected by V24 are automatically displayed.
. The message name also changes to match the external selection.
A36981-A.doc
20/138
General
■ Simple protocol
□ None:
Only the conventional protocol is used for external communication
(identifier - length - data - check byte).
□ Message selection:
In addition to the conventional protocol, the name of a message may be transmitted
in a simplified protocol to select it for printing.
Format: STX (02h) / Message name (maximum 8 characters) / ETX (03h).
. This command only addresses head 1 of the printer.
. It should preferably be used without a library.
. Messages may be selected from all those stored in the interface.
□ External variables:
In addition to the conventional protocol, the contents of external variables may be
transmitted in a simplified protocol to update the message printed.
Format: STX (02h) / Variable1, Variable 2, … (in ASCII) / ETX (03h).
. This command only addresses head 1 of the printer.
. The number of characters sent must be equal to the total number of characters
reserved in all external fields in the message.
. Variable values are sent in turn, in the order of their respective fields in the
message to be printed, from jet 1 to jet n.
. If an external variable is declared in a barcode with plain text transcription, the
frame value must be sent together with the plain text value. In this case the variable
is sent twice, at the reserved locations.
Example: STX (02h) / Variable 1, Variable 1 / ETX (03h).
he update affects all jets for the current message, on head 1 only. The message
must be selected manually on the operator interface, not by
external communication.The maximum size of variables is
1022 characters. No checks are made on variable values.
Users must ensure that the content is consistent with the fields
reserved in the message to be printed.If the list of variables is
incomplete or empty, it is completed with spaces.If the list is
too long it is truncated.
A36981-A.doc
21/138
A36981-A.doc
22/138
Lists of identifiers
A36981-A.doc
23/138
Lists of identifiers
A36981-A.doc
24/138
Lists of identifiers
A36981-A.doc
25/138
Lists of identifiers
PRINTER
Printer shutdown / start-up 30h
Reset faults 3Ch
Transmit keyboard code 3Eh
Transmit security code 3Fh
Permit menu modification by keyboard if DSR active 0Fh
Transmit print acknowledgement request 41h
Transmit printer initialization 36h
Upload files to Master, IP65, Contrast 50h
HEAD
Transmit jet status / Maintenance 31h
MESSAGE
Transmit message number to print 5Ah
Transmit external variables 5Bh
Transmit non-library message (complete, parameters or text) 57h
Transmit library message (complete, parameters or text) 58h
Transmit partial message 59h
VARIABLES
Transmit current counter value 51h
Reset counters 3Ah
Transmit tables of months and time codes 53h
Initialize autodating C8h
Transmit autodating table DFh
A36981-A.doc
26/138
Lists of identifiers
PRINTER
V24 dialog request 05h
Request keyboard code 45h
Request printer parameters 20h
Request IC solenoid valve, Fluid levels and viscosity meter 35h
condition
Request CRCs of printer PROMs 37h
Request printer faults 3Bh
Request status for Contrast Printer 4Dh
HEAD
Request jet status / Maintenance 32h
Request jet speed and phase 33h
MESSAGE
Request complete current message 43h
Manual printing / Order printing 94h
VARIABLES
Request current counters 39h
Request PPP printing counter 56h
Request autodating D6h
Request for an autodating table DEh
Request tables of months and time codes 52h
A36981-A.doc
27/138
A36981-A.doc
28/138
Transmissions
to printer
A36981-A.doc
29/138
Transmissions to printer
A36981-A.doc
30/138
Transmissions to printer
COMPUTER PRINTER
Identifier 30h
06h ACK
or
15h NACK
A36981-A.doc
31/138
Transmissions to printer
Reset faults
COMPUTER PRINTER
Identifier 3Ch
Checksum 3Ch
06h ACK
or
15h NACK
A36981-A.doc
32/138
Transmissions to printer
COMPUTER PRINTER
Identifier 3Eh
06h ACK
or
15h NACK
The keyboard code is a sequence of 3 alphanumeric ASCII characters between 20h and
60h inclusive.
To clear the keyboard locking code, simply send the sequence: 20h/20h/20h,
A36981-A.doc
33/138
Transmissions to printer
This code protects V24 messages. It may be initialized or modified but not displayed. The
computer must know the security code to send other instruction sequences.
COMPUTER PRINTER
Identifier 3Fh
Checksum xxh
06h ACK
or
15h NACK
The security code is a sequence of 3 alphanumeric ASCII characters between 20h and
60h inclusive.
If the printer replies NACK, the security code is incorrect.
NOTE If the security code is sent to the printer as the last command
when last used, it must also be sent as the first sequence of
each exchange.
REMINDER After the CPU board memory is reset, the printer automatically
sets the security code "TWO".
A36981-A.doc
34/138
Transmissions to printer
COMPUTER PRINTER
Identifier 0Fh
06h ACK
or
15h NACK
A36981-A.doc
35/138
Transmissions to printer
COMPUTER PRINTER
Identifier 41h
Print
xxh
acknowledgement
Checksum xxh
06h ACK
or
15h NACK
A36981-A.doc
36/138
Transmissions to printer
Detail of data
□ Detail of "Jet number" byte
0 0 0 0
A36981-A.doc
37/138
Transmissions to printer
■ Print acknowledgement
COMPUTER PRINTER
Head 1 Head 2
E5h E6h After each object
E9h EAh After each batch
F1h F2h After each final counter value
E1h E2h When DTOP is received if printing is
impossible (fault or jet in start-up or
shutdown phase)
COMPUTER PRINTER
Print acknowledgement
xxh
after each object
xxh General faults
xxh
Motor speed
xxh
xxh Pressure
Data
xxh Viscosity
A36981-A.doc
38/138
Transmissions to printer
Detail of data
□ Detail of the print acknowledgement
Head 1 Head 2
E5h E6h After each object
E1h E2h When DTOP is received if printing is
impossible (fault or jet in start-up or
shutdown phase)
1 = fault
0 = no fault
A36981-A.doc
39/138
Transmissions to printer
A36981-A.doc
40/138
Transmissions to printer
COMPUTER PRINTER
Identifier 36h
Checksum xxh
06h ACK
or
15h NACK
A36981-A.doc
41/138
Transmissions to printer
Detail of data
□ V24 watchdog:
Time in tens of milliseconds, from 1 to 9999, coded as 2 hexadecimal bytes.
0 0 0 0 0 0
Cover
Recov.
□ Head type:
00h: 1 single-jet head 03h: 2 dual-jet heads
01h: 2 single-jet heads
02h: 1 dual-jet head
□ Autodating Run/Stop:
00h = Run
FFh = Stop
A36981-A.doc
42/138
Transmissions to printer
COMPUTER PRINTER
Identifier 50h
Checksum xxh
06h ACK
or
15h NACK
A36981-A.doc
43/138
Transmissions to printer
COMPUTER PRINTER
Identifier 50h
Checksum xxh
06h ACK
or
15h NACK
COMPUTER PRINTER
Identifier 50h
Checksum xxh
06h ACK
or
15h NACK
A36981-A.doc
44/138
Transmissions to printer
Detail of data:
□ "File name" bytes:
Maximum 8 characters (DOS format).
□ "Length" bytes:
The computer sends 2 hexadecimal bytes representing the length of the data (block
number + file data).
Maximum size of file data = 1 KB (1024 bytes).
IMPORTANT If the file already exists in the printer, it is overwritten when the
first block containing the file name is received.
Files uploaded are only taken into account when the printer is
restarted.
A36981-A.doc
45/138
Transmissions to printer
COMPUTER PRINTER
Identifier 50h
Checksum D0h
06h ACK
or
15h NACK
A36981-A.doc
46/138
Transmissions to printer
COMPUTER PRINTER
Identifier 31h
Checksum xxh
06h ACK
or
15h NACK
Detail of data:
□ Jet number:
To control the jet(s) on head 1, send the hexadecimal value 01h.
To control the jet(s) on head 2, send the hexadecimal value 03h.
□ Jet status:
0 Stop jet 00h
1 Start jet 01h
2 Refresh 02h
3 Stabilize jet 03h
4 Introduce solvent 04h
5 Unclog nozzle 05h
6 Adjust jet in gutter 06h
A36981-A.doc
47/138
Transmissions to printer
COMPUTER PRINTER
Identifier 5Ah
Checksum xxh
06h ACK
or
15h NACK
A36981-A.doc
48/138
Transmissions to printer
COMPUTER PRINTER
06h ACK
or
15h NACK
■ Detail of data
message End of
General Variable
Structure Line 1 Line 1 Line m message
message item Line 1 Block l
indicator delimiter block … … delimiter … delimiter
parameters parameters block n of line m
0Ah 1 0Ah 0Dh
x bytes
A36981-A.doc
49/138
Transmissions to printer
COMPUTER PRINTER
06h ACK
or
15h NACK
■ Details of data
- Message number in library
- Message title
The title selected for this message, comprising 8 alphanumeric characters
compatible with DOS file names.
message End of
General Variable
Structure Line 1 Line 1 Line m message
message item Line 1 Block l
indicator delimiter block … … delimiter … delimiter
parameters parameters block n of line m
0Ah 1 0Ah 0Dh
A36981-A.doc
50/138
Transmissions to printer
This transmission can be used to modify the contents of the active message for printing
without modifying its structure.
COMPUTER PRINTER
06h ACK
or
15h NACK
A36981-A.doc
51/138
Transmissions to printer
■ Detail of data
Position of Number of
Number of first character characters to
Line number Line number 'I' (0
zones to to modify in modify in the SYMBOLS … …
'K' (0 to 15) to 15)
modify the line zone
(0 to x) (1 to x)
1 byte 1 byte 2 bytes 2 bytes P bytes 1 byte
Zone 1 Zone 2
or
A36981-A.doc
52/138
Transmissions to printer
COMPUTER PRINTER
06h ACK
or
15h NACK
■ Detail of data
This command may only be used if the active message already contains the zones to
modify surrounded by delimiters 12h.
If a zone is to be left unmodified it must be transmitted with text = 0 characters.
Maximum 10 variables per message
A36981-A.doc
53/138
Transmissions to printer
COMPUTER PRINTER
Identifier 51h
Checksum xxh
06h ACK
or
15h NACK
Detail of data
Counters
Heads counters
1 1
1 2
2 3
2 4
A36981-A.doc
54/138
Transmissions to printer
Reset counters
COMPUTER PRINTER
Identifier 3Ah
Checksum xxh
06h ACK
or
15h NACK
Detail of data
counters
Jets counters
1 1
2 2
3 3
4 4
A36981-A.doc
55/138
Transmissions to printer
COMPUTER PRINTER
Identifier 53h
06h ACK
or
15h NACK
Detail of data
□ "Date change time" bytes HHMM in ASCII.
A36981-A.doc
56/138
Transmissions to printer
Initialize autodating
COMPUTER PRINTER
Identifier C8h
Checksum xxh
06h ACK
or
15h NACK
All the data bytes except the 24-hour mode are coded in BCD (Binary Coded Decimal).
Units are represented by the low order half-byte.
The minimum and maximum values for these bytes are in decimal:
□ seconds 00 to 59
□ minutes 00 to 59
□ hours 00 to 23
□ day 01 to 31
□ month 01 to 12
□ year 00 to 99
A36981-A.doc
57/138
Transmissions to printer
COMPUTER PRINTER
■ Detail of data
. Type of table
00h table of hours
01h table of minutes
02h: table of weekdays
03h: table of days of the year
04h: table of months
05h table of weeks
06h: table of months of the year
07h table of current year
. Table
table of hours 24 x 3 ASCII characters
table of minutes 60 x 3 ASCII characters
table of weekdays 7 x 3 ASCII characters
table of days of the year 366 x 3 ASCII characters
table of days of the month 31 x 3 ASCII characters
table of weeks 53 x 3 ASCII characters
table of months of the year 12 x 3 ASCII characters
table of current year 10 x 3 ASCII characters
A36981-A.doc
58/138
Requests
to the printer
A36981-A.doc
59/138
Requests to the printer
A36981-A.doc
60/138
Requests to the printer
This request is optional. It does however provide a check that the printer is "ready" to
dialog, and may be sent before every exchange.
COMPUTER PRINTER
06h ACK
or
15h NACK
A36981-A.doc
61/138
Requests to the printer
COMPUTER PRINTER
Identifier 45h
Checksum 45h
06h ACK
45h Identifier
Between Code 1
20h, 60h (1 ASCII)
Between Code 2
20h, 60h (1 ASCII)
Between Code 3
20h, 60h (1 ASCII)
xxh Checksum
or
15h NACK
A36981-A.doc
62/138
Requests to the printer
COMPUTER PRINTER
Identifier 20h
Checksum 20h
06h ACK
20h Identifier
A36981-A.doc
63/138
Requests to the printer
COMPUTER PRINTER
Identifier 35h
Checksum 35h
06h ACK
35h Identifier
Data
xxh Reference visco (s)
(1 byte)
xxh No. times additive
added (1 byte)
xxh Checksum
or
15h NACK
A36981-A.doc
64/138
Requests to the printer
Detail of data
□ IC SV byte:
State 0 = Closed
State 1 = Open
Visco Equivisc
Ink Charge
NOTE Only on Contrast printers are all of these solenoid valves used.
On other printers, only the Additive and Visco solenoid valves
are used.
□ Levels byte:
□ Viscosity byte:
The value of this byte represents the viscosity meter filling time in seconds, coded in
hexadecimal.
□ Visco reference byte:
Viscosity reference time in seconds, coded in hexadecimal.
□ Number of times additive added byte:
Number of additions, coded in hexadecimal.
A36981-A.doc
65/138
Requests to the printer
COMPUTER PRINTER
Identifier 37h
Checksum 37h
06h ACK
37h Identifier
A36981-A.doc
66/138
Requests to the printer
Detail of data
□ "Cover/recov. fault" byte:
Cover Recov.
0 0 0 0 0
G nozzle: 0 0 0
M nozzle: 1 0 0
P nozzle: 1 1 0
1
State 0 = ROM
State 1 = RAM
A36981-A.doc
67/138
Requests to the printer
Identifier 3Bh
Checksum 3Bh
06h ACK
3Bh Identifier
A36981-A.doc
68/138
Requests to the printer
Detail of data
□ byte : general faults
State 0 = no fault
State 1 = fault
Bit 7 6 5 4 3 2 1 0
* Pigmented
Ink level low
ink circuit
CPU hardware
Head 2 faulty (VIAS, ACIA, ROM,
RAM, HORO)
Bit 7 6 5 4 3 2 1 0
0 0 0 0 0
ROM faulty
RAM faulty
Autodating
faulty
A36981-A.doc
69/138
Requests to the printer
Bit 7 6 5 4 3 2 1 0
Additive V24
* Recovery tank
Fan
too full
Bit 7 6 5 4 3 2 1 0
0 0 0 0 0
A36981-A.doc
70/138
Requests to the printer
Bit 7 6 5 4 3 2 1 0
0 0 0 0
Phase
detection Cover
Recovery EHV
Bit 7 6 5 4 3 2 1 0
0 0
Jet present = 0
Jet not present = 1
Communication
Incorrect character between CPU and
generator number printer
in message
Printing speed
No message
DTOP filtering
to print
A36981-A.doc
71/138
Requests to the printer
COMPUTER PRINTER
Identifier 4Dh
06h ACK
4Dh Identifier
xxh Levels
Data
xxh Solenoid valves
AP and discharge
xxh
solenoid valves
xxh Pressure
End of phase (standby
xxh
mode)
A36981-A.doc
72/138
Requests to the printer
Detail of data
□ "Sub-phase time" byte:
Time expressed in tenths of a second, in 2 bytes.
□ "Levels" byte:
State 0 = Closed
State 1 = Open
Visco Equi-visc
Ink Charge
A36981-A.doc
73/138
Requests to the printer
State 0 = Closed
0 0 0 0
State 1 = Open
Compressor
Head pressurization
Discharge AP ( atmospheric
pressure )
□ "Pressure" byte:
The printer sends one hexadecimal byte representing the pressure in decimal.
Calculation of pressure in millibar:
. pressure in decimal × 19.6 mb per step, for G and M heads.
A36981-A.doc
74/138
Requests to the printer
COMPUTER PRINTER
Identifier 32h
Checksum xxh
06h ACK
32h Identifier
Data
xxh Jet status
xxh Checksum
or
15h NACK
Detail of data:
□ "Jet number" byte:
Printer Head Jet Jet num.
□ "Jet status" byte
1.1 1 1 01h
1 01h
00h = jet stopped
1.2 1
2 02h 01h = jet in start-up phase
1 1 01h
2.1 02h: = jet in refresh
2 3 03h
1 01h
03h: = jet in stability check
1
2 02h
04h: = jet in solvent feed
2.2 05h = jet in nozzle unclog
3 03h
2 06h = adjustment
4 04h
07h = jet running
A36981-A.doc
75/138
Requests to the printer
COMPUTER PRINTER
Identifier 33h
Checksum xxh
06h ACK
33h Identifier
Data
xxh Jet phase
xxh Checksum
or
15h NACK
Detail of data:
□ "Jet number" byte:
Printer Head Jet Jet num.
□ "Jet speed" byte
1.1 1 1 01h
1 01h
The jet speed is expressed in tenths of a meter per
1.2 1
2 02h second, coded in 1 hexadecimal byte
1 1 01h
2.1
2 3 03h
□ "Jet phase" byte
1 01h
1
2 02h 8 bits which may each be set to 0 or 1.
2.2
3 03h
2
4 04h
A36981-A.doc
76/138
Requests to the printer
COMPUTER PRINTER
Identifier 43h
Checksum xxh
06h ACK
43h Identifier
00h, xxh Length
Xxh, xxh Structure indicator
xxh Checksum
or
15h NACK
A36981-A.doc
77/138
Requests to the printer
Command printing
This command starts printing on the head(s). The printer must be configured in either
manual auto or manual object mode.
COMPUTER PRINTER
Identifier 94h
Checksum xxh
06h ACK
A36981-A.doc
78/138
Requests to the printer
COMPUTER PRINTER
Identifier 39h
Checksum xxh
06h ACK
39h Identifier
xxh Checksum
or
15h NACK
A36981-A.doc
79/138
Requests to the printer
This command only concerns printers with the Pay Per Print option.
COMPUTER PRINTER
Identifier 56h
Checksum xxh
06h ACK
56h Identifier
Printing counter in
Data
4 xxh
HEXADECIMAL
xxh Checksum
or
15h NACK
A36981-A.doc
80/138
Requests to the printer
Request autodating
COMPUTER PRINTER
Identifier D6h
Checksum D6h
06h ACK
9Ch Identifier
2 ASCII Seconds
2 ASCII Minutes
2 ASCII Hours
20h, 20h,
3 spaces
20h
20h, 20h 2 spaces
2 ASCII Year
xxh Checksum
or
15h NACK
A36981-A.doc
81/138
Requests to the printer
CALCULATOR PRINTER
00h,
Length (2 bytes)
01h
Data (1 byte):
xxh
- type of table 00h to 0Bh
Checksum (1
xxh
byte)
xxh,
Length (2 bytes)
xxh
Data:
xxh
- type of table (1 byte)
xxh,…
- table (n bytes)
Checksum (1
xxh
byte)
■ Data details
A36981-A.doc
82/138
Requests to the printer
A36981-A.doc
83/138
Requests to the printer
COMPUTER PRINTER
Identifier 52h
Checksum 52h
06h ACK
52h Identifier
Data
26 bytes Time code letters
Detail of data
□ "Date change time" bytes : HHMM in ASCII.
□ "Time code digits" bytes: 96 2-digit codes
01-02-03-04-05-06-07-08-09-10-11-12-13-14-15-16-17-18-19-20-21-22-23-24- - - - 96.
□ "Time code letters" bytes: 26 1-digit codes
A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S-T-U-V-W-X-Y-Z.
□ "Month table" bytes: 12 3-digit codes
JAN-FEB-MAR-APR-MAY-JUN-JUL-AUG-SEP-OCT-NOV-DEC.
A36981-A.doc
84/138
Details
of data
A36981-A.doc
85/138
Details of data
A36981-A.doc
86/138
Details of data
First byte:
b7 b6 b5 b4 b3 b2 b1 b0
General parameters
present
0=no / 1 = yes
low order
bit (LSB)
Message text present
0=no / 1 = yes
Number of
Medium postdates
Not used bit (0 to 2)
Number of
counters (0 to 2)
Time codes
Second byte: present in message
0=no / 1 = yes
b7 b6 b5 b4 b3 b2 b1 b0
9040 message Number of bar codes
structure and Datamatrix codes
b6=0 and b5=1 (0 to 4)
not used = 0
A36981-A.doc
87/138
Details of data
Byte 1:
b7 b6 b5 b4 b3 b2 b1 b0
Horizontal direction
Unit for margins
0 = normal
0 = millimeters
1 = reverse
1 = frame ht
A36981-A.doc
88/138
Details of data
IMPORTANT The order of the various parameters is fixed, though they may
be omitted if the structure flag is set accordingly.
■ Counters
Byte 1:
b7 b6 b5 b4 b3 b2 b1 b0
Not used
A36981-A.doc
89/138
Details of data
Byte 2:
increment b7 b6 b5 b4 b3 b2 b1 b0
1 = Externe 0 0 1 0 0 0 0 0
3 = Object 0 1 1 0 0 0 0 0
4 = Message 1 0 0 0 0 0 0 0
Chaining counter:
1 0 0 0 0 0 0 0 1
2 1 0 1 0 0 0 0 0
Bytes 3 to 26:
- Start value (9 bytes ) 000000000 to 999999999
- End value (9 bytes ) 000000000 to 999999999
- Counter step (2 bytes ) 01 to 99
- Increment divider (4 bytes, batch counter *) 000000 to 99999
* Only the 3 low order bytes are significant
■ Postdates (2 bytes)
- Bits 0 to 13: postdate interval 0 to 9999 days.
- Bits 14 and 15: Postdate unit 0 = days / 2 = months
A36981-A.doc
90/138
Details of data
Byte 1:
b7 b6 b5 b4 b3 b2 b1 b0
The printer uses the code identification to select the correct encoding rule,
which also contains the frame structures used by the code.
A36981-A.doc
91/138
Details of data
Byte 3:
b7 b6 b5 b4 b3 b2 b1 b0
Expansion factor
1 to 9
Byte 4:
b7 b6 b5 b4 b3 b2 b1 b0
Width of
Not used narrow spaces
(1 to 4 frames)
Width of
narrow bars
(1 to 4 frames)
Byte 5:
b7 b6 b5 b4 b3 b2 b1 b0
Width of Width of
wide bars wide spaces (2
(2 to 9 frames) to 9 frames)
IMPORTANT • The width of a narrow item must be less than that of a wide
item.
A36981-A.doc
92/138
Details of data
Byte 6:
b7 b6 b5 b4 b3 b2 b1 b0
Reverse video
yes = 1
Not used
no = 0
IMPORTANT If a check byte is used, its location must be reserved in the text
of the code. A check byte must never be the last character of a
variable item.
Byte 7:
b7 b6 b5 b4 b3 b2 b1 b0
0 0 No text
0 1 Text present
beneath code.
■ Time code
A36981-A.doc
93/138
Details of data
Definition of lines
A line is a set of blocks. The start of line delimiter 0Ah is used for each line. The end of
message delimiter 0Dh is used at the end of the message.
Example message:
Height
BLOCK 4
TAB 3
TAB 1 BLOCK 2
BLOCK 1 BLOCK 3
TAB 2 Length
A36981-A.doc
94/138
Details of data
Definition of blocks
A block is a set of items produced with the same character generator, same expansion
and same vertical position.
■ Position
These two bytes give the vertical position of the block as a number of drops relative to the
first drop at the bottom of the character.
51
Upper printing zone
28 (1 Ch)
Unprintable section
24
Lower printing zone
1 (01h)
■ Character generator
Character generator number coded in 1 byte.
The list of character generator numbers is given in the "List of fonts" section.
■ Expansion
Expansion of the entire block, 1 to 9 in hexadecimal.
■ Identifier
Start and end of text identifier 10h.
A36981-A.doc
95/138
Details of data
A36981-A.doc
96/138
Details of data
Detail of text
■ Alphanumeric characters
■ Counter
Delimiter Delimiter
Counter number 01 to 02
1 byte 1 byte
1 byte - xxh
1Ch 1Ch
A36981-A.doc
97/138
Details of data
■ Autodating 1
Delimiter Delimiter
One or more autodating items
1Ah 1Ah
Autodating items:
Autodating 1
A36981-A.doc
98/138
Details of data
Postdate 1
Items are received as bytes used to address a table containing the autodating items
to be printed.
A36981-A.doc
99/138
Details of data
■ Autodating 2
Delimiter Delimiter
1 byte One or more autodating items 1 byte
1Bh 1Bh
Postdate 2
41h-42h = postday of month (01 to 31) (2 hex bytes)
43h-44h-45h = postday of year (001 to 366) (3 hex bytes)
49h-4Ah = month of year (01 to 52) (2 hex bytes)
4Bh-4Ch = postmonth of year (01 to 12) (2 hex bytes)
4Dh-4Eh = postyear (00 to 99) (2 hex bytes)
52h-53h-54h = postmonth of year in letters (JAN to DEC) (3 hex bytes)
Tables of parameters
Use of tables:
- A table of 1 to 3 characters is associated with each
parameter. The number of characters printed is determined by
the message items.
- If an item in the table is equal to 00, it is not printed.
A36981-A.doc
100/138
Details of data
Definition of code
A maximum of 4 codes per message can be printed. Their parameters are explained
in the "Variable item parameters" section. In the following order:
code 1, code 2, code 3 and code 4.
The code number is used to select a code type with the corresponding characteristics
(height, width, etc.).
b7 b6 b5 b4 b3 b2 b1 b0
Not used
. Item to encode:
- symbols:
Symbols as ASCII
characters
A36981-A.doc
101/138
Details of data
- autodating items:
- counters:
Counter number 01 to
Delimiter Delimiter
15
1Ch 1Ch
1 byte xxh
- external variables:
Code height
8 8 10 12 12 12 16 16 16 18 20 22 24
(number of cells)
Code width
18 26 10 12 26 36 16 32 49 18 20 22 24
(number of cells )
Number of encoded numeric
10 16 6 10 32 44 24 64 98 36 44 60 72
characters
Number of encoded
7 12 4 7 24 33 18 48 63 27 33 45 54
alphanumeric characters
Number of characters
5 8 3 5 16 22 12 32 49 18 22 30 36
8 coded ASCII bits
Expansion 1
Height of printed code
8 8 10 12 12 12 16 16 16 18 20 22 24
(number of drops)
Width of printed code
18 26 10 12 26 36 16 32 49 18 20 22 24
(number of drops)
Expansion 2
Height of printed code
16 16 20 24 24 24
(number of drops)
Width of printed code
36 52 20 24 52 72
(number of drops)
A36981-A.doc
102/138
Details of data
The plain text code to print may only be used with distribution codes.
The content is identical to the encoded code printed with an additional item to encode:
tabulation. The text may contain fixed or variable items.
The location of the check byte is reserved at the end of the text.
IMPORTANT For EAN 128 and code 128, add 20h to the characters to be
encoded (except the 4 delimiters).
■ Tabulation
A tabulation comprises white frames and is used to position blocks horizontally. See the
"Definition of lines" section and the "Transmission of an entire message" example.
Number of white frames
Delimiter Delimiter
1 to 255
1Eh 1Eh
1 byte
A36981-A.doc
103/138
Details of data
■ External variables
This block is used to mark a portion of text to be modified from the serial link. This function
can only be used if an external variable block is first defined in the current message. The
text to modify may comprise any printable item.
Any variable items contained in external variables must be complete.
The message structure may not be modified.
There may be a maximum of 10 variables in a message.
If a block defined is not to be modified, the text zone to modify must be equal to 0 bytes.
NOTE When printing a bar code with plain text containing external
variable zones, these zones must be separated by fixed items.
■ Graphic block
This block is used to insert graphics in a message to print.
The block may not be edited on the terminal.
The current expansion is not taken into account when printing this block.
Number of Number of
Number of Number of
drops in Description drops in
Delimiter description description Delimiter
graphic to print graphic
11h s (width) s (width) 11h
(height) n bytes (height)
2 bytes 2 bytes
1 byte 1 byte
Example: Protocol to send a graphic with a height of 8 drops
FFh 50h 01h 07h
11h B7
08h B6
00h/08h B5
FFh/90h/50h/F0h/01h/03h/07h/F7h B4
00h/08h B3
08h B2
11h B1
B0
End of message
A36981-A.doc
104/138
Programming
examples
and performance
A36981-A.doc
105/138
Programming examples and performance
A36981-A.doc
106/138
CALCULATOR Data sending from the computer to the printer PRINTER
107/138
Identification (1 byte) Length (2 bytes) Data (0 to n bytes) Control (1 byte)
■ Synoptic - General principle of a V24 exchange
A36981-A.doc
Sending of a complete message
Identification (1 byte) Length (2 bytes) Number of head Data ( N bytes) Controle byte (1 byte)
57h transfer in hexadecimal the number of bytes 01h = head 1 Ckecksum
comprised in the data block. 02h = head 2
Message
b6 = 1 yes DEFINITION OF A BLOCK
text 0xh
b6 = 0 no (see tables next page)
presence
number of
Counters B3 to b2 0xh
(0 to 2)
number of
Postdates b1 – b0 b7 (MSB)
108/138
(0 to 2)
9040
message
format
Time codes
B4 = 0 no
présent in xx
B4 = 1 yes
message
■ Synoptic - Sending of a complete message
Number of
Datamatrix
and bar xx b2 to b0
Codes
( 0 to 4 )
Programming examples and performance
Not used B4 / b5 b3
A36981-A.doc
DEFIN ITION OF A BLOCK
109/138
Exten ded
T a b u lat io n Autodatin g Cou nte r Text
au todating
Num.
Co unter
o f white E x t en d .
A u to n um b.
Delim. rasters Delim . Delim . a uto Delim . Delim. D eli m . De lim. Delim .
da ting from 1 ASCI I charact ers
1Eh f rom 1 1 Eh 1Bh dating 1 Bh 1Ah 1Ah 1C h 1Ch
elem. t o 2 in
to 2 5 5 el em .
he x a.
(1 b yt e)
Programming examples and performance
A36981-A.doc
Programming examples and performance
06h ACK
Identifier 57h
00h
Length
63h
Head 1 01h
Data:
- Structure indicator:
(general parameters present)
C0h 20h
(message text present)
- General parameters:
message direction normal
horizontal direction normal
vertical direction normal 10h
tacho mode yes
trigger mode object
unit mm
A36981-A.doc
110/138
Programming examples and performance
- Text:
First line identifier 0Ah
Expansion 1 01h
Character generator 056 38h
Position of first block 80h 01h
A36981-A.doc
111/138
Programming examples and performance
Expansion 1 01h
A36981-A.doc
112/138
Programming examples and performance
M 4Dh
A 41h
D 44h
E 45h
20h
I 49h
N 4Eh
20h
F 46h
R 52h
A 41h
N 4Eh
C 43h
E 45h
Text delimiter 10h
Expansion 1 01h
Character generator 052 34h
Position of second block 80h 0Ah
A36981-A.doc
113/138
Programming examples and performance
A36981-A.doc
114/138
Programming examples and performance
■ Performance
The performance of the serial link of the printer is measured over a sample of ten
messates:
- 19 200 bauds,
- 1 start bit, 8 bits, 1 stop bit without parity.
A36981-A.doc
115/138
Programming examples and performance
■ Results
1. Direct mode
NOTE If the message sent to the library via the serial connection is
the active message, the next print operation will be to print the
new message.
A36981-A.doc
116/138
Programming examples and performance
2. Standard mode
A36981-A.doc
117/138
A36981-A.doc
118/138
Parallel link
- Presentation
A36981-A.doc
119/138
Parallel link - Presentation
A36981-A.doc
120/138
Parallel link - Presentation
■ Introduction
The Parallel Interface can be used to quickly select and print a message stored in the
library.
The "Message selection" and "Message library" options are required for this method of
operation.
The printer's display is not refreshed when the printer is used in this way.
A36981-A.doc
121/138
Parallel link - Presentation
8 data input signals (D0 to D7) are used to select the message number to print.
The "DTOP" input signal is used to validate the active message number in memory and
trigger printing.
The "SPROG" output signal indicates that the printer has started printing.
24 V
9V
2V
2
0V
Unwanted state
A36981-A.doc
122/138
Parallel link - Presentation
■ Connection diagrams
To access the industrial interface board, unscrew the two mounting screws in the printer's
rear compartment.
Pass the connection cable through one of the cable clamps and attach the wires to the
corresponding terminal block.
TERMIN
MARKED SIGNAL I/O COMMENTS
AL
A36981-A.doc
123/138
Parallel link - Presentation
A36981-A.doc
124/138
Parallel link - Presentation
i
F - +
R 4 TOP EXT+
+
D Detection
U
- cell
i
F
3 TOP EXT-
Photocoupler
LED
Protection
Photocoupler diode
A36981-A.doc
125/138
A36981-A.doc
126/138
Parallel link
- Message
selection
A36981-A.doc
127/138
Parallel link – Message selection
A36981-A.doc
128/138
Parallel link – Message selection
BCD mode (Binary Coded Decimal, base 10) uses 4 bits to express a value from 0 to 9
(0000 to 1001 binary).
The unit digit for the message number is represented by bits 0, 1, 2 and 3.
The tens digit for the message number (0 to 7) is represented by bits 4, 5 and 6.
Bit 7 must be set to 1.
Example: request for message 29.
Bit 7 6 5 4 3 2 1 0
A36981-A.doc
129/138
Parallel link – Message selection
Hexadecimal mode (base 16) is coded in 4 bits with values from 0 to F (0000 to 1111 in
binary).
Bits 0 to 6 are used for the message number
Bit 7 must be set to 0.
Example: Request for message 29 (1D in hexadecimal).
Bit 7 6 5 4 3 2 1 0
"0" hexadecimal
mode
0 0 1 1 1 0 1
Message number 1 D
If the printer has the "reverse message direction" option, the message number must be
coded in hexadecimal.
Bit 7 is used to reverse the message printing direction.
0 = normal direction / 1 = reverse message direction.
A36981-A.doc
130/138
Parallel link – Message selection
Connectors
min. 200 µs
9V
D0
INPUT
D0
0V
D1
D1
9V
INPUT
0V
DTOP
9V
INPUT
0V Message 01 Message 02
taken into account
SPROG taken into account
Printing
message 1
INACTIV 9V
OUTPUT
ACTIV
0V Start of End Start
message of printing printing
min. 5 ms
message 2
Useful
frame
timer
Printing of message frames
The minimum time between signals D0 to D7 being stable and the DTOP signal is 200 µs.
The DTOP signal may be dropped as soon as the SPROG signal is active.
The SPROG signal becomes active at least 5 ms after the DTOP is received and remains
active while the message is printed. It returns to inactive as soon as the printer is available
again for a new message.
A36981-A.doc
131/138
Parallel link – Message selection
A36981-A.doc
132/138
Parallel link – Message selection
1.1 (one single-jet head) and 1.2 (one twin-jet head) printers
□ Connections:
Head 1 → D0-1 to D7-1, DTOP 1, SPROG 1.
□ Storage in library:
Message 1 head 1
Message 2 head 1
Message 3 head 1
Message 4 head 1
Message 5 head 1
.
.
. etc.
2.1 (two single-jet heads) and 2.2 (two twin-jet heads) printers
□ Connections:
Head 1 → D0-1 to D7-1, DTOP 1, SPROG 1.
Head 2 →D0-2 to D7-2, DTOP 2, SPROG 2.
□ Storage in library:
Message 1 head 1
Message 2 head 2
Message 3 head 1
Message 4 head 2
Message 5 head 1
.
.
. etc.
A36981-A.doc
133/138
A36981-A.doc
134/138
12/ 2003
05/ 2005
Revision 11/
03/
2006
2007
05/ 2008
■ Manual updates
. Revision index A corresponds to the first issue of this manual.
. The revision index changes each time the manual is updated.
This document was produced in French. The French version is deemed to be the only official version and shall constitute the authentic
document in the event of any dispute. Imaje reserves the right to change the technical characteristics of its products without prior notice.
Reproduction of this document is prohibited, either in full or in part.
Photos and drawings are not binding.
Edition anglaise.
A36981-A.doc
135/138
Manuals Department – Imaje S.A.
Imaje S.A.
Siège social :
9, rue Gaspard Monge
BP 110
26501 Bourg-lès-Valence Cedex
France
Tel.: (33) 04 75 75 55 00
Fax: (33) 04 75 82 98 10
A36981-A http:// www.imaje.com