Documente Academic
Documente Profesional
Documente Cultură
Instruction Manual
MC 2000 T
Controller
1. INTRODUCTION
2. SPECIFICATIONS
3. INSTALLATION
4. MARKING FEATURES
10
5. OPERATION BASICS
14
14
17
18
20
21
6. MARKING EXAMPLES
25
26
27
28
29
30
31
32
34
35
37
7. SCREENS DESCRIPTION
38
38
39
PAGE - 1
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
39
40
41
42
43
43
45
46
51
52
53
54
55
56
57
58
59
60
60
61
62
63
64
64
65
67
PAGE - 2
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
67
68
68
70
70
71
8. BARCODE READERS
72
8.1. Connection
72
8.2. Use
73
9. BINARY IO MARKING
74
ANNEX
76
76
A.2. Fonts
77
A.2.1. Gulim
77
A.2.2. Courier
77
A.2.2. MonoS
77
A.2.3. MS5x7
78
79
PAGE - 3
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
PICTURES INDEX
Picture 1 HOME PAGE.......................................................................................................... 8
Picture 2 TEST screen .......................................................................................................... 9
Picture 3 Text combined with logotype and DataMatrix code................................................ 10
Picture 4 Text marked using different fonts .......................................................................... 10
Picture 5 Text with different character heights...................................................................... 11
Picture 6 Text with different character widths ....................................................................... 11
Picture 7 Text with different character spacings ................................................................... 11
Picture 8 Text with different marking dots densities.............................................................. 12
Picture 9 Coordinates of a marking area .............................................................................. 12
Picture 10 Marking in various directions............................................................................... 13
Picture 11 Front face of the MC 2000T controller................................................................ 14
Picture 12 Back panel of MC 2000T controller .................................................................... 15
Picture 13 General screen format ........................................................................................ 17
Picture 14 Menu Screen and Parameters Screen................................................................. 18
Picture 15 Editable alphanumeric parameter........................................................................ 18
Picture 16 Parameter with values from a closed list ............................................................. 19
Picture 17 Prompt for saving changes.................................................................................. 20
Picture 18 Text editing......................................................................................................... 20
Picture 19 Selecting one line in the EDITION screen............................................................ 21
Picture 20 Line selection in an overlapping window.............................................................. 22
Picture 21 Selecting parameters in an overlapping window .................................................. 22
Picture 22 Editing a parameter in an overlapping window..................................................... 23
Picture 23 Editable numerical parameter in an overlapping window...................................... 23
Picture 24 Parameter with value from a closed list in an overlapping window ....................... 24
Picture 25 Editing the text of a Simple Marking example ...................................................... 26
Picture 26 Simulation of the example................................................................................... 27
Picture 27 File saving .......................................................................................................... 27
Picture 28 Editing a sample text on various lines ................................................................. 28
Picture 29 Preview of previous example marking ................................................................. 29
Picture 30 Capital/Small Letter icon in the EDITION screen .................................................. 29
Picture 31 Special symbol window overlapping the EDITION screen.................................... 30
Picture 32 Preview of angle marking.................................................................................... 32
Picture 33 Convex arc and concave arc............................................................................... 33
Picture 34 Arc radii .............................................................................................................. 33
Picture 35 Angles of arc markings ....................................................................................... 34
Picture 36 Editing special functions...................................................................................... 35
Picture 37 Editing DataMatrix codes .................................................................................... 36
Picture 38 Editing logotypes ................................................................................................ 37
Picture 39 Screens map ...................................................................................................... 38
Picture 40 HOME PAGE...................................................................................................... 38
Picture 41 TEST screen....................................................................................................... 39
Picture 42 MAIN Menu ........................................................................................................ 40
Picture 43 EDIT screen....................................................................................................... 40
Rev. A Nov 2007
PAGE - 4
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
PAGE - 5
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
1. INTRODUCTION
The MC 2000T controller is the electronic system that monitors the movements of a marking
head (stylus) according to a user-defined marking program.
Editing the marking program is generally done using the MC 2000T controller itself, although
the program can be externally prepared and transmitted to the controller later by means of an
SD memory card or through a serial communications interface.
The MC 2000T controller has several operation interfaces that permit manual or automatic
PC or PLC driven operation, which makes it ideal equipment for incorporation into production
lines that perform various processes other than marking.
PAGE - 6
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
2. SPECIFICATIONS
ELECTRICAL
ITEM
SPECIFICATION
Power supply
100V-220Vdc 60/50Hz.
Internal battery
3V. CR 2025.
2A T2 - L250V.
4A T4 - L250V.
Display lighting
SPECIFICATION
Dimensions
280x160x261mm
Weight
5.450kg
INTERFACES
ITEM
SPECIFICATION
Memory card
PAGE - 7
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
3. INSTALLATION
To install the MC 2000T controller correctly, do the following:
1. With the controller off, plug the male cable from the marking unit into the MARK-labelled
connector at the back of the MC 2000T controller.
2. If supplied together with the MC 2000T controller, connect the start/stop push box to
the MAN-labelled connector at the back of the controller.
3. Plug the power cable into the MC2000T controller. To do this
a. first connect the power cable to the MC 2000T controller; and
b. then plug the power cable into a mains outlet.
Before making any connection, check that power supply at intake conforms to the MC
2000T controller power rating specified on the back plate.
4. Switch MC 2000T controller on.
The controller display should show a picture with COUTH's logo and the version of the controller
software.
PAGE - 8
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
When using the controller for the first time, the EDITION screen is retrieved. Otherwise, the display
will show either the EDITION or the MARKING screen, whichever was last used before the controller
was switched off.
Rev. A Nov 2007
PAGE - 9
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
4. MARKING FEATURES
Before starting to use the MC 2000T controller, it is essential for you to know the features that
define each marking. This will make it easier for you to set up the adequate parameters in order
to get the expected marking result.
Marking Contents: A mark is first defined by what you want to mark. With the MC
2000T controller, you will be able to mark all the characters of the Latin alphabet
(including accents, diaeresis, etc.) in both small and capital letters. In addition to
alphanumerical characters, you can insert special symbols or logotypes (e.g. your
company's logo) and DataMatrix2 codes in the marking contents. The next picture
shows a mark comprising a mix of alphanumerical text, logo and DataMatrix code.
Font: This is the second feature used to define a marking. The MC 2000T controller
permits applying different fonts to the same marking contents. The picture below shows
the same text to be marked using two different fonts.
A DataMatrix code is a two-dimensional symbol used to insert a large amount of information in a small
space. It is similar to a bar code, except that information is encoded using dots instead of bars, which
allows for a higher density of information.
Rev. A Nov 2007
PAGE - 10
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
marked, the final height will be in proportion to the upper case letters. Below is a picture
showing the same text with different character heights.
Character Width: The character width is stated as a percentage (%) of the character
height. Its value normally is 100%, meaning that the character to be marked will keep
the proportion of width to height as defined by the font design. However, it may be
suitable to reduce the character width (programming a value less than 100%) under
certain circumstances (e.g. limited space on the substrate or for aesthetical reasons).
Likewise, it is possible to specify a character width greater than 100% of height. The
next picture shows the same text with different character widths.
Character Spacing: This too is given as a percentage (%) of the character height and it
defines the size of space between two consecutive characters. The picture below
shows the same text with different character spacings.
PAGE - 11
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
Marking Direction: This refers to the possibility of marking a text horizontally, obliquely
at any angle, or forming a convex or concave arc. The MC 2000 T controller further
PAGE - 12
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
permits both horizontal and vertical mirror-symmetric marking. Below there is a sample
of markings made in various directions.
Marking Depth: With the MC 2000 T controller it is possible to adjust the marking
force within certain limits, although the marking depth largely depends on the type of
machine used to mark.
PAGE - 13
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
5. OPERATION BASICS
This section briefly presents the systems controls and the information that the display can
show. It will guide the operator to browse the different menus and screens and to acquire the
basic skills to operate the MC 2000T controller.
8 7
Component
Function
Alphanumeric keyboard
Shift key
Rotary pushbutton
Simulation key
DEL key
Deleting characters.
ESC key
Cancelling an operation.
PAGE - 14
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
Function keys
10
Display
The back panel of the MC 2000T controller accommodates the components as shown below:
1
14
13
12
11
10
Function
Ventilating duct
Earth pin
USB port
Connecting USB.
SD CARD slot
COM 2 port
COM 1 port
Z-AXIS connector
MAN connector
10
MARK connector
11
PAGE - 15
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
12
AC connector
13
Fuse
2A (5x20).
14
Power switch
Description
Q1
Q2
Q3
Q4
Ready: Potential-free output. Contact closes when the marking unit is ready to start
marking.
Pin C
DC
24VDC output.
The AUTOMAT Input connector has 11 independent 24VDC inputs whose functions are as
defined below:
Input
Description
Input 1
General-purpose input 1.
Input 2
General-purpose input 2.
Input 3
General-purpose input 3.
Input 4
Input 5
Input 6
Input 7
Input 8
Input 9
Reset counters
Input 10
Run
Input 11
Stop
As regards display information, the general screen format of the MC 2000T controller looks like
this:
PAGE - 16
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
Title bar
General information
Text area
Scroll bars
Help area
Screen tag
Title bar: Identifies the type of screen on the left and the marking area of the marking
unit (X-axis mm x Y-axis mm) on the right.
General information: This field shows the current date, current time, and capital or
small letters function if selected.
Text area: This is the working area for editing the marking contents, changing the
values of various parameters, selecting options, etc.
Scroll bars: They indicate the horizontal and vertical positions within the text area.
Screen tag: Shows the name of the displayed screen.
Help area: Provides operator with help.
Icons of short-cut keys: They symbolically represent the function of the short-cut keys
at all times.
PAGE - 17
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
Cursor
PAGE - 18
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
With the alphanumeric keyboard, you can change the value of the parameter and move
the cursor by turning the rotary pushbutton.
When you have finished editing the parameter, press the rotary pushbutton once to
confirm the entry and return to the initial situation of the screen with the selected line.
Alternatively, you can press ESC instead of pressing the rotary pushbutton in order to
exit the Edit Parameter mode without confirming any changes.
Parameters with values from a closed list: These are parameters that can only take
any of the values recorded in a closed list. One example of such parameters is the
counter Reset. When you press the rotary pushbutton, a window with the selectable
values pops up.
YES/NO Parameters: These parameters take either of two values only. When you
press the rotary pushbutton, the value of the selected parameter changes, i.e. if it was
YES it changes to NO, and vice versa.
In order to quit a menu or parameters screen, you can press any of the short-cut keys or the
ESC key. In the event of the parameters screens, if you press ESC and had previously changed
the value of any parameter, the MC 2000T controller will prompt you to confirm whether you
want to save the changes or not.
PAGE - 19
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
With the rotary pushbutton, you can select the option: quit and save changes, quit without
saving changes or return to the parameters screen. If you press any key, you will save the
changes and exit.
PAGE - 20
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
FONT overlapping window: it shows the values of the character height, character
width, font type, character spacing and marking dot density.
FORCE & SPEED overlapping window: this shows the values of the marking force
and speed.
POSITION & SHAPE overlapping window: it shows the values of the X-axis
coordinate, Y-axis coordinate, marking angle, arc diameter, arc type, horizontal mirrorsymmetric marking and vertical mirror-symmetric marking.
In these windows, there is always one active line that is highlighted as Picture 20 shows. This
line states the marking properties of the associated text line. On said picture, the value of all the
parameters is -, meaning that the value of the selected parameter is identical to that of the
same parameter in the preceding line. As for the first line, the value of the parameter is the
default value as defined from the EDITION PARAMETERS screen.
PAGE - 21
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
PAGE - 22
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
Editable numerical parameters: You can enter the parameter value typing it directly
on the numeric keypad. The blinking cursor moves at each keystroke, showing the digit
you may change.
Turning the rotary pushbutton increases or decreases the parameter value in one
parameter definition unit. Taking the character height stated in mm with one decimal
digit, for example, if you turn the rotary pushbutton clockwise, the parameter value will
increase in 0.1mm. If the parameter value is "-" before turning the rotary pushbutton, it
will change to the minimum value for the parameter concerned, which is 0.1mm in the
case of the character height.
If you continue turning the rotary pushbutton to change the value of the selected
parameter, the blinking cursor will relocate itself under the first digit of the parameter
value.
Parameters with values from a closed list and YES/NO parameters: As far as
overlapping windows are concerned, it is possible to edit the YES/NO parameters in the
PAGE - 23
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
same way as parameters with values from a closed list, since those parameters can
take the value "-" in addition to the YES and NO options.
Editing those parameters is very simple: you just need to turn the rotary pushbutton in
one direction or the other in order to select the next or previous value from those
available.
PAGE - 24
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
6. MARKING EXAMPLES
This section contains a number of marking examples. These simplified examples highlight the
most frequently used characteristics of the controller and thus provide rapid and easy training in
producing the commonest types of marks.
In developing all the examples, we used a marking unit with a marking area of 50mm (X-axis)
by 17mm (Y-axis), which presently is the COUTH marking unit having the smaller marking area.
Therefore, all the examples given in this section can be produced with any other COUTH
marking unit. In this event, there is one point to bear in mind: when reproducing the examples
with any marking unit having a different marking unit, the aspect of the scale simulation will
differ from the look it has in this manual.
Likewise, it is important to consider the default values of the marking parameters used. For the
examples given, we used the following parameter values:
Height: 005.5
Width: 100
Font: GULIM.FNT
Spacing: 25%
Density: Auto
X-axis coordinate: 000.0
Y-axis coordinate: 000.0
Angle: 000.0
Diameter: 000.0
Concave/Convex: ^
Horizontal mirror: No
Vertical mirror: No
Speed: 10
Force: 10
Selfcentering(x): NO
Selfcentering(y): NO
If your controller has values differing3 from the above, we recommend you to change them in
the EDITION PARAMETERS screen; otherwise, the examples you work out may look quite
different from those shown here.
If you are using your MC 2000T controller for the first time or if you never changed the parameters in
the EDITION PARAMETERS screen, the default values of the parameters will be those specified here.
Rev. A Nov 2007
PAGE - 25
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
The first time you power on the MC 2000T controller, the display will show the HOME PAGE
screen and then a TEST screen, followed by the EDITION screen with the blinking cursor in the
first column of the first line.
If you have already used the controller and the display shows any screen other than the
EDITION screen, call it up (press the direct access key F1 to retrieve the MAIN menu from any
screen and then press F1 again).
In the EDITION screen, type out the text HELLO as the next picture shows.
PAGE - 26
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
PAGE - 27
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
To complete this exercise, press the direct access key F2 in the FILES screen to return to the
EDITION screen with a new empty file.
In the EDITION screen, starting from a new file, type out the text HELLO WORLD on two lines.
Changing from one line to another is achieved by shortly pressing the rotary pushbutton to
highlight the selected line, moving the cursor to the next line by turning the rotary pushbutton
and pressing the rotary pushbutton again to be able to edit the text on the second line.
PAGE - 28
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
In the previous examples, the text was fully written in capital letters, using the visible characters
of the alphanumeric keyboard. In order to write the text with a mix of capital and small letters,
press the shift key to change from one type to the other. On doing so, you can see the letter
icon in the middle of the general information field showing alternately a capital and a small letter
"a".
Capital or
small letter
icon
PAGE - 29
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
On the other hand, to insert characters that do not appear on the keyboard of the MC 2000T
controller, press the special symbol key to open an overlapping window allowing you to choose
and insert the desired character.
The MC 2000T controller permits the use of the entire Latin set of characters as specified by
ISO-8859-1.
In the two previous examples, we have used two file lines in order to mark the text on two
different lines. The "file line" concept is however broader than that of a text line. As the result of
this exercise shows, three words will be marked on a same text line: the character height and
width being respectively 5mm and 100% for the first word; 2.5mm and 100% for the second
word, and 2.5mm and 50% for the third word.
Whereas those three words will be marked on a single text line, it is not possible to use only one
file line for this purpose, because their marking parameters differ and a file line only accepts
characters having the same marking parameters. Therefore, three file lines are necessary to do
this exercise.
As a rule, whenever any part of the marking contents requires a different marking parameter,
you will need to enter this part of the contents in a new file line. In the previous examples
"Marking on several lines" and "Marking of special characters", the Y-axis coordinate was the
parameter that determined the change of line.
Understanding this principle makes working out the last example easy.
PAGE - 30
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
Starting from a new file, write the words HELLO, LITTLE and WORLD on three successive file
lines. Next, set the parameters for the second line as follows:
You will have noticed that it has been necessary to specify appropriate marking coordinates for
these two lines. Programming correct values involves trying approximate values and adjusting
them, using the simulation function until the result is satisfactory.
To mark a text at any angle, bear in mind that the X-axis coordinate for the first line of text to be
marked (in this example, the line containing the word HELLO) will probably be different from
zero. This is because, in order to reach the required inclination, the text pivots on the lower left
corner of the first character part of which thus lies to the left of said corner. A similar rule applies
to the Y-axis coordinate. In this event, it is more obvious, since the text must be moved
downwards to avoid getting out of the marking margins.
Thus, after writing the text HELLO WORLD on two lines, change the values of the X-axis
coordinate, Y-axis coordinate and angle of the first line, as follows:
PAGE - 31
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
Now, if you press the Simulation key, you will see that part of the marking is outside the marking
margins, because the font size is too large. Therefore, change the character height for the first
line:
Press the Simulation key to preview the result that will look like that shown on Picture 32.
Arc marking with the MC 2000T controller is easy, provided the arc marking underlying
concepts are absolutely clear.
PAGE - 32
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
Concave/convex: Convex arc means an arc so formed that the text on the whole
circumference is readable from the inside of the arc. By contrast, a concave arc is that
which permits you to read the text on the whole circumference looking at it from the
outside of the circle.
Diameter: This refers to the diameter of the circle on which the text is marked. The arc
radius is always measured from the centre of the circle to the lower left corner of the
first character. Shown below are the radii of a convex arc and a concave arc.
Angle: This defines the angular position of the first character in relation to the
horizontal. The next picture shows 8 arc markings at 8 different angles.
PAGE - 33
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
PAGE - 34
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
In the EDITION screen, write TIME on the first line of a new file. Next, insert the special mark
"Calendar:Hour-Minutes". To do so, press short-cut key F2 on the EDITION screen; this opens
the INSERT screen. Now press F2 again to open an overlapping window with the available
"Calendar" options. Select the aforementioned one with the rotary pushbutton.
On the second line, insert the special mark "Counter:C1". To do so, press short-cut key F2 on
the EDITION screen; this opens the INSERT screen. Now press short-cut key F4; this opens an
overlapping window with the available Counter options. Select the aforementioned one (Counter
1) with the rotary pushbutton. The EDITION screen will be like this:
PAGE - 35
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
On the first line of a new file, insert the special "Square DataMatrix " mark and write HELLO in
the parenthesis of this special mark. To insert the DataMatrix square mark, press short-cut key
F2 to open the INSERT screen; next press short-cut key F6 and select the "Square DataMatrix"
from the available options.
To place the cursor inside the parenthesis, first move back to the beginning of the special mark
and next move it one position forward. After writing the text to be encrypted, move the cursor
one position forward by turning the rotary pushbutton, leave a blank space behind the special
DataMatrix mark and type out HELLO.
On the second line, insert a special "Rectangular DataMatrix " mark and, instead of writing a
certain text inside, insert a special mark "Calendar:year-month-day". Move the cursor out of the
special DataMatrix mark and insert a blank space and the same special Calendar mark. The
EDITION screen should look like this:
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
Like the DataMatrix codes in the previous example, a logotype is processed in the same way as
any other text character. In this example, we are going to mark a logotype inserted at the end of
a text and the same logotype on a different file line in order to increase its size.
On the first line of a new file, write COUTH and insert the special logotype mark for the desired
logotype (in our example CE.LOG). To insert the special logotype mark, press short-cut key F2
to open the INSERT screen; next press short-cut key F3, select LOGOTYPE and choose the
desired logo from the list.
On the next line, insert only the same special logotype mark. The text editing screen should look
like this (if you entered another logo, its name will appear instead of CE.LOG):
PAGE - 37
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
7. SCREENS DESCRIPTION
This section provides a description of the menus and operating functions of the different
controls or keys on the front panel of each screen.
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
After 3 seconds, the HOME PAGE screen closes and the display shows the TEST screen.
Machine zero position: When switched on, the MC 2000T controller commands a
short movement of the marking head in order to detect possible errors of the limit
switches, drive belts and motors.
STOP button: "OK" means the MC 2000T controller has detected a connected
external start/stop push box. Although this is not indispensable for the marking unit
operation, it is advisable that this push box is always connected, as it allows anybody to
make emergency stops during any marking process.
Memory Card: "OK" means the MC 2000T controller has detected the presence of an
SD memory card.
In addition to the previous information, the TEST screen allows the operator to adjust the
brightness of the display, by turning the rotary pushbutton in the appropriate direction.
After 3 seconds or the activation of any key or rotary pushbutton, the TEST screen closes and
the display shows the EDITION or MARKING screen
on said key.
PAGE - 39
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
The display shows the first 10 lines (rows) of the 40 ones available per file and 40 of the 75
characters (columns) available per line. A blinking cursor indicates the current text inserting
position and will move on this same line if you turn the rotary pushbutton. Shifting to another line
requires pressing the rotary pushbutton first and then turning it.
Editing the marking contents is by means of the alphanumeric keyboard.
The Shift key serves to change from capitalised to small letters, and vice versa, the current
option appearing in the form of a capital or small A icon in the middle of the general information
field.
If you press the special symbol key, an overlapping window pops up, allowing you to select the
ASCII - ISO88591 symbols not available on the alphanumeric keyboard with the rotary
pushbutton.
F5 Force & Speed: Opens the FORCE & SPEED overlapping window.
F6 Position & Shape: Opens the POSITION & SHAPE overlapping window.
PAGE - 41
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
PAGE - 42
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
An encryptable text may include special marks such as work shifts, calendar, counters and
special action (Movements) commands. The previous picture shows a special DataMatrix
square mark in which a fixed text (COUTH-Hernani) and a special calendar (Day-Month-Year)
mark have been placed.
PAGE - 43
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
Pneumatic Head: When the setting of the marking density is Auto, the system
disregards the Force parameter. Otherwise, with force settings from 1 to 3, the
stylus impacts the workpiece only once per marking dot; with force settings from 4
to 6, there will be two impacts of the stylus per dot; with force settings from 7 to 10,
there will be three impacts of the stylus per dot.
Electric Head: In this case, the solenoid excitation time varies according to each
force value, resulting in stronger or weaker impacts. However, for effective results, it
is necessary to adjust the stylus-to-piece distance for each force setting. The table
below shows adequate distances for different forces:
Force
0.1 1.0
0.1 1.0
0.5 1.5
1.5 3.0
3.0 6.0
4.0 7.0
4.5 7.5
5.5 8.0
7.8 9.0
10
7.8 9.0
The Speed parameter, too, is interpreted differently according to the type of marking head.
When using an electric head, this parameter has no effect. If the marking head is pneumatic,
this parameter is meaningful only when the marking density setting is Auto. In this event, the
lower the speed, the greater the marking density, resulting in higher quality marks to the
detriment of the marking time.
PAGE - 44
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
X-axis coordinate: Position of the lower left corner of the first text character along the
X-axis. Changing this parameter's value, by turning the rotary pushbutton, results in a
movement of the marking head to the specified coordinate. This is very useful to check
the marking coordinate on the workpiece in the marking position.
Y-axis coordinate: Position of the lower left corner of the first text character along the
Y-axis. As this occurs with the X-axis Coordinate parameter, by changing the
parameter's value with the rotary pushbutton, the marking head will move to the
specified coordinate. If you select value "-" for any line other than the first line, this line
will not take the value of the previous line, but its value will be automatically increased
by the character height to prevent superimposing the texts of two lines.
Angle: This is the text inclination angle as measured from a horizontal line. Picture 50
shows 5 text lines marked at angles of 0, 45, 90, 180 and 270.
PAGE - 45
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
Diameter: Diameter of the circle around which arc marking takes place. If this diameter
is zero, the text is not arc marked. For further information on arc marking, refer to
example 6.7.Arc Marking.
Concave/Convex: These parameters define the type of arc when diameter is not zero.
The next picture shows convex arc marking on the left and concave arc marking on the
right.
Vertical mirror-symmetry: This function allows symmetric marking of a text along the
vertical line.
PAGE - 46
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
F1 Insert Shift: Inserts a special mark for marking the relevant shift in the marking
contents. Actual marking will replace the special mark with the identifier of the current
shift. In the SHIFTS window retrievable from the CONTROLLER PARAMETERS
screen, you can define up to four shifts with one marking identifier for each.
F2 Insert Calendar: This function opens a window allowing you to select the temporal
data you want to insert in the contents. Actual marking will replace this special mark
with the relevant data. These are the selectable temporal data:
- Hour (hh)
- Minutes (mm)
- Hour-Minutes (hh-mm)
- Day of the week (d)
- Day of the month (dd)
- Day of the year (ddd)
- Week of the year (ss)
- Month of the year (mm)
- Year (aa)
- Year (aaaa)
- Year-month-day (aaaa-mm-dd)
- Day-month-year (dd-mm-aaaa)
ISO 8601, which specifies that the first week of the year is that which contains
the first Thursday, applies to determining the week of the year.
F3 Insert Object: This function enables you to insert a special mark associated with a
logotype or a file from the logos and files lists in the controller memory. Actual marking
will replace the special mark with the selected logo or file contents.
PAGE - 47
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
F4 Insert Counter: This function allows you to insert a special mark relating to one of
the two independent counts available per file. A counter is a number made up of one to
ten digits, which increases or decreases automatically after a user-definable number of
markings have been reached. The parameters that define the performance of each
counter are modifiable in the COUNTERS screen accessible from the CONTROLLER
PARAMETERS screen.
PAGE - 48
Timer: The MC 2000T controller waits for a time set by the selected timer,
before proceeding with the marking. Programming the dwell times in the three
Rev. A Nov 2007
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
F6 Insert codification: With this function, you can insert a special mark for
generating a square or rectangular DataMatrix code. After inserting the special mark,
you can edit the text to be encrypted, by moving the cursor in the parenthesis that the
DataMatrix special mark contains. It is also possible to insert other special marks (such
as the current date or a serial number, if they are to be encrypted in the DataMatrix
code) within the DataMatrix special mark.
The table below lists the Insert options available with the respective special marks that are
inserted in the file:
Insert Option
Special mark
Shift
Calendar: Hour(hh)
C(HH)
Calendar: Minutes(mm)
C(MM)
Calendar: Hour-Minutes(hh-mm)
C(HH-MM)
C(d)
C(dd)
C(ddd)
C(ww)
C(mm)
Calendar: Year(yy)
C(yy)
Calendar: Year(yyyy)
C(yyyy)
Calendar: Year-month-day(yyyy-mm-dd)
C(yyyy-mm-dd)
Calendar: Day-month-year(dd-mm-yyyy)
C(dd-mm-yyyy)
Object: Logotype
L(XXXXXXXX.LOG)4
Object: File
F(XXXXXXXX.TXT)
Counter: Conter 1
CT1(XXXXXXXXXX)6
Counter: Counter 2
CT2(XXXXXXXXXX)7
MWS1A
PAGE - 49
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
MWS2A
MWS3A
MWS1M
MWS2M
MGC
MWSC
MAS1A
MDS1A
MAS2A
MDS2A
MAS3A
MDS3A
MAS4A
MDS4A
MAS1M
MDS1M
MAS2M
MDS2M
Command: Timer 1
MT1
Command: Timer 2
MT2
Command: Timer 3
MT3
MPF
DMS(XXX8)
DMR(XXX9)
The next picture shows a file containing a fixed text, a special calendar mark and a special
DataMatrix mark, as well as a preview of the marking.
8
9
PAGE - 50
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
Picture 55 Edit and Preview screens of a marking containing fixed text, special calendar mark
and DataMatrix Code
PAGE - 51
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
To interrupt a marking or dry run, press the stop button once. To resume an interrupted marking, press
the start button once. To cancel an interrupted marking, press the stop button again. To cancel an active
marking, press the stop button twice.
PAGE - 52
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
This screen shows the contents of the file to be marked, the filename and a scrolling message
prompting you to press the ESC key in order to unblock the keyboard.
After unblocking the keyboard, you can call up the MAIN menu (F1), the EDITION screen (F2)
or the FILES screen (F3).
In addition, you can press the internal start and stop pushbuttons at any time in order to start,
interrupt, continue or end a marking. You can also display the Font characteristics (holding
down F4), the Force and Speed parameters (holding down F5) or the Position and Shape
specifications (holding down F6) in relation to the selected file.
New file: Press short-cut key F2 to create a new, empty file. In this event, the monitor
displays the EDITION screen. It is obviously not necessary to select any file in order to
create a new file.
Open file: Press short-cut key F3 to open the selected file. The MC 2000T controller
then displays the EDITION or MARKING screen. You can also open the file by pressing
shortly the rotary pushbutton. When the selected file is a logotype, no action takes
place.
Save file: If you press short-cut key F4, the system adds a new file named
00000000.TXT below the last filename in the list. A blinking cursor under the first
character of the filename invites you to change the default name for a name of your
PAGE - 53
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
choice. When you have finished editing the new filename, press the rotary pushbutton
to save the currently opened file with this name. Should the filename already exist, you
will be prompted to confirm whether you want to overwrite the existing file.
If you want to save changes to an existing file, type in the same filename and confirm
the 'overwrite original file' option.
Delete file: If you press short-cut key F5, you will be prompted to confirm whether you
really want to delete the selected file. If you do, the system will delete the selected file
permanently from the controller's internal memory and there will be no possibility of
recovering it.
Display file: When holding down short-cut key F6, the MC 2000T controller displays
the contents of the selected file in the text area. If the selected file is a logo, no action
takes place. After releasing key F6, the controller displays the FILES screen again.
Rename file: In order to rename a file, you should press the rotary pushbutton for a
long while. After 2 seconds, a blinking cursor appears under the first character of the
filename, allowing you to change the name.
Once you have finished working in the FILES screen, press the ESC key to return to the
previous screen or short-cut key F1 to recall the main menu.
All the above described operations are feasible if you open the FILES screen from the EDITION
screen. By contrast, if you call the FILES screen from the MARKING screen, several of those
operations will be disabled. As the next picture shows, you can only go back to the main menu
(F1), return to the MARKING screen (F2), open a file (F3) or display the file contents (F6). In
this event, renaming files is not possible.
PAGE - 54
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
PAGE - 55
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
PAGE - 56
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
PAGE - 57
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
DRIVE TYPE
Transimission X-axis
Transmission Y-axis
Screw
100
100
Belt
200
200
Superfast x17
320
340
Superfast x15
400
400
Superfast x25
320
495
The Input Time parameter defines the time it takes the stylus to reach the contact point with the
workpiece from the dwell position.
The Output Time defines the time it takes the stylus to reach the dwell position from the contact
point with the workpiece.
Tabulated below are appropriate values for different types of marking heads:
PAGE - 58
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
Input Time
Output Time
N7 Pneumatic
10
N10 Pneumatic
10
10
N14 Pneumatic
10
10
N20 Pneumatic
15
10
N34 Pneumatic
18
35
R14 Scratching
20
28
R30 Scratching
20
28
R40 Scratching
20
28
R50 Scratching
20
28
I08 Impact
20
20
I17 Impact
20
20
I30 Impact
20
20
I40 Impact
20
20
I50 Impact
20
20
PAGE - 59
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
running on no load (i.e. no marking being made), since the motors must start running at a given
speed, but can accelerate their rotation after overcoming inertia.
PAGE - 60
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
PAGE - 61
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
For the MC 2000T controller to recognise the Reset parameter, it is essential to program the
operating mode: slave or file. This is done setting the Marking Mode parameter. Besides, when
selecting the slave operating mode, it will not be possible to select the file manually in the
MARKING screen nor use the internal Start and Stop pushbuttons.
It is worth noting that the MC 2000T marking machine can work in a slave condition at
any time, even when the Marking Mode parameter specifies the file mode of operation. This
parameter is taken into account only for the purposes of using the Reset parameter.
PAGE - 62
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
PAGE - 63
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
You can select the desired option by pressing the relevant figure on the numerical keypad or by
moving the highlighted line (no shown on the picture for clarity's sake) with the rotary
pushbutton and pressing this button to confirm the selected option.
By pressing short-cut key F1 you will retrieve the MAIN menu, F2 the PARAMETERS menu, F3
the MECHANICS PARAMETERS screen, F4 the MARKING PARAMETERS screen, F5 the
EDITION PARAMETERS screen, and F6 the CONTROLLER PARAMETERS screen.
PAGE - 64
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
PAGE - 65
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
Reset: This parameter serves to specify a condition under which the counter with a
positive increment shall reset to its low value and a counter with a negative increment
will reset to its high value. The following options are programmable:
- None: No condition is established.
- Year: The counter resets when year changes.
- Month: The counter resets when the month changes.
- Week: The counter resets when the week changes, considering Monday as the first
day of the week.
- Day: The counter resets when the day changes. .
- Shift: The counter resets at each shift changeover.
PAGE - 66
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
PAGE - 67
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
PAGE - 68
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
PAGE - 69
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
Timer values are stated in milliseconds and they serve to force a dwell time during the marking
process. A timer may have any value from 0 to 60000 milliseconds (1 minute).
PAGE - 71
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
8. BARCODE READERS
The MC 2000T controller makes it possible to use barcode or 2D-code readers in order to edit
the marking contents. This avoids mistakes that editing the marking contents manually might
cause.
8.1. Connection
For connecting a barcode reader to the MC 2000T controller, use the RS-232 interface with the
following communications parameters:
Parity:....................................Odd.
Data bits: ..............................8
Stop bits: ..............................1
Flow control: ........................None.
Barcode readers and other external devices must always be connected to the controller
through the COM2 port at the rear of the controller. The COM1 port is reserved for connecting a
PC, PLC or automaton.
Both COM1 and COM2 ports of the MC 2000T controllers are prepared for a direct connection
to a PC through direct pin-to-pin cables. Since barcodes readers with an RS-232 interface are
usually designed for direct connection to a PC too, connecting them to the MC 2000T controller
will require the use of a NULL MODEM type of cable, crossing terminals 2 and 3 at both ends of
the cable.
If in doubt, remember that data transmitted by a barcode reader is received through terminal 3
of the COM2 port of the MC 2000T controller.
The MC 2000T controller provides a 5Vdc voltage across terminals 6 and 5 of the COM2 port.
You can use this voltage for powering up barcode readers that operate on a current not greater
than 250mA.
Finally, for the barcode reader to be operative with the MC 2000T controller, you must
configure it in such a way that it transmits hexadecimal character 10 (decimal 16) prior to the
text string and hexadecimal character 0A (decimal 10) followed by twice the hexadecimal
character 03 (decimal 03) after the text string it reads. By way of example, if 123-456 is the
barcode read by the reader, transmission of the complete string will be as follows:
Hexadecimal
10
31 32 33 2D 34 35 36
0A
03
03
Decimal
16
49 50 51 45 52 53 54
10
03
03
ASCII
PAGE - 72
Unprintable 1
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
8.2. Use
It is currently possible to use a barcode reader with the MC 2000T controller in either of two
ways:
EDITION Screen: With the barcode reader connected to the COM2 port of the MC
2000T controller, scan the barcode and its contents will appear on the line where the
cursor lies at that moment. Any text that might already be on that line will be
overwritten. Scanning a barcode will not affect the text on any other lines that remain
unchanged.
MARKING Screen: To use a barcode reader from the MARKING screen, the file to be
marked must contain a special command: Movement(Wait for communications). This
special command may be placed anywhere in the file, preceded and followed by text.
On receiving the Start order, the MC 2000T controller will start marking the active file.
On detecting the special command, the MC 2000T controller will stop the marking
machine until it receives the remaining marking data. At this time, use the barcode
reader connected to the COM2 port to transmit the marking data. The MC 2000T
controller will resume marking after receiving the contents of the scanned barcode.
PAGE - 73
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
9. BINARY IO MARKING
Binary IO marking is one of the operating modes the MC 2000T controller offers. This mode of
operation usable from the MARKING screen permits marking a file selected by means of the
inputs of the AUTOMAT Input connector. To be exact, inputs 4, 5, 6, 7 and 8 are available for
selecting one among 31 files for its marking in this mode. Input 4 is assigned the least
significant bit of the file number, input 8 the most significant bit.
Since the files are identified by a filename, and not by a file number, in the MC 2000T
controller, the filename must contain a number from 001 to 031 (including zeros on the left) if
this file is to be selected in the binary mode.
Suppose you want to work with two files in binary mode. You can use two numbers from 1 to 31
to identify them. So, you opt for numbers 2 and 28. Therefore, one file must contain the 002
character group in its name, the other the 028 character group. Any of the following filenames
would be valid for this purpose:
FILE_002.TXT, A0020000.TXT, 002ZZZZZ.TXT, ABC002DE.TXT...
FILE_028.TXT, A0280000.TXT, 028ZZZZZ.TXT, ABC028DE.TXT...
Of course, to avoid confusion, neither the 002 nor 028 character group may be present in any
other filename.
Finally, you decide to name your files FILE_002.TXT and FILE_028.TXT.
To mark those files, you should bear in mind that the binary form of number 2 is 00010, while
number 28 is stated 11100.
Accordingly, in order to mark the file FILE_002.TXT, inputs 4, 5, 6, 7 and 8 of the AUTOMAT
Input connector must be given the following values:
Input
Logical value
Voltage value
Automat Input 4
0V
Automat Input 5
24Vdc
Automat Input 6
0V
Automat Input 7
0V
Automat Input 8
0V
In order to mark the file FILE_028.TXT, inputs 4, 5, 6, 7 and 8 of the AUTOMAT Input
connector must be given the following values:
Input
PAGE - 74
Logical value
Voltage value
Automat Input 4
0V
Automat Input 5
0V
Automat Input 6
24Vdc
Automat Input 7
24Vdc
Automat Input 8
24Vdc
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
Below is a table with the logical values of the inputs of the AUTOMAT Input connector for the
31 selectable file numbers.
File
number
Input 4
Input 5
Input 6
Input 7
Input 8
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
PAGE - 75
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
ANNEX
A.1. Overall Dimensions
All dimensions expressed in milimeters.
PAGE - 76
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
A.2. Fonts
A.2.1. Gulim
Proportional width font
A.2.2. Courier
Proportional width font.
A.2.2. MonoS
Monospaced font
PAGE - 77
MC 2000 T
Controller
COUTH MC 2000T
Instruction Manual
A.2.3. MS5x7
Monospaced font
PAGE - 78
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
PAGE - 79
MC 2000 T
Controller
PAGE - 80
COUTH MC 2000T
Instruction Manual
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
PAGE - 81
MC 2000 T
Controller
PAGE - 82
COUTH MC 2000T
Instruction Manual
COUTH MC 2000T
Instruction Manual
MC 2000 T
Controller
PAGE - 83
MC 2000 T
Controller
PAGE - 84
COUTH MC 2000T
Instruction Manual
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
1. INTRODUCTION
2. COMMUNICATION PARAMETERS
3. COMMUNICATION FORMAT
3.1. Addressing
3.2. SEGMENTATION
3.4.1. CRC
3.4.2. Sum
3.4.3. None
4.1. ACK
4.2. NACK
4.3. Retransmissions
5. COMMAND SET
11
11
11
12
13
13
20
20
21
21
24
PAGE - 1
MC 2000 T
Controller
COUTH MC 2000T
Communication protocol
25
26
26
27
27
28
29
29
30
42
44
PAGE - 2
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
PICTURES INDEX
Picture 1 Connection between the MC 2000T control unit and a computer. ............................ 5
PAGE - 3
MC 2000 T
Controller
COUTH MC 2000T
Communication protocol
1. INTRODUCTION
The MC 2000T control unit can be connected via RS-232 with a PC or PLC so that it receives
from it the texts to be marked or part of them. This use is handy when some of the data may not
be stored in the memory of the MC 2000T control unit because it is variable, for example: the
weight of a piece, tolerance, measureme, etc.
This user manual describes the protocol used for communicating with the MC 2000T control
unit. This is a robust communication protocol, with a very complete set of commands that allows
the computer or PLC have full control over the MC 2000T control unit. In addition to sending
files or text to be marked, it is possible to set the parameters of the control unit and completely
govern the entire marking process.
We recommend always using the MC 2000T communication protocol, as it allows capitalize on
all the characteristics of the MC 2000T control unit. It is also possible to work with the MC
2000T and MC 2000L protocols, but they should be used only in those cases in which you want
to use the MC 2000T control unit along with MC 2000T or MC2000L control units which already
use one of these two protocols.
PAGE - 4
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
2. COMMUNICATION PARAMETERS
The RS-232 connection between the MC 2000T control unit and the computer or PLC is pin to
pin type, formed by two MALE FEMALE Sub D9 connectors.
Figure 1 shows the connections schemes between the MC 2000T control unit and a computer:
Baudrate: 4800, 9600, 19200, 38400, 57600 or 115200 bits per second.
Parity: Odd.
Data bits: 8
Stop bits: 1
PAGE - 5
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
3. COMMUNICATION FORMAT
The communication between the MC 2000T control unit and a computer or PLC meets the RS232 standard. The following are the peculiarities of the MC 2000T communication protocol.
3.1. Addressing
The most commonly used connection type with the MC 2000T control unit, either from a
computer or from a PLC, will be a point-to-point connection type, i.e. the computer or PLC
connected to a single MC 2000T control unit. However, in some cases it may be desirable to
make a bus type connection, so that a single computer or PLC can communicate with several
control units using a single serial port.
It is not recommended to make a bus type connection using directly the serial ports from a
computer or a PLC and several MC 2000T units. In the case of wanting to govern various MC
2000T controllers through a single computer or PLC, it is preferable to perform a means
conversion, using for example RS-232 to RS-422 converters, RS-232 to RS-485 converters or
RS-232 to Ethernet converters. Thus, the bus connection actually takes place in a RS-422, RS485 or Ethernet bus, ensuring greater reliability of communications.
In order to make this second type of connection, each of the devices connected to the bus must
have a unique address bus, so that each time the communication takes place only between two
devicess (usually one in master mode - the computer or PLC- and one in slave mode - the
control unit-), despite the fact that there are more devices connected. Therefore, it is possible to
assign to each MC 2000T control unit a different address from the rest of devices connected to
the bus. The range of valid addresses is as it follows:
Addresses 1 250: Addresses valid for the various MC 2000T control units connected
to the bus.
3.2. SEGMENTATION
In communication with the MC 2000T control unit it is possible to exchange large data blocks.
In order not to limit the maximum size of the blocks of data to exchange, a block segmentation
mechanism is provided, i.e. a big block of data should be divided into several smaller
communication frames. A maximum frame size of 250 bytes has been defined; this size on the
one hand allows doing the majority of the communications with the control using a single frame
for each command, and on the other hand, does not require the use of a wide amount of
memory designed exclusively for communication.
Order
Field
STX
DD
LT
UT
CMD
Size
PAGE - 6
1 byte
6
DATA
7
CRC
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
UT: Last frame: a value of 0 in this field indicates that this is the last frame of a data
block. Any value other than 0 indicates missing more frames to complete the block.
CMD: Command: indicates the action to perform on the MC 2000T controller unit or the
response type from it.
DATA: Details of each command. Some commands have no data so this field will be
empty.
CRC: Error checking filed. CRC value aplied to all bytes of the frame except for the
same CRC.
3.4.1. CRC
It uses the 16-bit CRC known as X25 standard (generator polynomial: x16 + x12 + x5 + 1).
Below is a function written in language '
C'for the calculation of the CRC of a frame.
This function returns the calculated CRC value for a frame data of length len.
short CalcularCRC(char * data, unsigned char len)
{
short icrc;
unsigned char i;
unsigned char j;
short temp;
icrc = 0x0000;
for (i = 0; i < len; i++)
{
if((icrc == 0x00) && (data[i] == 0))
{
icrc = 0x0000;
}
else
{
temp = ((short)data[i])<<8;
for(j=0; j<8; j++)
{
Rev. - Jan 2008
PAGE - 7
MC 2000 T
Controller
COUTH MC 2000T
Communication protocol
3.4.2. Sum
In this case is the sum of all the bytes of the frame except for the two bytes for the error
checking field. For the same previous case of a frame formed by the bytes 10 02 07 00 01 the
calculated sum will be 001A and the complete frame will consist of values 10 02 07 00 01 00
1A.
3.4.3. None
In this case the two bytes for the error checking field will always be 03 03. For the same
previous case of a frame formed by the bytes 10 02 07 00 01 the complete frame will consist of
values 10 02 07 00 01 03 03.
PAGE - 8
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
Some commands have an own answer and the MC 2000T control unit will respond that answer
when it receives this command. Other commands however, have no answer, which defines the
positive acknowledgement frame (ACK) for these cases. It also defines another generic plot,
which is valid for all command, and it is called negative acknowledgement frame(NACK). The
role of these generic frames is that the transmitter of a frame can know whether this frame has
been received correctly or not by the addressee.
4.1. ACK
Any plot that does not require a response by the recipient'
s own, and which has been received
correctly, must be answered with a positive acknowledgement frame (ACK). This applies both to
control units and to the computer or PLC. The only exceptions are the generic frames, since
neither the positive acknowledgement frame (ACK) or the negative acknowledgement frame
(NACK) must be answered.
The format of the positive acknowledgement frame is as it follows:
STX
DD
10
LT
07
UT
00
CMD
CRC
00
4.2. NACK
The negative acknowledgement frame is used to indicate that the control unit can not perfom
the action indicated by the received command. This occurs when, for example, the control unit
is on a marking process and a command that alters any of the parameters of the marking
process has been received. The control unit will not respond to this type of command until it has
finished the marking. Therefore, it must retry sending the command later.
The format of the negative acknowledgement frame is as it follows:
STX
10
DD
LT
07
UT
00
CMD
CRC
FF
4.3. Retransmissions
In some cases it is possible that some of the devices sends a frame and it is not answered by
the device such frame has been addressed to. This can happen, for example, if the
transmission line is electrically noisy and sent frame has been altered. The device to whom the
frame was intended could have lost the frame or discard it as being wrong after checking the
CRC.
In this case, if some time has elapsed since the transmission of the frame and the transmitter of
the same frame has not received a response or a positive or negative acknowledgement, it
PAGE - 9
MC 2000 T
Controller
COUTH MC 2000T
Communication protocol
must retransmit the same frame. The maximum waiting time for an answer to a sent frame is
500 ms.
PAGE - 10
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
5. COMMAND SET
Below is a description of all commands supported by the MC 2000T communication protocol. In
all the examples shown CRC is used as error checking method. All values of a communication
frame shall be expressed in hexadecimal system.
RESET
DD
10
LT
UT
CMD
07
00
01
CRC
Immediately prior to the internal reset the control unit will send an ACK.
For example, if a computer (address 00) sends a RESET command to one MC 2000T control
unit whose address is 02, the communication will be as it follows:
PC
MC 2000T
Sends
RESET
10 02 07 00 01 7C 83
Receives
Receives
ACK
10 00 07 00 00 81 CA
Sends
STATUS
STX
DD
10
LT
UT
CMD
07
00
02
CRC
STX
DD
LT
UT
CMD
DATA
10
00
08
00
03
status
CRC
02: The control unit is marking but at the moment the marking is paused or
pending reception of further information.
PAGE - 11
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
04: An error occurred during the last marking: text to mark exceeds the limits of
the marking area.
05: An error occurred during the last marking: logotype to mark exceeds the
limits of the marking area.
06: An error occurred during the last marking: DataMatrix code to mark exceeds
the limits of the marking area.
07: An error occurred during the last marking: marking unit has not been
detected at origin.
08: An error occurred during the last marking: the control unit has not been able
to find the selected font.
09: : An error occurred during the last marking: the control unit has not been
able to find the selected logotype.
0A: : An error occurred during the last marking: the control unit has not been
able to find the selected file.
0B: : An error occurred during the last marking: the control unit has not been
able to find access the internal memory.
Upon reception of the STATUS ANSWER, the sender of the STATUS command has to send an
ACK.
For example, if a computer (address 00) sends a STATUS command to one MC 2000T control
unit whose address is 02, and the control unit is idle the communication will be as it follows:
PC
MC 2000T
Sends
STATUS
10 02 07 00 02 4C E0
Receives
Receives
STATUS ANSWER
10 00 08 00 03 00 CA 14
Sends
Sends
ACK
10 02 07 00 00 6C A2
Receives
NEW FILE
STX
10
DD
LT
UT
CMD
07
00
21
CRC
For example, if a computer (address 00) sends the NEW FILE command to one MC 2000T
control unit whose address is 02, the communication will be as it follows:
PC
Sends
PAGE - 12
MC 2000T
NEW FILE
10 02 07 00 21 58 E1
Receives
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
ACK
10 00 07 00 00 81 CA
Receives
Sends
OPEN FILE
STX
DD
LT
10
UT
CMD
DATA
00
22
name
CRC
Where name is the name of the file to open. It is not necessary to include the extension of the
file.
For example, if a computer (address 00) sends the OPEN FILE command to one MC 2000T
control unit whose address is 02, requesting the file TEST0001 to be opened, the
communication will be as it follows:
PC
MC 2000T
Sends
OPEN FILE
10 02 0F 00 22 54 45 53 54 30 30 30 31 72 5F
Receives
Receives
ACK
10 00 07 00 00 81 CA
Sends
Formato:
STX
DD
LT
10
UT
CMD
DATA
3B
file
CRC
PAGE - 13
MC 2000 T
Controller
COUTH MC 2000T
Communication protocol
It is not always necessary to include data for the counters, only if you are going to use a
Counter special mark within the text.
For those line parameters whose size is two bytes, the less significant byte must be sent first,
that is, if for example you want to set the character height of a line to 20.0 mm (200 tenths of a
mm), the value to send is 00C8 in hexadecimal and should be sent in the order C8 00.
For one byte size parameters, the value FF indicates using the same parameter value as the
previous line (the default value will be used if the parameter belongs to the first line).
For two bytes size parameters, the value FF FF indicates using the same parameter value as
the previous line (the default value will be used if the parameter belongs to the first line).
For the Font parameter, the value FF FF FF FF FF FF FF FF FF FF FF FF indicates using the
same Font as the previous line (the default value will be used if the parameter belongs to the
first line).
Line Data:
Font: Size: 12 bytes. ASCII string with the name of the source, including the extension
".FNT". If the name and extension number less than 12, the rest will be filled with the
value 00.
Examples:
Font = GULIM
Value to be sent = 47 55 4C 49 4D 2E 46 4E 54 00 00
00
Font = COURI
Value to be sent = 43 4F 55 52 49 2E 46 4E 54 00 00
00
Density: Size: 1 byte. Value expressed in %(1-101). Value 101 means auto density.
Examples:
Density = 100%
Value to be sent = 64
Density = auto
Value to be sent = 65
PAGE - 14
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
Z Coordinate = 10,5mm
Value to be sent = 69 00
Examples:
Convex
00
Concave
01
Concave/Convex = Concave
Value to be sent = 01
Concave/Convex = Convex
Value to be sent = 00
Examples:
No
00
Yes
01
Value to be sent = 01
Value to be sent = 00
Examples:
No
00
Yes
01
Value to be sent = 01
Value to be sent = 00
Text: Maximum size: 75 bytes. ASCII string with the text to mark. It is possible to
include the following special marks:
PAGE - 15
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
PAGE - 16
Insert Option
Special mark
Shift
Calendar: Hour(hh)
C(HH)
Calendar: Minutes(mm)
C(MM)
Calendar: Hour-Minutes(hh-mm)
C(HH-MM)
C(d)
C(dd)
C(ddd)
C(ww)
C(mm)
Calendar: Year(yy)
C(yy)
Calendar: Year(yyyy)
C(yyyy)
Calendar: Year-month-day(yyyy-mm-dd)
C(yyyy-mm-dd)
Calendar: Day-month-year(dd-mm-yyyy)
C(dd-mm-yyyy)
Object: Logotype
L(XXXXXXXX.LOG)
Object: File
F(XXXXXXXX.TXT)
Counter: Conter 1
CT1(XXXXXXXXXX)
Counter: Counter 2
CT2(XXXXXXXXXX)
MWS1A
MWS2A
MWS3A
MWS1M
MWS2M
MGC
MWSC
MAS1A
MDS1A
MAS2A
MDS2A
MAS3A
MDS3A
MAS4A
MDS4A
MAS1M
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
MDS1M
MAS2M
MDS2M
Command: Timer 1
MT1
Command: Timer 2
MT2
Command: Timer 3
MT3
MPF
DMS(XXX )
DMR(XXX )
Any special mark must be preceded by the value 1E and followed by the value
1F.
At the end of the text of every line, value 0A must be included, indicating the end of the
line.
After the end of line value (0A) of the last line of the file, value 0B must be included,
indicating the end of file.
Examples:
Text = Shift
Value to be sent = 53 68 69 66 74 0A
Text = Shift Shift special mark
Value to be sent = 53 68 69 66 74 1E
54 1F 0A
Counter data:
Counter 1 repetitions: Size 1 byte. Number of repetitions already made for this
counter.
Examples:
Repetitions = 0
Value to be sent = 00
Repetitions = 100
Value to be sent = 64
Counter 1 value: Size 10 bytes. Value of counter 1. Each byte represents the ASCII
value for the corresponding byte.
Examples:
Counter 1 value= 0123456789
Value to be sent = 30 31 32 33 34 35
36 37 38 39
Counter 1 value = 6789
Value to be sent = 30 30 30 30 30 30 36 37
38 39
Counter 1 repetitions: Size 1 byte. Number of repetitions already made for this
counter.
Examples:
Repetitions = 0
Value to be sent = 00
Repetitions = 100
Value to be sent = 64
Counter 1 value: Size 10 bytes. Value of counter 1. Each byte represents the ASCII
value for the corresponding byte.
Examples:
Counter 1 value= 0123456789
Value to be sent = 30 31 32 33 34 35
36 37 38 39
PAGE - 17
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
Value to be sent = 30 30 30 30 30 30 36 37
As an example, if a PC (address 00) sends the SEND FILE command to one MC 2000T control
unit whose address is 02, the communication would be as it follows:
PC
MC 2000T
Sends
SEND FILE
10 02 80 00 3B 32 00 64 47 55 4C 49 4D 2E 46 4E 54 00 00
00 19 65 64 00 64 00 FF FF 00 00 00 00 00 00 00 0A 03 FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF 43 4F 55 54 48 0A FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF 4D 43 20 32 30 30 30 54 B2 0A 0B 7A 6F
Receives
Receives
ACK
10 00 07 00 00 81 CA
Sends
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
MC 2000T
Sends
SEND FILE
10 02 64 00 3B 32 00 64 47 55 4C 49 4D 2E 46 4E 54 00 00
00 19 65 64 00 64 00 FF FF 00 00 00 00 00 00 00 0A 03 FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF 1E 43 54 31 28 31 32 33 34 35 36 37 38 39 30 29 1F 0A
0B 00 31 32 33 34 35 36 37 38 39 30 00 30 30 30 30 30 30
30 30 30 30 ED 7F
Receives
Receives
ACK
10 00 07 00 00 81 CA
Sends
PAGE - 19
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
Force: 3
Reserved values: Size 20 bytes, all to FF.
Text: The text is a Counter 1 special mark with a counter value of 1234567890.
Counter data:
Counter 1 repetitions: 0
Counter 1 value: 1234567890
Counter 2 repetitions: 0
Counter 2 value: 0000000000
STX
DD
LT
10
UT
CMD
DATA
00
23
name
CRC
Where name is the name of the file to delete. It is not requiered to add the extension of the file.
As an example, if a PC (address 00) sends the DELETE FILE command to one MC 2000T
control unit whose address is 02, asking to delete file TEST0001, the communication would be
as it follows:
PC
MC 2000T
Sends
DELETE FILE
10 02 0F 00 23 54 45 53 54 30 30 30 31 99 7C
Receives
Receives
ACK
10 00 07 00 00 81 CA
Sends
STX
10
DD
LT
UT
CMD
DATA
00
24
name
CRC
Where name is the name of the file. It is not mandatory to add the extension of the file.
For example, if a PC (address 00) sends the SAVE FILE command to one MC 2000T control
unit whose address is 02, asking to save file TEST0001, the communication will be as it follows:
PAGE - 20
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
PC
MC 2000T
Sends
SAVE FILE
10 02 0F 00 24 54 45 53 54 30 30 30 31 28 D7
Receives
Receives
ACK
10 00 07 00 00 81 CA
Sends
STX
DD
LT
10
UT
CMD
DATA
00
25
line text
CRC
Where line is the number of the line to edit (1 40) and text is the new text for that line. Within
the text, special marks described in the chapter for the command TRANSMIT FILE can be
included.
For example, if a PC (address 00) sends one EDIT TEXT command to one MC 2000T control
unit whose address is 02, indicating that the text for the first line of the file must be ABCD123,
the communication will be as it follows:
PC
MC 2000T
Sends
EDIT TEXT
10 02 0F 00 25 01 42 43 44 45 31 32 33 44 D6
Receives
Receives
ACK
10 00 07 00 00 81 CA
Sends
STX
10
DD
LT
UT
CMD
DATA
CRC
00
25
Where line is the number of the line (1 40), parameter is the code of the parameter to be
changed and value is the new value for that parameter. For those line parameters whose size is
two bytes, the less significant byte must be sent first, that is, if for example you want to set the
character height of a line to 20.0 mm (200 tenths of a mm), the value to send is 00C8 in
hexadecimal and should be sent in the order C8 00.
These are all the parameter which can be modified, their codes, sizes and formats:
PAGE - 21
MC 2000 T
Controller
COUTH MC 2000T
Communication protocol
Character height: Code: 01. Size: 2 bytes. The value is expressed in tenths of a
millimetre.
Examples:
Height = 5mm
Value to be sent = 32 0
Height = 10,5mm
Value to be sent = 69 00
Font: Code: 03. Size: 12 bytes. ASCII string with the name of the source, including the
extension ".FNT". If the name and extension number less than 12, the rest will be filled
with the value 00.
Examples:
Font = GULIM
Value to be sent = 47 55 4C 49 4D 2E 46 4E 54 00 00
00
Font = COURI
Value to be sent = 43 4F 55 52 49 2E 46 4E 54 00 00
00
Density: Code: 05. Size: 1 byte. Value expressed in %(1-101). Value 101 means auto
density.
Examples:
Density = 100%
Value to be sent = 64
Density = auto
Value to be sent = 65
X Coordinate: Code: 06. Size: 2 bytes. The value is expressed in tenths of a millimetre.
Examples:
X Coordinate = 5mm
Value to be sent = 32 0
X Coordinate = 10,5mm
Value to be sent = 69 00
Y Coordinate: Code: 07. Size: 2 bytes. The value is expressed in tenths of a millimetre.
Examples:
Y Coordinate = 5mm
Value to be sent = 32 0
Y Coordinate = 10,5mm
Value to be sent = 69 00
Z Coordinate: Code: 08. Size: 2 bytes. The value is expressed in tenths of a millimetre.
Examples:
Z Coordinate= 5mm
Value to be sent = 32 0
Z Coordinate = 10,5mm
Value to be sent = 69 00
Angle: Code: 09. Size: 2 bytes. The value is expressed in tenths of a degree.
Examples:
Angle = 180 Value to be sent = 08 07
Angle = 45,5 Value to be sent = C7 01
Diameter: Code: 0A. Size: 2 bytes. The value is expressed in tenths of a millimetre.
Examples:
Diameter = 180mm
Value to be sent = 08 07
Diameter = 45,5mm
Value to be sent = C7 01
PAGE - 22
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
Concave/Convex: Code: 0B. Size: 1 byte. Values according to the following table:
Concave/Convex Value
Examples:
Convex
00
Concave
01
Concave/Convex = Concave
Value to be sent = 01
Concave/Convex = Convex
Value to be sent = 00
Horizontal mirror: Code: 0C. Size: 1 byte. Values according to the following table:
Horizontal mirror Value
Examples:
No
00
Yes
01
Value to be sent = 01
Value to be sent = 00
Vertical mirror: Code: 0D. Size: 1 byte. Values according to the following table:
Vertical mirror Valor
Examples:
No
00
Yes
01
Value to be sent = 01
Value to be sent = 00
For one byte size parameters, the value FF indicates using the same parameter value as the
previous line (the default value will be used if the parameter belongs to the first line).
For two bytes size parameters, the value FF FF indicates using the same parameter value as
the previous line (the default value will be used if the parameter belongs to the first line).
For the Font parameter, the value FF FF FF FF FF FF FF FF FF FF FF FF indicates using the
same Font as the previous line (the default value will be used if the parameter belongs to the
first line).
As an example, if a PC (address 00) sends the LINE PARAMETER command to one MC
2000T control unit whose address is 02, indicating that the X Coordinate parameter of the third
line must be 10.0 mm, the communication will be as it follows:
PC
Sends
Rev. - Jan 2008
MC 2000T
LINE PARAMETER
Receives
PAGE - 23
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
10 02 0B 00 26 03 06 64 00 BC D4
ACK
10 00 07 00 00 81 CA
Receives
Sends
START
DD
10
LT
UT
CMD
07
00
31
CRC
The control unit will respond an ACK to this command and once the marking process has
finished or if it has been paused, then the MARKING ANSWER will be sent indicating the result
of the marking process.
The format of the MARKING ANSWER is:
MARKING
ANSWER
STX
DD
LT
UT
CMD
DATA
10
00
08
00
32
status
CRC
02: The control unit is marking but at the moment the marking is paused or
pending reception of further information.
04: An error occurred during the last marking: text to mark exceeds the limits of
the marking area.
05: An error occurred during the last marking: logotype to mark exceeds the
limits of the marking area.
06: An error occurred during the last marking: DataMatrix code to mark exceeds
the limits of the marking area.
07: An error occurred during the last marking: marking unit has not been
detected at origin.
08: An error occurred during the last marking: the control unit has not been able
to find the selected font.
09: : An error occurred during the last marking: the control unit has not been
able to find the selected logotype.
0A: : An error occurred during the last marking: the control unit has not been
able to find the selected file.
0B: : An error occurred during the last marking: the control unit has not been
able to find access the internal memory.
Once the MARKING ANSWER is received, the sender of the START command has to reply
with an ACK.
PAGE - 24
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
As an example, if a PC (address 00) sends the START command to one MC 2000T control unit
whose address is 02, and after 2 seconds the marking process finishes correctly, the
communication will be as it follows:
PC
MC 2000T
Sends
START
10 02 07 00 31 4A D0
Receives
Receives
ACK
10 00 07 00 00 81 CA
Sends
MARKING ANSWER
10 00 08 00 32 00 FC B0
Sends
Sends
ACK
10 02 07 00 00 6C A2
Receives
PAUSE
STX
10
DD
LT
UT
CMD
07
00
33
CRC
Once the marking process is paused or cancelled, the MARKING ANSWER will be sent
indicating the result of the marking process.
As an example, if a PC (address 00) sends the PAUSE command during a marking process to
one MC 2000T control unit whose address is 02, the communication will be as it follows:
PC
MC 2000T
Sends
PAUSE
10 02 07 00 33 6A 92
Receives
Receives
ACK
10 00 07 00 00 81 CA
Sends
Receives
MARKING ANSWER
10 00 08 00 32 02 DC F2
Sends
Sends
ACK
10 02 07 00 00 6C A2
Receives
PAGE - 25
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
STOP
STX
DD
10
LT
UT
CMD
07
00
34
CRC
Once the marking process is cancelled, the MARKING ANSWER will be sent indicating the
result of the marking process.
As an example, if a PC (address 00) sends the STOP command during a marking process to
one MC 2000T control unit whose address is 02, the communication will be as it follows:
PC
MC 2000T
Sends
STOP
10 02 07 00 34 1A 75
Receives
Receives
ACK
10 00 07 00 00 81 CA
Sends
Receives
MARKING ANSWER
10 00 08 00 32 03 CC D3
Sends
Sends
ACK
10 02 07 00 00 6C A2
Receives
STX
DD
10
LT
UT
CMD
DATA
00
35
text
CRC
PAGE - 26
MC 2000T
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
Sends
SEND DATA
10 02 0E 00 35 41 42 43 44 31 32 33 E8 2D
Receives
Receives
ACK
10 00 07 00 00 81 CA
Sends
MARK TEXT
STX
DD
LT
UT
10
CMD
DATA
36
text
CRC
Where text is the text to mark. If the text sent belongs to several lines of the same file, you must
include 0A character at the end of each line. Within the text, special marks described in the
chapter for the command TRANSMIT FILE can be included.
The control unit will respond an ACK to this command and once the marking process has
finished or if it has been paused, then the MARKING ANSWER will be sent indicating the result
of the marking process.
As an example, if a PC (address 00) sends the MARK TEXT command to one MC 2000T
control unit whose address is 02, indicating that the text to mark must be ABCD on the first line
and 123 on the second line, the communication would be as it follows:
PC
MC 2000T
Sends
MARK TEXT
10 02 0F 00 36 41 42 43 44 0A 31 32 33 FA
8C
Receives
Receives
ACK
10 00 07 00 00 81 CA
Sends
Marking
Receives
MARKING ANSWER
10 00 08 00 32 00 FC B0
Sends
Sends
ACK
10 02 07 00 00 6C A2
Receives
STX
DD
LT
UT
CMD
DATA
CRC
PAGE - 27
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
FILE
10
37
file
Where file is the file to mark. It has the format described in the chapter corresponding to the
SEND FILE command.
The control unit will respond an ACK to this command and once the marking process has
finished or if it has been paused, then the MARKING ANSWER will be sent indicating the result
of the marking process.
For example, if a PC (address 00) sends the MARK FILE command to one MC 2000T control
unit whose address is 02, the communication will be as it follows:
PC
MC 2000T
Sends
MARK FILE
10 02 42 00 37 32 00 64 47 55 4C 49 4D 2E 46 4E 54 00 00
00 19 65 64 00 64 00 FF FF 00 00 00 00 00 00 00 0A 03 FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF 43 4F 55 54 48 0A 0B 99 BD
Receives
Receives
ACK
10 00 07 00 00 81 CA
Sends
Marking
Receives
MARKING ANSWER
10 00 08 00 32 00 FC B0
Sends
Sends
ACK
10 02 07 00 00 6C A2
Receives
STX
10
DD
LT
UT
CMD
07
00
38
CRC
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
PC
MC 2000T
Sends
Receives
Receives
ACK
10 00 07 00 00 81 CA
Sends
STX
DD
LT
UT
CMD
DATA
39
text
10
CRC
Where text is the text to mark. If the text sent belongs to several lines of the same file, you must
include 0A character at the end of each line. Within the text, special marks described in the
chapter for the command TRANSMIT FILE can be included.
The control unit will respond an ACK to this command.
The difference between the MARK TEXT command and the MARK TEXT WITHOUT ANSWER
command lies in the fact that in the latter case, upon completion of the marking process, the MC
2000T control unit will not send the MARKING ANSWER. To know when it completed the
marking process, the sender of the MARK TEXT WITHOUT ANSWER command can "ask" to
the control unit during the marking process using the STATUS command.
As an example, if a PC (address 00) sends the MARK TEXT WITHOUT ANSWER command to
one MC 2000T control unit whose address is 02, indicating that the text to mark must be ABCD
on the first line and 123 on the second line, the communication would be as it follows:
PC
MC 2000T
Sends
Receives
Receives
ACK
10 00 07 00 00 81 CA
Sends
STX
10
DD
LT
UT
CMD
DATA
3A
file
CRC
PAGE - 29
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
Where file is the file to mark. It has the format described in the chapter for the command
TRANSMIT FILE.
The control unit will respond an ACK to this command.
The difference between the MARK FILE command and the MARK FILE WITHOUT ANSWER
command lies in the fact that in the latter case, upon completion of the marking process, the MC
2000T control unit will not send the MARKING ANSWER. To know when it completed the
marking process, the sender of the MARK FILE WITHOUT ANSWER command can "ask" to
the control unit during the marking process using the STATUS command.
As an example, if a PC (address 00) sends the MARK FILE WITHOUT ANSWER command to
one MC 2000T control unit whose address is 02, the communication would be as it follows:
PC
MC 2000T
Sends
Receives
Receives
ACK
10 00 07 00 00 81 CA
Sends
STX
10
DD
LT
UT
CMD
00
43
DATA
parameter
CRC
value
Where parameter is the code for the parameter to modify and value is the new value for that
parameter.
Para aquellos parmetros cuyo tamao sea de dos bytes, se debe enviar primero el byte
menos significativo, es decir, que si por ejemplo se desea fijar Altura (Parmetros de edicin) a
20.0 mm (200 dcimas de mm), el valor hexadecimal a enviar es 00C8 y se deber enviar en el
orden C8 00.
For those parameters whose size is two bytes, the less significant byte must be sent first, that
is, if for example you want to set Height (Edition parameters) to 20.0 mm (200 tenths of a mm),
the hexadecimal value to send is 00C8 and should be sent in the order C8 00.
Below is a description of all the general parameters that can be edited:
Mechanics parameters
Marking area:
X Travel: Code: 01. Size: 2 bytes. The value is expressed in tenths of a millimetre.
Examples:
X Travel = 50mm
Value to be sent = F4 01
PAGE - 30
COUTH MC 2000T
Communication protocol
X Travel = 200mm
MC 2000 T
Controller
Value to be sent = D0 07
Recorrido Y: Code: 02. Size: 2 bytes. The value is expressed in tenths of a millimetre.
Examples:
Y Travel = 50mm
Value to be sent = F4 01
Y Travel = 200mm
Value to be sent = D0 07
Recorrido Z: Code: 03. Size: 2 bytes. The value is expressed in tenths of a millimetre.
Examples:
Z Travel = 50mm
Value to be sent = F4 01
Z Travel = 200mm
Value to be sent = D0 07
Transmission:
Transmission X: Code: 04. Size: 2 bytes. Values according to the table shown in yhe
instructions manual.
Examples:
Transmission X = 200
Value to be sent = C8 00
Transmission X = 340
Value to be sent = 54 01
Transmission Y: Code: 05. Size: 2 bytes. Values according to the table shown in yhe
instructions manual.
Examples:
Transmission Y = 200
Value to be sent = C8 00
Transmission Y = 340
Value to be sent = 54 01
Transmission Z: Code: 06. Size: 2 bytes. Values according to the table shown in yhe
instructions manual.
Examples:
Transmission Z = 200
Value to be sent = C8 00
Transmission Z = 340
Value to be sent = 54 01
Head:
Type: Code: 07. Size: 1 byte. Values according to the following table:
Type
Examples:
Value
Pneumatic
00
Solenoid S3
01
Solenoid S6
02
Impact
03
Scratching
04
Type = Pneumatic
Type = Scratching
Value to be sent = 00
Value to be sent = 04
Input time: Code: 08. Size: 1 byte. The value is expressed in miliseconds.
Examples:
Input time = 10ms
Value to be sent = 0A
Input time = 20ms
Value to be sent = 14
Output time: Code: 09. Size: 1 byte. The value is expressed in miliseconds.
Examples:
Output time = 10ms
Value to be sent = 0A
Output time = 20ms
Value to be sent = 14
PAGE - 31
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
Motor:
Consumption X: Code: 0A. Size: 1 byte. The value is expressed in tenths of Amperes.
Examples:
Consumption X = 1 Ampere
Value to be sent = 0A
Consumption X = 1,5 Amperes
Value to be sent = 0F
Consumption Y: Code: 0B. Size: 1 byte. The value is expressed in tenths of Amperes.
Examples:
Consumption Y = 1 Ampere
Value to be sent = 0A
Consumption Y = 1,5 Amperes
Value to be sent = 0F
Consumption Z: Code: 0C. Size: 1 byte. The value is expressed in tenths of Amperes.
Examples:
Consumption Z = 1 Ampere
Value to be sent = 0A
Consumption Z = 1,5 Amperes
Value to be sent = 0F
Full speed: Code: 0D. Size: 2 bytes. The value is expressed in motor steps per
second.
Examples:
Full speed = 1000 steps/second
Value to be sent = E8 03
Full speed = 1200 steps/second
Value to be sent = B0 04
Portable machine: Code: 0F. Size: 1 byte. Values according to the following table:
Portable machine Value
Examples:
No
00
Yes
01
Portable machine = S
Portable machine = No
Value to be sent = 01
Value to be sent = 00
Quick configuration:
Marking parameters
Marking mode: Code: 12. Size: 1 byte. Values according to the following table:
Marking mode Value
File
PAGE - 32
00
Rev. - Jan 2008
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
Slave
Examples:
01
Reset: Code: 13. Size: 1 byte. Values according to the following table:
Reset Value
Examples:
Reset = Yes
Reset = No
No
00
Yes
01
Value to be sent = 01
Value to be sent = 00
Edition parameters
Height: Code: 14. Size: 2 bytes. The value is expressed in tenths of a millimetre.
Examples:
Height = 5mm
Value to be sent = 32 0
Height = 10,5mm
Value to be sent = 69 00
Font: Code: 16. Size: 12 bytes. ASCII string with the name of the source, including the
extension ".FNT". If the name and extension number less than 12, the rest will be filled
with the value 00.
Examples:
Font = GULIM
Value to be sent = 47 55 4C 49 4D 2E 46 4E 54 00 00
00
Font = COURI
Value to be sent = 43 4F 55 52 49 2E 46 4E 54 00 00
00
Density: Code: 18. Size: 1 byte. Value expressed in %(1-101). 101 means density
auto.
Examples:
Density = 100%
Value to be sent = 64
Density = auto
Value to be sent = 65
X Coordinate: Code: 19. Size: 2 bytes. The value is expressed in tenths of a millimetre.
Examples:
X Coordinate = 5mm
Value to be sent = 32 0
X Coordinate = 10,5mm
Value to be sent = 69 00
PAGE - 33
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
Y Coordinate = 10,5mm
Value to be sent = 69 00
Z Coordinate: Code: 1B. Size: 2 bytes. The value is expressed in tenths of a millimetre.
Examples:
Z Coordinate = 5mm
Value to be sent = 32 0
Z Coordinate = 10,5mm
Value to be sent = 69 00
Angle: Code: 1C. Size: 2 bytes. The value is expressed in tenths of a degree.
Examples:
Angle = 180 Value to be sent = 08 07
Angle = 45,5 Value to be sent = C7 01
Diameter: Code: 1D. Size: 2 bytes. The value is expressed in tenths of a millimetre.
Examples:
Diameter = 180mm
Value to be sent = 08 07
Diameter = 45,5mm
Value to be sent = C7 01
Concave/Convex: Code: 1E. Size: 1 byte. Values according to the following table:
Concave/Convex Value
Examples:
Convex
00
Cncave
01
Concave/Convex = Concave
Value to be sent = 01
Concave/Convex = Convex
Value to be sent = 00
Horizontal mirror: Code: 1F. Size: 1 byte. Values according to the following table:
Horizontal mirror Value
Examples:
No
00
Yes
01
Value to be sent = 01
Value to be sent = 00
Vertical mirror: Code: 20. Size: 1 byte. Values according to the following table:
Vertical mirror Value
Examples:
No
00
Yes
01
Value to be sent = 01
Value to be sent = 00
PAGE - 34
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
Selfcentering X: Code: 23. Size: 1 byte. Values according to the following table:
Selfcentering X Value
Examples:
No
00
Yes
01
Selfcentering X = Yes
Selfcentering X = No
Value to be sent = 01
Value to be sent = 00
Selfcentering Y: Code: 24. Size: 1 byte. Values according to the following table:
Selfcentering Y Value
Examples:
No
00
Yes
01
Selfcentering Y = Yes
Selfcentering Y = No
Value to be sent = 01
Value to be sent = 00
Controller parameters
Shifts:
Marking character (shift 1): Code: 26. Size: 1 byte. ASCII value to be marked.
Examples:
Marking character = A
Value to be sent = 41
Marking character = 1
Value to be sent = 31
Marking character (shift 2): Code: 27. Size: 1 byte. ASCII value to be marked.
Examples:
Marking character = A
Value to be sent = 41
Marking character = 1
Value to be sent = 31
Marking character (shift 3): Code: 28. Size: 1 byte. ASCII value to be marked.
Examples:
Marking character = A
Value to be sent = 41
Marking character = 1
Value to be sent = 31
Marking character (shift 4): Code: 29. Size: 1 byte. ASCII value to be marked.
Examples:
Marking character = A
Value to be sent = 41
Marking character = 1
Value to be sent = 31
Starting time (shift 1): Code: 2A. Size: 3 bytes. Firts byte: Hours. Second byte:
Minutes. Third byte: Seconds.
Examples:
Starting time = 06:00:00
Value to be sent = 06 00 00
Starting time = 13:30:45
Value to be sent = 0D 1E 2D
PAGE - 35
MC 2000 T
Controller
COUTH MC 2000T
Communication protocol
Starting time (shift 2): Code: 2B. Size: 3 bytes. Firts byte: Hours. Second byte:
Minutes. Third byte: Seconds.
Examples:
Starting time = 06:00:00
Value to be sent = 06 00 00
Starting time = 13:30:45
Value to be sent = 0D 1E 2D
Starting time (shift 3): Code: 2C. Size: 3 bytes. Firts byte: Hours. Second byte:
Minutes. Third byte: Seconds.
Examples:
Starting time = 06:00:00
Value to be sent = 06 00 00
Starting time = 13:30:45
Value to be sent = 0D 1E 2D
Starting time (shift 4): Code: 2D. Size: 3 bytes. Firts byte: Hours. Second byte:
Minutes. Third byte: Seconds.
Examples:
Starting time = 06:00:00
Value to be sent = 06 00 00
Starting time = 13:30:45
Value to be sent = 0D 1E 2D
Calendar:
Week day: Code: 2E. Size: 7 bytes. Each byte represents the ASCII value for the
character of each day.
Examples:
Characters = L M X J V S D
Value to be sent = 4C 4D 58 4A 56 53
44
Characters = 1 2 3 4 5 6 7
Value to be sent = 31 32 33 34 35 36 37
Month: Code: 2F. Size: 12 bytes. Each byte represents the ASCII value for the
character of month.
Examples: Characters = E F M A M J J A S O N D
Value to be sent = 45 46 4D 41
4D 4A 4A 41 53 4F 4E 44
Characters = 1 2 3 4 5 6 7 8 9 A B C
Value to be sent = 31 32 33 34 35
36 37 38 39 41 42 43
Month day: Code: 30. Size: 31 bytes. Each byte represents the ASCII value for the
character of each day of the month.
Examples: Characters = 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S
TUV
Value to be sent = 31 32 33 34 35 36 37 38 39 41 42 43 44 45
46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56
PAGE - 36
COUTH MC 2000T
Communication protocol
Examples:
Day = 06
Day = 31
MC 2000 T
Controller
Value to be sent = 06
Value to be sent = 1F
Separating character: Code: 37. Size: 1 byte. ASCII value of the character.
Examples:
Separating character = /
Value to be sent = 2F
Separating character = :
Value to be sent = 3A
Automating hour change: Code: 38. Size: 1 byte. Values according to the following
table:
Automating hour change Value
Examples:
None
00
European
01
Counters:
Increase (C1): Code: 39. Size: 1 bytes. Value between 100 y +100. Negative values
are calculated as a 2s complement, i.e., 256+Value.
Examples:
Increase = -1
Value to be sent = FF
Increase = 1
Value to be sent = 01
Increase = -100
Value to be sent = 9C
Increase = 100
Value to be sent = 64
Increase (C2): Code: 3A. Size: 1 bytes. Value between 100 y +100. Negative values
are calculated as a 2s complement, i.e., 256+Value.
Examples:
Increase = -1
Value to be sent = FF
Increase = 1
Value to be sent = 01
Increase = -100
Value to be sent = 9C
Increase = 100
Value to be sent = 64
PAGE - 37
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
Digit number (C1): Code: 3D. Size: 1 byte. Value between 1-10.
Examples:
Digit number = 1
Value to be sent = 01
Digit number = 10
Value to be sent = 0A
Digit number (C2): Code: 3E. Size: 1 byte. Value between 1-10.
Examples:
Digit number = 1
Value to be sent = 01
Digit number = 10
Value to be sent = 0A
Mark zeros (C1): Code: 3F. Size: 1 byte. Values according to the following table:
Mark zeros Value
Examples:
No
00
Yes
01
Value to be sent = 01
Value to be sent = 00
Mark zeros (C2): Code: 40. Size: 1 byte. Values according to the following table:
Mark zeros Value
Examples:
No
00
Yes
01
Value to be sent = 01
Value to be sent = 00
Minimum (C1): Code: 41. Size: 10 bytes. Each byte represents the ASCII value of one
digit.
Examples:
Minimum = 0123456789
Value to be sent = 30 31 32 33 34 35 36 37
38 39
Minimum = 6789
Value to be sent = 30 30 30 30 30 30 36 37 38 39
Minimum (C2): Code: 42. Size: 10 bytes. Each byte represents the ASCII value of one
digit.
Examples:
Minimum = 0123456789
Value to be sent = 30 31 32 33 34 35 36 37
38 39
Minimum = 6789
Value to be sent = 30 30 30 30 30 30 36 37 38 39
Maximum (C1): Code: 43. Size: 10 bytes. Each byte represents the ASCII value of one
digit.
Examples:
Maximum = 0123456789
Value to be sent = 30 31 32 33 34 35 36 37
38 39
Maximum = 6789
Value to be sent = 30 30 30 30 30 30 36 37 38 39
Maximum (C2): Code: 44. Size: 10 bytes. Each byte represents the ASCII value of one
digit.
Examples:
Maximum = 0123456789
Value to be sent = 30 31 32 33 34 35 36 37
38 39
PAGE - 38
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
Maximum = 6789
Reset (C1): Code: 45. Size: 1 byte. Values according to the following table:
Examples:
Value to be sent = 30 30 30 30 30 30 36 37 38 39
Reset
Value
None
00
Year
01
Month
02
Week
03
Day
04
Shift
05
External
06
Reset = Day
Value to be sent = 04
Reset = None
Value to be sent = 00
Reset (C2): Code: 46. Size: 1 byte. Values according to the following table:
Examples:
Reset
Value
None
00
Year
01
Month
02
Week
03
Day
04
Shift
05
External
06
Reset = Day
Value to be sent = 04
Reset = None
Value to be sent = 00
Communications:
Baudrate: Code: 47. Size: 1 byte. Values according to the following table:
Baudrate Value
Examples:
2400
00
4800
01
9600
02
19200
03
38400
04
57600
05
115200
06
Baudrate = 2400
Value to be sent = 00
Baudrate = 115200
Value to be sent = 06
PAGE - 39
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
Protocol: Code: 48. Size: 1 byte. Values according to the following table:
Protocol
Examples:
Value
MC 2000T
00
MC 2000T
01
MC 2000L
02
Protocol = MC 2000T
Protocol = MC 2000L
Value to be sent = 00
Value to be sent = 02
Error checking: Code: 49. Size: 1 byte. Values according to the following table:
Error checking Value
Examples:
CRC
00
Sum
01
None
02
Value to be sent = 00
Value to be sent = 02
Topology: Code: 4A. Size: 1 byte. Values according to the following table:
Topology
Examples:
Value
Point to point
00
Net
01
Language: Code: 4C. Size: 1 byte. Values according to the following table:
Examples:
Language
Value
ESPAOL
00
ENGLISH
01
FRANAIS
02
DEUTSCH
03
PORTUGUS
04
ITALIANO
05
Language = ESPAOL
Language = ITALIANO
Value to be sent = 01
Value to be sent = 05
Controller:
PAGE - 40
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
Internal Start/Stop: Code: 4D. Size: 1 byte. Values according to the following table:
Internal Start/Stop Value
Examples:
No
00
Yes
01
Value to be sent = 01
Value to be sent = 00
Beep: Code: 4E. Size: 1 byte. Values according to the following table:
Beep Value
Examples:
Beep = Yes
Beep = No
No
00
Yes
01
Value to be sent = 01
Value to be sent = 00
Timers:
MC 2000T
Sends
GENERAL PARAMETER
10 02 0A 00 43 01 E8 03 B0 5D
Receives
Receives
ACK
10 00 07 00 00 81 CA
Sends
PAGE - 41
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
Control
unit 1
Control
unit 2
Sends
START
10 01 07 00 31 D1 0C
Receives
Receives
ACK
10 00 07 00 00 81 CA
Sends
Sends
START
10 02 07 00 31 4A D0
Receives
Receives
ACK
10 00 07 00 00 81 CA
Sends
Sends
STATUS
10 01 07 00 02 D7 3C
Receives
Receives
Sends
Sends
ACK
10 01 07 00 00 F7 7E
Receives
Sends
STATUS
PAGE - 42
Receives
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
10 02 07 00 02 4C E0
Receives
Sends
Sends
ACK
10 02 07 00 00 6C A2
Receives
STATUS
10 01 07 00 02 D7 3C
Receives
Receives
Sends
Sends
ACK
10 01 07 00 00 F7 7E
Receives
Sends
STATUS
10 02 07 00 02 4C E0
Receives
Receives
Sends
Sends
ACK
10 02 07 00 00 6C A2
Receives
Of course, this system can be used with more than two control units and also with only one. In
the latter case, if the control unit is configured to work on a point-to-point topology, WITHOUT
ANSWER commands should be used.
PAGE - 43
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
MC
2000T
Sends
MARK FILE
10 02 FA FF 37 1E 00 FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
41 42 43 44 45 46 47 48 49 0A FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF 31 32 33 34 35 36 37 38 39 0A FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF 5A 59 58 57 56 55 54 53 52 0A FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF 39 38 37 36 35 95 48
Receives
Receives
ACK
10 00 07 00 00 81 CA
Sends
Sends
MARK FILE
10 02 31 00 37 34 33 32 31 0A 0B 00 30 30 30 30 30 30 30 30
30 30 00 30 30 30 30 30 30 30 30 30 30 FF FF 35 00 10 00 10 01
00 20 35 00 10 00 37 F9
Receives
Receives
ACK
10 00 07 00 00 81 CA
Sends
The total size of the transmitted file is 285 bytes. It has been divided into a first frame with a size
of 250 bytes (7 bytes for STX, DD, LT, UT, CMD, CRC and 243 bytes for file data) and a seconf
frame with a size of 49 bytes (7 bytes for STX, DD, LT, UT, CMD, CRC and 42 bytes for file
data).
As shown in the sequence of communication, the field UT (Last frame) of the first frame has a
value other than 00 (in this case FF), while the second frame has a value of 00, indicating that
this is the last frame of the entire block.
Moreover, it can be observed that once the first frame is received, the MC 2000T control unit
sends an ACK indicating that the first frame has been received correctly and is ready to receive
the next frame of the block. The PC must wait for the ACK by the control unit before sending
the next frame. It should be borne in mind that the field UT of the ACK is always 00 since the
very ACK frame has not been divided into several smaller frames.
PAGE - 44
COUTH MC 2000T
Communication protocol
MC 2000 T
Controller
Significantly, the maximum frame size of 250 bytes is just that: the maximum size, which does
not imply that all frames least the last should have a size of 250 bytes. You can send smaller
frames if it is more convenient for you. The following sequence shows the same transmission
shown above, but this time sending frames of a maximum size of 100 bytes. In this case it has
been necessary to employ 4 frames instead of 2 frames.
PC
MC 2000T
Sends
MARK FILE
10 02 64 FF 37 1E 00 FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 41
42 43 44 45 46 47 48 49 0A FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF AC 1D
Receives
Receives
ACK
10 00 07 00 00 81 CA
Sends
Sends
MARK FILE
10 02 64 FF 37 FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF 31 32 33 34 35 36 37 38 39 0A FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF 5A 59 58 57 56 55 54 53 52
0A BB 2A
Receives
Receives
ACK
10 00 07 00 00 81 CA
Sends
Sends
MARK FILE
Receives
10 02 64 FF 37 FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
39 38 37 36 35 34 33 32 31 0A 0B 00 30 30 30 30 30 30 30 30
30 30 00 30 30 30 30 30 30 30 30 30 30 FF FF 35 00 10 00 10 01
37 3
Receives
ACK
10 00 07 00 00 81 CA
Sends
MARK FILE
10 02 0D 00 37 00 20 35 00 10 00 0E 26
Receives
ACK
10 00 07 00 00 81 CA
Sends
Receives
Sends
Finally, it is not mandatory that all frames but the last one having the same size. It might be
possible for example, that the first had a size of 110 bytes, the second a size of 100 bytes, the
third a size of 90 bytes and the fourth a size of 13 bytes.
PAGE - 45