Camera Seavision Reference Manual_HQ Lite_ v. 8
Camera Seavision Reference Manual_HQ Lite_ v. 8
Reference Manual
Version 8 – Revision 8 - English
Contents
1. INTRODUCTION __________________________________________________________ 5
1.1. Optional Packs ________________________________________________________________________________ 5
1. Introduction
The version numbering and Harlequin manual revision are in no way correlated to the version of the
performable programme installed in the system. The two numberings are completely independent.
The Harlequin measuring system controls the products packaged on the blister machines; in particular
Harlequin can perform the following checks:
• check of blister-packaged products;
• check of components in trays;
• check of colour rings which are silk-screen printed on the vials and syringes.
Besides, Harlequin supports multi-functional cameras to check barcodes, 2D codes and alpha-numeric
codes on covering materials.
There exist 4 optional packs, here listed with the items that each individual pack enables.
Components pack that allows the user to check colour rings, components in trays and to use the cross-
check function for parameters and articles
• Menu → Archive → Program Article → Measure Parameters → Special Parameters →
Colour Rings Check Enabling
• Menu → Help → Article Cross Check Enabling
• Menu → Help → Character Cross Check Enabling
Symmetry pack that allows the user to check object using the shapes 3 and 4 (to measure the
asymmetries of the shape), the broken and chipped tablets
• Menu → Archive → Cavity Tolerances → Shape 3 Enabling
• Menu → Archive → Cavity Tolerances → Shape 4 Enabling
Extra checks pack that allows the user to check double product in aluminium cavity, small fragments
near the product, product out of the cavity, dirty foil, machine step, black spots on the product, presence
of powder all around the product
• Menu → Archive → Program Article → Search Parameters → Special Parameters → Number
of Objects Enabling
• Menu → Archive → Program Article → Measure Parameters → Special Parameters →
Sensitivity of Search for Fragments Adjacent to the Product Enabling
• Menu → Archive → Program Article → Measure Parameters → Special Parameters →
Powder & Stains Check Enabling
IMAGE
ACQUISITION
COMPUTER
LIGHTING SYSTEM CARDS
PRODUCT
ON BASE FOIL
I/O CARD MOUSE
CODE ON
LID FOIL ALUCODE BLISTER MACHINE
LOGIC AND/OR DEVICES
In addition to the cavities, the strip itself is controlled and if Harlequin detects a defect in at least one
controlled area, all blisters controlled in connection with the strip defect are rejected.
If multi-functional cameras are installed, Harlequin is capable of checking the codes on the covering
material.
The figure shows an example of tablet control on PVC blisters. The result of the control is obtained from
the colour of the rectangles drawn over the image:
1. the green rectangles indicate product within the tolerance range (or strip zones free of defects)
2. the yellow rectangles indicate empty cavities
3. the red rectangles indicate defective product
4. the blue rectangles indicate critical defects caused by a mix of two different products: in this example,
the tablets are smaller and/or of a different colour.
The image processing chain is a concept that helps the understanding of how the control system works.
The chain is made by a sequence of operations, the last of which consists in the output of a binary result:
good blister, reject blister. In other words the processing chain is a machine that, through a number of
steps, transforms the information contained in the image until it is condensed in one bit only (0/1).
PROCESSING CHAIN
ACTION RESULT
1 image acquisition from camera image (matrix of numbers) in memory
2 search of the objects inside the search coloured dot showing the position of the object in the
windows (user drawn) image
3 measure: detection of the object edge set of points defining the object contour
4 measure: computation of the parameters set of number describing the object
describing the object (area, shape
parameters, colour levels, ...)
5 comparison between the measured values good object, defective object
and the nominal values (learned): the
object is good if all the differences are
less than the thresholds (tolerances)
6 output management: insertion and communication of the results
extraction from the rejection queues
14. Harlequin has a watchdog device controlling the output signals. If there is a malfunction on the
appliance, this facility resets all outputs (in particular, the blister machine permitted to run bit) after a
maximum time of 1 second, thus stopping the blister machine movement.
15. Harlequin is provided with a self-programming tool for the work articles (Wizard), which allows also
the not skilful user to create a new work article.
16. Harlequin manages the production batches and produces a detailed production report for every
production batch. This report contains information on the defects encountered and on the performance
of the blister machine.
17. Harlequin can manage rejection auxiliary signals generated by outside events.
18. Harlequin can manage asynchronous shift registers to drive external devices.
19. Harlequin can make available its screen to external devices in order to show messages sent by such
devices.
20. Harlequin has software enabling it to execute PLC functions internally and therefore, does not need
additional devices for controlling blister rejection functions.
21. Harlequin accepts remote commands through a serial port. These commands can be used to change
the work article, begin a new production batch, and send information on the current batch. If remote
commands are used, the Operators are not required to intervene.
22. Harlequin can be assisted directly by the manufacturer through the Internet network or by a direct
modem connection. This service facilitates the remote programming of the work articles.
23. Harlequin programs directly the barcode readers connected to it.
24. Harlequin is compliant with the requirements of the regulation FDA 21 CFR part 11:
• the access to Harlequin is regulated by a system of identification
• all the operations made by the users and all the events generated by Harlequin are memorised in
the Log-File, which can be browsed by means of search filters
• Harlequin saves all the former versions of the work articles
25. Harlequin is endowed with validation documents drawn up in compliance with GAMP guide:
• quality, project and maintenance plan
• functional specifications
• mechanical and electrical design specifications
• hardware and software design specifications
• system factory tests
• system acceptance tests.
lr = [ nr(i) i ] /
255 255
Red
Level i=0
[
i=0
nr(i) ]
255
dr = [ nr(i) | i - lr| ] /
255
Red
Dispersion i=0
[
i=0
nr(i) i ]
[
255
lv = [ nv(i) i ] /
255
Green
nv(i) ]
Level i=0 i=0
255
dv = [ nv(i) |i - lv| ] / [
255
Green
nv(i) i ]
Dispersion i=0 i=0
255
[
255
lb = [ nb(i) i ] /
Blue nb(i) ]
Level i=0 i=0
255 255
db = [ nb(i) |i - lb| ] / [
Blue nb(i) i ]
Dispersion i=0 i=0
The pictorial parameters are average values computed on all pixels belonging to the measured object. In
the RGB space a colour image is composed by three monochrome images, which, in every pixel, gives
the light intensity of the three fundamental colours of the additive synthesis: red, green, blue. Harlequin
computes the level and the dispersion separately on each image. In the monochrome systems there exists
only one image. Therefore the measured parameters are two instead of six.
In the space HSV the colours are described by the three values Hue Saturation Value (see the section on
the colour triangle). The values HSV are computed starting from the RGB values for each pixel in the
image. When the measured object contains two colours (like, for instance, many hard-gelatine capsules),
Harlequin measures the values HSV separately on each colour, generating six parameters: Hue 1,
Saturation 1, Value 1, Hue 2, Saturation 2, Value 2.
2. User interface
The user can utilise a hierarchically organised menu of commands with which s/he can control all
machine functions. A tool bar and status bar are also available and are described below.
To communicate with the program, the user utilises only a simple pointing device, usually a mouse or a
trackball. Besides, all the systems are equipped with a touch-screen which makes it possible to perform
programming operations without the need to pointing devices.
The pointer, so-called cursor can be moved on the touch screen either with the fingers or with the use of a
pen. The cursor is represented on the screen by an arrow which indicates the operation to be performed.
To do this, both mouse and trackball are provided with a ball, which moves the cursor on the screen, and
two or three buttons with different functions. The left button is the one used most of all: it is used to
execute the action associated with the menu or with the button currently underneath the cursor. The right-
hand button is used in special circumstances only (selecting windows). The touch-screen also can emulate
the right hand side button. It is possible to shift from the left hand side buttons to the right hand side ones
by using the control panel at the lower right hand side part of the screen.
When present on the pointing device, the third button, at the centre, is used by Harlequin to simulate the
double click of the left button. So, pressing the central button is like rapidly pressing the left button twice.
As no keyboard is provided, if you are prompted to input alphanumeric texts (codes of new articles,
descriptions, or passwords), a keyboard appears on the screen emulating the functions of a real keyboard.
In this way, by using only the cursor on the video, you can input the characters as if you were using a
traditional keyboard.
The “Symbols…” button opens a second keyboard which contains other characters and different
alphabets (Cyrillic, Greek). The contents of this keyboard changes by pressing >> and <<. The pictures
show the default pages available in all Harlequin systems. The set of symbols are found in a UNICODE
file (symbols.txt). Therefore, other characters may be added to (or replaced by) those already existing
when the system has been installed.
The tool bar, as shown above, is located at the top of the screen under the main menu and is a quick
means of sending commands to the program as it associates a mnemonic key (icon) with a menu item. In
other words, if you press the icon or select the relevant menu item, the same function is executed.
For obvious reasons of space, not all commands available in the program could be included in the tool
bar, and therefore, only the most used commands were chosen.
The following is a list of icon-command combinations, starting from first item on the left.
Show article list with facility for selecting the work article
To execute the commands associated with the tool bar icons, locate the cursor over the icon associated
with the required command and press the left button of the pointing device. When the cursor is over an
icon for more than one second without pressing any button, a short text appears on the screen near the
cursor (tool-tip). It gives a brief explanation of the icon function.
There is a window on the right of the tool bar showing the code of the selected article (the code is UNO in
the preceding figure). To change the work article just move the cursor over the icon and press the
left button of the pointing device: a complete list of all articles stored in the archive is displayed. To select
the article you require, press the left button over the article code.
2.3.1. Work
Automatic Work (corresponding icon: Execute automatic mode work cycle
)
Manual Work Work test with cameras or disk
Vision System Disabled Enable or disable control: blister machine can run
TestPerformance Measure Measure machine performances
TestGood Objects Measure Measurement of the machine performance when the product is
good
TestDefective Objects Measure Measurement of the machine performance when the product is
rejected
Measure Results Presentation Show measured numeric values
(corresponding icon: )
Batch Start Reset batch counters: begin production of a new batch
Batch End End of the current batch
View BatchCurrent Batch Data Show data on current batch
View BatchFormer Batch Data Show data on last complete batches
View BatchMeasure Results Files Show the page which contains the list of files showing the
selected article measurement results.
View Article Show data on current article
Former Article Versions Show the committed versions of the current article
View Log-File Show log-file containing messages
Write on Log-File Add log-file messages
Exit Program Harlequin terminates
Restart Windows Windows restarts: all files are saved on disk
Shut down System shut down: after shut down the system can be only
switched off
2.3.2. Archive
List of Articles (corresponding icon: Show article list with facility for selecting the work article
)
Linked Articles Show article list with facility for selecting the linked articles
New Article Enter new article in archive
Copy Article Copy work article in a new one
Remove Article Eliminate work article from archive
Program Article (corresponding icon: Program work article parameters
)
Program Linked Articles Programme parameters of articles linked to the work article
Article Wizard (corresponding icon: Create and program new article in archive
)
Cavities Management Manage cavity windows
2.3.3. Configuration
Status Bar Show or Remove Status bar
Windows Display Enable or disable yellow windows drawings on screen
System Management Only for the Expert: users, archive and batch management
Log-on / Log-off (corresponding icon: Request password to log-on / log-off the current user
)
Password Modification Modify password of the current user
Save Article Saving data of article on external device
Save Archive Saving whole archive on external device
Restore Article Restore article data from external device
Restore Archive Restore data from external device
Save System Files Save system files on external device
Work Control Images Select drawings to execute during work
Work Parameters Program some configuration parameters for automatic work
mode
Internal PLC Program the parameters for the internal software PLC
Alarms Alarms setting: reset buttons and password
Inputs/Outputs Control Control input and output signals
Date and Time Modify system date and time
Modify Configuration File Editing of the file HARLE.INI containing the configuration
parameters for Harlequin
2.3.4. Images
Acquisition Immediate acquisition of an image from the cameras
Continuous Acquisition Continuous acquisition from cameras for preset time
Synchronised Acquisition Acquire image from cameras when phase signal is received
from blister machine
Save Images on Disk (Article) Save displayed images on a disk and link them to the work
article being used; it is possible to save three types of images
for each article (Work, Good, Empty)
Save Images on Disk (Archive) Save viewed images in a disk.
Save Images on External Device Save viewed images in an external device.
Load Images from Disk (Article) Display images linked to the work article and saved on a disk; it
is possible to load three types of images for each article (Work,
Good, Empty)
Load Images from Disk (Archive) Display images saved on a disk
Load Images from External Device Display images saved on an external device
Clear Screen Blank screen
Display TV (TV1....TV16) Display images acquired from selected camera (from TV1 to
TV16)
Synoptic Display (corresponding icon: Show images of all cameras simultaneously
)
High Resolution Display Images are displayed at maximum resolution
Display Red Show red band
Display Green Show green band
Display Blue Show blue band
Display Colour Simultaneous viewing of three colour bands
Rotate Images Rotate images: +90°, 180°, -90°, all angles
Reflect Images Reflect images: vertical, horizontal
2.3.5. Help
Article Cross Check Display table of articles cross-check table
Triangle of Colours Show triangle of colours
Read Colours Colour images read by using cursor
Convert RGB->HSV Convert image from Red-Green-Blue to Hue-Saturation-Value
Call Service Modem connection to remote Service (dial-up)
Terminate Service Close modem connection to remote Service (hang-up)
Language Choice Change language to Italian, English, German, French, Spanish,
Portuguese, Polish, Danish, Russian, Hungarian, Swedish,
Norwegian, Croatian, Turkish, Greek
Information on System Information on program, copyright and version
3. Functions of Harlequin
3.1. Work Menu
The menu item Automatic Work (corresponding icon ) brings the system in the automatic work
mode. In this state Harlequin does not accept commands from the operator except that to quit the
automatic work mode. For this purpose, when the blister machine is idle, a button appears at the bottom
right of the screen, with the message AUTO MODE EXIT. If the blister machine restarts the button
disappears.
During automatic work mode, blisters may be rejected for three different reasons:
• all blisters containing at least one defective object are rejected;
• all blisters controlled at a given moment are rejected if defects are detected on the strip outside the
cavities (see paragraph on strip management); this function is optional;
• all blisters controlled in n successive steps (n programmed for each work article) are rejected when an
event external to Harlequin occurs, and is communicated to it by input signals known as rejection
auxiliary signals; a rejection auxiliary signal is, for example, one received from a sensor detecting a
splice on the blister’s lid foil.
Some parameters influence the behaviour of the system during automatic work mode (see paragraph on
work parameters). They include the queues initial status, which can have three positions: normal, OK
and KO. The rejection queues are memory areas in which Harlequin stores control results for every
blister while waiting for the appropriate moment to communicate them to the blister machine, which
physically rejects the defective blisters. In most cases, the length of the rejection queue coincides with the
distance (in numbers of steps or rows) travelled by each blister to go from the control point to the
rejection point. When Harlequin accesses the automatic work mode, it initialises the rejection queues in a
different way according to the setting of the queues initial status parameter. Behaviour is as follows.
• Normal: when the system is powered up, the rejection queues are initialised as rejections. If the
automatic work mode is exited, the rejection queues are saved and restored on return to automatic
work mode. If, between two successive work sessions, the operator carries out certain operations (e.g.
disables control), for reasons of safety, the saved queues are not restored and the rejection queues are
initialised as rejections.
• OK: following OK selection of the parameter, when the automatic work mode is accessed for the first
time, the queues are initialised with values indicating good blisters. Moreover, for reasons of safety,
the parameter is returned to normal status.
• KO: the operation is identical to the previous case, with the exception of the queue initialisation value,
which, in this case, corresponds to rejected blisters.
If certain conditions occur during automatic work mode, Harlequin has the possibility of stopping the
blister machine by disabling the run permitted signal. When the blister machine is idle, a message is
shown on the monitor, reporting the cause of machine stop.
The screen of Harlequin, during the automatic work, offers information about the result of the product
control. The item Work Control Images (Configuration menu) selects the options for displaying the
control drawings, the rejection queues, the message window and the counters window.
The rejection queues are visible inside a window, whose size and position can be adjusted. On the left
side there are the queues (shift registers) of the camera, of the auxiliary rejection signals, of the generic
shift registers. The movement of the data is from left to right. On the right side the shift register of the
internal PLC is drawn, but only if it is in use. Their number and message identify the auxiliary rejection
signals and the generic shift registers. If the shift registers are longer than 6 steps, only the initial portion
(data insertion) and the final portion (data extraction) are shown. The colours take the same meaning of
those used for the drawings.
When control is disabled a window appears on the screen. The button End of disabling brings Harlequin
back to the idle status (main menu).
Another way to disable the control is through the input signal Disable control. If Harlequin, being in the
automatic work mode with the blister machine idle, receives this signal, it commutes to the disabling
condition, showing the message “Vision system disabled from external signal”.
3.1.8. Test
Performance Measure
This menu item is used to effect some acquisition steps from camera and measurement in order to assess
the overall calculation time required to control each blister (group). On completion, the result appears as
the cycle time required to execute all control functions and the relevant number of cycles per minute. The
latter values should be compared with the maximum speed of the blister machine.
Images Display
When faulty products images are saved (see paragraph regarding Work Control Images in the
Configuration menu), the window which shows the corresponding image opens up by clicking the
mouse once on the line which contains the numeric results. The title bar of the window contains the
numeric values taken from the table line. The window menu has three title items. The first title
shows/hides the image. The second copies the image on the screen at exactly the same position where the
image has been read. The third creates a file containing the image (BMP format). The last two functions,
which are not available in automatic works, allow the use of the image in further measurement tests.
Several windows may be simultaneously opened. These windows close when the main window (the one
showing numeric results) has been cancelled.
When the first column of the numeric results table has been clicked, the table disappears, and is replaced
by the images sequential display control page.
All the saved images can be displayed (with and without drawings in them) by choosing the number (the
numbers are arranged in time ascending order). As an alternative, arrow keys may be used to display the
images in time order, whether forwards or backwards. Besides, it is possible to save the selected images
in an archive or on an external device, and modify the parameters of the selected article.
Enter codes
If additional cameras are connected to Harlequin to check the covering material codes (Alucode), it shall
be necessary to enter the value of the code to be controlled). The page displayed shall change according
the to the code type.
Pharmacode and binary code page
It is possible to enter the code value by using the Numeric Value field, or by clicking the mouse
to modify each bar from narrow to broad and vice versa.
Data Matrix ECC200 page
It is necessary to enter the string of the code to be controlled. The symbol displayed at the right
hand side encodes the string being set.
General code page
It is necessary to enter the string of the code to be controlled.
Current Batch
The batch display function represents the page which contains the data of the batch in progress. The
following information is included in the page:
Batch number
this is included at the beginning of the batch;
Product code
work article;
Product description
the description associated with the article;
Price
can be included optionally at the beginning of the batch;
Expiry date
can be included optionally at the beginning of the batch;
Production date
can be included optionally at the beginning of the batch;
Number of pieces in the batch
can be included optionally at the beginning of the batch;
Checks to execute
programmed at the beginning of the batch;
Start of batch
production start date and time: this is the moment when the Batch Start function executed;
Start of batch operator
operator who executed the Batch Start function;
End of batch
production end date and time: this is the moment when the Batch End function executed;
End of batch operator
operator who executed the Batch End function;
Batch duration (end – start)
difference between the times of start and end of the batch, reported above; duration is in days
hours, minutes and seconds;
Total time of blister machine run
time spent with the blister machine running;
Number of machine stops caused by Harlequin
this is the numbers of stops of the blister machines due to Harlequin; (see the paragraph on the
machine stops);
Number of commit operations
this is the numbers of article modifications during the batch; it can be different from 0 only if the
archive management is enabled (System Management);
Inspected pieces
the overall number of pieces controlled by Harlequin; (inspected pieces = good pieces + rejected
pieces);
Rejected pieces
the number of pieces rejected by Harlequin, (rejected pieces = totally empty pieces + incomplete
pieces + pieces with defective products); the blister rejection percentage is indicated in brackets
(rejected pieces / inspected pieces) x 100;
Totally empty pieces
the number of pieces which were empty in all defined cavities; the totally empty percentage is
indicated in brackets (totally empty pieces / inspected pieces) x 100;
Incomplete pieces
the number of pieces with at least one missing object, but not all objects; the incomplete
percentage is indicated in brackets (incomplete pieces / inspected pieces) x 100;
Pieces with defective product
the number of pieces with at least one defective object, but no missing object; the defective
percentage is indicated in brackets (pieces with defective tablets / inspected pieces) x 100;
Good pieces
the number of pieces that have passed the check; the good percentage is indicated in brackets
(good pieces / inspected pieces) x 100;
Average production speed (pieces /minute)
good pieces / total time of blister machine run; is indicates the effective production speed of the
pieces machine, as it compares the quantity of good pieces produced with the time during which
the machine worked;
Productivity (pieces /minute)
good pieces / batch duration; shows the efficiency of the blister machine exploitation;
Inspected cavities
the total number of cavities controlled by Harlequin; (inspected cavities = good cavities + rejected
cavities);
Rejected cavities
the number of tablets rejected by Harlequin, (rejected cavities = empty cavities + cavities with
defective products); the rejected cavities percentage is indicated in brackets (rejected cavities /
inspected cavities) x 100;
Empty cavities
the number of cavities found to be empty; the empty percentage is indicated in brackets (empty
cavities / inspected cavities) x 100;
Cavities with defective product
the number of cavities containing a defective object; the defective product percentage is
indicated in brackets (cavities with defective products / inspected cavities) x 100;
Cavities with geometric defects
the number of cavities containing a defective object with geometric defects only (area, shape,
angle); the geometric defects percentage is indicated in brackets (cavities with geometric defects
/ cavities with defective tablets) x 100;
Cavities with pictorial defects
the number of cavities containing a defective object with pictorial defects only (levels,
dispersions, hues, saturations); the pictorial defects percentage is indicated in brackets (cavities
with pictorial defects / cavities with defective product) x 100;
Cavities with both types of defect
the number of cavities containing a defective object with both geometric and pictorial defects
only; the percentage with both types of defect is indicated in brackets (cavities with both types
of defect / cavities with defective tablets) x 100; the sum (Cavities with geometric defects +
Cavities with pictorial defects + Cavities with pictorial defects) in general is less than Cavities
with defective tablets because there exist other types of defects that are not counted: fragments,
foreign bodies, measures not carried out;
Good cavities
the number of cavities that have passed the check; the good cavities percentage is indicated in
brackets (good cavities / inspected cavities) x 100;
Critical defects
the number of defective objects with a defect identified as critical; critical defects are defined by a
dialogue page activated with the appropriate item in the Archive menu; the critical defects
percentage is indicated in brackets (number of critical defects / cavities with defective product) x
100;
Defects on strip
the number of defective strip control windows; when a defect on strip happens the blisters are
considered empty in the batch statistics;
Rejection auxiliary signals, Number of steps with high level of the signal
indicates the number of steps with high rejection auxiliary signal.
The batch data can be exported on an external device with the button Export File and printed with the
button Print (only if a printer is connected to Harlequin). The exported file is in text format (UNICODE).
Its name is current_batch.txt.
The Export File push-button saves the .scs file on an external device.
The List of Articles (corresponding icon ) enables you to view the list of all the articles stored in
the archive as well as the counters of pieces measured and rejected for each article. In this situation, if you
press the left button of the trackball or mouse (single click) over the line for the product in question, the
product is selected as the work article for the next operations. If images have been associated to the
article, they are shown on the screen. The OK key cancels the window, followed by return to the main
menu.
ABC...ABC... (alternate multi-product): Harlequin, instead of using all articles at the same time on the
same image, uses only one of them on each image, taking in sequence the master article and the linked
ones. If, for examples, there are three different articles (A = master article, B = first article in the list of
linked articles, C = second linked article) Harlequin uses the article A for checking the first image, the
article B for the second image, the article C for the third image, then again A for the fourth image and so
on. Of course the sequence of the images must match the sequence of articles. A|B|C... (OR-ed multi-
product): Harlequin takes the best measure result among those obtained from the set of articles. This
option is used when, in the same cavity, there can be different products. In this case one article should be
created and programmed separately for each product. Then the articles are linked together in OR. A+B
+C (- Search): Harlequin considers the cavity as empty if at least one of the researches fails, otherwise, it
takes the worst measurement result from among those obtained from the group of articles.
If you select this menu item (corresponding icon ) the main window for entering the programming
parameters appears.
This operation can be executed only after you have positioned correctly all the cavities (and, if necessary,
all inspection windows on the strip) inside the images by using the functions Cavities Management and
Strip Management.
The dialogue window is split into two zones. The top part contains general data on the article, such as
description, camera and viewed colours. The lower part contains the keys for accessing programming
functions.
The window consists of the following fields:
Code
contains the name of the article selected with the list;
Description
a field with a maximum of 45 characters used to save any information; if the relevant button is
pressed, this opens the window for modifying the description itself;
Viewed TV
when several cameras are installed, you can choose which image to show on the screen; the screen
can show one image at a time or all images together, reducing them by a factor of two; numbers 1,
2, 3 and 4 refer to images received from cameras 1, 2, 3 and 4 respectively; zoom indicates
synoptic display (overview) of all images;
Viewed Colour
in addition to normal viewing of the colour image (colour), you can observe one of the three
colour components (Red, Green, and Blue) in grey tones; by additive synthesis, these three
components form the colour image on the screen;
option L+C ensures that geometric measurements are taken on a mixture of intensity and
saturation; the composition of this mixture depends on the Colour Level value and on the
Normalisation parameter; the Transform Images button facilitates the choice of colour level and
of the normalisation option; in fact, with the L+C option, geometric measurements are taken on
the monochrome image obtained by pressing the Transform Images push-button; the result of
this conversion depends on the Colour Level, and is shown immediately on the screen.
Distance from Colour option makes it possible learn a colour and transform the image in
conformity with that colour; the Distance from Colour button is used to learn the reference
colour or colours.
Colour Level
when you select the L+C option in the Search and Measure field, the Colour Level indicates at
what proportion intensity and saturation are mixed together; this value can be in the range of 0
(intensity only) to 256 (saturation only);
Normalisation
forces normalisation of saturation with respect to intensity in order to equalise zones of different
luminosity;
Transform Images
transforms images associated with the article (saved with the Save Images function) into
monochrome images according to the Colour Level and Normalisation values; the images of the
result are immediately displayed on the screen;
colour image
colour image
Save Images
saves displayed images on hard disk; for each article, therefore, an image can be associated with
each camera, to be conserved either as a sample image or for the measure tests; this function is
equivalent to Save Images on Disk (Article) from Images menu; the images saved with this
function are accessed by all functions using images stored on disk (Load Images from Disk
(Article), search test, measure test, learning, manual work); they are also used by the Transform
Images function;
View Images
displays, on the screen, the images associated with the article; this function is equivalent to the
item Load Images from Disk (Article) of the Images menu;
This learning function makes it possible to define the values of the three colour components, in
order to identify the reference colour by clicking the mouse on a point on the monitor.
Permissible colour range definition is possible by modifying the ‘Intensity Range’ and ‘Colour
Range’ parameters.
Exposure Time
the exposure time value to be used for each camera acquisition for the given article;
Acquisition
this function acquires images from the cameras according to the exposure time associated with the
article; to establish the exposure time to use, we advise you to move the Article Programming
Parameters window to the right, taking it partly off screen so that the images are visible, and also
to enable you to change exposure time and the viewed camera;
Tablet Type
if the tablet is lighter than its surrounding area, select the first option, otherwise the second; the
surrounding area is the shadow near the border, therefore, even if the foil is white (and brighter
than the object) the option Bright on dark background should be used; moreover is must be
always used when the Search & Measure are executed with the option L+C;
Search Parameters
opens the programming page for the search parameters;
Measure Parameters
opens the programming page for the measurement parameters;
Super Article
identifies the article as a Super Article. A Super Article is used as a master article to define
formats; with the operator’s permissions, the user can display and select only the super articles
which are in the articles list. Besides, the operator may replace articles linked to the super article
with others belonging to the same family; yet the operator may not eliminate or add any linked
articles;
Container Article
when a super article is identified as a container article of other articles, it does not take part in
rejecting the piece. Container articles are not to have any cavities and strip windows; in all cases,
container articles may manage the multi-functional TV windows and rejection auxiliaries;
OK
to exit the Article Programming Parameters window, while saving any modifications in the
archive;
Cancel
to exit the Article Programming Parameters window, without saving any modifications in the
archive, not even those effected in the search and measure parameter windows; when you press
the Cancel key, you will be prompted to confirm before exiting the dialog window, but only if
some parameters has been modified:
Code
displays the name of the article selected from the list;
Description
displays the article description;
Search Type
the object search type inside the cavity can be selected with the following options:
one-dimensional horizontal:
the centre-of-object position is searched only in the horizontal direction; in this case, the
cavity window (search window) must be wider than the object horizontally, whereas
vertically, this does not matter; if the sub-sampling step (see Special Parameters for
Searching) is from 4 to 6, the centre-of-tablet vertical co-ordinate is still the same as that
of the centre of the search window; on the other hand, if the sub-sampling step is from 1 to
3, the vertical co-ordinate adapts to the dimensions of the object;
one-dimensional vertical:
the centre-of-object position is searched only in the vertical direction; the above comments
also apply here but in the vertical sense;
one-dimensional horizontal + vertical:
one dimensional searches are executed independently in both directions; the search
windows must therefore be sufficiently large in both directions; if even one of the two
searches fails, the cavity is considered empty;
two-dimensional:
the product is searched in both directions inside the cavity; the window must be
sufficiently large to include the entire zone in which the tablet could be located; this option
is used typically on aluminium supports with cavities that are larger than the product
dimensions, i.e. when the product is able to move inside the cavity;
two-dimensional capsule:
a similar search to the above; usually utilised for capsules on aluminium;
two colours horizontal capsule:
a search for the centre of a capsule consisting of two shell halves of different colours, one
lighter than the other – it is assumed that the capsule is positioned horizontally in the
image;
two colours vertical capsule:
a similar case to the previous one; it is assumed the capsule is positioned vertically;
level:
the product is found with a threshold operation on the grey levels; the threshold value is
the search contrast; the number of points above threshold must be inside the range defined
by the minimum and maximum number of internal points (see the special parameters for
the search);
SEA Vision s.r.l.
Page 34
total
the product is looked for in the all search window possible positions;
distance from colour
The source image is transformed into a binary one, where all extracted points have the
desired colour; learned values are used as reference colours in the search. The option
enables the Distance from Colour button, which opens the colour learning page. The
following parameters are saved for each learned colour:
• red: (from 0 to 255): indicates the red component in the reference colour;
• green: (from 0 to 255): indicates the green component in the reference colour;
• blue: (from 0 to 255): indicates the blue component in the reference colour;
• colour / intensity range: (from 0 to 255): extracts of pixels close to the reference
colour / intensity up to the limit of this range;
This learning function makes it possible to define the values of the three colour
components, in order to identify the reference colour by clicking the mouse on a point on
the monitor. The Learning button opens the dialogue page which shows the values of Red,
Green, Blue, Hue, Saturation, and pixel Intensity indicated to by the mouse. The
segmentation reference colour can be read by clicking the mouse on the image or with
manual setting. Permissible colour range definition is possible by modifying the ‘Intensity
Range’ and ‘Colour Range’ parameters.
When the Enable box is barred, the image will be segmented into three colours: orange,
black, gray. Orange pixels belong to colour and intensity ranges (segmented pixels) which
are permissible and thus extracted by the image transformation. Black pixels have the
correct intensity but not the correct colour. Gray pixels are out of intensity range.
model
searches for a model in the image. The Learning button makes it possible to understand
the required model (bitmap) using the mouse. The View button displays the image of the
learned model.
In order to have a positive result, the search result is a correlation value which must be
higher than the search contrast (Search Contrast). Harlequin can save several models,
each of which is identified by a model_bitmap.?????.bmp name, where ? indicates the
file consecutive number. The model to be used is chosen by setting the file number in the
File Number field. It is also possible to set the model Search Speed (from 0 to 5).
no search:
the product is not searched; it is assumed it is always present at the centre of the window;
Search Contrast
the contrast value for searches is the only value, which, in most cases, must be programmed; this
value is established experimentally by using the Search Test function; several different values are
tested in order to identify the range of values within which the tablet search is reliable and
repeatable; similarly, after removing the products from the cavities, you have to establish the
range of contrast values with which the program is certain not to find anything; at this point,
choose as a contrast, the central value of the range obtained by the intersection of the two
preceding ranges: for example, if the first range (enabling you to find the product) is 50 to 100,
and the second range 60 to 200, select 80 as the setting value;
Special Parameters
opens the page for programming Special Parameters for Searching; the special parameters
should be changed only if it is impossible to obtain a reliable search by selecting an appropriate
contrast value;
Search Test
the search test makes it possible to verify immediately the validity of the programmed search
parameters; to this end, a keyboard appears on the right of the screen to enable you to select the
image source;
if you press one of the two keys, the search procedure is activated and the result of this is shown
graphically by the drawing of a coloured point on the tablet, or of a set of points for a two
dimensional search; if the search fails, no drawing is effected; the OK key terminates the search
test;
OK
to exit the window Article Data on Search; any modifications are saved in the archive only if you
exit the Article Programming Parameters window with the OK key.
• lengthening
• number of internal points
• width and height
• anti-noise filter at initial stage of search (morphologic filter)
• anti-noise filter at final stage of search (levels filter)
If, instead, the basic configuration does not enable any object to be detected, the two space filters must be
disabled (first the one on the border and then at the centre) and the other constraints must be introduced in
the order mentioned above.
Space filters, internal points, width and height only are used for Two Dimensional Capsule Search.
Moreover there exists a constraint on the boundary orientation. It is possible to specify a preferential
orientation of the edges: only those oriented as specified are detected, whereas all other edges are ignored.
All the other parameters are not considered and, therefore, variations of these have no effect on the result
of the search.
For the Level Search only the limits on the number of internal points are used.
Programmable values:
Sub-sampling Step
this value can be programmed from 1 to 6: it determines the pixel decimalization step for all single
and two dimensional search operations; for horizontal or vertical one dimensional searches, the
sub-sampling step determines also the way in which the second co-ordinate is established; if the
step is from 4 to 6, the second co-ordinate is set to the value at the centre of the search window,
whereas if the step is from 1 to 3, the second co-ordinate adapts to the object dimensions;
Minimum Level
pixel values under the minimum level are not taken into consideration.
Global Search
this option compels all found objects to have the same position inside the search window; this
position is computed as median value of the measured positions; the computation is done
independently horizontally and vertically; the global search is useful when the localisation of
some objects is difficult (not repeatable); it can be used if all objects have relative positions that
do not change from one image to the next;
Constraint (1D)
only for the one-dimensional search: it prevents points near the window edge from being used for
the computation of the object position;
Lengthening (Minimum-Maximum)
threshold value of lengthening; areas with lengthening value below the minimum value or above
the maximum value are rejected;
Width (Minimum-Maximum)
threshold value of the horizontal dimension; areas with a width below the minimum value or
above the maximum value are rejected;
Height (Minimum-Maximum)
threshold value of the vertical dimension; areas with a height below the minimum value or above
the maximum value are rejected;
Multiple Search
the option is enabled for the capsule bi-dimensional search, and it allows the acceptance of
extracted components number above one.
Post-Processing Parameters
opens the pages of post-processing parameters for the two-dimensional Capsule search, technical
search based on the extraction of components formed by border points within the object border.
The parameters are:
Enable Post-Processing
Enables the post-processing technique;
Remove Border Points
Enables the removal of border points;
Include Border Points
Border points, extracted by the capsule bi-dimensional search, are added to internal points
extracted with the post-processing technique;
Filter Dimension Horizontal, Vertical
Dimension of the filter used to extract internal points;
Sensitivity
Internal points extraction threshold;
Size of Erosion
Dimension of the extracted internal points erosion filter, to be performer before the
extraction of the components;
Area Minimum, Maximum
Minimum and maximum area of extracted components;
Width Minimum, Maximum
Filter on the extracted components dimensions (width);
Height Minimum, Maximum
Filter on the extracted components dimensions (height);
Filter on Border Distance
Enables the filter on the components position; the component Maximum Distance is set
from the border points;
Minimum Distance from Window Edge, Horizontal, Vertical
Filter to eliminate the components which are close to the search window borders; it is the
minimum permissible horizontal and vertical distance between the extreme limit of the
component and the window border.
Mobile Window
Enables the possibility to shift the search window at a horizontally and vertically set distance,
compared to the search for a linked article where the number is specified.
The parameters are:
No
option disabled;
Absolute
the search window point is obtained by adding the horizontal and vertical offset to the
linked article search point;
Relative
the search point depends on the horizontal and vertical offset and on the difference
between the linked article search point and the centre of the linked article search window;
Linked Article
number of the linked article;
Offset Horiz., Vert.
horizontal and vertical offset to be reached at the linked article cavity search point.
Centre Position
the position of the window search point may be the centre point of the extracted points or one of
the cardinal points
OK
to exit the window Special Parameters for Searching; any modifications are saved in the
archive, only if you exit the Article Programming Parameters window with the OK key.
Code
contains the name of the article selected with the list;
Description
displays the description of the article;
Measure Contrast
the contrast value is the only value which, in most cases, must be programmed; this value is
obtained experimentally by using the measurement test function; test several different values in
order to find the range of values within which the measurement is reliable and repeatable, and then
choose the central value of the range as the contrast; high contrast values give a object contour
bigger than that obtained with lower values;
No Geometric Measure
when the box is barred the program calculates only the pictorial parameters (Level, Dispersion,
Hue, Saturation) inside the rectangle of the cavity window; in this case, the value of the area is
set equal to the number of points of the rectangle, whereas the shape and angle parameters are set
at 1;
in this case two different articles must be created and linked together: the first checks the product,
the second, provided with this option, checks the cavities that should remain empty; of course the
search parameters of the second article have to be identical to those of the first one;
Special Parameters
opens the page for programming Special Parameters for Measure; the special parameters should
be changed only if it is impossible to obtain a reliable measure by selecting an appropriate contrast
value;
Measure Test
the measurement test enables you to check immediately the validity of the programmed
measurement parameters; to this end a keyboard is shown on the right of the screen enabling you
to select the image source; the results of search and measure are shown in graphic form;
measurement is executed correctly when the drawing on the border of the tablets is uniform,
without shifting away from the border itself; if the drawing tends to escape to the outside of the
tablet, the contrast value must be reduced; however, this value must be increased if the drawing
tends to remain inside the tablet;
Colours
to open the window for programming the number of Colours;
OK
to exit the Article Data on Measure window; any modifications are saved in the archive, only if
you exit the Article Programming Parameters window with the OK key.
3.2.10. Colours
An object usually has one colour only. Some gelatine capsule products are monochromatic too. However,
marketed capsules more often consist of two shell halves of different colours. In this case, we advise you
to measure the Hue, Saturation and Value parameters separately on each half of the capsule. To enable
double measurement of these parameters, specify 2 as the number of colours, and select the method for
distinguishing points belonging to each of the halves (segmentation).
Segmentation can be executed on the hue, saturation, or on the value of the image points. You should
select according to the differences between the points of the two halves for each of these 3 parameters:
the most suitable segmentation parameter is the one showing the greater difference.
The 3 parameters are usually evaluated by converting the colour image (RGB) into 3 components - Hue,
Saturation and Value (HSV) – by using the appropriate item of the Help menu (Convert RGB→HSV),
and viewing one parameter at a time to enable you to observe, directly on the converted images, the hue,
saturation and value differences of the two shell halves.
When the colour images have been converted, remember the following: the hue image (R→H) is placed
in the red band, the saturation image (G→S) is placed in the green band, and the value image (B→V) in
the blue band. The three bands must be viewed separately. If the bands are superimposed, this is of no
significance.
SEA Vision s.r.l.
Harlequin – Reference Manual Page 41
Shape 2
the standard parameter Shape 2, which measures the elongation of the object, can be substituted
with other parameters, useful in particular cases; this option should be enabled when there exists
the risk of mix-up among circular and hexagonal (pentagonal) tablets, sharing the same size and
colour; the same tolerances of the shape 2 are used;
Shape 3
Shape 3 standard parameter, which measures object asymmetry, can be replaced by Min.
Rectangle or Min. Ellipse parameters, to determine the smallest rectangle (or ellipse) that
delimits the border of the measured object, regardless of its rotation angle; the value is determined
as the difference between the rectangle (or ellipse) area and the object area;
OK
to exit the Special Parameters for Measure window; any modifications are saved in the archive,
only if you exit the Article Programming Parameters window with the OK key.
calculated by the search procedure, has variable dimensions; these dimensions are usually calculated
automatically by the program; in any case it is possible to fix the dimensions (and the shape) by selecting
one of the possible cases, independently in horizontal and vertical directions; when the measure test is
performed the measure window is drawn on the screen.
Elliptic measure window together with the search window (in yellow)
Example of measure on half capsule: first the orange part is measured , then the model is
enabled .
Harlequin checks the area corresponding to the blisters. This area can be modified by moving its four
edges with the four numbers available. The area is shown when a measure test is executed.
Number of Rings
indicates the number of rings to search;
Minimum Contrast
minimum threshold contrast used in the rings search;
go back to the previous dialogue window, abort the article creation procedure, open
the Help page (not available in the current version), go ahead to the next dialogue window.
For each window the user has to:
• read the messages;
• execute the instructions;
• go on to the next page; this is possible only after the execution of the instructions.
At any time it is possible to go back to the previous page.
When the user decides to abort the new article creation procedure the Wizard first asks for a confirmation,
then asks for deleting the article.
Here is the list of the Wizard steps and functions.
Article creation
An article is created either brand-new or as a copy of an existing one. In the latter case the procedure is
shorter, because the steps concerning the programming parameters computation are omitted. The copy of
an existing article is advantageous when a new format of the same product must be programmed, that is
when there already exists an article which shares with the new one both the strip and the product, but not
the cavity number and/or layout. The typical case happens when a full format (sale) is already
programmed and a new format containing fewer cavities must be created (sample).
The article being copied is selected in the list that appears with a click on the arrow.
When the machine runs all blisters are rejected. This is true not only in this case but also in all cases when
the blister machine runs during the Wizard procedure.
After the button Autoexposure is pushed you must show to the Wizard the position of the cavity
containing the product. This is done through a click on the product.
Image acquisition
The Wizard needs some images to compute the programming parameters: at least three showing all
cavities full with product free of defects, and at least one with all cavities empty.
The images are acquired while the blister machine is running. When the machine stops the Wizard asks
for a classification of the acquired images: it shows on the screen one image per time and prompts for the
choice among three possibilities. In the images only the blisters to control must be taken into account.
Therefore, even if the images contain other blisters, they must be ignored for the classification purpose.
The classification must be carried out without errors. In fact the Wizard, during the computation of the
parameters, would be deceived by a wrong classification of the images.
Background selection
The Wizard asks the background colour only if the base foil is transparent.
Number of channels
The number of channels of the format is not asked if the blister machine has only one channel.
Number of rows
The number of rows is asked only if the blister machine has alternating movement. On these machines
Harlequin acquires one image for each machine step (index). Inside the step the blister are arranged on
rows.
first channel
second channel
operator side
row of blisters
Blister length
The Wizard asks the blister length only if the internal PLC type 2 is active.
Blister format
The blister format description aims to define the cavity layout inside the blister. First the type of grid
(layout) must be selected. Only two types are allowed: rectangular and hexagonal (the message shows
examples of both). Then the numbers characterising the blister are set. It should be noted that the words
vertical and horizontal refer to the screen appearance of the blister, not to the operator's view while he
looks at the forming strip. For the rectangular grid the maximum numbers of cavities both in vertical and
horizontal directions are requested. If the blister contains more than one product the previous operations
must be repeated for each of them.
Group Number
the field for selecting the group number for modification operations; the value is changed with the
adjacent keys with arrows;
Cavity Number
the field for selecting the cavity number for modification operations; the value is changed with the
adjacent keys with arrows;
Viewed Colour
in addition to normal viewing of the colour image (colour), you can observe one of the three
colour components (Red, Green, and Blue) in grey tones; by additive synthesis, these three
components form the colour image on the screen;
Viewed TV
when several cameras are installed, you can choose which image to show on the screen; the
numbers 1, 2, 3 and 4 refer to images received from cameras 1, 2, 3 and 4 respectively;
Coordinates
opens the dialog page for manual modification (non-graphic) of cavity co-ordinates; it enables you
to set coordinates of all windows manually;
Group of Cavities
enables operations for cavity groups rather than single cavities; if the box is checked the key New,
Copy, Remove act at group level;
New
creates a new cavity group or a new cavity inside a selected group; the number of the new group
or new cavity will be equal to the number of existing elements plus one; the new cavity group is
created empty, without any cavities; you cannot create a new cavity unless at least one group has
already been created;
Copy
creates a new cavity group or a new cavity inside a group by copying the selected element; the
number of the new group or new cavity will be equal to the number of existing elements plus one;
Acquisition
acquires the images from the cameras according to the exposure time associated with the article;
Double
this operation is enabled for groups only; it doubles the number of cavities in a group;
Remove
eliminates the selected element (group or cavity);
Windows
Harlequin goes into the graphic mode to shift and resize the cavity windows by means of the
mouse (or trackball);
OK
to exit the cavities management window while saving any modifications in the archive;
Cancel
to exit the cavities management window without saving modifications in the archive; you are
prompted to confirm before exiting the window, but only if some parameter has been modified.
When Harlequin is in graphic mode you can move and resize the windows by means of the mouse. The
graphic management keyboard that appears together with the window containing the instructions for the
mouse usage gives an aid to this task. In the lower part of this window the instructions can be read. Each
of them is associated to one of the eight buttons of the upper part. Here is the list of texts that appear
when the corresponding button is pushed:
Button to terminate the windows modification activity.
Button to align the selected windows (red). The first and the last window must already be in the
correct position.
Button to equalise the sizes of the selected windows (red): all windows are enlarged to the biggest
selected window size.
Button to cancel the last graphic operation. The windows are restored to the former sizes and
positions.
The window SELECTION (yellow->red) or DE-SELECTION (red->yellow) is achieved by
means of a double click of the mouse left button inside the window. If the mouse has 3 buttons,
the central button emulates the left button double click.
Harlequin – Reference Manual Page 53
The SELECTION of many windows is achieved by moving the mouse while the right button is
pressed. When the right button is released, all the windows inside the dashed rectangle are
selected.
The SHIFT of the selected windows (red) is achieved by bringing the cursor inside the selected
area and by moving the mouse while the left button is pressed.
The SIDE or CORNER SHIFT of the selected windows (red) is achieved by bringing the cursor
outside the selected area and by moving the mouse while the left button is pressed.
side shift
corner shift corner shift
windows shift
side shift side shift
Window Number
the field for selecting the number of the inspection window for modification operations; the value
is changed with the adjacent keys with arrows;
Windows Total
indicates the total number of inspection windows defined for the article; cannot be modified
directly;
Coordinates
opens the dialog page for manual modification (non-graphic) of the inspection window co-
ordinates;
Viewed Colour
in addition to normal viewing of the colour image (colour), you can observe one of the three
colour components (Red, Green, and Blue) in grey tones; by additive synthesis, these three
components form the colour image on the screen;
Viewed TV
when several cameras are installed, you can choose which image to show on the screen; the
numbers 1, 2, 3 and 4 refer to images received from cameras 1, 2, 3 and 4 respectively;
New
creates a new inspection window; its number is the number of existing windows plus one;
Copy
creates a new inspection window by copying the selected window; the number of the new window
is equal to the number of existing windows plus one;
Acquisition
acquires images from the cameras according to the exposure time associated with the article;
Remove
eliminates the selected window; you are prompted to confirm;
Windows
shows the graphic management keyboard for the windows;
OK
to exit the strip management dialog window while saving any modification in the archive;
Cancel
to exit the strip management dialog window without saving modifications in the archive; you are
prompted to confirm before exiting the window only if some parameter has been modified.
If two products can be distinguished by their colour only, we have the following critical defect:
From the operative point of view it is useful to build a mix-up table of the production line. It shows the
possible mix among products packaged in the same line. For example, if the product C (elliptic tablet,
third row of the following table) is packaged on PVC, its pocket can host the product A only, not the
products B and D, being too big. This can be not true if the base foil is made by aluminium, with big
pockets in comparison to the sizes of the products.
For each cell of the row containing a YES, a critical defect has to be defined. In our example, the article
of the product C, whose row contains a YES, will show a critical defect based on the differences between
C and A.
A B C D
A
NO NO NO
packaged product
B
YES YES NO
C
YES NO NO
D
YES NO YES
Enable Defect
if the box is barred, the critical defect is used for production;
Stop Machine
if the box is barred, and a critical defect is detected, the blister machine is stopped and a message
indicating the position of the defect is shown on the screen; when the reset key of the blister
machine is pressed, the message disappears and the machine can be restarted;
Other Defects
opens the dialogue box concerning other types of defects which can managed as critical defects,
that is with the stop of the blister machine and the alarm message generation; they are:
• Empty Cavities Control: it is the defect generated by Harlequin when a cavity, which is
considered as empty by the search algorithm, has actually a colour different from that of an
empty cavity; the threshold of accepting the difference on the colour level, depends on the
tolerance value which is programmable in this case; the colour levels of empty cavities, are
saved during the learning, when the machine runs without loading the product;
• Fragment of Tablet in Cavity;
• Foreign Body in Cavity;
• Powder (Stains) on Product;
• Powder (Stains) on Blister; the powder and stains check is programmed in the page
containing the special parameters for the measure;
Article Cross-Check
number which identifies the origin of the article used for the article cross-check and for the linked
article management;
OK
to exit the critical defect management dialog page while saving any modifications in the archive;
Cancel
to exit the critical defect management dialog window without saving modifications in the archive;
you are prompted to confirm before exiting the page.
Code
shows the name of the article;
Harlequin – Reference Manual Page 59
Description
field used to save all kinds of information; press the corresponding push-button to modify the
description;
Acquisition
acquires the camera images, in accordance with the exposure times linked to the cameras
themselves; to determine the exposure time to be used, shift the General Parameters page
rightwards and partially move it out of the screen in order to make the images visible, and at the
same time, to be able to change the exposure time and displayed camera;
OK
exit the General Parameters page while saving any modifications in archive;
Cancel
exit the General Parameters page without saving the modifications; when the Cancel push-
button is pressed, you shall be asked to confirm before closing the page, only if modifications
have been made.
Window Number
window number selection field; the value is changed with the arrow keys next to it; all
modifications are applied to the selected window;
Windows Total
indicates the total number of windows defined per article; cannot be directly modified;
Name
the name of the window which appears on the screen together with the window; can be modified
by pressing the push-button;
Acquisition
to acquire images from the camera, in conformity with the article-linked exposure times.
Viewed TV
when more than one camera are installed, it is possible to choose the image to display on the
screen; numbers from 1 to 16 indicate the images coming from cameras 1 to 16, respectively;
Coordinates
To open the dialogue page and manually modify (not graphic) the windows coordinates;
Check to Do
Selection of the check to perform in the window; the types of objects available are characters,
codes, ring nuts, 3D, cardboard boxes, packaging objects; programmable measures; printing
qualities; rings of colour. For each kind of objects, the number is to be used to select a specific
object; if said object has already been named, it shall appear in the relating field; the codes are to
be selected in checking the codes on covering material.
Rejection Queue
The two values in this page are to be programmed for each window; “Number of the Signal” is
the number of the outlet signal which communicates the check result; “Queue Length” is the
dimension of the rejection queue; when the rejection queue is 1 or more steps long, the results are
synchronised with the arrival of the signal in the image acquisition phase; for example, if the
length is 1, when the phase signal arrives, Harlequin expresses the result of the image acquired
during the previous phase; if the length is 2, the result refers to two previous phases, and so on; if
the specified length is 0, the result shall be expressed as soon as it is available, or else, at the end
of the image analysis; in this case the data outlet is said to be asynchronous, since the data
expression time is at any moment whatsoever (this depends on the calculation time) after
receiving the acquisition phase;
Debug Display
allows the display of the check algorithm steps during manual work;
Orientation
specifies one of the four possible orientations of the objects in the window;
Reflection
indicates if the window is to be read with the application of a reflection (vertical or horizontal);
Mobile Window
indicates the window horizontal and vertical offset, compared to a reference window (Number of
the Reference Window);
Anti-Reflection Filter
corrects the image before starting the check;
New
creates a new window which takes the number of the existing windows plus one;
Copy
creates a new window by copying the selected one; the number of the new window shall be equal
to the existing windows plus one;
Extern Copy
copies the selected window onto one of the selected articles;
Remove
eliminates the selected window; you shall be prompted to confirm before cancellation;
OK
to exit the dialogue page while saving the modifications in archive;
Cancel
to exist the dialogue page without saving the modifications in archive; you shall be prompted to
confirm before existing the window, only if modifications have been made;
Windows
access to the graphic mode in the window management, using the mouse. This function is made
easy by the appearance of the windows graphic management keyboard together with the window
that contains the instructions regarding the use of the mouse.
Code Number
code selection field;
Codes Total
to indicate the total number of codes in the article file;
Name
code name. It can be assigned in a page which opens up upon pressing the push-button;
Type of Code
this field is used to select the code type amongst preset ones:
Binary, Pharmacode, Data Matrix ECC200, 39, 2/5, 128, 32, EAN8, EAN13, UPCA, UPCE, RSS-
14, RSS-14 Stacked, RSS Limited;
Rotation Allowed
the barcode scanning occurs only along one direction. When this option is enabled, even rotation
codes may be read, since the scanning is performed along several directions with different angles.
This option is to be necessarily used when a horizontal/vertical line cuts through all the bar-codes.
Pharmacode Dimensions
bar and space widths, which typically are: 1.5, 0.5, 1.0 mm;
Measure Contrast
sensitivity of bar-code recognition. The higher the value is, the lesser the sensitivity. Therefore,
well-contrasted bars are needed. The recognised bars are highlighted with red segments during
measurement;
Datamatrix ECC200
to open the page dedicated to the datamatrix code parameters programming. The code reading is
divided into two phases: search and decoding. The two reading phases are characterised by
different programming parameters;
The camera has to be periodically calibrated in order to obtain correct measurement of the contrast
through the Surface Reflectance parameter.
The contrast value, measured with the camera, has to be compared to the contrast value measured
with an ISO 15415 certified offline verifier.
Variable Code
Codes that vary from one image to another can be checked whenever there is a rule that
interrelates the subsequent codes. The permissible rules are the following:
• Increasing numeric value
• Decreasing numeric value
• Any digit
• Any character
Codes with fixed and variable parts are also permissible. In such a case, it is necessary to specify
the order number of the first character in the variable part;
New
creates a new code, the number of the new code is equivalent to the number of the already-
existing codes plus one;
Copy
creates a new code, copying the selected one; the number of the new code is equivalent to the
number of the already-existing codes plus one;
Extern Copy
Opens the dialogue page to copy the selected object towards other article; the paragraph relating to
the external copy is to be referred to;
Remove
eliminates the selected code; confirmation shall be requested;
OK
exit the code programming page while saving the modifications in archive;
Cancel
exit the code programming page without saving the modifications in archive; when pressing
Cancel, you shall be prompted to confirm before closing the page, only if parameter modifications
have been applied.
Rectangular Symbol
enables the rectangular datamatrix check;
Symbol Size
number of the dots included in the symbol;
Symbol Search
the symbol search is the first step in code reading, and it could be model (the most common) and
based on pattern matching, or fast and based on the blob extraction in the window. This second
option decreases the calculation time and does not require knowledge of the symbol size;
Symbol decoding
symbol decoding is the second phase in code reading; there are three different types of decoding,
according to the deformation level of the symbol to be read;
GS1 encoding
used to define the GS1 encoding of the datamatrix code, and if performed, it has to be done either
by Harlequin or the printer.
No backgroung subtraction
prevents the software from applying the background subtraction. It is useful when a pre-
processing window executes the background subtraction in advance.
For every cavity group selected with the Group Number field, the following values in the page have to
be measured:
Row Number
the row number indicates the position of the cavity group inside a single control step; row
numbers go from 1 upward, as row 1 is the nearest to the rejection station; obviously, for blister
machines with a continuously moving strip, only one row is controlled at each step; therefore, this
parameter should be left unaltered on value 1 (preset when the cavity groups was created); for
blister machines with alternating movement, the row numbers must be correctly specified for each
group as they determine the correct rejection sequence;
Linked Article
to display the length of the queues of rejection articles linked to work articles; besides, when the
Linked Articles option is enabled, it shall be possible to modify even the rejection queues of
linked articles.
-4 -3 -2 -1 +1 +2 +3 +4
operator side
Enable Signal
this signal is used if the box is barred;
Harlequin – Reference Manual Page 67
Stop Machine
providing the box is barred, if switching of the signal is detected, an alarm is generated and the
blister machine is stopped; the message shown on the screen can be edited with the Message
button;
Immediate Rejection
this option can be activated only if the internal PLC is used; it causes the rejection of all the
blisters in the PLC queue; the immediate rejection is used, for example, to force the blister
rejection when an alarm of web position is detected;
Rejection
the auxiliary signal rejection can be defined as Standard, Critical Defect, or Empty Blister;
therefore, the rejection may be performed in the mode established for critical defects or for empty
blisters;
Message
opens the Modify Text for editing the alarm message to be shown on the screen; to this end, a
virtual keyboard appears on the screen, emulating the operation of a real one; the message is also
visible in the rejection queues window, during the automatic work.
A new bit is inserted in the SR (its length increases by 1) when the specified entry event occurs.
The oldest bit is extracted from the SR (its length diminishes by 1) when the specified exit event occurs.
When the bit is extracted from the queue the output signal of the SR is set to 1 or 0 according to the value
of the bit. Therefore, following to the extraction, the extracted value, apart from being physically written
as it exists, is also available as an entry for the successive SRs.
If the output signal of a SR is used only to transfer information from one SR to the next it doesn’t
necessarily have to be emitted as a physical 24V signal on the I/O card. Consequently a fictitious address
can be assigned to the configuration file, which doesn’t correspond to any physical exit available on the
card. Conventionally, the fictitious address is Port=0x2ff, Bit=0.
Many SRs can be created and linked together (the output signal of a SR is an input of the next SR) to
form a combined network.
When the same event triggers many insertion/extraction operations, such operations are executed in a
preset priority:
1. data extraction from the SRs
2. data insertion into the Discrete Time Logic Ports (DTLP)
3. data extraction from the DTLP
4. data insertion into the SRs.
A DTLP is a special case of SR: it is a SR with initial length 0 and with the same event for input and
output. Having the same event that triggers the input and output operations the length of a LP remains 0
forever. The LPs are drawn in red in the graphic window.
When the input/output event of a logic port is the system clock, the updating of the output from the port
is done with the internal PLC frequency of execution, or rather 2000 times a second. From a practical
point of view the logic port behaves like an analog device and it is called Continuous Time Logic Port
(CTLP). The CTLPs are drawn in yellow.
The system clock can be considered as a special kind of event which always occurs, triggering the
insertion/extraction operations of the CTLPs. When, in the same internal PLC cycle, one or more kinds of
events other than the system clock occur (switching of signals), the CTLP operations are done after the
operations relating to the events other than the system clock.
The SRs can be also used to build simple sequential networks. The figure shows a flip-flop of the set-reset
type built with two NOR CTLPs.
Name
Name of the SR. It can be assigned through the page that opens with the mouse click on the
button.
Harlequin – Reference Manual Page 69
Counters
If enabled, this function allows Harlequin to use the shift registers as input values for
customizable counters. In fact, it is possible to combine the shift registers arithmetically between
them, so as to create significant counters for the various types of applications; it is possible to
associate a counter to each shift register not defined on the system clock, this counter consists of 2
variables which are increased, respectively, when the shift extracts a 1 (typically good) and when
it extracts a 0 (typically a reject); there are 3 pairs of these variables: historic, batch, partial. The
first one can be zeroed from the programming page only, the second one can be zeroed at batch
start, whereas the third one can be zeroed upon request by the operator from the counters window.
Each counter is given a name which is then shown in the counters window. The SR does not need
to have an output signal: no signal is also OK. If one or more counters are defined from the SR in
an article, the counters window shows only these ones.
There is the possibility of editing 3 algebraic expression (one for reject computation and one for
good object computation) consisting of variables of A0 type (number of rejects of counter A), F1
type (number of good objects of counter F), as well as of operators (+ - * / %) and round brackets.
At run-time, each time a counter is incremented due to an exit event the shift registers list is
scanned and the counters are recalculated through their expressions.
New
Creates a new SR; the number of the new SR will be the number of the existing SRs plus one.
Copy
Creates a new SR by copying the selected SR; the number of the new SR will be the number of
existing SRs plus one.
External Copy
Opens the dialog page for the copy of the selected object towards other articles.
Remove
Removes the selected SR; you are asked to confirm:
Harlequin – Reference Manual Page 71
Draw
Opens the window showing the SRs in graphic mode.
OK
Exit from the SRs’ programming page; all changes are stored in the archive.
Cancel
Exit from the SRs’ programming page without saving any change; when the Cancel button is
pressed, you are asked to confirm before closing the page, but only if any parameter has been
modified.
3.2.30. Learning
The learning is the measure operation (and memorisation in the article file .BLI) of the product reference
parameters. The learning can be performed either on still images or with the blister machine running. It is
not necessary that all pockets contain the product nor that all products measured during the learning are
correct. It is enough that the most part of them is good. At the end of the learning procedure Harlequin
computes the suggested tolerances by assessing the statistics of the measured parameters.
Meanings of keys in downward directions:
• end of learning
• automatic learning while blister machine is running
• learning from cameras; images are acquired from the cameras at every click and reference values are
calculated
• learning from cameras synchronised with the phase signal received from the blister machine; at every
click, the phase signal is awaited before acquisition begins
• learning from disk: images stored on the disk are displayed and reference values are calculated from
them
• viewing of learned values and tolerances recommended for each product.
The different learning modes are not mutually exclusive. That is to say, you can calculate the reference
values by combining the results of measurements executed in a different manner: statically by camera (or
disk), dynamically by camera.
When the button OK is pressed Harlequin prompts for confirmation before storing the learned values in
the article file.
Colour Rings
The following tolerances are set when the colour rings check is enabled:
• RGB difference of colour rings;
• TSI difference of colour rings;
• glass colour.
User Management
Enables the functions of the FDA 21 CFR Part 11. If the user management is not active there
exist three users only: Expert (Harlequin administrator), Operator and Extern. Both Operator
and Extern are not endowed with a password.
Operator is the default user: he is the user connected to Harlequin when no other user is
connected. Harlequin automatically selects it after the log-off of another user. Moreover Operator
is the user connected at the program start up.
Extern is the user who executes the commands sent either from the serial port or from the local
network. Extern must have the permissions Article choice and Batch management. If not,
Extern cannot execute the related commands. Also the control disabling by means of the extern
signal is an operation made by Extern. It requires the permission Start of machine for test.
If the user management is enabled every user has to log-on to the system with his own
identification code (ID) and password. The connected user can access only the functions whose he
has the permissions.
The list shows all the users defined.
Archive Management
Enables the management of the article files (.BLI). If the archive management is enabled the
article, before it is used for the automatic work, has to be committed by a user who has the proper
permission. The user commits the article inserting his password. This is done either when the
automatic work is started or when the user disconnects himself (log-off). Furthermore, the commit
operation copies the article file in the directory having the same name as the file. In this way
Harlequin maintains the history of the modifications made to all articles. The function Former
Article Versions (Work menu) allows the browsing of the files previously committed.
Batch Management
Enables the management of the batch files (.BTC). If the batch management is enabled the
function Batch End (Work menu) creates a file BTC in the directory of the current article. The
files of the produced batches are browsed with the function View Former Batch Data.
System Protection
It makes the file system on hard disk not accessible. The protection eliminates the shell of
Windows 2000 (Explorer). Therefore the program exit does not allow the access to the desktop.
Also the command Ctrl+Alt+Del from keyboard does not allow the execution of any task.
Automatic Log-off
A maximum time (Time-out) of connection to Harlequin can be set. The time begins at the log-
on. When the time-out is reached, Harlequin executes a silent log-off of the user, after that
Operator is again the connected user. If, at the end of the allowed time, the user is still operating,
Harlequin permits him to finish the operation. For example, if the user is editing the article
parameters in a dialogue box, he can continue until he comes back to the main menu. If the user
started the automatic work the blister machine continues to work after the connection time-out.
It is also possible to select the connection time-out at the beginning of each automatic work by enabling
the At Automatic Work Start option.
Expire of Password
A maximum time of password validity can be set. This does not hold for the Expert, whose
password never expires. The user with an expired password can still execute a log-on, but he can
access the function for password modification only.
New
Creates a new user. It opens the page for inserting the user’s data.
The user ID requires at least 3 characters. The user is created with the password empty and
expired at the same time. In this way at the first log-on the user can connect himself to Harlequin
simply with its own ID, but only to insert his private password.
The Harlequin administrator (Expert) can assign any subset of permissions to each user. The only
exception to this rule is the permission User management, which is always assigned to the Expert
only. A possible strategy to assign the permissions consists in dividing the users in groups,
assigning the same set of permissions to the users belonging to the same group. This is practical
when the groups are defined in hierarchical manner, that is when the user of the group of level n
owns all the permissions of the group of level n-1. The following table defines five standard users,
showing which permissions are assigned to each of them. The default user does not have any
Harlequin – Reference Manual Page 75
permission. This means that, when Harlequin starts, no operation is allowed until a user connects
himself to the system. The user of level 1 is the line operator: his target is the start of the blister
machine after the selection of the work article and eventually the start of the new batch. The user
of level 2 is the production supervisor. He is responsible for programming the work articles. The
user of level 3 is the electronic engineer: he can access to the Harlequin configuration. Moreover
he is responsible for saving the archive. The user of level 4 is the Harlequin administrator
(Expert). If Expert is responsible for the user management only and he does not work on the
system, he assigns to himself the permissions User management and Reset severe alarms only.
USER PERMISSIONS
level 0: none
DEFAULT USER
(OPERATOR)
level 1: Article choice, Work, Batch management, Start of machine for test
LINE OPERATOR
level 2: all permissions for level 1
PRODUCTION Reset severe alarms, Editing level 1, Editing level 2, Editing level
SUPERVISOR 3, Learning, Tolerances, Service call
level 3: all permissions for level 2, System management, Editing
ELECTRONIC ENGINEER configuration file
level 4: all permissions for level 3 (only if Expert works on the machine)
HARLEQUIN User management
ADMINISTRATOR
(EXPERT)
The following table shows which functions are enabled by each permission.
PERMISSIONS FUNCTIONS
No permission required Automatic Work, Manual Work, Vision System Disabled, Performance
Measure, Measure Results Presentation, Write on Log-File,
Status Bar, Windows Display, Log-on / Log-off, Acquisition,
Continuous Acquisition, Synchronised Acquisition, Clear Screen,
Display TV, Synoptic Display, Display Red, Display Green, Display
Blue, Display Colour, Rotate Images, Reflect Images, Article Cross-
Check, Triangle of Colours, Read Colours, Convert RGB->HSV,
Information on System
User management Exit Program, System Management
Article choice List of Articles
Work Automatic Work, Manual Work, Vision System Disabled
Reset severe alarms Reset of the alarms requiring a password
Batch management Batch Start, Batch End, View Batch
Editing level 1 Linked Article, Cavities Management, Strip Management, Windows,
Work Control Images, Save Images on Disk (Article), Save Images on
Disk (Archive), Save Images on External Device, Load Images from
Disk (Article), Load Images from Disk (Archive), Load Images from
External Device
Editing level 2 Article Wizard, Rejection Queues, Rejection Aux. Signals,
Asynchronous Shift Registers
Editing level 3 New Article, Copy Article, Remove Article, Program Article, Critical
Defects Management, Multi-Function Cameras Management, Work
Parameters, Internal PLC, Alarms
Learning Learning
Tolerances Cavity Tolerances, Strip Tolerances
System management View Article, Former Article Versions, View Log-File, Restart
Windows, Shut down, Save Article, Save Archive, Restore Article,
Restore Archive, Save System Files, Inputs/Outputs Control, Date and
Time
Start of machine for Possibility to start the machine using an article not committed
test
Service call Call Service, Terminate Service
Editing configuration Modify Configuration File
file
Modify
Opens the page for the modification of the data concerning the user selected inside the list.
OK
Closes the dialogue page with memorisation of the data in the file passwd.
Cancel
Closes the dialogue page without memorisation of the modifications.
The menu item Log-on / Log-off (corresponding icon ) shows the page where the user ID and
password have to be written.
If the user management is not enabled (and therefore only the users Operator, Expert and Extern exist)
the Log-on is possible only as Expert.
The log-off is achieved by selecting again this menu item. After the log-off the Operator is the user
connected.
Save Article
Harlequin copies on the external device the file of the selected article and the configuration file
HARLE.INI.
Harlequin – Reference Manual Page 77
Save Archive
Harlequin copies on the external device all files (complete archive), the configuration file
HARLE.INI and the password file.
Restore Article
Harlequin presents the list of the articles stored on the external device. A click of the mouse left
button on the row corresponding to an article executes the copy of the file from the external device
to the hard disk. If the article already exists on the hard disk Harlequin asks the operator before
overwriting.
Restore Archive
Before restoring the whole archive Harlequin prompts for confirmation.
Construction of Images
Option useful to reduce the cycle time.
During the automatic work the screen shows the following information (in order of decreasing
computational load):
• Image + Drawings: the whole acquired image is visible together with the overlay of the
control drawings selected with the options Measure Control Drawings and Search Control
Drawing;
• Partial Image + Drawings: the same as before; the only difference regards the size of the
displayed area, which is limited to the region occupied by the cavities;
• Drawings only: the image is not visible; the control drawings are displayed on black
background;
• Nothing: neither image nor drawings.
Counters Window
Displays the batch counter window (lot and/or partial) during the automatic work.
window); the green window is unchanged, the yellow window adds one diagonal, the red window
adds two diagonals, the blue window adds two diagonals and one cross.
Outputs Status
If always KO is chosen, all blisters are rejected during automatic work mode, irrespective of the
result of inspection, which is, in any event, executed. On the other hand, by selecting always OK,
all blisters are forced to pass through. If normal is selected, blisters are rejected if they have at
least one object off tolerance range in regard to at least one of the active control parameters.
For reasons of safety, the always OK and always KO options are valid only for the first session
of automatic work. For subsequent sessions, unless otherwise specified, the machine assumes the
normal outputs option.
Output Word
Used to set an output word for the current article at the automatic work input..
Strobo
In the management of the illuminator signals, it is possible to assign a TV to each illuminator
strobe signal.
Exposure Time
The exposure time value to be used for acquisitions from cameras executed with the key
Acquisition. This value is used also by functions in Images menu when no article is selected. The
item New Article in Archive menu assigns this value to each new article.
Acquisition
Acquires the images from the cameras according to the exposure time of this dialogue page.
As the transit time associated with each channel is known, the internal PLC compares the time
measured for blisters outfeed by blister machine with the reference time value; if a blister passes
under the photocell too early with respect to correct time, this blister should not have been on the
conveyor at that time, therefore, it is a rejection blister that was not rejected; vice-versa, if a
blister reaches the photocell too late, this means that at least one blister was not outfeed from the
cutter area: this is therefore a case of partial jamming; in both cases, the Internal PLC generates
an alarm and stops the blister machine.
Enable Counter-Check
Barring the Enable box enables counter-check at transit time.
Rejection
There are two devices that reject the blister: mechanical flap (first) and air flow (second). You
can choose to use either one of them or both. Two values should be set for each of them (in
milliseconds): the Delay and the Duration. The delay is the time elapsing since the blister
detection (by the rejection sensor) to the start of the rejection. The duration is the time elapsing
since the start to the end of the rejection.
Check on Conveyor
The checks on the conveyor may be performed with the transition interval (Time) or with the
conveyor feeding clock (Distance)
Sensor 1: the sensor 1 must see, in the time interval between two cutter triggers, the blisters just
cut. To facilitate this function the cutter trigger can be delayed with the field Delay (ms). The
delay moves ahead the time interval in which the blisters must be seen by the sensor 1.
Sensor 2: the sensor 2 measures the transit time of the blister and compares it with the expected
one (computed with the information on blister speed and length); if two blisters are overlapped the
transit time is too long (above the specified time tolerance).
Sensors 3, 4, 5: the transit time of the blister is checked: it starts at the previous sensor. This time
must be the expected one (computed with the information on blister speed and distance between
the sensors) apart from the tolerance on the transit time.
3.3.13. Alarms
Some blister machines mount two reset push buttons. The first is on the operator panel. The second is
near the blister rejection device. If the alarms generated by Harlequin concerning the blister rejection (for
example the missing rejection) can be reset with the second button only, the operator has to move to the
area of the blister machine where the alarm arose.
Harlequin, through this dialogue page, allows you to assign one or both reset buttons to each alarm class.
Furthermore each alarm class can be considered severe and subjected to the password insertion. In this
case the alarm can be reset only by users having the permission: reset severe alarms.
Harlequin has an oscilloscope function for the input / output signals. The oscilloscope shows the signals
memorised during the blister machine run. To activate the signal memorisation set the field Log of the
input signals. During the automatic work, when the required event happens (an alarm or simply the stop
of the machine), Harlequin creates a file containing the commutations of the signals in the time interval
starting few seconds before the machine starts and ending few seconds after it stops. The button List of
Files opens the page showing the stored files (in chronological order).
If the file creation was triggered by an alarm, this is shown in the same row of the file. The files can be
exported on floppy disk (button Export File) and displayed on the screen (button Show Signals).
The oscilloscope shows a signal per row: above the inputs, below the outputs. The drawing is panned with
the arrow keys. The resolution of the single box ranges (with the zoom keys) from 1 second (minimum
resolution) to 1 millisecond (maximum resolution). Meaning of the colours:
black: the signal takes the logic low value for the box duration
red: the signal takes the logic high value for the box duration
yellow: the signal takes the both levels inside the box.
The column with the reversed colours shows the time of the alarm generation by Harlequin.
3.4.1. Acquisition
If this item is selected, images are immediately acquired from the cameras. The exposure time is that
associated to the selected article. If no article is selected the time set in dialogue page Work Parameters
is used.
3.4.11. Display TV
When more than one camera are installed, it shall be possible to choose the image to display on the
screen. The screen can display the images one by one or all together. The numbers from 1 to 16 refer to
images received from cameras 1 to 16 respectively.
• if the value is varied, the cursor does not move, but the numeric values of red, green and blue vary.
2. telephone number: if necessary it is possible to insert pauses during the number dialling by
putting one or more dots (.) in the middle of the number;
3. host IP address: either 192.168.1.1 for the direct call or 217.57.108.203 for the connection
through Internet;
4. connection speed: depends on the quality of the telephone line; not all modems allow this
selection;
5. tones or pulses: the choice depends either on the company switchboard or on the local telephone
exchange.
4. Alarm messages
Harlequin is able to stop the blister machine. This can occur following normal malfunctions such as
detection of too many consecutive rejects, but may also be due to more serious problems. To stop the
blister machine, Harlequin disables the run permitted signal and wait for the blister machine to stop.
After the machine stops, the screen shows a message explaining the reason for stoppage.
This message disappears when the reset push-button (on the control panel of the blister machine) is
pressed, thus sending to Harlequin the reset after error signal. On receiving this signal, Harlequin re-
enables the run permitted signal to allow work to continue. If several alarms are generated
simultaneously, they are displayed in sequence: each pressing of the reset key cancels the last message
and displays the new one. The blister machine can therefore be restarted immediately. The only
exceptions to this are faults that are considered serious, for which the blister machine is locked until the
Password is entered, i.e. until a user with the permission to reset the severe alarms intervenes. In these
cases, pressing the reset key makes the message disappear from the screen, but it is replaced by the
dialogue page for entering the Password. The run permitted signal is not restored until the correct
Password is entered.
In any event, all alarm messages generated by Harlequin are saved in the Log-File, and all include the
data and time at which the malfunction occurred.
Some blister machine stops can be avoided if Harlequin receives the disable blister machine stop signal
from the blister machine. This signal is effective only for some types of stop (e.g. it cannot disable a stop
caused by a fault), providing the stop disable system is enabled for the different classes of stop reasons.
The following are the classes for which stop inhibition can be enabled, i.e. for which the disable blister
machine stop signal can be made active:
• stop due to too many consecutive rejections
• stop due to a critical defect
• stop caused by a defect on the strip
• stop caused by a rejection auxiliary signal
The following is a list of messages which are shown when the blister machine stops, with a description of
the reason of stoppage.
(M002) Too much light variation, either change the lamp or execute a new learning
This is the message appearing when the light intensity measured in the reference windows
changes for more than 50% in comparison to the learned value. It may depend on the lamp ageing,
on the wrong position of the lighting system, on the shift of the reference windows, on a strong
variation of the environment light. Also a camera failure can give this alarm.
(M005 - M007) Defect detected on the strip inside window n. X which is N steps from the control
station
This message appears following a stop caused by a defect on the strip.
(M008 - M010) Foreign body detected in cavity n. X of group n. Y, which is N steps from the control
station
This message is shown following a stop caused by a foreign body in cavity.
(M011 - M013) Fragment of tablet detected in cavity n. X of group n. Y, which is N steps from the
control station
This message is shown following a stop caused by a fragment of tablet in cavity.
(M014 - M016) Powder (stains) detected in cavity n. X of group n. Y, which is N steps from the control
station
This message is shown following a stop caused by detection of powder on product.
(M017 - M019) Powder (stains) detected in group n. X which is N steps from the control station
This message is shown following a stop caused by detection of powder on blister.
(M020 - M022) Critical defect (non empty cavity) detected: n. X of group n. Y, which is N steps from
the control station
This message is shown following a stop caused by a non-empty cavity. It is a cavity considered
empty by the search algorithms, but showing colours different from those learned.
(M023 - M025) Critical defect type X detected in cavity n. Y of group n. Z which is N steps from the
control station
This message appears following a stop caused by a critical defect.
(M027) Machine too fast; reprogram the article to obtain better performance (X ms)
This message appears in case of overrun, i.e. when the blister machine cycle item is shorter than
Harlequin’s cycle time. X shows the elapsed time between two consecutive acquisition triggers. If
this value is too small in comparison with the blister machine speed, the alarm is generated by a
wrong commutation of the acquisition trigger.
(M035) Alarm: the values of the rejection signals do not match the set values
An alarm message. It appears when one of the rejection signal, read back by Harlequin does not
correspond to the set value.
(M039) Collision in rejection FIFOs: the rejection phase signal is probably not being received
(M502) One or more blisters were not rejected: check blisters loaded on the cartonner or fallen in the
container under the output conveyor
(M503) Failed rejection of one or more blisters: check blisters loaded on the cartonner
Alarm messages generated by the Internal PLC 1 and 2. They appear when the counter-check of
the internal PLC detects a failed rejection: some rejected blisters were transported on the output
conveyor belt.
(M504) Partial jamming of cutter: some blisters were not loaded on the conveyor belt
Alarm message generated by the Internal PLC 1 and 2. It appears when the counter-check of the
internal PLC detects partial jamming: some cut blisters were not transported on the output
conveyor belt.
(M505) Some blisters have reached the output conveyor photocell in advance: clean the conveyor and
check the photocell setting
(M506) Some blisters have reached the output conveyor photocell too late: clean the conveyor and
check the photocell setting
Alarm messages generated by the Internal PLC 1. They appear when the counter-check (based
on transit time) of the internal PLC measures off-range transit times without detecting failed
rejection or partial jamming states.
(M507) Sensor 2: either the distance between blisters is too short or the blisters are overlapped
(M539) A blister was not rejected from X channel: check blisters loaded on the cartonner or fallen in
the container under the output conveyor
(M540) A blister was not rejected from X channel: check blisters loaded on the cartonner
Alarm messages generated by the Internal PLC 1. They appear when the counter-check (based
on optical fibre) of the internal PLC detects failed rejection of a blister.
(M541) The fibre of the counter-check of X channel is incorrectly set: it reads transit of non existent
blisters
An alarm message generated by the Internal PLC 1. It appears when counter-check (based on
optical fibre) of the internal PLC detects rejection of a blister that was not in fact rejected.
(M543) The rejection phase of channel X was read an insufficient number of times (Y less)
(M544) The rejection phase of channel X was read too many times (Y more)
Alarm messages generated by the Internal PLC 1. They appear when there are malfunctions on
the rejection phase signal of channel X.
(M550) The signal coming from the light curtain is always high
An alarm message generated by the Internal PLC 2. It appears when there are malfunctions on
the signal coming from the countercheck light curtain placed at the entrance of the rejection
tunnel.
(M551) The signal coming from the light curtain (empty blisters) is always high
An alarm message generated by the Internal PLC 2. It appears in case of malfunction in the
signal coming from the empty blisters countercheck barrier on the empty blisters tunnel.
(M553) The number of acquisition triggers is not compatible with the number of cutter triggers (the
article may not be correctly programmed)
An alarm message generated by the Internal PLC 2. It appears in case of displacement between
the rejection phases and acquisition phases.
1. insert a USB pen-drive and wait for the operating system to recognize the device;
2. press the Auto Mode Exit button at the right bottom of the display, if available;
5. when the program asks “Do you want to remove memory device d:?” press the NO button;
7. when the program asks “Do you want to remove memory device d:?” press the YES button;
8. confirm the warning message "The memory device d: has been removed" with the OK button;
2. power down the system (press the auxiliary power-on button at the back of the PC);
3. remove the rear bottom panel, if present, to access the hard drive;
6. power up the system (press the auxiliary power-on button at the back of the PC);
wait the end of the start operations of the operating system and the application;
7. press the Auto Mode Exit button at the right bottom of the display, if available;
9. remove the System Protection option using System Management function (Configuration menu)
and press the OK button;
execute the Exit Program function (Work menu);
if the system was protected, the first Exit Program causes a reboot of the system;
wait for the system to restart;
now log-on as Expert user and exit from the program again;
10. insert the USB pen-drive which contains the system and wait for the operating system to recognize
the device;
13. double click the copyharle.bat file, wait the end of operations and close the window;
14. double-click the HARLE.EXE icon on desktop to enter the Harlequin program again;
15. confirm the warning message "No Article selected, select one and try again" with the OK button;
16. execute the Log-On function (Configuration menu) with an Expert user;
18. when the program asks “Do you want to remove memory device d:?” press the YES button;
21. restore the System Protection option using the System Management function (Configuration
menu).
Harlequin – Reference Manual Page 103
6. Service
The remote Assistance service supplied by SEA Vision facilitates the diagnosis of hardware and software
malfunctioning, as well as the programming of the work articles.
When the support via Internet or modem is not available, images and the system’s archive can be
manually saved, then call SEA Vision after-sale department.