Han's Lazer

Download as pdf or txt
Download as pdf or txt
You are on page 1of 213

HAN’S LASER Marking

Software 6.0

User Manual
Please read this manual before using the software.
Properly keep this manual for future reference.
PREFACE

STATEMENT

Welcome to use the HAN’S LASER MARKING SOFTWARE 6.0 system, which is marking control
software based on vector graphics marking and has functions of extended word processing, accurate
drawing and fine marking. On the basis of improving the shortcomings of existing versions, many
useful tools and features have been added (such as illimitable zoom, sorting function, analog control,
speed optimization and so on, and you can read the instruction for further details). It helps users to
work in a faster and more accurate way, and meanwhile, this version supports the operating system of
Windows XP, enabling it to run under a more stale and reliable environment, which greatly improves
the reliability of the software running. The running of HAN’S LASER MARKING SOFTWARE 6.0
needs the support of the appropriate hardware.

HAN’S LASER MARKING SOFTWARE 6.0 fully supports the 3D marking. With powerful, fast,
high-efficient and humanistic 3D graphics edition system, as well as fast, precise and accurate
marking control, it provides more efficient and more reliable operating experience for customers.
Except the brand-new 3D experience it brings to you, it is also fully compatible to all functions and
operating habits of HAN’S LASER MARKING SOFTWARE 6.0, which enables its old users to
continue to use it. The upgrade of it is very simple, namely unload the old software and install the new
version. For the detailed description of 3D part, please refer to Chapter Eight.

HAN’S LASER MARKING SOFTWARE 6.0 control software is independently developed by Han’s
Laser Technology Industry Group Co., Ltd. with its sole copyright ownership. This program is
protected by copyright laws and international copyright treaties. Without legal authorization from
Han’s Laser Technology Co., Ltd., it is forbidden to copy the whole or any part of this software;
otherwise, severe legal responsibilities should be undertaken by the violator.

ON TRADEMARKS AND REGISTERED TRADEMARKS

The company names and product names in this manual are trademarks or registered trademarks of
their respective companies.
Manual Makeup

This chapter describes functions of marking control


Chapter Overview software and features of laser marking.
1

Chapter Preparation This chapter describes installation and operation


2 before Use interfaces of marking control software.

This chapter describes how to create and edit marking


Chapter
Instructions drawings.
3
on Drawing

Chapter Marking This chapter introduces various marking modes


4 Control available in the marking software.

This chapter introduces marking and motion control


Chapter Parameter parameters in the marking software.
5 Setting

This chapter introduces the connections, settings and


Chapter Overall debugging method of each part of overall marking control
6 Debugging system.

This chapter introduces key binding, user access


Chapter Other management, fault check , software encryption and
7 Operations multi-card control of the marking software.

This chapter introduces how to edit 3D drawings and


Chapter 3D the marking operation mode.
8 Operation

This chapter describes how to output PLT drawings from


Chapter Appendix AUTOCAD 2000 and AUTOCAD R13 and introduces the
9 secondary development interface.
CONTENTS

Chapter One: Overview

1-1 Introduction to Marking Software…………….………..……………1-2


Relationship between marking software and computer…….....1-2
Relationship between marking software and overall laser
marker……………………………………………………………….1-2
1-2 Introduction to Laser Marking………………………..………………1-3
Characteristics of laser marking..…………………………………1-3
Unique advantages of laser marking……………..………………1-3
Classification of laser marking……………………….……………1-3

Chapter Two: Preparation before Use

2-1 Installation Requirements……………………………….….….……2-2


Installation environment requirements……………….…………2-2
Preparation before installation……………………….……..……2-2
2-2 Installation Process.….….….………..………………………...……2-3
Installation process…….……………………………..…….…..…2-3
Installation of EMCC card driver…………………………………2-8
2-3 Operation Interfaces..…….………………………..……..…………2-11
User interfaces.……………………………………………………2-11
2-4 Menus and Toolbar….………………………………………………2-12
Title bar…....….………………………………..……….…………2-12
Menu bar….….……………………………...........………………2-12
Status bar……………………………………….....………………2-23
Working area…..…….……………………………….……………2-24
Valid marking area…….………………………….....……………2-24
Illimitable zoom………………………………………………2-25

Chapter Three: Instructions on Drawing

3-1 Creating Drawings………………………….…………………………3-2


Draw…….…..….…………………..……..……...…………………3-2
Click…….….….…………………………………..…………………3-3
Handdraw…………………………………………………………...3-6
Spline…….….….….………………….…….………………………3-7
Rectangle...….….….………….………………..……………..….3-7
Ellipse….….….…….………………….…………...….……….….3-8
Polygon….……………………………………..……………….….3-9
Grid…………………………………………………………..…….3-10
Delayer.………………………………………..……………..……3-11
Waiting for inputting signal…………………..……….….….……3-11
Output signal……………………………….……………...………3-12
Motor move…………………………………..……………………3-12
Reset motor position…………………………..…….……………3-13
Condition judgment……………………………………………….3-13
Text or serial……………………………..………….….…………3-14
Barcode…………………………….….……………….….………3-18
Importing external files……………………..………….…………3-23
Internally generate PLT files and export……………..…………3-24
3-2 Editing Drawings………………………………………..……………3-25
Dot editing…….………………………….…………..……………3-25
Fill settings of vector graphics…………………………………...3-27
Bitmap settings…….…………………..……………….…………3-30
Arrangement of graphics……………………………....…………3-31
Object properties…….……………………………………………3-39
Drawing layer application………………………...………………3-42
Object list………………………………………..…………………3-44

Chapter Four: Marking Control

4-1 Common Mark……………………….……………….….…..………4-2


Mark menu………………………….………….….…….…………4-2
Normal mark………………………………….……...….…………4-2
Mark preview…………………………………………...………….4-4
Red light preview...............................................................…...4-4
Fast mark.................................................................................4-4
Introduction to feature list……………….………………..………4-5
4-2 Multi-document Mark……………………………….…….….………4-7
Introduction to multi-document mark……………………….…...4-7
Multi-document mark……………………………….…..…………4-7
Examples of application.............................................………....4-9
IO multi-document mark…………………………………………..4-9
4-3 Offline Mark…………..………………....……………………….……4-11
Introduction to offline mark…….…………….….….……………4-11
Offline mark of single-document………………...………………4-11
Offline mark of multi-document…….……….….......……………4-12
4-4 Rotation mark on circumference……….……….………………… 4-14
Introduction….………………………………………………….…4-14
Motion setup………………………………………………….…...4-14
Motion control mode…….……..…………………………………4-16
Marking type…….…………….…..………………………………4-17
Marking control…….……….………..……………………………4-18
Data preprocessing……………………………………………….4-19
Rotation mark………………..….…………………………………4-19
Dividing rule generator……….…………………..………………4-21
Connect the EMCC3200 with motor driver…………………...4-24

Chapter Five: Parameter Setting

5-1 Marking Parameters…….……………………….……………………5-2


Definitions and functions of marking parameters………………5-2
Saving and enabling marking parameters...........................…...5-8
5-2 System Parameter setting………………….…...……………………5-8
Interface for setting system parameters………………………5-9
Definitions and functions of system parameters……………..…5-8
Touch setting.....................................................................…...5-11
Signal setting………………………………………………………5-11
Import and export of system parameters…………….…………5-12
Gray setting………………………………………………………..5-13
Adjust M value...................................................................…...5-14
Edit user-defined font……………………………………………..5-16
5-3 Calibration Settings……………………..……………………...……5-18
Introduction to calibration setting…………..……………………5-18
Calibration setting method…………………………………….....5-18

Chapter Six: Overall Debugging

6-1 Hardware setting………………………………………………………6-2


6-2 Q-driver setting…..………………………………...……….…………6-4
6-3 Software setting...………………………..……………………………6-5
6-4 Experience summary……………….……………………………….6-10

Chapter Seven: Other Operations

7-1 Key Binding…….………………………………………………………7-2


Commonly-used shortcut keys……………………………………7-2
Setting of key binding………………………………………………7-2
7-2 Access Management…………………………….……………………7-4
Right management…………………………………………………7-4
User switching………………….……….…………………..………7-4
7-3 Fault Check…..………………………………………………..………7-6
Connection of control card………………….……………..………7-6
Laser fault and safety door alarm………….……………..………7-6
7-4 Software Encryption…………………………………………….….…7-8
Introduction to software encryption……...……………..…………7-8
7-5 Multi-card control……..………………………...……………………7-11
Enablement.…………..………...…………………………………7-11
Switch during running………………...………………………7-12
Rename the control card……....…………………………………7-12

Chapter Eight: 3D Operation

8-1 3D Modeling.………………………………………..………...………8-2
Introduction to modeling…………………...………………………8-2
User-defined model………………………………………………..8-2
STL file model………………………………………………….…...8-9
Composite model…………………………………………….…...8-10
8-2 Model adjustment……………………………………………..………8-12
Offset rotation…………………………..………………….………8-12
Modification……………………..…………………………………8-14
8-3 Data generation…………………………………..…………….……8-15
Conversion of 2D data………….…..………………………….…8-15
Import NC file data…………………….…….………………….…8-18
Modify coordinate………………………………….….…..………8-19
8-4 Auxiliary edit….……………………………………………..…………8-21
Adjustment of visual angle.................................................…...8-21
Model switch………….…………………...………………………8-21
Data switch……………………………………………………...…8-21
Undo / Redo….…………………....………………………………8-21
8-5 File management..…………………………..………………………8-22
HS / HD file…………………..……………………………………8-22
8-6 Marking operation.…………………………..………………………8-23
Marking operation……………….………………….….…………8-23
Positioning of the 3D datum plane………………..……….……8-23
Test focus.……………………………..…………………………8-24

Chapter Nine: Appendix

Appendix A AutoCAD2000 Drawing Output………...………...…………9-2


Appendix B AutoCAD R13 Drawing Output……………………….……9-13
Appendix C Secondary development interface…………...……………9-18
Chapter
Overview
1
This chapter describes functions of marking control software
and features of laser marking.

1-1 Introduction to Marking Software………………………1-2


1-2 Introduction to Laser Marking………………..…………1-3

HAN’S LASER MARKING SOFTWARE 6.0 1-1


1 -1 Introduction to
Marking Software
This section describes functions of marking software.

Relationship between Marking Software and Computer

It is no exaggeration to say that: “If there are no computers, there can be no laser markers.”
The computer is responsible for making and editing marking files (including the image capture when
image scanners or other image capture devices are equipped), controlling the movement of
galvanometer to scan the contents of marking file on the surface of workpiece by laser, controlling the
modulation frequency of acousto-optic Q switch, controlling the speed of marking and so on.
The computer control system of a laser marker includes a computer, an interface board dedicated for
computer marking and the marking software.

Relationship between Marking Software and Overall Laser Marker

The special interface board plays the role in transforming the digital signals sent by the computer into
analog signals or directly sending out the digital signals of computer, thereby driving X and Y
galvanometers to control the movement of laser beam in the space. It can produce the synchronous
Q switch modulated signals, thereby producing pulsed laser, so that the contents of marking graphics
can be etched accurately and completely on the surface of processing objects.
Marking control software is the core of computer control system. There are many laser marker
manufacturers worldwide and they manufacture a wide variety of laser markers. However, these
markers are almost alike in their hardware configuration; what mainly differentiates them is the
marking software. Marking software is the technical core of manufacturers and decides performances
of laser markers.

1-2 HAN’S LASER MARKING SOFTWARE 6.0


1-2 Introduction to
Laser Marking

2
This section introduces principle, characteristics and classification of laser marking.

Characteristics of Laser Marking

According to the material to be processed, select suitable lasers and laser power or power density.
Most metal or non-metal materials can be processed by laser.
Laser is a non-mechanical “tool” for processing, producing no mechanical extrusion or mechanical
stress to the material, and the user doesn’t have to worry the problem of wear that usually occurs to
the conventional mechanical tooling; in addition, laser processing does not cause environmental
pollution. Laser can perform processing in the air or in certain protective gases; and it doesn’t produce
X-rays, and won’t be affected by the interference of electric and magnetic fields. Laser can process,
through transparent materials, the internal parts and components, and the consumption of materials is
very small. Laser processing causes no thermal deformation; in addition, with the reflection of prism
or reflector, laser can also perform processing on internal surfaces or inclined surfaces of parts.
It is easy to operate, and easy to achieve automated processing by combining CNC technology, and
also can be used to make high-speed and high-efficiency processing of parts in the production line as
a part of flexible machining system. It has good quality of processing and can make the fine
processing with precision worktable.

Unique Advantages of Laser Marking

1. It can mark bar codes, serial number characters, graphics, images, etc.
2. It won’t fade away naturally due to environmental reasons (such as dampness, acid and alkaline
atmosphere), but keep permanently, and can’t be faked easily.
3. Good quality of marking – it belongs to non-contact processing without damage of products.
4. High efficiency – it is easy to carry out automatic control by the computer to achieve automation; it
does not require halt or heating cure of the machine during processing; it can mark one or a group of
characters and patterns at one time; and even can mark several parts simultaneously
5. Low cost of processing – although it needs the higher one-time investment of equipment, after the
continuous and large numbers of processing, the cost of each part will be very low ultimately, so as to
create high returns.
Because of the above merits, it has strong anti-falsification, especially the color marking can have
different shades of color. Generally, when metal materials are marked, due to the ablated lines with
different depths and thickness, the color and the reflection rate are different from the original, resulting
in contrast effects; and for glass and plastic products, laser marking can produce contrast and matte
effects.

Classification of Laser Marking

HAN’S LASER MARKING SOFTWARE 6.0 1-3


Laser marking is divided into three categories: mask marking, dot matrix marking and galvanometer
linear scanning marking.
Mask marking: it doesn’t require a whole system and can make a marking device by itself to complete
the processing for reducing cost; it has high processing efficiency, and can mark a group of characters,
codes or records with a pulse, and can make processing of more than 1000 parts (semi-finished
products or finished products and packaging bags) at the fastest speed (up to 30 pcs /s), and also up
to 3pc/s at the lowest speed. Its disadvantage is to need the mask (each kind of parts require a mask),
and it can’t modify the characters or patterns on the mask immediately with the change of products
(that is, poor flexibility).
Dot matrix marking: normally, seven points are required for the vertical stroke, and five points are
required for the horizontal stroke, so as to form a 7×5 dot matrix.
Galvanometer linear scanning marking: Its area can vary with the scope from 50mm×50mm to
300mm×300mm, and can mark a variety of text characters, graphics and images, and can mark for a
few of small parts simultaneously, and also mark a variety of texts and graphics for a part. It changes
flexibly and conveniently to mark the complex graphics and images, but its speed is lower than that of
mask marking.

1-4 HAN’S LASER MARKING SOFTWARE 6.0


Chapter
Preparation before Use
2
This chapter gives installation instructions and describes
interfaces of the marking software.

2-1 Installation Requirements……………………….2-2


2-2 Installation Procedures……………………….....2-3
2-3 Operation Interfaces……………………………..2-11
2-4 Menus and Toolbar……….………………..…….2-12

HAN’S LASER MARKING SOFTWARE 6.0 2-1


2 -1 Installation
Requirements
This section introduces installation requirements of HAN’S LASER MARKING
SOFTWARE 6.0 and the preparatory work needed before installation.

Installation Environment Requirements

Before installing this software, please check to ensure your computer satisfy the following minimum
requirements on hardware:

Operating system:
Windows2000/Windows XP/Windows 7(32 Bit)
Minimum configuration:
CPU: Celeron, greater than 1G;

Memory: 512M memory is the minimum requirement. 4G or greater memory is recommended;


Graphics card:If need to use the 3D function, independent graphics card with powerful performance
is required to process the graphics.

Hard disk: a minimum available space of 200M is required. It is recommended to reserve more
available space.

Preparation before Installation

If you have installed antivirus software in your computer and the antivirus software is already enabled,
please properly set the antivirus software so that installation of new software is allowed.
If you have installed an earlier version of this software in your computer, please uninstall the original
version before installing this new version.

To ensure the installation process go rapidly and smoothly, it is recommended to close all the other
Windows programs before installing this software.

2-2 HAN’S LASER MARKING SOFTWARE


2 -2 Installation
Procedures

This section introduces the installation procedures of HAN’S LASER MARKING


SOFTWARE 6.0.

Installation Process

Double-click or right-click to open the installation package, and the following dialog box is displayed:

Choose the desired language, click <OK>;

Click <Next>;

HAN’S LASER MARKING SOFTWARE 6.0 2-3


Click <I accept the agreement> then click <Next>;

Input the installing password 000000QQQQQQ, pay attention to the capitalization;

Click <Next>;

2-4 HAN’S LASER MARKING SOFTWARE 6.0


Select the destination location, click <Next>;

Click <Next>;

Click <Next>; system starts to copy the file;

HAN’S LASER MARKING SOFTWARE 6.0 2-5


After completing the copy, an interface of “Install Driver” will pop up as follow;

Choose “Install Dog Driver” and “Install Emcc Driver”, and then click <OK>;
After completing the installation of driver, enter into the laser parameter setting wizard;

First select the laser-type then click <Next>;

2-6 HAN’S LASER MARKING SOFTWARE 6.0


For different laser-types, the setting wizard may be different, please refer to the hardware manual to
select and set related options.
After completing the setting, click <Next>;

The last is the setting of control model. For the users who already get used to the previous product,
the Tradition Model is preferred; if the machine configuration is excellent, the Handy Model will bring
you a brand-new experience.

If choose the Handy Model, calibration of M value is required after completing the
Note calibration of BOX after starting up the machine (Hotkey is available in software
setting menu). If choose the tradition Model, only calibration of Box is required.
For the calibration method of M value please refer to Chapter Five for details.

After completing the setting of laser parameter, it requires to install VS2008 redistribution patcher as
follow:

HAN’S LASER MARKING SOFTWARE 6.0 2-7


Click<Yes>, after completing the installation of redistribution package, an interface as follow will pop
up:

Click <Finish> and the software installation is completed.

Installation of EMCC Card Driver

After the EMCC card is connected, the interface of “Found New Hardware” as follow will pop up:

Choose “No, not this time”, and then click <Next>;

2-8 HAN’S LASER MARKING SOFTWARE 6.0


Choose “Install the software automatically (Recommended)”, and then click <Next>;

Choose “CYUSB.inf”, and then click <Next>;

Click “Continue. Anyway”;

If the above dialog box is displayed, click <Browse>;

HAN’S LASER MARKING SOFTWARE 6.0 2-9


Choose “cyusb.sys” from the installation path of “Drivers\Emcc”, the default path is “C:\Program
Files\Han's Laser Marking SoftwareV6_0\Drivers\Emcc”;

Click <OK>;

2-10 HAN’S LASER MARKING SOFTWARE 6.0


2 -3 Operation
Interfaces

This section introduces operation interfaces of HAN’S LASER MARKING


SOFTWARE 6.0.

User Interfaces

After HAN’S LASER MARKING SOFTWARE 6.0 is started, the following interface is displayed:
Title bar
Menu bar

Toolbar
Drawing property
setup

Object list
Drawing area

Drawing layer
selection

Marking
property
setup

Marking parameters

Status bar

Compared with the old version, the main interface just has slight difference, still continuing the
traditional arrangement style, but the function has been expanded and information such as marking
time, motor position, limit status and current user have been added. Optimization of the type-setting
enables the user to use it faster and more convenient.

HAN’S LASER MARKING SOFTWARE 6.0 2-11


2 -4 Menus and Toolbar

This section gives an introduction to menus and toolbar of HAN’S LASER


MARKING SOFTWARE 6.0.

Title Bar

The title bar of HAN’S LASER MARKING SOFTWARE 6.0 is located at the top of the window,
showing the name of the currently used file. Drag the title bar, and you can move the window to a
desired position on the screen. The icons at the right end of the title bar are used to minimize (to
minimize the window into an icon at the bottom of the screen), maximize (to maximize the window
to full screen) and close the window respectively.
If it is not maximized, the drawing window also has a title bar. The functions of this title bar are the
same as those of the title bar of the HAN’S LASER MARKING SOFTWARE6.0 window. You can
use the title bar to move, maximize, minimize or close a drawing window. If the drawing window is
maximized, its title bar is displayed on the HAN’S LASER MARKING SOFTWARE 6.0 title bar.

Menu Bar

The menu bar is also at the upper part of the window, just below the title bar. On the menu bar, click
a menu name, and a pull-down menu will be displayed, showing commands of the menu.

HAN'S LASER MARKING SOFTWARE 6.0 includes the following menus::


File: to provide commands for operating files.
Edit: to provide edit control functions.
View: to provide display commands.
Draw: to provide drawing tool commands.
Arrange: to provide commands to transform or group drawings.
Set: to provide hardware configuration commands.
Mark: to provide marking commands.
Window: to provide display control commands of the window.
Help: to provide help commands of HAN’S LASER MARKING SOFTWARE 6.0.

File

The File menu provides the following commands


Create: to create a new file.
Open: to open an existing file.
Open multi-document file. It is used for multi-document marking. Note: This menu is
available only when all single files are closed.
Close: to close the current file.
Save: to save an opened file using its original name.
Save as: to save an opened file using another specified name.

2-12 HAN’S LASER MARKING SOFTWARE 6.0


Print: to print the software files.
Print setup: to set external printer.
Import: to import external graphics files.
Export: to export files in .PLT format.
Exit: to exit the HAN’S LASER MARKING SOFTWARE 6.0 system.

Create

Use this command to create a new file in the HAN’S LASER MARKING SOFTWARE 6.0 system.
You can use the Open command to open an existing file.
Shortcut

Toolbar button:
Shortcut key operation: CTRL+N

Open

Use this command to open an existing file. You can open multiple files at one time and switch
between the windows of such files. And you can use the Create command to create a new file.

Shortcut

Toolbar button:
Shortcut key operation: CTRL+O

Open multi-document file

This command is for multi-document marking. The extension name of multi-document file is MUL.

Note This menu is valid only when all single files are closed.

Save

Use this command to save an active file to the current file name and directory. If it is the first time to
save a file, the HAN’S LASER MARKING SOFTWARE 6.0 system displays a dialog box for you to
name the file. Before saving a file, if you want to change its name and directory, please click the
Save as command, and the files will be saved in the name of *.hs or *.hd (3D document).
Shortcut

Toolbar button:
Shortcut key operation: CTRL+S

Note Note: this command is available only when at least one file is opened.

HAN’S LASER MARKING SOFTWARE 6.0 2-13


Close

Use this command to close the current file. Before closing a file, it is recommended to save it first. If
you close a file without saving it, a dialog box will pop up to prompt whether you want to save the
file. If you exit the HAN’S LASER MARKING SOFTWARE 6.0 without saving a file, all changes to
the file since the latest saving will be lost.
If a file is not named, when you closing it, the HAN’S LASER MARKING SOFTWARE 6.0 system
will display a Save as dialog box to prompt you to name and save the file.
To exit the current file without exiting the HAN’S LASER MARKING SOFTWARE 6.0 system,
please click the Close command. You can also use the corresponding icon on the toolbar as
follows:

Note This command is available only when at least one file is opened.

Save as

Use this command to save and rename active files. The HAN’S LASER MARKING SOFTWARE 6.0
system will display the Save as dialog box for you to rename the file. To save a file using its original
name, use the Save command. To back up a file using a new name, please click the Save as
command.

Note This command is available only when at least one file is opened.

Import

Use this command to import a BMP、 、PLT、 、DXF、 、NC、


、JPG、
、PNG file. Click this command, and a
dialog box will be displayed for you to choose file.
For details, please see section one of Chapter 3.
Shortcut

Toolbar button::

Export

Use this command to export marking files in .PLT format so as to modify the marking drawings.

Exit

Use this command to end the operation of theHAN’S LASER MARKING SOFTWARE6.0 system.
You can also use the close command on the control menu of the application program to exit it. The
system will prompt you to save your changes (as shown in the following figure).

2-14 HAN’S LASER MARKING SOFTWARE 6.0


Shortcut
Mouse operation: double-click the corresponding button on control menu of application program.

Shortcut key operation: ALT+F4

Edit

The Edit menu provides the following commands:


Undo: to cancel the previous operation.
Redo: to restore the operation that was just cancelled by Undo.
Cut: to delete data/object from a file and save to the clipboard.
Copy: to copy data/object from a file and save to the clipboard.
Paste: to paste the data/object on clipboard to a file.
Delete: to delete a selected object.
Select all: to select all objects in the working area.
Transformed into curve: to transform into the curve of point information.
Filter Point: to filter the points, the distance of which between the adjacent points is in the
accuracy range, in order to enhance the marking efficiency of the software.
Option: to set parameters including accuracy of filter points, step size of dot movement, fine
adjustment, pick-up accuracy, undo/redo levels, breakpoint accuracy, scaled accuracy,
accuracy of chamfer and the number of layers

Undo

If you want to cancel the changes you have made to a file, use this command.
Within the undo level, you can use the Undo command to cancel the previous operation. The
command varies with the previous operation. If the previous operation cannot be cancelled, the
command Undo becomes gray and is unavailable.

HAN’S LASER MARKING SOFTWARE 6.0 2-15


For example:
Providing that the undo/redo level is set to 3 (the level can be set in Option of the Edit menu) and
the following operations are made:
1. Select the “ellipse” tool and draw an ellipse in working area.
2. Choose the “pick” tool to move the ellipse.
3. Drag to change the ellipse.
4. Open the rotation dialog box to rotate the ellipse.
In this case, you can use the Undo command to revert the ellipse to its original state:
1. Undo rotation.
2. Undo dragging.
3. Undo movement.
Since the undo/redo level is 3, only three steps of operations can be restored, and the operation of
drawing the ellipse cannot be cancelled.
Shortcut
Key operation: CTRL+Z
Related help
Redo
Option

Redo

If you want to restore an operation after undoing it, use this command
Within the redo level, you can use the Redo command to restore the operation that has been
undone. The command varies with the previous operation. If the previous operation cannot be
redone, the command Redo becomes gray and is unavailable.
For example:
Providing that the undo/redo level is set to 3 (the level can be set in Option of the Edit menu) and
the following operations are made:
1. Select the “ellipse” tool and draw an ellipse in working area.
2. Choose the “pick” tool to move the ellipse.
3. Drag to change the ellipse.
4. Open the rotation dialog box to rotate the ellipse.
In this case, you can use the Undo command to revert the ellipse to its original state:
1. Undo rotation.
2. Undo dragging.
3. Undo movement.
And now, you can use the Redo command to restore operations that have been undone:
1. Redo movement.
2. Redo dragging.
3. Redo rotation.
Shortcut
Key operation: CTRL+Y
Related help
Undo

Note Undo/Redo operation also can be applied to 3D model edit.

2-16 HAN’S LASER MARKING SOFTWARE 6.0


Cut

This command is used to delete a selected object from a file or view. If no object is selected, this
command is unavailable. The deleted object is pasted onto clipboard and it replaces the original
content on clipboard.

If you want to move a selected object from a file to another file, use the Cut command to cut the
object first, and then paste it to another file.
Shortcut

Toolbar button:
Shortcut key operation: CTRL+X
Related help
Copy
Paste

Copy

This command is used to copy a selected object to clipboard. If no object is selected, this command
is unavailable. The copied object replaces the original content on clipboard.
If you want to transfer a selected object from the current file to another file without deleting it from
the current file, use the Copy command to copy the object first, and then paste it to another file. To
create two same objects in one file, you can also use this command.
Shortcut

Toolbar button:
Shortcut key operation: CTRL+C
Related help
Cut
Paste

Paste

This command is used to paste the content on clipboard to the point where the mouse cursor is
located. If the clipboard is empty, this command is unavailable. In this case, you need to use the cut
or copy command to paste some contents to clipboard.
Shortcut

Toolbar button:
Shortcut key operation: CTRL+V
Related help
Cut
Copy

HAN’S LASER MARKING SOFTWARE 6.0 2-17


Delete

This command is used to delete the currently-selected objects. If no object is selected, this
command is unavailable.
Shortcut
Key operation: [Del]

Select all

This command is used to select all objects in working area.


Shortcut
Key operation: CTRL+A

Option

Use this command to set the accuracy of filter points, step size of dot movement, fine adjustment,
pick-up accuracy, undo/redo level, breakpoint accuracy, scaled accuracy, accuracy of chamfer and
the number of layers(as shown below).

For details, see section two of Chapter 3.

View

The View menu provides the following commands:


Toolbar: to display/hide the toolbar.
Zoom: to zoom in/out the view.
Status bar: to display/hide the status bar.

Toolbar

2-18 HAN’S LASER MARKING SOFTWARE 6.0


Common: when it is selected, the common shortcut keys will be shown in the interface of software,
such as import and export in the interface, etc.
Drawing: when it is selected, the drawing shortcut key will be shown in the interface of software, for
example, drawing menu in the interface will be shown.
Change: when it is selected, the changing shortcut key will be shown in the interface of software,
for example, the center, mirror and other options in the interface will be shown.
Scaling: when it is selected, the scaling shortcut key will be shown in the interface of software, for
example, the zoom in, zoom out and other options will be shown.

Zoom

The Zoom menu provides the following commands:


Zoom out: to zoom out an object.
Zoom in: to zoom in an object.
Zoom to all objects: to maximize all objects on screen.
Zoom to selected: to maximize the selected objects on screen.
Zoom to page: to show an entire page on screen.
Non-proportional zoom: to maximize the show of page in the view.

1) Zoom out
This command is used to decrease, with mouse-click point as the center, an object to 2/3 of its
original size. When this command is selected, drawing tools becomes unavailable. Right-click the
mouse and you can exit the zoom-out status.
Shortcut

Toolbar button::

2) Zoom in
This command is used to amplify an object. When this command is selected, drawing tools
becomes unavailable. Right-click the mouse and you can exit the zoom-in status.
Amplify by mouse clicking the center point
With the mouse-click point as center to amplify an object to 1.5 times of its original size.
Amplify by mouse dragging
From the upper-left corner of the area you want to amplify, hold down the left mouse button and
move the mouse cursor to right-lower corner of the area, and then release the left mouse button. As
a result, the selected area is maximized on screen.

HAN’S LASER MARKING SOFTWARE 6.0 2-19


Shortcut

Toolbar button:

The illimitable zoom supported by this version of software can reach the
Note
largest range of 14m and the smallest range of 0.1um.

3) Zoom to all objects


This command is used to maximize all objects on screen. If no object is available, an alarm box
props up, and the operation is invalid.
Shortcut

Toolbar button:

4) Zoom to selected
This command is used to maximize the selected objects on screen. If no object is available, an
alarm box props up, and the operation is invalid.
Shortcut

Toolbar button:

5) Zoom to page
This command is used to maximize the marking area on screen.
Shortcut

Toolbar button:

6) Non-proportional zoom
This command has the same effect with Zoom to page.

Draw

2-20 HAN’S LASER MARKING SOFTWARE 6.0


The Draw menu provides the following commands:
Pick: to select, move or transform an object
Handdraw: to draw a straight line or curve.
Rectangle: to draw a rectangle or square.
Ellipse: to draw a(n) circle or ellipse.
Polygon: to draw a symmetrical polygon.
Grid: to draw a grid.
Text or serial: to edit text and set serial.
Barcode: to make or modify barcodes.
Fill: to fill an object.

Arrange

The Arrange menu provides the following commands:

For details, see section two of Chapter 3.

Set

The Set menu provides the following commands:

HAN’S LASER MARKING SOFTWARE 6.0 2-21


For details, see Chapter 5 Parameter Setting and Chapter 6 Other Operations.

Mark

The Mark menu provides the following commands to achieve marking:

For details, see Chapter 4 Marking Control.

Window

The Window menu provides the following commands. Such commands allow the user to arrange
multiple documents in the window of application program.

New window: to create a new window for viewing same files.


Cascade: to arrange windows in an overlapped mode.
Tile: to arrange windows side by side.
Arrange icons: to arrange all minimized windows in a horizontal row alongside each other.
Window 1, 2,: to switch to specified window. If a is displayed before a window, it
indicates the window is the current window.

2-22 HAN’S LASER MARKING SOFTWARE 6.0


Help

The Help menu provides the following commands:


Help topic: to start the index of help topics.
About: to display version information of the current application program.

Help topic

This command is used to display the home page of help. You can skip from this page to relevant
commands or reference information about using HAN’S LASER MARKING SOFTWARE 6.0.Once
the Help is opened, you can click the content button to go back to the home page whenever you
want.

About

This command is used to display the version information and release date of HAN’S LASER
MARKING SOFTWARE 6.0.

Status Bar

Status bar (as shown in the following figure) shows information of the selected objects or
information of current operation. By default, status bar is displayed at the bottom of the window.

Left area of status bar – prompt area:


1. Description of menu operation is displayed when mouse cursor rests on a menu item.
2. Description of toolbar button operation is displayed if you move the mouse cursor to a toolbar
button and hold down the left mouse button.

HAN’S LASER MARKING SOFTWARE 6.0 2-23


3. Current operation status is displayed when you operate a tool.
Right area of status bar:
From left to right, it is divided into several columns to display the information of last marking time,
current motor position, positive/negative limit status, current user, frame length and mouse position
respectively.
The unit of marking time is ms and motor position is mm/degree, which will transform automatically
according to the axis setting.
If the indicator light of positive/negative limit status is in red, it indicates that the current position is
in limit status, if it is in green, it means normal.
The column of current user displays the user name of current log in.
The column of frame length displays the length of current selected drawing, whose unit is mm.
The column of mouse position displays the current position of mouse, which synchronizes with the
scale plate.

Working area

The customer area of window is called working area. You can perform drawing at any point of the
working area. However, only the drawings in the valid marking area are to be handled by the
marker.

Valid marking area

Valid marking area is the physical area for marking (as shown in the figure). It is displayed, just like
a piece of paper, in the middle of the window. Only drawings in the valid marking area are to be
handled by the marker.

If there are drawings outside the valid marking area, when you push the mark
Note button, a prompt message “Exceeding the marking range” will be displayed and
marking cannot be made.

2-24 HAN’S LASER MARKING SOFTWARE 6.0


Illimitable zoom

Range of illimitable zoom: the maximum range of illimitable zoom is 14m and the minimum range is
0.1um. Scroll arrows are located at two ends of a scroll bar.

To move an object: use the middle button of the mouse to scroll. Hold down the middle button to
move the canvas.

HAN’S LASER MARKING SOFTWARE 6.0 2-25


Chapter 3
Instructions on Drawing

This chapter introduces how to create and edit drawings.

3-1 Creating Drawings…………………………………3-2


3-2 Editing Drawings……………………………...…3-25

HAN’S LASER MARKING SOFTWARE 6.0 3-1


3 -1 Creating Drawings

This section introduces how to draw various graphics using HAN’S LASER
MARKING SOFTWARE 6.0 and the related operation procedures.

Draw

The Draw menu provides the following commands


Click: to select, move or transform an object
Handdraw: to draw a straight line or curve.
Spline: to draw curved lines
Rectangle: to draw a rectangle or square.
Ellipse: to draw a(n) circle or ellipse.
Polygon: to draw a symmetrical polygon
Grid: to draw a grid.
Text or serial: to edit text and set serial.
Barcode: to make or modify barcodes
Delay: to delay between objects
Input: to wait for continuing after inputting signal
Output: to output a signal
Motor position: Reset current motor position
Condition: to execute different commands according to different signals.

3-2 HAN’S LASER MARKING SOFTWARE 6.0


Fill: to fill an object.

Click

This command is used to select, move or transform an object. A selection set shall be defined
before use of the Click command. Selection set is the set of all selected objects, and only one
selection set is allowed in one view. During drawing process, the system automatically empties the
selection set, and adds the latest drawing object to the selection set. If an object is present in the
selection set, a tracker with eight control points will be displayed (as shown in the figure). For size
of control points and state of tracker, please refer to Tracker setup in the pull-down menu of View.

Select an object

Select an object by mouse clicking:


Click any point of the target object, and the system automatically empties the selection set, and
adds the object to the selection set.

Add object to selection set by mouse clicking:


Hold down the Shift key, and click any point of the target object, and then release the Shift key. And
the object is added to selection set.

Select an object by mouse dragging:


Hold down the left mouse button, drag the mouse and a rectangular frame is displayed in the view.
Keep dragging the mouse until the rectangular frame covers the whole target object or multiple
objects, and then release the left mouse button. In this case, the system automatically empties the
selection set and adds the frame-selected objects to the selection set.

Add object to selection set by mouse dragging:


Hold down the Shift key, and drag mouse to select the target objects, and then release the Shift
key. And the objects are added to selection set.

HAN’S LASER MARKING SOFTWARE 6.0 3-3


Remove an object from selection set

Remove object from selection set by mouse clicking:


Hold down the Shift key, click any point of the target object, and then release the Shift key. And the
object is removed from selection set.
Remove object from selection set by mouse dragging:
Hold down the Shift key, and drag mouse to select the target objects, and then release the Shift
key. And the objects are removed from selection set.

Empty selection set

Click the mouse in blank area.

Move an object

1. Move mouse cursor to tracker until the cursor becomes a cross .


2. Hold down the left mouse button.
3. Drag the mouse to move the object to an appropriate position.
4. Release the mouse button.

To move objects more accurately, you can use arrow keys of keyboard (for setting of
Note
movement distance, please refer to Option in the Edit menu).

Horizontal stretching

1. Move mouse cursor to the horizontal stretching control point of tracker until the cursor

becomes a .
2. Hold down the left mouse button.
3. Drag the mouse to stretch the object horizontally to a desired size. The status of stretching is
displayed dynamically.
4. Release the mouse button.

Vertical stretching

1. Move mouse cursor to the vertical stretching control point of tracker until the cursor becomes
a .
2. Hold down the left mouse button.
3. 3 Drag the mouse to stretch the object vertically to a desired size. The status of stretching is
displayed dynamically.

3-4 HAN’S LASER MARKING SOFTWARE 6.0


4. Release the mouse button.

Zoom

1. Move the mouse cursor to the control point at corner of tracker until the cursor becomes

a or .
2. Hold down the left mouse button.
3. Drag the mouse to zoom in/out the object to a desired size. The status of zooming in/out is
dynamically displayed.
4. Release the mouse button.

X mirror

1. Move the mouse cursor to the horizontal stretching control point of tracker until the cursor

becomes a .
2. Hold down the left mouse button.
3. Drag the mouse cursor to get across the relative control point. The status of X mirroring is
dynamically displayed.
4. Release the mouse button at appropriate position.

Y mirror

1. Move the mouse cursor to the horizontal stretching control point of tracker until the cursor

becomes a .
2. Hold down the left mouse button.
3. Drag the mouse cursor to get across the relative control point. The status of Y mirroring is
dynamically displayed.
4. Release the mouse button at appropriate position.

Origin mirror

1. Move mouse cursor to the control point at corner of tracker until the cursor becomes a

or .
2. Hold down the left mouse button.
3. Drag mouse cursor to get across the relative control point. The status of mirroring is
dynamically displayed.
4. Release the mouse button at appropriate position.

Rotating

HAN’S LASER MARKING SOFTWARE 6.0 3-5


1. Double-click the object, move the mouse cursor to the control point at corner of tracker until

the cursor becomes a or .


2. Hold down the left mouse button.
3. Drag mouse cursor to get across the relative control point. The status of rotating is
dynamically displayed.
4. Release the mouse button at appropriate position.

Switching-over

1. Double-click the object, move the mouse cursor to the horizontal or vertical stretching control

point of tracker until the cursor becomes a or .


2. Hold down the left mouse button.
3. Drag mouse cursor to get across the relative control point. The status of switching-over is
dynamically displayed.
4. Release the mouse button at appropriate position.

Shortcut

Toolbar button:
Related help
Option

Handdraw

To draw straight lines or curves on the current drawing layer.

Draw a curve

1. At the beginning point of a curve, hold down the left mouse button.
2. Drag the mouse. The track of curve is dynamically displayed.
3. Release the mouse button at the end point, and you get a curve whose track is the same as
the moving track of mouse.

Draw a straight line

1. At the beginning point of a straight line, left-click the mouse.


2. Drag the mouse. The track of straight line is dynamically displayed.
3. Click the mouse at the end point, and you get a straight line.

Draw a horizontal straight line or a vertical straight line

3-6 HAN’S LASER MARKING SOFTWARE 6.0


1. At the beginning point of a straight line, left-click the mouse.
2. Drag the mouse. The track of straight line is dynamically displayed.
3. Hold down the Ctrl key, and the straight line will keep in horizontal or vertical direction.
4. Click the mouse at the end point, and then release the Ctrl key to end the drawing.

Shortcut

Toolbar button:

Spline

To draw spline on the current drawing layer, the method is the same as drawing curve.

Shortcut

Toolbar button:

Rectangle

To draw rectangles or squares on the current drawing layer.

Set properties of rectangle

Double-click the toolbar button of polygon, and a dialog box as follow is displayed for setting the
properties of polygon:

Draw a rectangle

1. Hold down the left mouse button.


2. Drag the mouse, and the rectangle is dynamically displayed.
3. Release the mouse button at appropriate point, and you get a desired rectangle.

Draw a square

HAN’S LASER MARKING SOFTWARE 6.0 3-7


1. Hold down the left mouse button.
2. Drag the mouse and hold down the Ctrl key, and the square is dynamically displayed.
3. Release the mouse at appropriate point and then the Ctrl key, and you get a desired square.

Shortcut

Toolbar button:

Ellipse

To draw circles or ellipses on the current drawing layer. Double-click the icon of circle, and you can
set the accuracy of circle:

Draw an ellipse

1. Hold down the left mouse button.


2. Drag the mouse, and the ellipse is dynamically displayed.
3. Release the mouse button at appropriate point, and you get a desired ellipse.

Draw a circle

1. Hold down the left mouse button.


2. Drag the mouse and hold down the Ctrl key, and the circle is dynamically displayed.
3. Release the mouse button and then the Ctrl key at appropriate point, and you get a desired
circle.
Shortcut

Toolbar button:

Draw a circle 2

1. Move the mouse cursor to the target position, single-click and release.
2. Move mouse cursor and the circle is dynamically displayed.
3. Single-click the mouse at appropriate point to end the drawing of circle.
Shortcut

Toolbar button:

3-8 HAN’S LASER MARKING SOFTWARE 6.0


Draw a circular arc

1. Move the mouse cursor to the target position, single-click and release.
2. Single-click the mouse cursor at the beginning point of circular arc, then move the mouse
cursor to the end point of the circular arc, the circular arc is dynamically displayed
3. Single-click the mouse at appropriate point to end the drawing of circular arc.

Shortcut

Toolbar button:

Polygon

To draw polygons, star-shape polygons or crossed star-shape polygons on the current layer.

Set properties of polygon

Double-click the toolbar button of polygon, and a dialog box as follow is displayed:

Three kinds of polygons are available (as shown in the following figure): common polygon,
star-shape polygon and crossed star-shape polygon. For common polygon, no definition is to be set.
The definition of star-shape polygon is concavity (relative to center) of the middle point of two
adjacent points. When the definition is set to 100, the line is approximate to a straight line. If the
definition is set to 0, the line is the straight line from vertex to center. For crossed star-shape
polygon, the definition is the number of concave vertexes.

Draw a common polygon, star-shape polygon, crossed star-shape polygon.

1. Hold down the left mouse button.

HAN’S LASER MARKING SOFTWARE 6.0 3-9


2. Drag the mouse, and the polygon is dynamically displayed.
3. Release the mouse button at appropriate point, and you get a desired polygon.

Draw a regular polygon, regular star-shape polygon, regular crossed


star-shape polygon

1. Hold down the left mouse button.


2. Drag the mouse and hold down the Ctrl key, and the regular polygon is dynamically
displayed.
3. Release the mouse button at appropriate point and then the Ctrl key, and you get a desired
regular polygon.
Shortcut

Toolbar button:

Grid

To draw a grid like a graph paper on the current drawing layer.

Set properties of grid

Double-click the toolbar button of grid, and a dialog box is displayed. In the dialog box, you can set
columns and rows of a grid.

Draw a grid

1. Hold down the left mouse button.


2. Drag the mouse, and the grid is dynamically displayed.
3. Release the mouse button at appropriate point, and you get a desired grid.

Draw a regular grid

1. Hold down the left mouse button.

3-10 HAN’S LASER MARKING SOFTWARE 6.0


2. Drag the mouse and hold down the Ctrl key. And the regular grid is dynamically displayed.
3. Release the mouse at appropriate point and then the Ctrl key, and you get a desired regular
grid.
Shortcut

Toolbar button:

Delayer

Click the delayer icon then you can add an object for delayer.
Function of delayer: Delay between several objects, unit: ms
Set properties:

Shortcut

Toolbar button:

Waiting for inputting signal

Click the input signal waiting icon then you can add a waiting object for input signal.
Function of waiting for inputting signal: During marking, waiting for certain group of signal to input to
continue.
Set properties:
First set the valid signal bit, then select the value of signal bit(If selected is high level, otherwise is
low level)

Shortcut

Toolbar button:

HAN’S LASER MARKING SOFTWARE 6.0 3-11


Output signal

Click the output signal icon then you can add a object for output signal.
Function of output signal: During marking output 10 signals.
Set properties:
First set the valid signal bit, then select the value of signal bit(If selected is high level, otherwise is
low level).

Shortcut

Toolbar button:

Motor move

Insert an object for motor moving, you can insert movement at any position during marking.
Set properties:
Choose the axis No., set parameters such as move model, move type, line value and rotate value.
The axis No. determines the move type. For detailed setting please refer to the Part of Rotatory
Marking in the Chapter of Marking.

Shortcut

Toolbar button:

3-12 HAN’S LASER MARKING SOFTWARE 6.0


Reset motor position

Insert an object of reset current motor position, when processing this object during marking, the
motor position will be reset.
Set properties:
In the coordinated system without hardware origin, it is allowed to do the position reset wherever
during marking, for example, if an object moves from A to B, reset the B position, the object moves
from B to C.
In the coordinated system with hardware origin, in order to guarantee the proper
Note running of coordinated system, the system will not allows to reset the motor position
and the software will ignore this object automatically.

Shortcut

Toolbar button:

Condition judgment

Insert an object of condition judgment, when processing this object during marking, software will be
intelligent to do the logic judgment to execute corresponding command, such data is inserted in pair,
the executer is needed to drag to the condition judgment set.
Set properties:
The same as the setting of waiting for inputting signal.
Shortcut

Toolbar button:

The following figure is data graph of the object of condition judgment. The objects between If and
end are conditional executive objects, name only when the set requirements satisfied can execute
corresponding commands, otherwise, skip directly.

HAN’S LASER MARKING SOFTWARE 6.0 3-13


Text or Serial

To create texts in the current drawing layer.

Drawing text

Use the mouse to click the area where you want to input texts or serial numbers, the software will
generate default characters.

The above object’s properties are as shown in below:

The property column is allowed to quick setup of commonly used functions such as text type, font
and character height. If it can not satisfy your requirement, you can click the Advance button to

3-14 HAN’S LASER MARKING SOFTWARE 6.0


enter into the detailed parameter setting interface.
There are three text types for your option: Fix text, serial and time.

Serial

If selected Serial as text type, the interface is as below:

Click the Serial setting to set the properties of serial numbers:

1. Custom
In this mode, the user can input information of serial numbers.
Starting point, End point: during marking, it will begins from the user-defined starting value till to
the end value.

The starting point and end point can be any stated hexademical value and needed not
Note any transfer. For example, if the setting is hexadecimal, you can input 0~9, A~F, if the
setting is decimalism, you only allowed to input the value 0~9.

Preposition: the contents to be added before the user-defined serial numbers.


Postposition: the contents to be added after the user-defined serial numbers.
Step size: the auto-increment or auto-decrement value after each mark.
Interval: the marking times required for step size.
Addends: to set the total length of serial number and the prepositioned characters.

2. Get from files


The user can take out marking data from existing text files. One line of data is marked each time,

HAN’S LASER MARKING SOFTWARE 6.0 3-15


and the data will be marked line by line.

Date

If selected Time as text type, the interface is as below:

%a Abbreviation of week
%A Full name of week
%b Abbreviation of month
%B Full name of month
%c Date and time
%d Date
%H Time in 24-hour format
%I Time in 12-hour format
%j Day of the year
%m Month
%M Minute
%p Sign of morning or afternoon in 12-hour format
%S Second
%U Week of the year. Sunday is the first day of a week
%w Week
%W Week of the year. Monday is the first day of a week
%x Date
%X Time
%y Year without A.D mark.
%Y Year with A.D mark.
%z Full name of time zone.
%Z Abbreviation of time zone.
%% Symbol of percentage
Font
The user can set font of texts, including SHX, TTF fonts and user-defined fronts.

3-16 HAN’S LASER MARKING SOFTWARE 6.0


When the mouse cursor skimming through the front list, the font preview will display on the right
side of related font, see above figure.

Click the Advance on the left side of property setting you can detailedly set more
Note parameters.

Accuracy: text optimization is mainly to improve the accuracy for generating texts, with the highest
accuracy of 500, and the accuracy is optional, which is mainly to improve the marking effect.
Arrangement mode
The user can set the arrangement way of texts.

For example:
Straight-line mode (180 degrees of angle): the effect will be as follows:

Arc mode:(for example, set the starting angle to 0 degrees, radius to 10, and in anticlockwise
direction), and the effect will be as follows:

Modify a text
1. Choose the text to be modified.

HAN’S LASER MARKING SOFTWARE 6.0 3-17


2. Right-click the mouse, and choose “Text setting”.
3. Modify the text.

Shortcut Toolbar button:

Barcode

Choose Draw->Barcode, or click the button at the left part of the working area. Left-click the
mouse in the working area to generate the default barcode, and the following dialog box is
displayed:

The barcode data is composed by three types, they can mix together, setting and text are totally the
same.
Click the Advance button and a dialog box as below for detailed setting barcode parameter will pop
up:

Width ratio: the ratio of wide line and narrow line in the fixed barcode, this value changes with the
size of barcodes.

3-18 HAN’S LASER MARKING SOFTWARE 6.0


Line spacing: the spacing between lines of a barcode.
Height: the vertical length of a barcode.
Angle: to set the displaying angle of barcodes in the software interface.
Better: Check this option, the interior fill line of barcode will change from one-way to two-way,
which is able to improve the marking efficiency of barcode.
Connect: Check this option, the head and the end of the interior fill line of barcode will end-to-end
connect together.
Dot matrix of 2D barcode: Check this option, the fill block of barcode will become fill circle or
single dot.
Point radius: The radius of fill block when the 2D barcode is displayed in dot matrix, if the radius is
smaller than 0.04mm, only mark a single dot, otherwise it will generate a fill circle with designated
radius.
Verify: For some barcode with check bit, check this option can generate check bit.
Single line mark count: Count the marking times of single lines
Narrow line count: Set the min. quantity of narrow lines
Barcode type: choose the desired barcode type from the combo box. PDF417、QR and Data
Matrix are 2D codes, others are 1D codes.
Fixed part: to make settings to the added fixed texts.
Serial: to make settings to the added serial numbers.
Date and time: to make settings to the added data and time.
Also you can make some settings for the text in the Font Setting.
The text will not generate simultaneously when creating the barcode. To create the
Note text, right-click the barcode and select Create barcode text in the popup menu, after
creating the text, the barcode data segment will be locked, and you can not do any
insertion or deletion for data segment except modification.
TTF font
Marking software supports the general standard font in the WINDOWS operating system. Click the
Set button, and the following dialog box is displayed. Users can select standard TTF fonts or font
styles from the dialog box.
It is not recommended to use this method to set font, you can choose the font directly
Note
in the text shortcut.

SHX font
SHX font is the SHX file of AutoCAD. In the standard version of HAN'S LASER Marking System,
SHX font libraries are very few. Users can extend them as needed. Just copy SHX files to the font

HAN’S LASER MARKING SOFTWARE 6.0 3-19


library directory (pfonts is Chinese font library, and efonts is English font library) of installation
directory of HAN'S LASER Marking System.

User-defined font
User-defined font is a set of font internally defined by HANS, you can add or edit the font through
the font editing software sent with the machine.

Note You can run the font editing software through clicking Set -> Edit user-defined font.
Details please refer to Chapter Five.

Font height
It is the height of texts or serial numbers to be marked (in mm).

Width coefficient
For each standard font, its ratio of length and width is fixed. If you want to change the ratio, select
this option to change it. The coefficient is expressed in percentage, and 100 indicating standard
proportion.

Word spacing
The distance (in mm) between two adjacent characters. For the user-defined font, if it is set to 0,
which means using the font internal space, otherwise it is using the current space..

Row spacing
The distance (in mm) between two adjacent rows. If it is set to 0, which means normal spacing.

There are two methods to select an barcode object, frame-select t or click to select it. The so-called
“frame-select” is to select a starting point, hold down the left mouse button to drag out a dotted
rectangle frame, so that the rectangle frame contains the selected object; And the so-called
“click-select” is to click the left mouse button to select the object. For each part of barcode (barcode,
fixed text and serial number), it supports both the two methods.. When selecting a certain part of
the barcode by a frame, other parts of the barcode will also be selected. .

The barcode can be rotated, but after rotating it can not be dragged( only placed
Note horizontally or vertically can be dragged). The new software is allowed to drag when
editing in the red epibolic frame.

Barcode examples

1. PDF417 2D codes
PDF417 is a multi-layer, variable length and continuous two-dimension barcode with high capacity
and the ability of error correction.

3-20 HAN’S LASER MARKING SOFTWARE 6.0


Barcode lines: The symbol of each PDF417 barcode is stacked by multi layers, and the number of
its layers is 3-90. But this kind of barcode has fixed area, so if you increase the value of “Barcode
lines”, the barcode will become intensive and unclear.

2. Data Matrix 2D codes


Data Matrix is a symbol of matrix-type two-dimension barcode. It has two types of ECC000-140 and
ECC200.

Error correction type: The ECC000-140 symbol uses the convolution code for error correction,
providing five levels of error correction, as shown in the following table. The increase of error
correction level is sure to increase the length of bit stream, resulting in increasing the size of Data
Matrix symbol, while ECC200 uses the Reed-Solomon algorithm to calculate the error correction
code words through the generator polynomial.

Level of error correction code Recoverable information(%) Increase of user bit stream

000 No No

050 2.8 33

080 5.5 50

100 12.6 100

140 25 300

Barcode shape:
ECC000-140 only has the odd rows and odd columns. The symbol is a square with the size from
9*9 to 49*49.
ECC200 only has even rows and even columns. Its shape has the square and rectangle, and the
size of square is from 10*10 to 144*144; the size of rectangle is from 8*18 to 16*48. For details, see
the table below:

squares of ECC200

Symbol size (row) Symbol size (column) Size of data area

HAN’S LASER MARKING SOFTWARE 6.0 3-21


10 10 8*8

12 12 10*10

14 14 12*12

16 16 14*14

18 18 16*16

20 20 18*18

22 22 20*20

24 24 22*22

26 26 24*24

32 32 14*14

36 36 16*16

40 40 18*18

44 44 20*20

48 48 22*22

52 52 24*24

64 64 14*14

72 72 16*16

80 80 18*18

88 88 20*20

96 96 22*22

104 104 24*24

120 120 18*18

132 132 20*20

144 144 22*22

rectangles of ECC200:

Symbol size (row) Symbol size (column) Size of data area

8 18 6*16

8 32 6*14

3-22 HAN’S LASER MARKING SOFTWARE 6.0


12 26 10*24

12 36 10*16

16 36 14*16

16 48 14*22

Importing external files

Graphics that can be imported include vector graphics (PLT,DXF) ,bitmaps (BMP, JPG, PNG etc)
and G code(NC).
Choose File-> Import, and the dialog box for importing files is displayed as shown in the following
figure. From the dialog box, you can import files in BMP, PLT or other formats, then single-click
the Open button to import the file to the software.

【Preview】 Preview real-time the current object, convenient for the selection of file.
【Import and center】: Center the imported PLT objects.
【Import and optimize】: Optimize the imported PLT objects. Typically, you need not enable this
option. The following paragraphs show the effect of “Import and optimize”

. The optimization function is not enabled.

Enable the optimization function, the character “A” deformed.


In the HAN’S LASER MARKING SOFTWARE 6.0 system, except making drawings by yourself, you
can also directly import graphics and drawings in other standard formats. For the type of import
objects, you can view it by clicking the pull-down menu of File type from the above dialog box.
Such types are included as PLT files in HP-GL format, DXF files(only support some files), BMP files,
etc. Theses files can be generated through some general processing software, for example, PLT
files and DXF files generated by AutoCAD, PLT files, DXF files and BMP files generated by
CorelDRAW, and BMP files, JPG files, PNG files, ICO files generated by Photoshop.

HAN’S LASER MARKING SOFTWARE 6.0 3-23


Use the above-mentioned software to generate the above files, and then use the import function,
and you can use the files in the HAN’S LASER MARKING SOFTWARE 6.0 system; in addition,
after being imported, the object is kept in proper size and you need not make further adjustment to
it. The imported object is a grouped object, you can use the Ungroup command to split it into
multiple distinct objects.

On the supporting of old version DXF files, the current version of software has
improved a lot, since the DXF file is complex, it is difficult to guarantee all DXF files
Note can be imported correctly, if the DXF file can not be imported, it is recommended to
convert to PLT format.

Shortcut

Toolbar button:

Internally generate PLT files and export

Choose File-> Export PLT, and the dialog box for exporting vector graphics in the document into
PLT files is displayed as shown in the following figure, which facilitates transfer and edit of graphics.

After PLT files are exported, you can use CorelDRAW or other drawing processing software to
modify the files.
[Not export fill]: the filling contents will not be exported when graphics with filled objects are
exported into PLT files.
[Magnify 100X to export]: to magnify the object by 100X when exporting it. It is recommended to
select this option so as to ensure precision of the exported object.

3-24 HAN’S LASER MARKING SOFTWARE 6.0


3 -2 Edit Drawings

This section introduces how to edit graphics/drawings in the HAN’S LASER


MARKING SOFTWARE 6.0 system.

Dot editing

Choose Edit-> Option.

And the system goes to the System Setting dialog box;

HAN’S LASER MARKING SOFTWARE 6.0 3-25


Filter point precision

Shortcut key: Ctrl + F


To set the accuracy of dot object. When dot spacing is less than the set value, dots within the set
value will be filtered out. When dot spacing is greater than the set value, the dots will kept
unchanged.

Point moving step

To set the step size for each movement of dot. The shortcut key is (M). To go to the dot editing
status, press the M key, and the following dialog box is displayed:

Micro moving step

This parameter is used to set the movement distance for each operation when you use arrow keys
of keyboard to move a selected object.

Pick up precision

This parameter is used to set the sensitivity for the mouse to pick up objects.
The greater the value is, the higher the sensitivity is. However, in this case, it’s difficult to
distinguish two overlapped objects.
If the sensitivity is low, it’s difficult to select an object, but easy to distinguish two overlapped
objects.

Undo level

This parameter is used to set level of undo/redo. The greater the value is, the higher the level is.
And as a result, memory consumption becomes greater. The settings take effect when a new file is
opened.

Polygon break precision

Select a point, and click Breakpoint, and as a result, the selected point will break into two points.
This parameter is used to set the distance from the point to the center.

3-26 HAN’S LASER MARKING SOFTWARE 6.0


Round precision

Chamfer operation is to make treatment to sharp corners so that they become smooth, thereby
improving the marking effect of the software. Go the click-select status, and press the shortcut key
V.

Layer count

The maximum layers in the marking interface, and the maximum value is up to 256.

Min. distance for line-joint

If the distance of two adjacent points is shorter than this value(default is 0.0001)when curved lines
joining, they will be jointed automatically.

Continue marking when the protective door closed

False: Disenable. If option of “Pause marking when the protective door open” is checked,
marking will not continue automatically when closing the protective door.
True: Enable. If option of “Pause marking when the protective door open” is checked, marking
will continue automatically when closing the protective door.

Turn off the red-light automatically when marking

False: Disenable. The red-light will not turn off when marking.
True: Enable. Turn off the red-light first, then start marking. For the red-light-indicating IPG laser,
this option must be open.

Red-light preview layer

The layer used red-light preview, the default is the ninth layer.

Fill settings of vector graphics

Initial settings of objects

After selecting a vector graphic in the drawing area, click the tool from the toolbar button,
and the following dialog box will be displayed:

HAN’S LASER MARKING SOFTWARE 6.0 3-27


Definition of parameters
【Enable】Enable fill
【Fill line rotates with the contour】When rotating the graph, the contour line rotates with the
object.
【Equalize distance】To automatically do the fine adjustment of all the equalize distances between
fill lines so as to get equal-distance.
【Distance】To set the distance between fill lines, its unit is mm.
【Angle】To set the angle of fill lines, its unit is degree.
【Type】To set the filling type, now it is support types of one-way, one-way with end-to-end
connected, reciprocating, reciprocating with end-to-end connected.
【Mininal jump】If select the end-to end mode, only the distance between end and end smaller
than this value can the end connect to the end.
【Start offset】The distance between the frame and the starting points that needs not fill.
【End offset】he distance between the frame and the ending points that needs not fill
【Line reduction】Reduction of fill line ends.
【Beamcomp】Size of laser beam.
【Numloops】The scaling loop of scaling fill, only valid for enclosed object.
【Distanceloop】Size of each scaling, only valid for enclosed object
【Delete loop-contour】Delete the new contour generated after reduction or extension.
【Align】Check this option, the laser spot on the fill line will align, but it will cost extra time. Besides,
if the Q frequency is too low the ends may appear saw teeth, which can be improved by increasing
the Q frequency.
==========================================
【Fill count】Cycle times when progression filling.
【Increase distance】When progression filling, if the increase distance between current filling
space and last filling space is 0, it means the two spaces are the same.

3-28 HAN’S LASER MARKING SOFTWARE 6.0


【Increase angle】When progression filling, if the increase angle between current filling angle and
last filingl angle is 0, it means the two angles are the same.
【Remark contour】When progression filling, whether remark the contour after completing the
marking of one set of fill lines.

Note The scaling operation is only valid for enclosed object. The progression fill can
execute more complicated fill.

Fill of a grouped object

1. Draw multiple overlapped objects (e.g. circles and rectangles).


2. Pick these objects (e.g. circles and rectangles).
3. Group all these objects (to group the circles and rectangles into a single object).
4. Fill the objects, and the following filling effect will be generated:

Fill of multiple overlapped objects

1. Draw multiple overlapped objects (e.g. circles and rectangles).


2. Pick these objects (e.g. circles and rectangles).
3. Fill the objects, and the following filling effect will be produced:

Changing settings of fill lines

HAN’S LASER MARKING SOFTWARE 6.0 3-29


1. Pick the fill object you want to change.
2. Choose the Fill command.
3. Change the fill properties.
4. Click OK.

Remove fill lines

1. Pick the fill object you want to change.


2. Choose the Fill command.
3. Change the Line spacing to 0.
4. Click OK.

Move fill lines to other layers

If you want to set the frame and filling content to different layers, you should right-click the mouse in
the range of the selected object, and then select “Layer Settings” in the pull-down menu, or you can
directly use the layer parameters setting of marking parameters in the software interface, and the
corresponding dialog box is as follows:

In option 1, set the layer of frame (the number 0-7; by default, it corresponds to the marking
parameter set of layer 0), and in option 2, set the layer of filling content (the number 0-7; by default,
it corresponds to the marking parameter set of layer 0). After finishing the settings, click the OK
button to exit. And the selected object will change its color according to the selected layer. (To
change the marking parameter set, you need to deselect layer 0 first.)
After setting and selecting the object in marking parameters, the user can directly double-click the
left mouse button on the used layer.
And if you want to change the filled content, you can select [Fill] and then directly double-click the
left mouse button on the layer to be used.

Bitmap settings

Select a bitmap image, and then click the icon from Bitmap setting, and the following dialog
box is displayed:

3-30 HAN’S LASER MARKING SOFTWARE 6.0


Choose Reverse color according to the marking materials. If the material becomes dark
after marking, it’s unnecessary to choose Reverse color; otherwise, choose it.
Select Gray Pic to make 256 grayscale bitmap marking.
Point spacing settings
X-axis: it is usually set according to marking effect. By default, it is set to 0.05mm.
Y-axis: it is usually set to the same value as X-axis. When the requirements on
marking effect are not so high, you can increase this value so as to improve
marking efficiency.
Contrast: to set the contrast of images according to actual marking effect
requirements.
Brightness: to set the brightness of images according to actual marking effect
requirements.
Bitmap has two processing methods: Gray Pic and DiffPic, the contrast of Gray Pic is
excellent, which is suitable for processing high quality pictures, the working principle of
DiffPic is to change the picture visual effect through adjusting the density of points, which is
suitable for the machine that unable to adjust energy quickly, such as IPG.
IPG does not support the Gray Pic processing method; only DiffPic processing method can
process it. Besides, here the setting of signal-point time is invalid; you can only adjust
through the Laser OFF Delay of marking parameter.

The Gray Pic marking is mainly to control the single-point energy to achieve the
Note requirement, while DiffPic marking is mainly to control the density of points to meet
the marking effect requirement.

Relationship between bitmap settings and marking parameters

Marking speed: to adjust marking speed according to dot spacing and Q frequency so as to
prevent Q frequency from exceeding the specified range. Q frequency is automatically
obtained through the “Marking speed/X-axis dot spacing=Q frequency”.
Q frequency: invalid to bitmap images.
Q release time: valid.
Current/Power: invalid to bitmap images.
Laser On delay/Laser OFF delay: usually set to 0 for bitmap marking.

Arrangement of graphics

HAN’S LASER MARKING SOFTWARE 6.0 3-31


The Arrange menu provides the following commands:

Array arrangement: to arrange the selected objects according to certain type.


Aligh: to align the selected objects.
Group: consolidate all the objects included in a selection set into one unit so that they are
handled as one object.
Ungroup: to split a grouped object into multiple distinct objects.
Convert to one object: to select some objects from the set to constitute a grouped object so
that they are handled as one object.
Scatter grouped object: to scatter a grouped object into several single objects, these single
objects do not have relation any more.
Center: to move the selected objects to the center of marking area.
X mirror: to roll the selected objects along X direction.
Y mirror to roll the selected objects along Y direction.
Rotate 90 degrees counter-clockwise: to rotate the selected objects 90 degrees
counter-clockwise.
Rotate 90 degrees clockwise: to rotate the selected objects 90 degrees clockwise.
Manual sort: to manually set the marking order of objects.
Selective sort: when this option is selected, objects are selected automatically, and the
objects selected earlier will be the objects of the first marking.
Quick sort: to quickly sort by simple way, operation is very easy.
Automatic sort: More complicated automatic sorting method with better efficiency.

Array arrangement

This command is used to array the objects in the selection set. Choose this command, and the
following dialog box is displayed:

3-32 HAN’S LASER MARKING SOFTWARE 6.0


Standard mode
According to standard format, define the vertical priority, horizontal priority, row mode, S mode, row
number, row spacing, column number and column spacing. The user can input a negative value in
the edit box of row spacing and column spacing, and then the objects will be arranged in the
opposite direction. And when clicking Apply, the array of objects will be displayed.

User-defined mode
Click the “Refresh from the screen” button, and the coordinates of all the objects on the screen will
be recorded.
Add: Add the coordinates values into the list box.
Edit: Select a coordinate value, click this button and then you can modify its value.
Delete: Select a coordinate value, click this button and then you can delete its value.
Offset
To set the location of certain objects.
Template
When selecting this command, you can save the templates of array or import array modes.
Save style
Select this command, and the dialog box of “Save style” pops up. You can save the location
parameters set at this time for the next use.
Load style
This command is used to load the position information saved through the Save style command.
Serial auto-increment
If the selected objects have serial numbers, you can use this command to have the arrayed objects
increase by one each time.
Red light
Red light positioning of objects.

Mark
Marking of the arrayed objects.

HAN’S LASER MARKING SOFTWARE 6.0 3-33


Shortcut

Toolbar button:

Application examples

Example 1 Array of common text


1. Draw an object in the drawing area and then center it.
2. Select the Array arrangement command, and pop up the dialog box of the above figure. Select
the standard way, and input the data as shown in the figure. Select the “Save style…” command,
pop up the Save dialog box, enter the file name E1, click OK, and go back to the “Array
arrangement” dialog box to confirm. You can see the objects in the drawing area has finished the
array.
3. Adjust these objects appropriately to meet the error requirements of JIG and other tools. Click a
blank area, and when no object is selected in drawing area, select the Array and Arrangement
command, and pop up the dialog box of the above figure. Select the user-defined way, press
“Refresh From the Screen” button, and the coordinates of all the objects in drawing area are listed
in the list box. Select the “Save Style…” command, pop up the Save dialog box, enter the file name
E2, click the Confirm, and go back to the “Array and Arrangement” dialog box to confirm.
4. Create a new document, draw a target object in the drawing area, select the Array and
Arrangement command, and pop up the dialog box of the above figure. Select the “Load style…”
command, and respectively select the file names used just now, looking at the array effect
displayed on the screen.

Example 2 Array of serial number text


1. Draw a serial number text in the drawing area, and make an array according to the steps of
Example 1.
2. Compare the differences when selecting and not selecting the Auto-increment of serial number. If
this option is not selected, the contents of array objects are the same. And if this option is selected,
the array objects are increased by the set step size.
3. Go back to the drawing screen, and change the location, size and rotation of serial number text
at will, and make a trial marking, seeing that the properties of serial number are unchanged.

Align

This command is used to set the objects in the selection with equal width, equal height, equal size,
vertical alignment, horizontal alignment, horizontal equal spacing and vertical equal spacing.
Shortcut

Toolbar button:

When selecting an object from the selection set, you can use [Shift] + [left mouse
Note button] to select the base object.

Group, Ungroup and object combine

3-34 HAN’S LASER MARKING SOFTWARE 6.0


1. Group
This command is used to consolidate all the objects included in a selection set into one unit so that
they are handled as one object.
Shortcut

Toolbar button:
Shortcut key operation: CTRL+G
2. Ungroup
This command is used to split a grouped object into multiple single objects.
Shortcut

Toolbar button:
Shortcut key operation: CTRL+U
3. Combine object
This command is used to combine all the objects included in a selection set into one combined
object .If ungrouped the graph after processing, you can get single lines.
Shortcut

Toolbar button:
Shortcut key operation: ALT+U

4. Convert to one object


This command is used to convert all the objects included in a selection set to one grouped object so
that they are handled as one object, the converted objects are able to keep their original layer
parameter properties.
Shortcut

Toolbar button:
Shortcut key operation:

5. Scatter grouped object


This command is used to scatter one group into several objects and these objects do not have
relation any more.
Shortcut

Toolbar button:
Shortcut key operation:

Center

This command is used to move the selected objects to the center of marking area.

HAN’S LASER MARKING SOFTWARE 6.0 3-35


Shortcut

Toolbar button:
Shortcut key operation: CTRL+M

Mirror

1. X mirror
This command is used to roll the selected objects along X direction.
Shortcut

Toolbar button:
2. Y mirror
This command is used to roll the selected objects along Y direction.
Shortcut

Toolbar button:

Merge line

This command is used to merge the internal adjacent lines of selected object.
Function: If an object is composed by many independent end-to-end connected lines, when
marking it the laser will keep opening the Close and Delay which will affect the marking effect and
time. Through this command all the lines can be merged to one line segment. The effect of this
command is excellent for the imported graphs in PLT and DXF format.
Shortcut

Toolbar button:

Sort

Object sort is divided into manual sort, automatic sort, sort by leader line and quick sort.
1. Manual sort
In this mode, it is to sort objects by clicking them. The sequence of objects depends on the
sequence in which they are clicked. Manual sort can also exchange the sequence of objects and
set the order in which objects are dynamically inserted.

3-36 HAN’S LASER MARKING SOFTWARE 6.0


2. Sort by leader line
Select the object to be sorted, click the trend sorting icon, then use a straight line to connect all the
objects on the interface, double-click the mouse button when completed and all the objects will be
arranged in order and in the trend of the straight line.

3. Quick sort
The quick sort is a kind of sorting method specially designed for the imported graphs in PLT and
DXF format. Since it is processing based on the line-level, after quick sorting the object will be
locked and not allowed to do any operation on it.
Click the Quick sort icon again to recover the original data and the object will unlock automatically.
See following figures:

: Icon before quick sort

: Icon after quick sort

HAN’S LASER MARKING SOFTWARE 6.0 3-37


The object is unlocked

If the object is locked, the frame of datum point becomes red.

Two path-optimization types are available for quick sort:

If check the option of stroke first, the marking will proceed according to the optimal path of motion,
in this case, it may shift layer frequently.

If check the option of layer first, the marking will preferentially proceed marking according to the
layer order, and adopts the optimal path to mark the object in each layer, then switch to next layer
and proceed the sorting marking for the objects on that layer.

It is recommended to select according to the process requirements. For the sensitive


Note material, type of layer first is preferred.

4. Automatic sort
When the number of objects is more than six, and if you want the most efficient path-optimization,
automatic sort is your best choice. The automatic sort takes longer time, but the optimizing
efficiency is high. The sorting procedure will be real-time displayed (see below figure) and you can
interrupt whenever you want

3-38 HAN’S LASER MARKING SOFTWARE 6.0


This kind of sort requires manual intervention to stop, if the variation of eff value is very
Note
small or it keeps still, it indicates that the sorting efficiency already reached peak value
and you can double-click the sorting object to stop sorting.

Object properties

The Transform menu provides the following commands::


Position: to move an object.
Size: to change the size of an object.
Zoom: to zoom in/out an object.
Rotate: to rotate an object.
Shear to shear an object
Scale to scale an object

The above six commands are included in the Object property dialog box. There is a reference
button of control point at the lower part of each property page, used to select datum point of change
operations. By default, the datum point is the central control point of an object. And the eight
buttons around correspond to eight control points of tracker.

HAN’S LASER MARKING SOFTWARE 6.0 3-39


Position

This command is used to move an object.


To move an object.
1. Select an object.
2. On the Object property interface, enter values of X and Y to change the coordinate
position of object. To center the object, check the checkbox of Center.
3. Select control points to determine datum point.
4. Click Apply to move the object.
To move an object and generate a copy at the same time.
1. Select an object.
2. As shown in the above figure, enter values of X and Y to change coordinate position of
object. To center the object, check the checkbox of Center.
3. Select control points to determine datum point.
4. Click Apply to copy to move the object, and at the same time, a copy will be generated
at the original position where the object is located.

Size

This command is used to change the size of an object.


To change the size of an object.
1. Select an object.
2. Enter values of X and Y to change the horizontal and vertical sizes of object. To limit
vertical-horizontal proportion, check the checkbox of In proportion. In this case, when
the value of X is changed, the value of Y changes automatically to keep the proportion
unchanged, and vice versa.
3. Select control points to determine datum point.
4. Click Apply to change size of the object.
To change the size of an object and generate a copy at the same time.
1. Select an object.
2. Enter values of X and Y to change the horizontal and vertical sizes of object. To limit
vertical-horizontal proportion, check the checkbox of In proportion. In this case, when
the value of X is changed, the value of Y changes automatically to keep the proportion
unchanged, and vice versa.
3. Select control points to determine datum point.
4. Click Apply to copy to change size of the object, and at the same time, a copy will be
generated at the original position where the object is located.

Zoom

This command is used to zoom in/out an object.


To zoom in/out an object.
1. Select an object.
2. Enter a new vertical-horizontal proportion value. To limit vertical-horizontal proportion,
check the checkbox of In proportion. In this case, when the value of X is changed, the

3-40 HAN’S LASER MARKING SOFTWARE 6.0


value of Y changes automatically to keep the proportion unchanged, and vice versa.
3. Select control points to determine datum point.
4. Click Apply to zoom in/out the object.
To zoom in/out an object and generate a copy at the same time.
1. Select an object.
2. Enter a new vertical-horizontal proportion value. To limit vertical-horizontal proportion,
check the checkbox of In proportion. In this case, when the value of X is changed, the
value of Y changes automatically to keep the proportion unchanged, and vice versa.
3. Select control points to determine datum point.
4. Click Apply to copy to zoom in/out the object, and at the same time, a copy will be
generated at the original position where the object is located.

Rotate

This command is used to rotate an object.


To rotate an object.
1. Select an object.
2. Enter the rotation angle.
3. Select control points or directly enter the coordinates of central point so as to determine
datum point.
4. Click Apply to rotate the object.
To rotate an object and generate a copy at the same time.
1. Select an object.
2. Enter the rotation angle.
3. Select control points or directly enter the coordinates of central point so as to determine
datum point.
4. Click Apply to copy to rotate the object, and at the same time, a copy will be generated
at the original position where the object is located.

Shear

This command is used to shear an object


To shear an object.
1. Select an object.
2. Enter the shearing angle.
3. Select control points or directly enter the coordinates of central point so as to determine
datum point.
4. Click Apply to shear the object according to the set value.
To shear an object and generate a copy at the same time.
1. Select an object.
2. Enter the shearing angle.
3. Select control points or directly enter the coordinates of central point so as to determine
datum point.
4. Click Apply to copy to shear the object, and at the same time, a copy will be generated
at the original position where the object is located

HAN’S LASER MARKING SOFTWARE 6.0 3-41


Scale

This is a newly added function. Compared to previous versions, functions of [Optimize], illimitable
zoom, and zoom to page are added. Detailed procedure is as follows: select an object and input the
distance for scale, and click OK. If you want to delete the original drawing, select the button [Delete
original object].

Optimization enabled

Optimization disenabled
If optimization is enabled, no deformation occurs to the triangle within the object A.

【 Fixed aspect ratio】if it is in locked state, it means that the fixed aspect ratio function is
enabled; Otherwise, the function is not enabled.

Drawing layer application

3-42 HAN’S LASER MARKING SOFTWARE 6.0


The layer information at the property area is used to add/delete layers, set color of layers and so on.
Layer function is a newly added function for the user to flexibly control graphics in the marking area.
You can control different objects in the drawing area and use different parameters to make marking.
The following operations are included:

1. Set the current layer


Single-click the layer you want to set and then you can do any setting for the current layer.

2. Modify color
Right-click the current layer, and a menu as shown in the below figure pops up, select the Modify
color and choose the new color in the pop-up dialog box , and accordingly, all the objects in the
work space which belong to the current layer will be automatically changed the set color.

3. Move the object to the designated layer


1) Select an object.
2) Use the left mouse button to click a layer to which you want to move the object, and contour
line of the object will be moved to the layer.
3) Select Fill, use the right mouse button to double click the layer to which you want to move
the object, and the infill of the object will be moved to the layer.

4. Lock layer
Right-click the current layer, and a menu as shown in the below figure pops up, select the Lock
layer, all the objects in the work space which belong to the current layer are locked and can not be
edited.

5. Unlock layer
Right-click the current layer, and a menu as shown in the below figure pops up, select the Unlock
layer and all the objects in the work space which belong to the current layer are unlocked.

6. Select layer
Right-click the current layer, and a menu as shown in the below figure pops up, select the Select
layer and all the objects in the work space which belong to the current layer in are selected.

7. Unselect layer
Right-click the current layer, and a menu as shown in the below figure pops up, select the Unselect
layer and all the objects in the work space which do not belong to the current layer are selected.

Note Right-click the layer list and you can find more advanced application functions of layer.

HAN’S LASER MARKING SOFTWARE 6.0 3-43


Object list

Object list is to display objects by their sorted order.

Functions of Object list:


1. For several overlapped objects, it is convenient to select anyone among them to edit.
2. Display marking object according to sorted order, which is clear at a glance. If add automation
object, it can realize automation programming control.
3. Select /delete an object , you can also select several objects by CTRL key.
4. Drag the object through right-click menu or left mouse button.
5. Adjust the order of marking objects, as shown in below figure.

For the objects of delayer, signal input/output, movement and logic judgment, you can
Note drag and insert them to the position in front of any marking object you wanted by the
Move function in the right-click menu or using the left mouse button directly.

3-44 HAN’S LASER MARKING SOFTWARE 6.0


Chapter 4
Marking Control

This chapter introduces various marking modes available


in the marking software.

4-1 Common Mark …………………………..…4-2


4-2 Multi-document Mark……… ………………4-7
4-3 Offline Mark ……………………………….. 4-11
4-4 Rotation Mark on Circumference……..…..4-14

HAN’S LASER MARKING SOFTWARE 6.0 4-1


4 -1 Common Mark

This section introduces various function of common marking mode of HAN’S


LASER MARKING SOFTWARE 6.0.

Mark menu

The Mark menu provides the following commands to realize marking:

Normal mark: to initialize the marker so that it goes to the normal marking status.
Multi-document mark: to mark the opened multiple documents by the set order.
Mark preview: to preview the marking process.

Normal mark

This command is used to initialize the marker so that it enters the normal marking status (as shown
in the figure below).

Mark

Select Mark, and click Start, and the system begins marking. The progress bar dynamically shows
the marking status. In marking process, the Mark button becomes Pause.
In the marking process, you can stop it by using the Pause or Stop button. When you use the

4-2 HAN’S LASER MARKING SOFTWARE 6.0


Pause button, the optical scanner stops at the position where it is; at this case, click Start, and the
optical scanner continues its movement. When you use the Stop button, the optical scanner stops
at the central position; at this case, click Start, and the optical scanner starts working from the initial
position.
Below the drawing layer, you can choose “Select”.

Note If icon shows during marking, it indicates that machine is emitting laser. Since
the laser is invisible light, operator must pay attention to the safety.

Red light preview

For laser markers which have red light indication function, you can use the red light preview
function to simulate the marking process before starting actual marking.
Select Red light preview and click Start, and you can view the whole marking process. The
process bar will dynamically display the marking progress. In this process, the Mark button
becomes Pause.

Frame preview

For laser markers which have red light indication function, you can use the frame preview function
to preview the marking area before starting actual marking. The speed of frame preview can be set
in System settings/Hardware configuration/Frame preview speed.
Select Frame preview and click Start, and you can view the marking area.

Loop mark

If Loop mark is selected, the objects in the marking task will be kept in marking status or
continuous marking status. To stop it, click Stop or deselect Cycle mark.

Time

It is the time delay between two adjacent marking processes during loop mark.

Mark statistics

During marking, the system automatically makes statistics on the marking status, including total
marking times, single marking time, total time, idle time, actual marking time, etc.

Refresh

For marking of serial numbers, select this option, and the information displayed on the screen will
vary in real time with actual marking status. However, use of this function will affect the operation
efficiency of the computer.
Motor home

HAN’S LASER MARKING SOFTWARE 6.0 4-3


If the motion control function has been enabled, through this button you can force the work reset to
the origin position.

Shortcut

Toolbar button:
Shortcut key operation: F10

Mark preview

This command is used to preview the marking order (as shown in the figure).

Pull the progress bar of preview to the right end to get the highest preview speed, and vice versa.
You can zoom or drag the objects of preview using the mouse wheel.

Shortcut

Toolbar button:
Shortcut key operation: F9

Red light preview

This function is mainly to precisely position the marking objects. You need to select the object
before this operation.

Shortcut

Toolbar button:
Fast mark

4-4 HAN’S LASER MARKING SOFTWARE 6.0


This function is mainly to realize fast marking of objects. You need to select the object before this
operation.

Shortcut

Toolbar button:
Shortcut key operation: F7

Introduction to feature list

In the dialog of feature list, it supports [Setting], [Fill], [Text (when the selected object is text, the
corresponding dialog box is displayed)], [Barcode (when the selected object is barcode, the
corresponding dialog box is displayed)].
1. Set:
support multi-times/multi-layer marking of single object, reverse order marking and fast marking. To
enable this dialog box, check Use, as shown in the figure:
[Object Mark Cnt]: you can set the times of marking the object. The maximum
allowable marking times is 6.
[Mark Set]: set different marking mode for each object. The settings are shown in the
dialog box:

[Para Select]: set layer parameters of each object. Up to 10 layers of parameters are
supported.

[Fast mark]: to mark the selected objects rapidly; the corresponding icon is .

HAN’S LASER MARKING SOFTWARE 6.0 4-5


[Save/Delete]: to save parameters in the Setting dialog box into a parameter set or
delete the parameter set. The suffix of the parameter set is *.psd.
[Apply]: This button is used to write the parameters in the Setting dialog box into the
parameter set of actual marking objects.

2. Fill Edit
Fast fill: The detailed parameter definitions are the same as those for the Filling dialog box.

Note Parameter settings or changes to parameters are only valid after you clicking the
Apply button.

4-6 HAN’S LASER MARKING SOFTWARE 6.0


4 -2 Multi-document Mark

This section introduces various function of multi-document marking of HAN’S


LASER MARKING SOFTWARE 6.0.

Introduction to multi-document mark

For the general workable, it will move a certain distance (or rotate a certain angle) after one marking,
and another marking will be followed and then the worktable will move again (or rotate), …,
recycling and so on. This worktable doesn’t involve the accelerated and decelerated motion,
two-axis interpolation, movement segmentation for marking continuous patterns and other features.
As long as the worktable meets the above requirements, it can be controlled directly by
multi-document marking way. In the software, users can open multiple documents (which can have
the same marking pattern or different ones), and set the movement of worktable after finishing the
marking for each document. According to user’s settings, the software will call out each document
in turn to operate. When there are multiple documents needing the continuous marking, you can
call up this function to deal with them.

Multi-document mark

Operation procedures
1. For the patterns to be marked, you can create a new document or open the document to
make the corresponding drawings in turn.
2. Click the Mark-> Multi-document mark, and the following dialog box is displayed:

HAN’S LASER MARKING SOFTWARE 6.0 4-7


All the current opened documents are listed in turn in the list box at the upper-left corner of dialog
box, and the arranged order is the marking order. According to the requirement, you can change
the marking order by clicking the “Move Up” and “Move Down” buttons. Click the “Delete” button
and you can delete the current selected document from the list box (but the document itself won’t
be deleted).

[Keyboard, mouse or foot-pedal trigger]: if this option is selected, each time when
marking of a document is finished, you need to manually trigger the next marking
document; otherwise, the system automatically mark all the documents in order.
[Marking times]: it is the number of the documents whose marking has been finished.
[Single time]: it is the time required for marking a document.
[Total time]: it is the time required for automatically or manually marking all the
documents.
[Working mode]: to choose the different working mode.

Note The marking begins from the currently-selected document, namely, from the
document displayed in reverse color in the list box.

3. Properties
It is used to set motion parameters of worktable when the marking of each document is finished.

Move model: Select Absolute Motion or Relative Motion, Absolute Motion is easy to control but
may generate cumulative error.
Move type: Select different move types and the working speed will be different.
Quantity of motion: For linear motion, the quantity of value is in mm, for rotary motion, the quantity
of value is in degree.

4. Save:
To save all the parameters (including documents, properties, sequence, etc) of the present
multi-document marking so that it they can be used again. The file is saved in the extension name
of mul.

If error occurs when saving the parameters, the reason of which may be that the
Note
marked documents haven’t been saved separately. So you should exit the state of
multi-document marking, and save each document in turn.

4-8 HAN’S LASER MARKING SOFTWARE 6.0


5. Opening multi-document file
Make sure there is no opened documents, and then click File -> Open multi-document…, and you
can open the *.mul multi-document file.

Examples of application

Example 1: Arc marking


For marking on a larger arc surface, you can divide the marking content into a few segments to
make multiple documents. And with this function, each time when marking of a part of the marking
pattern is finished, the motor will rotate by a certain angle so as to make the continuous marking, for
example, engraving symbols on a drill.

Example 2: Large-range marking


For marking a larger range of pattern, you can divide the marking contents into a few segments to
make multiple documents. And with this function, each time when marking of a part of the marking
pattern is finished, the motor will move a certain distance so as to make the continuous marking, for
example, engraving keyboards.

Shortcut

Toolbar button:
Shortcut key operation: F8

IO multi-document mark

All the current opened documents are listed in turn in the list box at the upper-left corner of dialog
box, and the arranged order is the marking order. According to the requirement, you can change
the marking order by clicking the “Move Up” and “Move Down” buttons. Click the “Delete” button

HAN’S LASER MARKING SOFTWARE 6.0 4-9


and you can delete the current selected document from the list box (but the document itself won’t
be deleted).
[Signal source]: It is used to set the sequence of the signals of external IO port and the
foot-pedal trigger signals, and it is usually defaulted to [Document signal is sent after foot
–pedal trigger signal].
[Debug]
When “Mark currently document” is checked, only the selected document is marked.
Current signal. Click this option, the software will automatically read the IO signal state.
When this signal state doesn’t match with the signal state in the properties, the
software won’t mark, and only when they are the same can the software identify and
mark, the mark information of which refers to [Mark Document], as shown in the
following figure:

Not match

Match
[Marking times]: it is the number of the documents whose marking has been finished.
[Single time]: it is the time required for marking a document.
[Total time]: it is the time required for automatically or manually marking all the documents.
[Working mode]: to choose the different working mode.

[Properties]

To set document signal, you can click [Get current value] to obtain the status of document signal.
You can also set the signal value by yourself, and then click OK to exit.

[Save]
To save all the parameters (including documents, properties, sequence, etc) of the present
multi-document marking so that it they can be used again. The file is saved in the extension name
of mul.

Shortcut

Toolbar button:

4-10 HAN’S LASER MARKING SOFTWARE 6.0


4 -3 Offline Mark

This section introduces offline mark operation procedures of HAN’S LASER


MARKING SOFTWARE 6.0.

Introduction to offline mark

Offline mark means that the marking is directly controlled by marking control card instead of upper
computer (computer), and marking contents and parameters are saved in the marking control card.
To change marking contents or parameters, you need to connect the marking control card to
computer and make changes through computer and then re-download them.

Applicable situations of offline mark: after debugging, if there is no need to change marking patterns
and parameters frequently and there are external trigger signals available, you can use the offline
mark mode.

Offline mark of single-document

1) Connect to the computer and make debugging to ensure the marking effect is satisfied.
2) Select the objects to be marked.

3) Click (download button), or click the Offline download button at the right lower corner,
or directly push the F11 key.

4) In the download process, a progress bar is displayed. You can stop the download operation.

5) After download, you can use the foot switch signal on the marking control card to control the
marking process.

HAN’S LASER MARKING SOFTWARE 6.0 4-11


6) In offline operating process, if you re-enable the download function, the following dialog box
will be displayed:

7) You can unplug the USB communication wire after offline download, and a prompt message
“EMCC card disconnected” will be displayed on the title bar of the marking software in such a
case.

8) In offline operating process, if the USB wire is re-connected (a prompt message “EMCC card
connected” will be displayed on the title bar of the marking software) and foot switch is
re-triggered, the marking control card will not send mark signal, and in this case, offline mark
cannot be performed, you need to re-download or after unplugging the USB wire, re-start the
whole machine (marking control card).

Offline mark of multi-document

1) Connect to the computer and make debugging to ensure the marking effect of each document
is satisfied.

2) Click (download button), and a window for multi-document download management as


shown in below will pop up.

4-12 HAN’S LASER MARKING SOFTWARE 6.0


3) Set IO signal for each document then start to download, see above figure
4) After all downloaded documents show “Downloaded”, check the option “Switch to offline mode
after logging out”, then it will switch to multi-document offline mark mode after exit.

HAN’S LASER MARKING SOFTWARE 6.0 4-13


4 -4 Rotation Mark on
Circumference *

This section introduces operation procedures of rotation marking on


circumferential object of HAN’S LASER MARKING SOFTWARE 6.0.

Introduction

Motion control and rotation mark is new-added function, which is able to realize motion control
without the third-party motion control card. Since the integration of marking and motion control is
very high, it is able to complete many tasks that the third-party control card unable to do.
It is able to insert various motion controls flexibly wherever you want to move by programming way.
It provides a series of circumference rotation mark methods, which are capable of satisfy most of
circumference marking applications on current market.

Motion setup

Condition

Check the lower computer program fist to confirm whether it supports the motion control function
before enabling it.
Checking method: Menu->Help->About, check the version information in the dialog box, see
below figure.

U1 version should be higher than V1.0.3, U2 version should be higher than V1.1.0, otherwise it
does not possess the motor function and can not do the motion control operation.

Solution::
If U1 version is too low, return the card back to the control card department of company to upgrade.
If U2 version is too low, down load new program through EmccDownload program to upgrade.

If all the menu items or settings in the menu related to the motion control are in gray, it indicates
that this function has been activated. To activate this function, please contact with the after-sale
service personnel of Han's Laser.

Setup

4-14 HAN’S LASER MARKING SOFTWARE 6.0


Enter into the software, click Menu Setup Motion parameter setup and a dislog box as below
will pop up:

[Basic parameters]
To set some basic information of motion.
[Axis No.]:Number of current axis(Note: now the marking system only supports an
axis)
[Move type]: To set the type of axis, such as translation axis or rotary axis.
[Motor enable] :To confirm whether use the current axis.
[PPR]: To set the number of pulse per-revolution
[Delay]: To set the delay after completing motion, the default is 100ms.
[Work accelerate time]: To set the time required by motor accelerates from being still
to working speed, the default is 0.9s.
[Empty accelerate time] To set the time required by motor accelerates from being still
to idle speed, the default is 0.9s.
[Home decelerate time] To set the time required by motor decelerates from home
speed to zero , the default is 0.1s.
[Move direction]To set the rotating direction of motor.

[Rotation motion]
To set the speed parameter of rotation motion.
[Rotation work speed] Working speed of rotary axis, the default is 360 degree/s.
[Rotation empty speed] Idle speed of rotary axis, the default is 720 degree/s.

[Line motion]
To set the speed parameter of linear motion
[Screw-pitch]: Pitch of screws.
[Line work speed]:Working speed of translation axis, the default is 1000mm/s.
[Line empty speed]: Movement velocity of translation axis without load, the default is
1500mm/s.
[High home speed]: High-speed generated when translation axis zeroing, the default is
2000mm/s.
[Low home speed]:Low-speed generated when translation axis zeroing, the default is
1000mm/s.

HAN’S LASER MARKING SOFTWARE 6.0 4-15


[Motion test]
Test the motor function and software positioning.
[Move model]:To set the motor pattern, there are three patterns (Absolute, Relative,
and Home) for your option.
[Move type]:To se the type of movement, there are two types (Work move and Empty
move for your option.) ,
[Move position]:To set the value of motor moving(Note: System will determine the
input units of quantity of motion according to the axis type. For example, set the quantity
of motion to 3, if the current axis is translation axis, then the system will take mm as the
unit and the quantity of motion is 3mm; if the current axis is rotary axis, the system will
take the degree as unit and the quantity of motion is 3 degree).
[Set current position as software origin ]:To set current position as software origin,
this function only used after zeroing . Steps are as follow:
Zeroing->Move to the target position-> Set current position as software origin
[Auto move to home]:If this option is checked, every time open the marking software,
system will automatically do the zeroing.

[Note]:
:The function of zeroing only can be used on the machine has mechanical origin, if do the
zeroing on the machine without such hardware, it may cause the machine keep running without
any response for a long time.

Motion control mode

This software has two motion control modes, you can use the multi-document marking, control the
motor running at the end of marking of every document; you can also run the motor among the
marking objects in the document.

Multi-document marking & motion control

Mark several documents separately, do the motion control after completing marking of each
document, details please refer to section 4-2 of this chapter.

Marking & motion control in the document

Although multi-document mark can satisfy many marking requirements, its flexibility is poor. If you
want to switch over conveniently between marking and motion, you have to insert motion operation

after the marking object in the document. Click the icon and the system will generate a motor
motion object, select this object in the object list and the property of it will displayed on the property
column(as shown in below left figure) and you can set its property.

If you want to adjust the motor position before moving, click icon and the system will generate
a position setting object, select this object in the object list and the property of it will displayed on
the property column(as shown in below right figure) and you can change the current position of the
motor inside the control card.

4-16 HAN’S LASER MARKING SOFTWARE 6.0


Function: Marking is carried out according to the order of the object list, when it comes to the
motion object, it will proceed the motion you have set, if you want to adjust the position of the object
in the document, you can use mouse to drag .

Marking type

Lossless marking

Discrete graphs, can be disassembled without affecting the effect, such as normal text, PLT(LOGO)
graphs and so on. Take the graph in the following figure as an example, the entire graph is
composed by several parts and these parts do not have any relation.

For such graph, the best marking mode is to divide the graph into several parts, mark each part
separately, after completing marking of this part, move to the next part to continue. This marking
mode is featured by it best effect and fastest speed, besides you are allowed to fill at will, this
marking mode is named as lossless marking type.

Equal-angle contour marking

Complex non-separated graphs, can not be disassembled, or after disassembling single graph is
oversize only contains the contour but no fill line, such as text that requires change (serial number,
time and so on), large PLT graphic pattern(single line is overlength) and so on.

HAN’S LASER MARKING SOFTWARE 6.0 4-17


Take the graph in the above figure as an example, such graph can not be disassembled, after
disassembling, the single graph is oversize and can not mark on the circumference. In this case, it
should adopt syncopate-marking, this marking mode also can obtain ideal effect by setting
reasonable syncopating angle, this marking mode is named as equal-angle contour marking
type.

Note: This type will automatically leach the fill line in the graph inserted by software, if the imported
PLT graph has been already filled, the software will not leach the fill.

Equal-angle comprehensive marking

Class B disassembled graphs, some parts of graphs or the entire graphs need to mark the fill line.

Take the graph in the above figure as an example, in this case, for the graphs have fill line, in order
to improve the efficiency and enhance the under painting, a special marking mode is required(the
software only marks the vertical fill line, others will be ignored).

If set the “Number of fill lines each time marked” to 3, each time will only mark 3 fill lines and then
move to the medium line of the following three fill lines to continue marking. This marking mode is
able to adjust the marking effect by setting reasonable marking number of fill line. For the contour
graphs that do not have fill line, this mode is preferable, this marking mode is named as
equal-angle comprehensive marking type.

Marking control

Open the menu and click: Setting-> Rotate Setting, and a dialog box as shown in below will pop
up:

4-18 HAN’S LASER MARKING SOFTWARE 6.0


[Diameter]: Marking surface diameter of workpiece, which is required in all circumference
rotation mark.
[Syncopate Angle]:When doing the equal-angle contour syncopating, the syncopating
angle of each time motor rotates. The smaller the angle is , the better the syncopating effect
is, but the speed will become more slowly, adjust according to the actual marking effect. This
function is used in equal-angle contour marking type and equal-angle comprehensive
marking type.
[Syncopate Count] The number of fill line marked when workpiece rotating once, which
should be in odd number. This function is used in equal-angle comprehensive marking type.

Data preprocessing

For the graphs which can be processed by lossless marking type, splitting should be done for data
before starting the circumference rotation mark, otherwise you can nor get your desired effects.
You can scatter the graph, then reconstitute one by one manually, you can also use the tools
provided by us to process quickly.

Steps are as follow:

Step1: Pick the object to be processed, click the icon to scatter the pattern to lines.

Step2: Click the data reconstitution icon , system will reconstitute the data according to the
diameter you have set to generate a batch of marking objects.
Step3: Check the marking object combination for any unreasonableness, if has, adjust manually.
Step4: If filling is required , fill the reconstituted objects. DO NOT fill before scattering and
reconstitution, otherwise it may cause slow marking speed and poor marking effects.

Rotation mark

Click the Circumference Mark button on the toolbar and a dialog box as shown in below will pop
up:

HAN’S LASER MARKING SOFTWARE 6.0 4-19


[Motor Home]:Click this button and the motor will go back to the software origin set by the
system .
[Mark Type]: There are three types of mark for your option: Lossless marking type,
Equidistance contour marking type(namely equal-angle contour marking), Advance marking
type(namely equal-angle comprehensive marking type).
[Home after mark end]:Check this option and the motor will go back to the origin point after
completing marking.

Precautions:
1. The coordinate system adopted by the system should be placed the same as the motor,
otherwise, adjust the coordinate system manually. Detailed placing position is shown in below
figure(This figure is plan view).
2. Pay attention to the rotating direction of motor(as shown in below figure) when rotation
marking so as to guarantee that system marks one by one from left to right.
3. The rotation marking software only does the motor rotation preprocessing for the data in the
horizontal direction, place the graphs horizontally when importing, otherwise will mark all
once.

4-20 HAN’S LASER MARKING SOFTWARE 6.0


Dividing rule generator

This software provides the dividing rule generator to conveniently generate dividing rule and
facilitate you to generate the wanted dividing rule quickly. Usage is as follow:

Step 1: Draw the unit object of dividing rule


Take the dividing rule in the below figure as an example, this rule contains three kinds of scale lines
with different lengths.

Figure 11

We need to draw three unit objects. First draw three vertical lines, whose length is one-to-one
correspondent with the lengths of the three kinds of scale lines, the vertical lines are allowed to be
rotated at will. If there are any special requirements on the width of the scale lines, you can
replace the vertical lines with rectangles.

Some scale lines are labeled by numbers, in this case you have to add text object. The text type is
common text, content can be any value, and set the information such as font, character height and
width coefficient according to the actual requirements. After completing the editing of text, pick the

text and the corresponding scale line simultaneously, click the button in the toolbar to group
them into a group object(Tips: before processing on the group object, click button to
quickly crosswise center the selected lines and text. ) Till now, the drawing of the unit objects of
dividing ruler has been completed.

Note: It should adopt group mode rather than combination when grouping the scale line and text
into a new ruling object, otherwise it may cause marking error.

HAN’S LASER MARKING SOFTWARE 6.0 4-21


Step2: Edit dividing ruler parameters

Select the three objects drawn in step 1, click the button on the toolbar, a dialog box as
shown in below will pop up:

The left side of dialog box is object displaying area, the right side of the dialog box is the parameter
setting and object list area. Click any item on the object list and corresponding object will be
displayed in the displaying area in red.

Scale type
The system has two scale line generating ways: circumferential scale and plane scale. If check the
circumferential scale, it has to set the corresponding circumferential diameter and the scale spacing
whose unit is in degree(note: here the circumferential diameter shall be consistent with the
diameter set in the rotation mark setting, if change one, another will change correspondingly.); if
check the plane scale, it only has to set the scale spacing whose unit is in degree.

Scale parameters

Initial value: Initial value of scale line marking


Discard the last scale line: System will ignore the last scale line when creating the dividing rule
data. This function only applied in some special occasions(such as in circumference mark, if the
marking range of scale is the entire circumference, namely the first scale line coincides with the last
one, if do not discard the last scale line , it may cause that the last scale line marked twice, which
will affects the marking effect).
Increment: Every time increment of scale line marking. If the labeled number of first scale line is 0
and plan to label 20 on the 11th scale line, then the increment shall be set to 2(take the dividing rule
in figure 11 as an example, its increment is 1) .
Total number of scale lines: Total number of scale lines that needed to be marked on the dividing
rule(take the dividing rule in figure 11 as an example, it has 51 scale lines on it) .
Align Top/Align Bottom: The system can generate two different types of dividing rule through
checking. There will have an previewing graph displayed on the right of option when checking(take
the dividing rule in figure 11 as an example, it adopts Top Align) .

4-22 HAN’S LASER MARKING SOFTWARE 6.0


Scale line setting

Double-click any object on the object list or pick any object and click the on the right side, a
dialog box for setting the scale line will pop up:

Ruler Interval: The interval between the two scale lines. Take the dividing rule in figure 11 as an
example, the interval of the longest scale line shall be set to 10, the interval of the moderate length
scale line shall be set to 5, the interval of the shorted scale lines shall be set to 1.
Text Visible: By checking you can determine whether display the labeled number of corresponding
scale lines. Take the dividing rule in figure 11 as an example,, the longest scale line shall checked
this option, the other two are not(note: to display the labeled number of scale lines, you have to add
the text object to the corresponding scale lines when drawing the dividing rule unit except checking
this option).
Decimal Digits: The decimal digits when displaying the labeled number of scale line. Take the
dividing rule in figure 11 as an example, the decimal digits is 0.

Priority setting of scale line


After setting the above parameters, it need to do the priority ordering for the unit objects. Here I
want to explain first the reason why to set the priority for scale line. Although we have set the
interval for each kind of scale line in above step, some scale positions will conflict. Take the dividing
rule in figure 11 as an example, for the 11th scale line, there has 10 intervals between it and the first
scale line, for the setting of the scale line, all the three kinds of scale lines satisfy the requirement
and can mark scale line on this position, but from the figure we can see that this position marked
with the longest scale line, here comes the priority problem, which kind of scale line has the highest
priority, mark this kind of line preferentially on the position satisfied requirement. Take the 6th scale
line on the dividing rule in figure 11 as another example, both the second longest scale line and
shortest scale line satisfy the requirement to mark on this position, here the second longest scale
line is prior to the shortest one.

Through the above explaining, the priority setting of the three kinds of scale lines in the dividing rule
in figure 11 is very clear, the longest line has the highest priority, the next is the second longest line,
the shortest scale line has the lowest priority. In the list box, the topper the scale line is ,the higher
the priority is. The priority can be adjusted by press the button of “Up” and “Down”.

Step 3: Generate dividing rule


Single-click the OK button on the dividing rule setting dialog box to generate required dividing rule
graph.

Step 4: Marking
If mark the circumferential rule, it has to set the parameters of rotation mark, details please refer to
the section one of this manual. Then start the circumference rotation mark by the lossless marking
type.

Generally speaking, the scale number of the dividing rule should be successively increasing or
decreasing. In some special case, irregular changing may occur, in this case, manual interference

HAN’S LASER MARKING SOFTWARE 6.0 4-23


is required, namely pick the scale line that to be changed, cancel the group and change the
displayed scale number, then group again. DO NOT move the scale line during operation,
otherwise the marked scale line will have offset..

Connect the EMCC3200 with motor driver

EMCC3200 I/O Connector 1

O1

I2 I10 I11

Pin Direction Function Description


21 OUT O1 Output of elevating worktable or motor direction
11 IN I10 INPUT10 upper limit
12 IN I11 INPUT11 lower limit
3 IN I2 Zero

EMCC3200 DB9 Interface

5 4 3 2 1

9 8 7 6

Pulse (+) Pulse (-)

Pin 8 ——Negative terminal of output pulse

Pin 9 ——Positive terminal of output pulse

4-24 HAN’S LASER MARKING SOFTWARE 6.0


Chapter 5
Parameter Setting

This chapter introduces marking control parameters of the


marking software.

5-1 Marking Parameters……………………………...5-2


5-2 System Parameter Setting………………………5-9
5-3 Calibration Settings……………………………….5-18

HAN’S LASER MARKING SOFTWARE 6.0 5-1


5 -1 Marking Parameters

This section introduces definitions of marking parameters in HAN’S LASER


MARKING SOFTWARE 6.0 and how to adjust such parameters.

Definitions and functions of marking parameters

Different control modes and lasers requires different marking parameters, this chapter will describe
all the parameters may used in this software, please use it according to the actual using situation.

Marking Count

Definition: continuous marking times of single object after trigger.

Mark speed (mm/s)

Definition: running speed of optical scanner during marking. Marking speed=effective vector
step/effective vector step delay. Its limit value is set in system parameters.
If it is set too high, the marked stroke is not fine enough and also very sparse with inadequate
marking depth, but marking speed is fast.
If it is set too low, the marked strokes are fine and compact with a proper marking depth, but
marking speed is lower.
Marking speed is usually set in reference to Q frequency and power.
Recommended value: 1000mm/s.

Note For dot-matrix characters, this parameter does not function. You can adjust the spot
energy through adjusting the laser power and OFF delay.

Jump speed (mm/s)

Definition: running speed of optical scanner during empty running. Empty jump speed=empty step
size/empty step delay.
If it is set too high, the processing time for empty strokes is shorter and the total marking time
reduces, but strokes may be connected together. And optical scanner may run unstably.
If it is set too low, the processing time for empty strokes is longer and the total marking time

5-2 HAN’S LASER MARKING SOFTWARE 6.0


increases.
Empty jump speed is usually debugged in coordination jump delay. The greater the empty jump
speed is, the greater the jump delay will be.
Recommended value: 1500mm/s.

Laser on delay (us)

Definition: time adjustment by combining start point of laser and start point of optical scanner
movement. The time advance or delay time (-∞, 0, + ∞) of optical scanner before laser is turned on.
Function: It determines when to enable laser output after the effective vector has been executed.
This value can be a negative value. If it is set to a positive value, it does not affect marking time. If it
is set to a negative value, it means that effective vector is executed only after laser output has been
enabled for such a time.
If it is set too high, optical scanners move forward too much before laser output is enabled, so the
beginning stroke may not be long enough.
If it is set too low, laser output is enabled when optical scanners do not move forward for enough
distance, so overlapped dots may occur at the beginning of a stroke.

Laser off delay (us)

Definition: time adjustment by combining end point of laser and end point of optical scanner
movement. The time advance or delay time (0, + ∞) of optical scanner before laser is turned off.
Function: It determines when to disable laser output after the effective vector has been executed.
This value can be a negative value. If it is set to a positive value, it does not affect marking time. It
requires a period of time for optical scanners to reach the specified position after the last command
of stroke is sent out. Such time is called laser off delay.
If it is set too high, the optical scanners have arrived at the specified position and stayed for a
moment before laser output is disabled. In this case, overlapped dots may occur at the end of
strokes and marking time is increased.
If it is set too low, laser output is already disabled before optical scanners arrive at the specified
position. In such a case, end sections of strokes will not be long enough.

HAN’S LASER MARKING SOFTWARE 6.0 5-3


Stroke delay (us)

Definition: delay (150, + ∞) of optical scanners after laser output is disabled. Function: to ensure
accuracy and correctness of end point of the track of optical scanners. It reduces the phenomenon
of trailing of IPG laser to some extent.
If it is set too high, effective vector track is not complete at the end section and distortion may easily
occur in case of high speed.
If it is set too low, overlapped dots may occur at the corners and marking time is increased, but it
does not affect marking effect.

Jump delay (us)

Definition: after empty jump, the adjustment time (0, + ∞) for optical scanners to reach the specified
place.
Function: the next vector command is executed only when optical scanners jump to the target point.
If it is set too high, the optical scanners have reached the specified position and stayed for a
moment before marking the next stroke, so marking time is increased.
If it is set too low, the PC begins to mark the next stroke before optical scanners reach the specified
position, so sparse dots may occur at the beginning of stroke, and jitter occurs at the beginning.

Corner delay (us)

Definition: at corners, the adjustment time (0, + ∞) for optical scanners to move to the specified
place of curves.

5-4 HAN’S LASER MARKING SOFTWARE 6.0


Function: it requires a period of time for optical scanners to reach the specified position after the
last command of a line segment is sent out. Such time is called corner delay.
If it is set too high, the optical scanners have reached the specified position and stayed for moment
before marking the next line segment of a stroke. In this case, overlapped dots may occur at the
corner and marking time is increased.
If it is set too low, the PC begins to mark the next line segment before optical scanners reach the
specified position, so arc may occur at the corner.

a. Laser delay and optical scanner delay must match the marking speed and empty
Note jump speed; otherwise, improper delay may degrade marking effect and increase
marking time.
b. Adjustment sequence: adjust laser delay first (set jump delay and optical scanner in-place delay
to high enough), and then adjust optical scanner delay (jump delay, optical scanner in-place delay,
corner delay).

Q frequency (KHz)

Definition: pulses sent out per second, e.g. 20KHz means 20000 pulses are sent out every second.
Function: by changing Q frequency, laser output frequency can be increased, and single-point
energy and peak power can be decreased, which improves marking speed to a certain extent.
If it is set too high, energy accumulation time is shorter so energy is weaker and the marked dots
are dense.
If it is set too low, energy accumulation time is longer so energy is stronger, and the marked dots
are sparse.

Q release (us)

Definition: at a given Q frequency, laser output time within a cycle.


Function: used to regulate the emission energy of laser and peak power. This parameter does not
make great sense for fiber lasers.
Q release value is automatically adjusted according to Q frequency (Q release=1000/Q frequency/2)

HAN’S LASER MARKING SOFTWARE 6.0 5-5


so as to ensure normal laser output.

Current/Power (%)

Definition: output power of laser. The set value is the percentage of full power.
Function: it is used to set laser power percentage or laser current of the current layer.

Current( A)

Definition: working current of laser, used in the lasers such as YAG laser, DP laser and Ep laser
which control the energy by current.
Function: it is used to set laser current when marking the current layer, whose unit is A.

Layer delay (us)

Definition: delay time when switching between layers. The time delay is before the marking of
current layer.
Function: it is used for parameter adjustment between layers, e.g. electric current, power, optical
scanner in-place, etc.
Layer delay can increase the total marking time.

Duty cycle (%
%)

Definition: CO2 laser adjusts the energy by duty cycle, if the duty cycle is 50%, it indicates the
power is 50%
Function: it is used to control the laser output power.

FPK Time(us)

Definition: first pulse compression time of digital Q-driver.


Function: to compress the first pulse.

FPK Init Rate

Definition: the energy released by first pulse when the analog Q-driver conducts the first pulse
compression. If it is set to 1.0, it means releasing completely, If it is set to 0, it means inhibiting
completely, set to between 0~1 means partially release.
Function: cooperate with the “FPK Len Rate “ and “FPK MaxPRate” to adjust the first pulse.

FPK Len Rate

Definition: the ratio of the energy released by next spot to the energy when the analog Q-driver
conducts the first pulse compression.
Function: adjust the change frequency of energy to get the energy reinforced gradually and
smoothly.

5-6 HAN’S LASER MARKING SOFTWARE 6.0


FPK Max PRate

Definition: The max. amount of energy released in inhibitory control when the analog Q-driver
conducts the first pulse compression.
Function: to adjust the peak value. With the stored energy becoming less, the inhibition weakens
gradually, if the releasing energy comes to the peak value, the first pulse inhibition stops.

FPKCurRate

Definition: the ratio of laser energy when using fast response power supply to do the first pulse
compression to the laser energy of normal power.
Function: adjust the energy stored by the laser before emitting laser beam, so as to obtain the best
effect when cooperating with the Q-driver to do the first pulse compression.

MarkQuality

Definition: the corner coefficient when adopting the concise mode.


Function: the bigger the coefficient is, the smooth the corner is. If the coefficient set to small, it will
cause trailing.

Laser mode

Definition: pulse control parameter of YLP-M laser.


Function: to adjust the pulse width, the adjustable range is 1~8.

Mode Pulse width(us)


1 4
2 8
3 14
4 20
5 30
6 50
7 100
8 200

SimmerCurrent (%
%)

Definition: laser ON control parameter of SPI laser.


Function: if the stand-by current set too low, the energy of first pulse will not enough, if it is set too
high, it will leak light during empty jump.

Waveform

Definition: dedicated parameter for SPI laser.


Function: the full-function SPI laser has 63 waveforms, each waveform corresponds to different
center frequencies. Under center frequency, the single pulse peak power gets to the highest.

HAN’S LASER MARKING SOFTWARE 6.0 5-7


Saving and enabling marking parameters

Each group of marking parameters correspond to a drawing layer.


After debugging of marking parameters, it is recommended to save such parameters by following
the method of: click Save as from the current drawing layer, and enter the name of parameter set,
and then click OK.
Calling up parameter set: after opening a new document or a new drawing layer, choose proper
parameters from the pull-down menu of parameter sets.
If a certain parameter set is useless and you want to delete it, just select it and click Delete.
If a certain parameter set is used frequently, you are recommended to set it as the default value by
the following way: select the parameter set and click Set as default value.

5-8 HAN’S LASER MARKING SOFTWARE 6.0


5 -2 System Parameter
Setting

This section introduces definitions of system parameter setting in HAN’S LASER


MARKING SOFTWARE 6.0 and how to adjust such parameters.

Interface for setting system parameters

From the menu bar, click Set; and from the pull-down menu, click System setting:

And the following dialog box pops up:

HAN’S LASER MARKING SOFTWARE 6.0 5-9


Definitions and functions of system parameters

Keep Frequency (kHz)

Definition: laser output power during non-marking period.


Function: it is used to adjust the output power of laser during non-marking period. For IPG fiber
lasers, this parameter helps to improve the problem of trailing and light leakage during empty jump.
Range: For IPG laser, to control within 20-80KHz and set CO2 frequency within 3~5K. This
parameter will not affect pulse frequency during marking, so it does not affect marking time. For
some sensitive materials, setting this parameter to greater value can help to reduce trailing.

Keep Time (us)

Definition: it is the time corresponding to the holding pulse frequency.


Function: it is used to adjust the release time corresponding to the laser output power during
non-marking period and to change peak power of pulse. This parameter does not make great
sense for fiber lasers.
Rang of setting: within the corresponding cycle time.

Working current after entering into marking state

Definition: Set the working current after entering into the marking state.
Function: Adjust the work current to the set value before starting mark. This function has great
influence on the first pulse energy.

MO delay (us)

Definition: delay since the trigger of MO signal to PA signal.


Function: it is for debugging purpose only. Operators are not allowed to change it.

Safety door protection

Definition: to set the safety door for protection during marking.


Not enabled: if safety door protection is not enabled, marking control system will not pause or stop
in case that safety door is opened during marking.
Pause: if safety door is opened during marking, the marking control system will pause, optical
scanner will stop moving and laser output will be disabled. After re-closing the safety door, you can
choose to directly continue the marking or to continue marking only after marking is triggered again.
For details, see “Edit/Option/Mark immediately when door close”. After the safety door is re-closed,
the marking will continue from the point where it stops when the safety door is opened.
Stop: if safety door is opened during marking, the marking control system will pause, optical
scanner will stop moving and laser output will be disabled. After re-closing the safety door, trigger
the marking again, and the marking will restart from the beginning.
Function: this protection function is for protecting personal safety of operators.

Optical scanner position after mark end

Function: after completing mark, the optical scanner return back to the zero position, which is

5-10 HAN’S LASER MARKING SOFTWARE 6.0


default center origin.

Power supply feature

Function: to adjust the trailing of gray bitmap mark carried by the fast response power supply.

Response time

Definition: the response time after changing the laser current.


Function: To compensate the trailing brought by the slow response of laser.

Attenuation

Definition: the attenuation length of laser.


Function: To compensate the trailing brought by the slow response of laser.

Gain factor

Definition: the ratio of current electric current to the set current


Function: To compensate the trailing brought by the slow response of laser.

Touch setting

Signal setting

It is used coordinatively with production line.

HAN’S LASER MARKING SOFTWARE 6.0 5-11


Signal triggers on once

It is used to set the times of acquiring signals (e.g. foot switch signals). A mark command is sent out
only after such number of triggers are made.

Mark count after touch

It is used to set the marking times for each trigger. If used in coordination with “Delay after
triggering”, it can be used to control the marking times and time interval between adjacent
markings.

Delay after triggering (ms)

In certain industrial control occasions, foot switch is connected with a photoelectric probe. When an
object is detected, the foot switch generates a signal. However, sometimes, it requires a delay
signal so that the object has enough time to stabilize itself.

Interval between markings (ms)

It is used to set the time interval between two adjacent markings during multiple markings so as to
facilitate workpiece loading.

Delay after marked (ms)

It is the time delay after multiple markings.

Mark end signal length (ms)

It is used to detect the status of mark end signal, which is after all the delays.

Touch mode

Edge trigger: to collect edge signals upon receipt of trigger signal, e.g. rising edge is used as trigger
signal.
Level trigger: when it is at high level, it is deemed that trigger signals are present.

Offline repeat mark

Disenabled: in offline mark, after triggering the signal, system will not mark repeatedly.
Enabled: in offline mark, after triggering the signal, system will keep marking repeatedly, the
interval between cycles is two times of interval between two adjacent markings.

Import and export of system parameters

5-12 HAN’S LASER MARKING SOFTWARE 6.0


After making changes to system parameters, it is recommended to save them for possible use in
the future.
Export: Click Export parameter, change file name and save it.
Import: Click Import parameter, choose a file and open it.

Gray setting

Click Menu→Setting and click the “Gray Setting” in the popped up pull-down menu, a dialog box
for setting the gayscale as shown in below pops up:

Ctrl.Mode: There are four modes for your option: duty cycle control mode, Q-regulating control
mode, current control mode and AC regulating control mode. According to the laser and related
hardware parameters, the software will automatically leach out the modes you can not use and
leave one or two modes for you to choose.
1) CO2 laser uses duty cycle (power) control mode to conduct the gray marking.
2) All the lasers with Q-driver(such as YAG,DP,EP etc.) can use Q-regulating control mode to
conduct the gray marking. Since Q-regulate leaks light, it is not suitable for the marking of
sensitive materials. It also can achieve good effects on metal material.
3) Only the laser equipped with fast response power supply can use the electric current control
mode to conduct the gray marking.
4) Laser equipped with analog Q-driver can use the AC control mode to conduct the gray
marking. When applying to the sensitive material, it need to be cooperated with fast response
power supply to achieve the best effect.

Note The optimum collocation for grayscale bitmap mark: Analog Q-driver+ fast response
power supply & AC regulating control mode.

Levels: The more the grayscale adjusting precision level is, the more the adjustable grayscale
color is. If choose 256 levels, it means that every level’ grayscale is adjustable; if choose 16 levels,
then only 16 levels’ grayscale are adjustable.

HAN’S LASER MARKING SOFTWARE 6.0 5-13


The level is chosen according to the material, the better the material marking contrast
Note is, the higher the level should be. For the material with poor contrast, it is unnecessary
to set the level to high.

Line: Curve or straight line, according to the marking effect to determine adopt which one.
White: Checked if the ground color of material is white.

Grayscale adjusting methods:


1. Choose the control mode, make sure that the hardware connection is correct.
2. Choose the gray level, generally is 256 levels.
3. Set the level of appointed grayscale to 0, set the marking speed and dot interval.
4. Use mouse to pick the dot on the left side whose grayscale is 0, adjust the energy to a fixed
value.
5. Press F7 to mark.
6. Observe the marking effect, repeatedly adjust step 4 and step 5 till get a satisfied effect.
7. Set the grayscale level to 255.
8. Use mouse to pick the dot on the left side whose grayscale is 255, adjust the energy to a fixed
value.
9. Press F7 to mark.
10. Observe the marking effect, repeatedly adjust step 8 and step 9 till get a satisfied effect.
11. Choose “All Level”, press F7 to mark.
12. Observe the marking effect, if it is OK, click OK to exit. If some gray are not satisfied, use
mouse to click the curve dot corresponds to grayscale you want to modify, conduct the
modification by mouse or keyboard when the dot becoming to a circle.

Note The setting of the marking speed and dot interval shall be the same as the bitmap
setting in the marking document, otherwise the effects in the actual marking will differ.

If you want to do the fine adjustment for the grayscale energy, pick the adjusting dot by
Tips mouse, then use the UP and DOWN keys on the keyboard to conduct the fine
adjustment, the slide adjustment is ±0.1.

Adjust M value

Click Menu→Setting and click the “ Guide for adjusingt M value” in the popped up pull-down
menu, a dialog box for adjusting the M value as shown in below pops up:

Click NEXT;

5-14 HAN’S LASER MARKING SOFTWARE 6.0


Set appropriate marking parameters and adjust the M value. Conduct the marking test, according to
the test result as well as refer to above figure to conduct the adjustment, after completing
adjustemnt, click NEXT;

The adjustment is almost the same as above, only need to do some fine adjustment.After
completing adjustemnt, click NEXT;

HAN’S LASER MARKING SOFTWARE 6.0 5-15


After completing the caliobration, click OK to end the setting.

Edit user-defined font

Click Menu→Setting and click the “ Edit user-defined font” in the popped up pull-down menu, a
dialog box for editting the user-defined font as shown in below pops up:

Editting steps:
1) Choose an existed font in the font pull-down list or click “New”button to newly increase a font.
2) Choose the character to be modified from shortcut buttons on the right side and the left side
will display the corresponding font style of this character.

5-16 HAN’S LASER MARKING SOFTWARE 6.0


3) Edit this font style, adjust the shape, size and position; if you want all the characters to be
bottom-justified, align the characters with the aligning line after drawing.
4) Except changing the font style, you can also modify some array features of character through
pressing “Font modify” button, see below figure.

If check the option of “Apply distance for all”,all the characters of this font will use this parameter.
5) After completing editing, click “Save data” to get the modification taken effect, otherwise the
current modification is automatically given up.
6) Choose another font and set according to above steps.

Till now the edition of font has been completed, you can input some character string into the text
editing box on the right side to test, click “Apply” to view the typesetting and editing effect of
character string, as shown in below:

1. Before saving the character, if the character graphics is composed by many objects, it
has to group all the objects to an object.
Note 2. The four dotted lines in the drawing area are reference lines; the font adjusting
parameters take this boundary as reference.

HAN’S LASER MARKING SOFTWARE 6.0 5-17


5 -3 Calibration Settings

This section introduces definitions of calibration parameters in HAN’S LASER


MARKING SOFTWARE 6.0 and how to adjust them.

Introduction to calibration setting

Considering the special makeup of optical system and to get more accurate and fine marking effect,
optical scanners have to be calibrated.
Distortion of marking may result from:
Use of optical scanner may cause concave or convex in X or Y direction.
Deviation in installation position of optical scanner may cause the BOX to become a trapezoid
or parallelogram.
Nonuniformity or non-linearity of optical scanner may cause the nonuniformity of size
proportion in the whole marking range.
This system provides multi-level calibration to ensure accuracy in the whole calibration range.

Calibration setting method

This software provides three kinds of optical calibration methods for your option.

5-18 HAN’S LASER MARKING SOFTWARE 6.0


Main features:

Support the file management of many calibration parameter sets.


Support doule-end calibration(for the method to enable the double-end, please refer to the
LaserSet Utility Software User Manual.)
Suppoert the calibration of range, coordinate system, rotation and offset.
Support single-grade network calibration and multi-grade linear combination calibration
algorithm.
Support redlight calibration.
Automatically indentify different cards, avoid the occurence of error when multi-crad mixedly
working together.
One PC is allowed to insert several control cards , dynamically switch over.
Support calibration of three kinds of lens: fθ rear focusing lens and front focusing lens,
commom rear focusing lens.
Convenient and fast beam-emit debugging method.
Support several calibrating methods.
Support the calibration of 3D marking.

Normal calibration: it is the most fundamental calibration, adjust various deformations by simply
inputting some coefficients.
Super calibration 1: Provide an precise calibration method for the marking with small marking
–range(smaller than 200mm), which is able to achieve extremely high precision.
Super calibration 2: For the marking with large marking –range, which the canner is difficult to deal
with, you can use the third party professional instrument to obtain the point coordinates and import
to this calibration system, after processing still can achieve accurate calibration.

Basic parameters

Different sizes of optical scanners correspond to different marking ranges:


No. Lens Marking Calibration range (mm)
range(mm)
1 F=100 50*50 60*60
2 F=160 100*100 120*120
3 F=254 160*160 180*180
Typically, calibration range is greater than marking range. It is recommended to use different lenses
for different calibration ranges (as shown in the above figure).

Calibration level

1. BOX size: it is the size of the BOX to be calibrated. The maximum value equals to the marking
range.
2. X zoom ratio: to correct the length of lines in X direction, actual length=ratio*marking range.
Usually, it is set to 0.8 or so.
3. Y zoom ratio: to correct the length of lines in Y direction, actual length-ratio*marking range.
Usually, it is set to 0.8 or so.
4. X concavity and convexity: to correct the concavity and convexity of lines in X direction when
debugging BOX.
5. Y concavity and convexity: to correct the concavity and convexity of lines in Y direction when
debugging BOX.

HAN’S LASER MARKING SOFTWARE 6.0 5-19


6. X trapezoid: to correct the length of the two opposite sides so as to ensure the horizontal
opposite sides are equal.
7. Y trapezoid: to correct the length of the two opposite sides so as to ensure the vertical
opposite sides are equal.

8. X parallelism: to correct length of diagonal lines so as to ensure the BOX is horizontally


parallel.
9. Y parallelism: to correct length of diagonal lines so as to ensure the BOX is horizontally
parallel.

10. Positive length ratio: if the measured length of lines in positive X direction is greater than the
theoretical value, you need to change it smaller; otherwise, change it greater.
11. X negative length ratio: if the measured length of lines in negative X direction is greater than
the theoretical value, you need to change it smaller; otherwise, change it greater.
12. Y positive length ratio: if the measured length of lines in positive Y direction is greater than the
theoretical value, you need to change it smaller; otherwise, change it greater.
13. Y negative length ratio: if the measured length of lines in negative Y direction is greater than
the theoretical value, you need to change it smaller; otherwise, change it greater.

Relevant settings

New level: if multi-level calibration is necessary, click this button to add desired levels, and then
change “BOX size” in the corresponding levels.
Delete level: if the added levels are unnecessary, just delete them.
Overall effect: to view the calibration effect in the whole marking range, choose this option, and this
option can be used in coordination with “Callback level”.
Callback level: to set the fineness of viewing the overall effect. The higher the level is , the narrower
the line spacing is.
Parameter: to set marking parameters, e.g. marking times, marking speed, power, etc. save them
for next time use.

5-20 HAN’S LASER MARKING SOFTWARE 6.0


Calibration mark

Choose calibration level (e.g. L1), and then click the Test button or push the F7 key, and you can
mark within the specified range according to the calibrated pattern. After marking, you can measure
the size, length of X\Y axis, concavity, convexity, diagonal lines, etc. of the BOX.
If you want to stop the calibration mark process, click Stop.

Saving and calling up calibration parameters

After calibration, please save the calibration parameters in a safe position.


After replacing lenses or accessories, please call up the related calibration parameters.

Calibration procedure

Normal calibration

1. To set the most fundamental parameter: Calibration range, marking range, focus mode.
2. Adjust the coordinate system to enable that the marked graph coincides with the imported
graph.
3. Adjust the deformation and offset, correct marking graph size and deformation.
4. After completing the laser calibration, conduct the red-light calibration.
5. Save and exit.

For a brand new machine which never conducts any calibration, generally adopts following
operation procedures:

HAN’S LASER MARKING SOFTWARE 6.0 5-21


Note: For the lasers with dynamic focusing, such as CO2 front focusing, 3D marker etc., please DO
observe the following steps to adjust.

Choose the “Front focusing” mode, use ruler to precisely measure the distance between the square
head and worktable, namely the green line as shown in the following figure,

Head

Distance between the


square head and
worktable

Fill the measured value into the option of “Height between the square head and worktable” .
Adjust the BOX calibration parameter to calibrate the BOX, the calibration of BOX only checks the
size and deformation of BOX, leave the offset-focus alone.

After completing the calibration of BOX, if the marked BOX graph has offset-focus, adjust the value
of “Dynamic focus coefficient” till the effect is satisfied.

Super calibration 2
1. Choose Normal Calibration, set the marking range and BOX size, and conduct the initial
calibration for the BOX by normal calibration. It need not too precise, mainly focus on the
adjustment of deformation.
2. Choose Super Calibration 2, click “Build grid” and set the marking grid number in the pop-up
dialog box, the detailed data should be determined according to the marking range and
precision. Place the sample plate to be measuring marked, click “OK” and the software starts
to conduct the dot matrix scanning marking on the sample plate.
3. Acquire the marking dot coordinate by third party tools. Note: the coordinate system should
completely coincide with the marking system.
4. After acquiring the marking data coordinate, before entering the data into the software, it has
to create files accords with the required formats of this program. This system is equipped with
a data entry conversion program and provides two entering methods for your option.

Data entry conversion program Grid.exe can be found in the Emcc file of installation directory, the
running interface is as shown in below:

5-22 HAN’S LASER MARKING SOFTWARE 6.0


4.1 Manually entering

First enter the row number and column number, then click “Buildgrid” and the software will built a
grid of 10X20, the user only has to fill the actual measurement data into the grid based on the order
of What You See Is What You Get. After confirming, click “Export” to export the file in the required
format.

In order to facilitate the checking of data, this program also provides function of “Preview” for you to
view the overall arraying of the entered data and check with the actual marking data. The
previewing effect of software is as shown in below figure:

Meanwhile, in order to facilitate the multi-time editing and modification, software is also able to save
the entered data, the saved file is allowed to edit again by clicking the “Open” to open it.

HAN’S LASER MARKING SOFTWARE 6.0 5-23


4.2 File import

Use EXCEL to create a bifarious data file, export the data to be in CSV format, and then use the
data entry conversion program to open it. The below figure is showing a data list of 6X6, the first
row is the row number and column number (6 X 6), from the second row to the last successively are
the measured coordinate values (column A is the coordinate value of X axis, column B is the
coordinate value of Y axis) of each dot arrayed from top to bottom and from left to right.

5-24 HAN’S LASER MARKING SOFTWARE 6.0


Exported as the text file (tab-separated), as shown in below figure:

The interface of being open by data entry conversion program is as shown in below:

HAN’S LASER MARKING SOFTWARE 6.0 5-25


The previewing effect of above data is as shown in below:

6. Click “Export” to export the data to the calibration software directory after checking, then shut
down the Grid program
7. Switch to the calibration software, click “Import the quadratic-element processed data ”,
through the pop-up dialog box as shown in below to find the files exported by the conversion
program, click “Ok” and the software will do the validity check for it. If it has no problem, the
options of “Scale”, “Concave” and “Make super calibration file” on the calibration interface are
activated.

8. Click the “Make super calibration file”, system will rebuilt a calibration file based on the data
processed by the quadratic-element and the parameters of “Scale” and “Concave”, then input
the size of the BOX you want to text, click “Mark” button to do the trial marking, measure the
size and deformation of the trial marked BOX to see whether they meet requirements, if not, it
has to repeat the flow of “Adjust the parameters of Scale and Concave” ->” Make super
calibration file”->”Mark BOX”->”Measure the marked BOX” till completely meet the
requirements.

5-26 HAN’S LASER MARKING SOFTWARE 6.0


Chapter 6
Overall Debugging

This section introduces the connection, setting and


debugging methods of each parts of HAN’S LASER
MARKING SOFTWARE 6.0..

6-1 Hardware setting……………………………….…6-2


6-2 Q-driver setting……………………………………6-4
6-3 Software setting….……………………………..…6-5
6-4 Experience summary…………………………..…6-10

HAN’S LASER MARKING SOFTWARE 6.0 6-1


6 -1 EMCC Jumper Setting

Definition of DIP swiches (SWITCH)

1) Switch 1
1=ON, applicable to low level light-blocking Q-driver, such as Gooch Q-driver(Default). For the SPI
laser, IPG laser and CO2 laser, this DIP switch should be turn to ON.
1=OFF, applicable to high level light-blocking Q-driver, such as AA Q-driver and self-control
Q-driver.

2) Switch 2
Used for determining the polarity of PPK, mainly used to judge which one is valid (high level or low
level of digital pulse signal) when the digital signal compressing the first pulse, if choose the Gooch
Q-driver, it has to enable the digital signal first pulse compression, turn the switch 2 to OFF, if
choose the self-control Q-driver, turn the switch 2 to ON.

6-2 HAN’S LASER MARKING SOFTWARE 6.0


3) Combination of switch 3, switch 4 and switch 5.

Switch Switch Switch I(IA)(Z) Output Application


3 4 5 voltage
OFF OFF OFF GND_AN, Vs+ 0~10V SPI laser power amplifier
active-state current setting
point
ON OFF ON Vs-, Vs+ 0~3V Analog input of laser fast
response power supply
OFF ON ON Vs-, Vs+ -3V~3V Z axis control

4) Switch 6
Switch FPS(IS) Output voltage Application
6
OFF GND_AN, Vs+ 0~5V Analog input port of Q-driver
ON GND_AN, Vs+ 0~10V Standby current used for controlling the SPI
laser (SIMMER value).

5) Switch 7
7=OFF (Default)
7=ON Turn on when the front focusing requires Z axis.

6) Switch 8
Reserved

HAN’S LASER MARKING SOFTWARE 6.0 6-3


6 -2 Q-driver Setting

6 -1
Q-driver setting (GOOCH Q-driver)

Definition of DIP switches

1 2 3 4
Q pulse signal low level is
NO valid, light blocked, such as
Gooch Q-driver. Select control mode
Q pulse signal high level is Default
OFF valid, light blocked, such as
AA Q-driver, self-control
Q-driver.

Control mode 3 4
FPS ON OFF
PPK ON ON
R05 OFF OFF
A05 OFF ON

Brief introduction of control mode

1. FPS: Digital pulse signal control (Pulse signal should be >10us), the outputting result is the
“Exclusive Disjunction” of the two signals; representation is that the first pulse compression
signal and the Q-switched signal proceed at the same time.
2. PPK: :Digital pulse signal control (Pulse signal should be >10us), the outputting result is the
“Logical Product” of the two signals; representation is that the first pulse compression signal
proceeds first then the Q-switched signal.
3. R05: : Analog signal compresses first pulse, the first pulse compression signal and the
Q-switched signal proceed at the same time, the outputting result is the “Exclusive
Disjunction” of the two signals.
4. A05:: Analog signal compresses first pulse, the first pulse compression signal and the
Q-switched signal proceed at the same time, the outputting result is the “Logical Product” of
the two signals.
5. Generally the digital mode selects PPK, the analog mode selects R05.

6-4 HAN’S LASER MARKING SOFTWARE 6.0


6 -3 Software Setting

Setting of laser parameter

1. Click the “Laser Parameter” in the “Setup” menu.


2. Follow the setting wizard to set the laser-type, Q type and marking control-mode.

HAN’S LASER MARKING SOFTWARE 6.0 6-5


Setting of M parameter

If choose the handy Model, it has to set the M value of this system, since the incorrect M value will
cause the problems such as marking lines unsealed, stroke dislocated etc.

Setting method:
1. Click the “Adjust M” in the “Setup” menu.
2. Follow the setting wizard to complete the setting of M value.

Note: The M value should be reset after replacing the marking software or galvanometer system.

6-6 HAN’S LASER MARKING SOFTWARE 6.0


Setting of marking parameter

Continuous laser beam

Continuous laser beam: relative to pulsed beam, the Q-driver does not block the beam when
emitting, completely released.
For the pulsed beam, generally the releasing time is within 10us, but for the continuous laser beam,
the releasing time is equal to the cycle of certain frequency. For example, if it is 20KHZ, the
releasing time is 50us, namely it emits continuous laser beam.

First pulse inhibition

Digital Q-driver (Gooch Q-driver)


a) The general value of the “First pulse inhibitory time” in the marking parameter is
10—20us. It is meaningless if it is bigger or even may cause improperness.
b) If the initial-spot has overlapped spot or weak spot, it has to modulate the “FPS
Window”, “FPS Start” and “FPS Slope” of Q-driver.

Digital Q-driver (Self-control Q-driver)


a) The general value of the “First pulse inhibitory time” in the marking parameter is
60-90us.You can adjust according to different power values and Q frequencies.
b) Generally it is unnecessary to modulate the Q-driver.

Analog Q-driver (Gooch Q-driver)

Preparations:
1. Adjust the M value to guarantee that when marking with the normal marking speed, the two
endpoints of the reciprocated fill is aligned.
2. Make a BOX with appropriate size; the side length can be between 7mm-20mm.
3. Set to crosswise reciprocated fill.
4. Set the appropriate filling distance (d=0.5mm) based on the marking of laser spot.
5. Set to only mark the filling line but not the board line.
6. Set a set of initial value:
Initial spot rate: 0.8
Inhibitory length rate: 0.8
First pulse current rate: 0.8
Debugging effect is as shown in the right figure:

Steps:
1. First input the initial parameter values and view the marking effect.
2. If the Initial spot energy is weak, properly increase the “Initial spot rate” and the “current
coefficient”.
3. If the Initial spot energy is too strong, properly lessen the “Initial spot rate” and the “Current
coefficient”.
4. If the starting spot energy is nonuniform, sometimes is weak sometimes is strong, then it has
to properly lessen the “Inhibitory length rate” to make sure that the energy of the following
spots is uniform.

Principles:

Adjustment of “First pulse current rate”


1. Generally speaking, when inhibiting the initial spot, only adjust the “First pulse current rate” is

HAN’S LASER MARKING SOFTWARE 6.0 6-7


able to inhibit the initial spot energy to be uniform,; in some special cases such as low current
or high frequency, it need to be cooperated with the adjustment of “Initial spot rate” and
“Inhibitory length rate” to complete.
2. The adjustment of “First pulse current rate” is simple and fast; the bigger the current is or the
smaller the Q frequency is, the smaller the “First pulse current rate” is. The sensibility of this
parameter to the current and Q frequency is small.
3. This parameter is suitable to be applied when using the “Fast response power supply”.

Adjustment of “Initial spot rate” and “Inhibitory length rate”:


1. Generally speaking, when inhibiting the initial spot, only adjust the “Initial spot rate” and the
“Inhibitory length rate” is able to inhibit the initial spot energy to be uniform,; in some special
cases such as low current or high frequency, it need to be cooperated with the adjustment of
“First pulse current rate” to complete.
2. The adjustment of “Initial spot rate” and the “Inhibitory length rate” is complex.
3. It has to readjust if the Q frequency and current have any change.
4. This parameter is suitable to be applied when using analogue to inhibit the initial spot, besides,
a Q-driver with this function is also required (such as AA Q-driver, GOOCH Q-driver).

Compatable of specific implementing methods:


Initial spot energy Marking effect of reciprocated fill of BOX Adjusting method

Increase the “Initial spot


The initial energy is rate” or the “Current
weak. coefficient”.

Lessen the “Initial spot


The initial energy is rate” and the “Current
too strong. coefficient”.

6-8 HAN’S LASER MARKING SOFTWARE 6.0


Lessen the “Inhibitory
The energy of the fist length rate” to make sure
several spots is that the energy of the
nonuniform. following spots is uniform.

Peak energy

Peak energy: the peak power proportionality coefficient of single spot.


The maximum value of peak energy is 1, here the peak power of single spot is the largest; the
minimum value of peak energy is 0, here the peak power of single spot is the smallest.
Raise the peak energy, the single spot pulse width will minish and the peak power raises;
Minish the peak energy, the single spot pulse width will increase and the peak power minishes;

Setting method:
1. To minish the peak energy, first lessen the Initial spot rate, the peak energy should not to be
smaller than the Initial spot rate;
2. If you want to raise the Initial spot rate, raise the peak energy fist.

Marking quality

Marking quality: the registration accuracy between the actual path and the theoretical path of
marking;
Setting range of marking quality: 0—100
The worse the marking quality is: the lower the marking accuracy is & the greater the corner radian
is & the less the marking time is;
The better the marking quality is: the higher the marking accuracy is& the smaller the corner radian
is & the more the marking time is.

Layer delay

Layer delay: the interval taken by layer switching;


The layer delay is added to guarantee the stability of the laser current in the circumstance that
different layers set different power values.

HAN’S LASER MARKING SOFTWARE 6.0 6-9


6 -4 Experience Summary

First First
Q-driver/ pulse pulse Q-driver DIP EMCC Software Application
Laser inhibitory inhibitory switch DIP setting
signal mode switch
Selected by the marking
commonly used. If the Delay
1off,2on, Digital of the laser is too low, it will
Self-control Digital PPK Unnecessary 3on,4off, Q-driver/ cost extra marking time. The
Q-driver signal 5on Traditional first pulse inhibitory signal
mode connects to the FPS
interface of Q-driver and the
PPK interface of EMCC card.
Selected by the marking
Gooch Digital 1on , 2on , 1on,2on, Digital commonly used. The first
Q-driver signal FPS 3on,4off 3on,4off, Q-driver/ pulse inhibitory signal
5on Traditional connects to the FPS
mode interface of Q-driver and the
PPK interface of EMCC card.
Selected by the marking
Gooch Digital 1on , 2on , 1on,2on, Digital commonly used. The first
Q-driver signal PPK 3on,4on 3on,4off, Q-driver/ pulse inhibitory signal
5on Traditional connects to the FPS
mode interface of Q-driver and the
PPK interface of EMCC card.
Analog Selected by the marking
Gooch Analog 1on , 2on , 1on,3on, Q-driver/ commonly used. The first
Q-driver signal R05 3off,4off 4off , Traditional pulse inhibitory signal
5on ,6off mode connects to the AC interface
Handy of Q-driver and the FPS
mode interface of EMCC card.
1on,3on, Mode applied in debugging
Gooch Analog A05 1on , 2on , 4off , or test, seldom used in
Q-driver signal 3off,4on 5on ,6off normal mark.
Analog Selected by the marking
AA Analog 1off,3on, Q-driver/ commonly used. The first
Q-driver signal Unnecessary 4off,5on Traditional pulse inhibitory signal
mode connects to the FPS
Handy interface of EMCC card.
mode
Traditional Selected by the normal
1on, 3off, mode marking
CO2 laser
4on,5on, Handy
mode
- - - Traditional Selected by the normal
IPG laser 1on mode marking

- - - 1on,3off, Traditional Selected by the normal


SPI laser 4off,5off, mode marking
6on

6-10 HAN’S LASER MARKING SOFTWARE 6.0


Note:
1. When using the fast response power supply, the EMCC card needs to turn on the DIP
switches: 3on, 4off, 5on.
2. Use the fast response power supply can fast and conveniently adjust the first pulse inhibition
and improve the defects occurs when Q-driver compressing the first pulse such as :
1) The influence of the laser power and Q frequency on the first pulse inhibition effect;
2). When the single spot energy is small and in CW mode, the initial spot is difficult to inhibit.

HAN’S LASER MARKING SOFTWARE 6.0 6-11


Chapter 7
Other Operations

This chapter introduces key binding, user access


management, fault check and software encryption of the
marking software.

7-1 Key Binding………………………………….…..7-2


7-2 Access Management…………………………...7-4
7-3 Fault Check……………………………………...7-6
7-4 Software Encryption………………………….…7-8
7-5 Multi-card control…………………….……..……7-11

HAN’S LASER MARKING SOFTWARE 6.0 7-1


7 -1 Key Binding

This section introduces definitions of shortcut keys in HAN’S LASER MARKING


SOFTWARE 6.0 and the method of adjusting them.

Commonly-used shortcut keys

F1 to get the currently selected commands or to open the help file of a dialog box
SHIFT + F1 to get options on screen or the help file of active commands
CTRL + F1 to open the screen of help directory
CTRL+N to create a file
CTRL+O to open a file
CTRL+S to save a file
CTRL+F4 to exit the current file
ALT+F4 to exit the system
CTRL+Z to cancel the previous operation
CTRL+Y to redo the cancelled operation
CTRL+X to cut the currently selected object
CTRL+C to copy the currently selected object
CTRL+V to paste the objects on the clipboard
CTRL+A to delete all objects in the selected working area
DEL to delete the currently selected objects
CTRL+M Center
CTRL+G Group
CTRL+U Ungroup
F7 Fast mark
F8 to go to multi-document mark status
F9 to go to preview status
F10 to go to common mark status

Setting of key binding

The Set menu provides the following commands:

7-2 HAN’S LASER MARKING SOFTWARE 6.0


After entering the key binding dialog box, you can choose the desired functions, and then binding
them through the commonly used keys. Save the settings after editing.

HAN’S LASER MARKING SOFTWARE 6.0 7-3


7 -2 Access Management

This section gives an introduction to settings of access management in HAN’S


LASER MARKING SOFTWARE 6.0.

Right management

The Set menu provides the following commands:

Go to the User access management dialog box:

The types of users include Administrator and Common user. A administrator can distribute
operation rights to common users except the function of setting; also a administrator can add,
delete and change user access rights.
Right management classifies operation rights of the software into a few types. As shown in above
figure, check the option to obtain the related authority.
You can set the common user and administrator as the default users. In this case, when entering
the system, you don’t have to enter username and password. The default user is Hans, which is the
system user and it neither can be deleted nor changed its access right.

Add new user

7-4 HAN’S LASER MARKING SOFTWARE 6.0


Right-click the user list on the left side and the user management menu as shown in below figure
will pop up:

Use the menu to complete the user management operation.

User switching

If you want to switch user immediately, click the “Change User” in the “Setup” menu and a dialog
box as shown in below will pop up. This dialog box will list all the user names, choose user name
and enter the corresponding password, then click “OK”, the system will check the password and
complete the login.

Note The default password of the administrator Hans is 8888.

HAN’S LASER MARKING SOFTWARE 6.0 7-5


7 -3 Fault Check

This section introduces prompts of various faults that may occur in HAN’S LASER
MARKING SOFTWARE 6.0.

Connection of control card

A prompt message will be displayed on the title bar of the software if USB wire is disconnected or
control card is faulty in the drawing area status. If the control card is re-connected, the prompt
message will change correspondingly.

If the card cannot be found in marking status, the following prompt will be displayed:

After reconnection of the card, if you need to view the history fault information, use the Ctrl+F2 keys
to display the fault information:

7-6 HAN’S LASER MARKING SOFTWARE 6.0


Laser fault and safety door alarm

In marking status, if the laser is faulty or safety door gives alarm, a prompt message will be
displayed on the mark dialog box:

Common alarms on laser faults:


Laser overheats. Please shut down power supply!
.Laser high-reflection alarm. Please shut down power supply!
Abnormal laser MO. Please shut down power supply!

Common external alarms:


Laser cover is opened. Please shut down power supply and install laser cover properly!
Error occurred when closing optical shutter. Please shut down power supply and check
optical shutter!
Error occurred when opening optical shutter. Please shut down power supply and check
optical shutter!

Common alarms on safety door:


Safety door is opened. Please close the safety door!
Safety door is opened and marking pauses. Please close the safety door to resume marking!
Safety door is opened, and marking stops!

Common alarms on error:


The card is uninitialized or can not find the card.
System reset failure .
The version of the card is unmatched.
Command Execution failure.
State is uncorresponding.
Command timeout.
Interface invocation is asynchronous.
Z axis is transfinite.
Parameters are unmatched.
Memory allocation failure.

HAN’S LASER MARKING SOFTWARE 6.0 7-7


7 -4 Software Encryption

This section introduces encryption of HAN’S LASER MARKING SOFTWARE 6.0.

Introduction to software encryption

The HAN’S LASER MARKING SOFTWARE 6.0 software adopts USB softdog to prevent pirating,
software and marking control card are one-to-one bound and the softdogs should not be blended. .

Softdog not installed

If no softdog is installed, the prompt “No softdog found” will be displayed:

Softdog unplugged

If softdog is unplugged during operating of the software, the following prompt will be displayed and
then the software will be forced to turn off.

Incorrect softdog or card

If USB softdog or the bound control card of the marking control system is changed, the prompt “Not
match the marking card” will be displayed:

7-8 HAN’S LASER MARKING SOFTWARE 6.0


Activate binding

After replacement of softdog or control card, you need to re-activate the binding. The method is as
follows:
Start the application program for activating binding: Installation directory \ActiveDog.exe;

As shown in below figure, choose the softdog ID and control card ID to be bound respectively from
the left side and the right side.
If the softdog ID and control card ID are different, click “Binding” will pop up a dialog box for
inputting the active code.

Send the softdog ID and activation check code to the 400 service personal of Han’s Laser. After
confirmation, service personal will feed back an activation code accordingly. Enter the activation
code and click OK.

HAN’S LASER MARKING SOFTWARE 6.0 7-9


Before entering the activation code, do not close the above dialog box; otherwise, new
Note activation check code will be generated and you have to send again.

When using the EmccDownload program to download the lower computer program, some program
will require to input activation code, in this case, please call 0755-86161386 to consult.

7-10 HAN’S LASER MARKING SOFTWARE 6.0


7 -5 Multi-card control *

This section introduces the multi-card control of HAN’S LASER MARKING


SOFTWARE 6.0.

Enablement

When enabling, the software will scan the USB external devices of the computer, if the USB ports
inserted by several control cards (n≥2) as well as softdogs which bound to the control cards
respectively, and the softdogs have enabled the function of “ Multi-card switch in one computer”, the
system will pop up an dialog box for users to choose the card they want to control now, as shown in
below figure:

The pull-down box lists the ID or alias of all control cards that can be used now, the above figure is
an double-card enablement interface, you can choose any one of the control card to operate. Since
the control card ID is a 32-bit character string, the naming does not have any regulation, the
operator is difficult to distinguish the card. In order to facilitate the user to choose the control card,
you can rename the control card. The alias can either be the numerical symbols or any others.
Then when you entering into the software again next time, the list will display the alias of the
control card and you can easily find the control card you want.

After choosing the control card, click ”OK” and the software will start up with the current selected
control card and all the operations of the software are specified to this card.

1. If the USB ports inserted by several control cards but did not enable the function
Note of “Multi-card switch in one computer”, there will pop up a warming when starting
up the software which requires operator to remove the redundant control cards
and softdogs, otherwise it is not allowed to start up.
2. If the USB ports inserted by several control cards and the function of “Multi-card switch in one
computer” is enabled, the calibration software is only allowed to choose one control card
every time and the following calibrations are done for this selected control card, other control

HAN’S LASER MARKING SOFTWARE 6.0 7-11


cards do not attend the calibration. If you want to calibrate another control card, you have to
restart the calibration software and choose another control card.
3. The function of “Multi-card switch in one computer” is only allowed to operate a control card
every time, when switching , the original card will be disconnected. It is not allowed to operate
two or more than two control cards at the same time.

Switch during running

After entering into the marking software, if you want to switch over to another control card to work, it
need not to exit the software, click “Setup” ->”Switch card” to switch to another card when running.

It will pop up an dialog box that the same as the one popped up when starting up, choose the card
you wanted, click “OK” to complete the switching.

Rename the control card

After entering into the marking software, if you want to rename the control card, click ”Help”
->”Extend Function Information” and an interface as shown in below will pop up:

Click the “Rename” button and a dialog box for setting the alias pops up, as shown in below:

7-12 HAN’S LASER MARKING SOFTWARE 6.0


After completing the setting, click “OK” and the alias becomes effective.

When switching control cards after renaming, the control card selecting interface is as below:

HAN’S LASER MARKING SOFTWARE 6.0 7-13


Chapter 8
3D Operation *

This chapter introduces how to edit 3D drawings and the


marking operation mode.

8-1 3D Modeling…………………...…8-2
8-2 Model adjustment………….….…8-12
8-3 Data generation……………..……8-15
8-4 Auxiliary edit………………………8-22
8-5 File management…………………8-23
8-6 Marking operation……...…………8-24

HAN’S LASER MARKING SOFTWARE 6.0 8-1


8 -1 3D Modeling

This section introduces how to create 3D modeling.

Introduction to modeling

The operating mode of the 3D data processing of this software: first create 3D model, then map the
2D data to the 3D modeling surface to generate the 3D marking data, last through the marking
control function to mark the 3D data precisely on the material surface.
Modeling is the first step of 3D marking. This software divides the model into three kinds:
User-defined model, STL file and Composite model. The modeling methods of them are described
one by one in the follow sections.

User-defined model

1. Start up the software, create a blank document, click the “3D” button on the toolbar( as shown
in below figure) to

enter into the 3D field of view

8-2 HAN’S LASER MARKING SOFTWARE 6.0


The scale of the grid line in the above figure is generated according to the marking range, it is only
used for assisting the positioning and will not participate the marking. Also the three coordinate
axes in three different colors are for assisting the displaying. The four coordinate buttons on the
toolbar are for quick switching the visual angle, facilitate the positioning view.
2. In 3D field of view, the two buttons next to the “3D”button are available, click button
and the model “Loading” dialog box will pop up:

Check the “Base” for the option of “Shape”, click the “Type” list box and there are five model types
for your option: Step model, Incline model, Column model, sphere model and Taper model. Once
you choose a model type, the following “Parameter” column will display the parameters that are
necessary for creating this model. The detailed description of the five models and theirs creation
method are as follow.

3. Choose the “ Step”, the parameters in the “Parameter” column are as shown in the above
figure. “Step” means that it is composed by planes with different heights. To define a plane
with height requires the plane height, length, width and coordinate parameters, which
correspond to the parameters of “Z”, “Length”, “Width”, “X” and “Y” respectively in the
“Parameter” column.
The step can be one level or more, the buttons of “Add”, “Delete” and “Modify” are for the
operation of the step level. Providing that now has to create a two-level step, the first level
starts from (0, 0), the length and width are 20 and 40 respectively, the height is 10, the
second level starts from the ( 20, 0), the length and width are 20 and 40 respectively, the
height is 15.Input the related parameters in corresponding columns, click “Add” and the
parameters of each level will be displayed in the following list, if find any error, select the item,
input again and click the ”Modify” button. The below figure shows the situation of inputting
correctly:

HAN’S LASER MARKING SOFTWARE 6.0 8-3


After inputting, check the option of “New” on the left bottom, then click “OK”, the created step can
be seen on the 3D field of view

4. Choose the “Incline”, the parameters in the “Parameter” column are as shown in below
figure:

8-4 HAN’S LASER MARKING SOFTWARE 6.0


Except inputting two sets of coordinate values, you have to check the option of “Round Y axis” or
“Round X axis, since the two sets of coordinate values can not determine a spatial plane, it has to
add a direction parameter about the plane rotates round which axis. The below figure shows the
situation of the incline(0, 0, 0), (40, 40, 40)rotates round the Y axis:

HAN’S LASER MARKING SOFTWARE 6.0 8-5


The below figure shows the situation of rotating round the X axis:

5. Choose the “Column”, the parameters are as shown in below figure:

The column is placed thwartwise along the direction of being parallel to the Y axis, the explanation
of each parameter is as follow:
Radius: The radius of the undersurface of column.
Length: The height of the column, since it is thwartwise placed, named length.
Start tangle / End Angle: The 360 degree column occupies large space and exists meaningless
repetitive surfaces(the details will be explained in the section of Data
Generation), so through these two angles to crop the column.

8-6 HAN’S LASER MARKING SOFTWARE 6.0


The below figure shows a column with radius, length , start angle and end angle of 40mm, 40mm, 0
degree and 90 degree respectively:

6. Choose the “Sphere”, the parameters are as shown in below figure:

A radius parameter, add the option of “Inside”, this option represents the sign of upper/lower
hemisphere, if check this option, the lower hemisphere(namely the internal surface is selected ).

HAN’S LASER MARKING SOFTWARE 6.0 8-7


The below figure shows the design sketch of an upper hemisphere with radius of 40mm:

7. Choose the “Taper”, the parameters are as shown in below figure:

Extremely similar with the “Column” , the parameters of “Taper” includes ”Radius”, “Length”, “Start
Angle” and “End Angel”, the meanings of these parameters are the same as the parameters of
“Column”. The “Radius 1” refers to the radius of another undersurface of taper; if check the option

8-8 HAN’S LASER MARKING SOFTWARE 6.0


of “Upright”, the option of “Inside” will become invalid. The below figure shows a taper with radius,
radius 1, length, start angle and end angle of 40mm, 10mm, 40mm, 0 degree and 180 degree
respectively, and with the option of “Inside” and “Upright” are unchecked.

Note: Now it does not support the situation with the span bigger than 180 degree, such as the
situation that the start angle is 0, the end angle is 270 degree.

STL file model

The 3D model interactive formats are various, this software now only supports the STL format. First,
you have to edit the model in the 3D modeling software(such as Pro/E, inventor, UG etc.), then
export the model as the STL file, finally import the STL file to this software to use. The importing
procedure of 3D model is as follow:

1. Switch to 3D filed of view, enter into the 3D model loading dialog box. Check the option of
“STL model” in the “Shape” column, click the button followed behind the “File”, choose the
STL file you want to import, as shown in below figure:

HAN’S LASER MARKING SOFTWARE 6.0 8-9


After choosing the file, click ”OK” and the STL model has been imported. The below figure shows
the STL master drawing:

This workpiece model is designed by third-party 3D professional software, here only takes several
seconds to import it.

Composite model

Composite model is the combination of several models. The above mentioned models are single
models and can not satisfy the needs of the complex occasion. The composite model is to create
several single models, and through appropriate arrangement to compose a composite model.

8-10 HAN’S LASER MARKING SOFTWARE 6.0


Check the option of “New” in the “Loading” dialog box when creating, then you can create several
objects. The below figure shows an example of the composite model:

It is composed by “Step model”, “Incline model” and “STL model”.

Note: If a filed of view has several models, the selected model will be displayed in pink and the
unselected model displayed in gold. The TAB key can be used to quick switch the model. All the
editing operations are only valid for the selected model.

HAN’S LASER MARKING SOFTWARE 6.0 8-11


8 -2 Model Adjustment

This section introduces how to adjust the model, includes offset, select and
reconfiguration.

Offset rotation

1. Click the button next to the loading model and the “3D Transform” dialog box will pop
up:

Refer to position:

Includes two options: “Absolute” and “Relative”.


If check the “Absolute”, all the parameters in the column of “Offset” and “Rotate” will change to the
absolute “Position” of the last time transformation. The “Position” here refers to the offset value
and rotation value in general. After modifying the “Absolute” value, click “Apply”, and the model
will transform according to the given absolute value.

If check the “Absolute”, all the parameters in the column of “Offset” and “Rotate” will change to 0.
After modifying the “Relative” value, click “Apply”, and then the model will transform according to
the value relative to current value.

For the STL model, if exist the situation of exceeding the marking range before or after the
transformation, or not rotating round the X axis, the parameters of “Absolute” will be re-zeroed.

8-12 HAN’S LASER MARKING SOFTWARE 6.0


Move:
Coordinate with reference option plays the role of displaying and inputting.
Rotate:
Coordinate with reference option plays the role of displaying and inputting., the user-defined model
does not support the rotation that does not round the Z axis.

The below figure shows how to input the parameters for the situation that STL workpiece rotates
round the X axis by 90 degree, Z axis offset is -15.

Click “Apply”, the workpiece is upside down and almost in the center:

HAN’S LASER MARKING SOFTWARE 6.0 8-13


Since before the transformation, the model exceeds the marking range, when apply the
transformation, the absolute value will re-zero, here the effects of applying “Absolute” and
“Relative” are the same.

If the model always transforms within the marking range, the parameters of “Absolute” will not be
re-zeroed and will always displays the transforming situation relative to the original position. The
below figure shows the absolute value position of a column model after several transformations
within the marking range.

Modification

After creating the model, if you find it is not your desired one, such as you create a column model,
but later you find what you need is a sphere model, or if you create a sphere model with diameter of
10mm, later you find what you need is a sphere model with diameter of 15mm, in these cases,
reconfiguration of model is required.

Enter into the “Loading” dialog box again and the parameters of current model is displayed on the
dialog box, input the new parameters, check the option of “New”, click “OK” , the reconfiguration of
model is completed and the model has been changed to the new model.

8-14 HAN’S LASER MARKING SOFTWARE 6.0


8 -3 Data Generation

This section introduces how to generate 3D marking data.

Conversion of 2D data

The basic flow of converting 2D data is to make the plane data on the 2D field of view, then paste
the 2D data along the 3D model surface, when the 2D data pasted to the overlapped part of several
models, be subject to the plane model on the top.
Two data converting modes are available: Lossless Conversion and Projective Conversion. The
lossless conversion is adopted by various user-defined models; the projective conversion is
adopted by the STL model and the merging part of the composite model.

Lossless conversion

Take the column of the user-defined model as an example, it adopts the lossless conversion.

Conversion principle After converting

From the above figure we can see that the data after converting is lossless, from any point of view it
does not have distortion or deformation.

Projective conversion

The projective conversion means that the X and Y coordinate value of the original 2D data remain
unchanged, through this coordinate to find the Z coordinate it corresponds on the model to
constitute a new 3D coordinate. It is different with the lossless conversion, which adjusts the X and
Y coordinate value of the original 2D data. Take the column of TL mode as an example, as shown in
below figure:

HAN’S LASER MARKING SOFTWARE 6.0 8-15


Conversion principle After converting

Compared with the photo of lossless conversion, the data of projective conversion is sparse and the
“1” and “D” has deformed severely.
It is recommended that try to adopt the user-defined model as the converting basis of data, since its
converting effect is better. For the conversion of composite model, adopt the projective conversion
for the merging part and convert according to the actual situation of model for other parts. Adopt
lossless mode for the user-defined model and projective mode for STL model.

Mode selection

Adopt user-defined model or STL model to conduct the data conversion should be determined by
the usage requirements and difficulty.
If there has strict requirements on the size of the 3D marked graphics, the user-defined model
should be adopted to convert the data; if the model itself is complicated and can not be showed by
one model, it has to separate the marking contents into several parts and create different models
for each part to conduct the mapping separately, in this case, the good effect can be achieved.
If there does not have specific requirement on the size of the 3D marked graphics, using of STL
model is a good option. The STL model is able to conduct mapping on any complicated 3D curved
surface.

Example of conversion

Below is an example of pasting character on the sphere. Requirements: To paste “HANS LASER”
on the sphere; the radius of sphere is 20mm; it is a regular hemisphere; besides, another character
“Sphere” is not going to be pasted on the sphere. Steps are as follow:
1. Start up the software, create a blank document, add two texts of “HANS LASER” and
“Sphere”, center the former and get the latter lower centered.

8-16 HAN’S LASER MARKING SOFTWARE 6.0


2. Switch to 3D field of view, create sphere model, input 20mm, uncheck the option of “Inside”,
click “OK”, the model creation is completed and meanwhile the mapping is completed:

The “HANS LASER” has been pasted on the sphere, the “Sphere” is still on the 0 plane.

The above operations do not have strict requirements on the order, you can also create the model
first, then switch to 2D filed of view to create the text, then when switching back to the 3D field of
view , the data pastes on the model simultaneously. The below figure shows the mapping of the
composite model of multi-objects:

The composite model is composed by STL model, Incline model and Column model; in the 2D field
of view, create three texts: STL, Incline and Column; besides there has an imported PLT graphics
of the space shuttle, which crosses three models and paste on the composite model composed by
the three models.

In the section of describing the column modeling, we mentioned that the 360 degree column exists

HAN’S LASER MARKING SOFTWARE 6.0 8-17


meaningless repetitive surfaces, since the data is pasted on the model surface, the 360 degree
column has two surfaces at any position, the software will paste the data on the higher surface of Z
axis and ignore the lower surface, the bottom half column between 180~360 degree becomes
meaningless.

Import NC file data

The NC file is the G code file of numerical control machining, generally it is generated by 3D
graphics software UG, it also cam be generated by other professional soft wares:

Start up the software, click “File”→”Import”:

Choose the “NC” for the “File type” in the pop-up dialog box:

Below is an example of importing:

8-18 HAN’S LASER MARKING SOFTWARE 6.0


There does not have 3D model in the graphics, the NC file data takes Z coordinate with itself, it
need not 3D model to serve as a foil to generate, it can be used in 3D marking directly.

Modify coordinate

Mapping principle: If the z coordinate value of some point of the original data is not 0, the straight
line segment formed by any point (directly connected to this point ) and it will not participate the
mapping operation.
Take the above figure as an example to introduce the operation steps: Switch to 2D filed of view,
enter into coordinate editing mode, select a point or more points, right-click and a menu will pop up,
click the “Edit coordinate (&E)”:

A dialog box as shown in below pops up:

HAN’S LASER MARKING SOFTWARE 6.0 8-19


Here it is only allowed to input Z coordinate value, which means that several points have been
selected and the Z coordinate value of them are allowed to modify to the same value, the X and Y
coordinate values are not allowed to modify. Input 20 and click “OK”, then switch to 3D field of view,
you can see that the Z coordinate value of the selected points has been changed to 20mm, as
shown in below figure:

When the 3D data mapped on the model again, the parts that Z coordinate value is not 0 will not be
mapped. As shown in below figure, the Z coordinate value of a point of the quadrangle is not 0,
when mapping again without any processing, it generates a strange graphics.

8-20 HAN’S LASER MARKING SOFTWARE 6.0


8 -4 Auxiliary Edit

This section introduces the auxiliary edit in the 3D field of view.

Adjustment of visual angle

Drag the left mouse button to move the canvas.


Drag the right mouse button to Upward/downward/leftward/rightward rotate the canvas.
Zoom in/ zoom out the canvas by the mouse wheel.
Double-click the left mouse button to return back to the original state of canvas.

Model switch

Switch and select the next model by pressing TAB key, switch and select the previous model by
pressing SHFIT+TAB key.

Data switch

The selected 2D object is displayed in red while the unselected is light blue.
Pressing the “N” key to switch to the next 2D object.
Pressing the “L” key to switch to the previous 2D object.

Undo / Redo

In the 2D field of view, the Undo/ Redo operation is only valid for 2D objects.
In the 3D field of view, the Undo/ Redo operation is only valid for 3D objects.
The operation can be done through the menu or shortcut keys.
The maximum Undo/ Redo level in 3D filed of view is 10.

HAN’S LASER MARKING SOFTWARE 6.0 8-21


8 -5 File Management

This section introduces a new file format HD.

HS / HD file

HS is the old version of 2D file format; the new software is fully compatible with the old version file.
HD is the new version of 3D file format and save the 3D marking data, 3D model and layer
parameters simultaneously.

Choose the file type when opening or saving the file:

The HD file also support open by double-clicking or dragging. It is brand new file format and only
available for the new version of software.

8-22 HAN’S LASER MARKING SOFTWARE 6.0


8 -6 Marking Operation

This section introduces the 3D marking, positioning and the fine tuning of focus.

Marking operation

Except the rotation mark, 3D field of view is completely compatible with the online and offline mark
in the 2D field of view, including the common mark, multi-document mark, IO selective mark, fast
mark, red-light preview and single document /multi-document offline download mark etc..

The handling of the protective door alarm and abnormal alarm is the same as the plane mark.

From the perspective of operator, the 3D marking operation is the same as the plane marking
operation introduced in chapter four. Briefly speaking, in the 2D field of view, all the markings are
conducted according to the plane, while in the 3D field of view, all the markings are conducted
according to the 3D mode. The only distinction is the difference of the positioning of the datum
plane, the plane mark only requires to simply position the center point, while the 3D mark involves
the positioning of the space posture, which is more complicated.

For the marking control mode, please refer to the chapter four.

Positioning of the 3D datum plane

The 3D data involves the Z coordinate, in order to enable the model to match with the material
object, it requires to position the datum plane before marking. The incorrect positioning will cause
dislocation and offset focus to the whole object.

Generally, find a good datum point or plane on the material object, adjust the position of the model
or the material object till the two inosculated.

Positioning method of datum plane:


A. Move away the material object or the material object with fixtures, adjust the laser girder till
finding the focus on the worktable bearing surface, record the position of the laser girder.
B. Observe the 3D model and find the bearing bottom surface of the model, if the bearing
bottom surface is not a plane, you’d better import a model with fixture, in that case the bottom
surface of the fixture can be served as bearing bottom surface.
C. After confirming the bearing bottom surface, select the 3D model, switch the 3D view to XZ or
YZ view, adjust the Z offset of model through the dialog box of “3D Transform” till the
bearing surface locates on the zero position of Z axis. After completing the adjustment, click
“Set Base” to set the current position of model as the datum point, as shown in below figure:

HAN’S LASER MARKING SOFTWARE 6.0 8-23


D. After confirming the datum point, adjust the Z offset of model again to move the model to the
suitable marking position(since the Z adjustable range of marker is around 20mm, try to
adjust the Z datum plane to be close to the marking content). After adjusting to the required
position, record the Z datum offset value on the dialog box.
E. Synchronously adjust the maker girder by the datum offset value that mentioned in the step
D to enable that the focal plane of model keeps peace with the focal plane of material object.
If the software displays that the Z datum offset value is -20mm, it means that you have to
adjust the girder upward by 20mm, if the Z datum offset value is 12mm, it means that you
have to adjust the girder downward by 12mm.
F. After completing the adjustment of Z position, turn on the red light and observe the position it
locates on the material object, adjust the XY offset value of the model or the position of
material object till the center point of the model is in complete accord with the center point of
the material object. Till now the positioning of the 3D datum surface has been completed.
G. After completing the positioning, move the plane marking data to the model to conduct the
mapping, then marking can be started.

Position the Z first through the bearing surface, then position the XY through
Tips the red light.

Test focus

Before marking , it has to adjust the distance between the laser marker and the marking plane so as
to enable the laser energy to completely focus on the plane as much as possible. Due to the lack of
necessary debugging equipment, generally through visual inspection or hearing sound to judge
whether it is on the focal position. If some applications require to change products frequently, the
focal position has to be adjusted frequently also, which brings much inconvenience.

This software provides an immediate processing method, which the operator need not to precisely
adjust the focal position but only through the simply setting of marking can find the best marking
focus.

Method of test focus:

1. Click the button on the tool bar, find the Auto Focus. HS file in the “Samples”

8-24 HAN’S LASER MARKING SOFTWARE 6.0


directory of the Erection procedure, open the file and it will be as shown in below figure:

2. Set the marking parameters, then click the button on the tool bar, the software will first
detect the model number and order, if correct then enter into the dialog box as shown in below
figure:

Working principle: Software distributes a new Z offset value for each small grid according to the
given offset, then mark them on the same plane all at once, here the position where achieves the
best marking effect is the best focal position.
[Offset]: to set the Z offset value between every two groups of objects, the default is 0.05mm.
[Index of best objects]: to set the serial number for the objects with the best marking effect(1-20).

After completing the setting, click “Apply” to validate the setting. Later the software will take the
current best position as the focal position no matter in the plane marking or 3D marking. If the girder
position has any change, it has to position again.

HAN’S LASER MARKING SOFTWARE 6.0 8-25


Chapter 9
Appendix

This chapter introduces the secondary development


interface and describes how to output PLT drawings from
AUTOCAD 2000 and AUTOCAD R13.

Appendix A AutoCAD2000 drawing output……………9-2


Appendix B AutoCAD R13 drawing output…..………9-13
Appendix C Secondary development interface……. 9-18

HAN’S LASER MARKING SOFTWARE 6.0 9-1


A AutoCAD 2000
Drawing Output

This section introduces how to output PLT files from AutoCAD 2000.

Defining virtual device for outputting drawings

1. Start AutoCAD2000, click Tool->Option…, and the Option dialog box is displayed, click the
Plotting option, and the following print setup interface is displayed:

2. Click “Add or Configure Plotters (P)…”, and the following Plotters window is displayed:

9-2 HAN’S LASER MARKING SOFTWARE 6.0


3. Double-click “Add Plotter Wizard”, and the printer wizard program of AutoCAD is started, and
from the “Add Plotter – Introduction” dialog box, click “Next (N)>”, and the “Add Plotter –
Begin” dialog box is displayed:

4. In the “Add Plotter -- Begin” dialog box, click “My Computer (M)”, then click “Next (N)>”, and
the Add Plotter –Plotter Model” dialog box pops up:

HAN’S LASER MARKING SOFTWARE 6.0 9-3


5. In the “Add Plotter –Plotter Model” dialog box, choose “HP” from the list box of
“Manufacturers (M)”, and in the list box of “Models (O)”, a list of the models of HP printers
will be displayed. Click a model number, and the corresponding manufacturer information will
be displayed below the list box, for example, when the model number “7475A” is selected, the
prompt information “The provider of this model is HPGL - by Autodesk Inc.” will be displayed,
and when the model number “7600 series” is selected, the prompt information “The provider
of this model is HPGL/2 - by Autodesk” will be displayed. From the prompt information, we can
get to know that some HP printers support HPGL language, while some others support
HPGL/2 language. At present, PLT files expressed in HPGL language can be imported into
the system, you can choose any printers whose prompt information is “The provider of this
model is HPGL - by Autodesk Inc.”., however, for printers whose prompt information is “The
provider of this model is HPGL/2 - by Autodesk” cannot be used. Here, we choose the
“7475A” printer, then click “Next (N)>”, and the “Add Plotter – Input PCP or PC2” dialog box
is displayed, then click “Next (N)>” again, and the “Add Plotter -- Ports” dialog box is
displayed as follows:

6. In the “Add Plotter -- Ports” dialog box, click “Plot to file (F)”, then click “Next (N)>”, and the
“Add Plotter –Plotter name” dialog box will be displayed. In the dialog box, enter “HP7475A”
in the box of “Plotter name (P):” click “Next (N)>”, and the “Add Plotter -- Finish” dialog box
will be displayed. Click Finish, and the operation of adding printer is finished.

Setting device of outputting drawings

If the “Plot” dialog box is not opened, clicks “File-> Plot…” from the menu bar, and the “Plot” dialog
box will be opened. Then click “Plot Device”, a corresponding dialog box will be displayed. From
the dialog box, choose the pre-defined name of virtual device (e.g. han’s laser) from the pull-down
list box of “Name” of “Plotter Configuration”, and then click “Property”, and the “Plotter
Configuration Editor” dialog box is displayed, and then click “Device and Document Settings”,
as shown in the figure:

9-4 HAN’S LASER MARKING SOFTWARE 6.0


On the “Device and Document Settings” tab, there is a list box, click “Physical Pen
Configuration”, and the symbol “+” of it will expand, and then click “Physical Pen
Characteristics”, and as a result, the default pens numbered from 1 to 6 in the system will set to
different colors. Settings of the color is preferably corresponding to the colors settings of layers 1 to
6 that are defined in the marking software, as shown in the figure below:

HAN’S LASER MARKING SOFTWARE 6.0 9-5


From the list box of the “Device and Document Settings” tab, click “User Defined Paper size &
Calibration”, and the symbol “+” of it will expand, and then click “Custom Paper Sizes”, as shown
in the figure:

Click “Add…”, and the “Custom Paper Size -- Begin” dialog box will be displayed as follows:

Check “Start from scratch”, and then click “Next”, and the “Custom Paper Size – Medium
Bounds” dialog box will be displayed as follows:

9-6 HAN’S LASER MARKING SOFTWARE 6.0


In the “Custom Paper Size – Medium Bounds” dialog box, enter “100”, “100” and “mm”
respectively in the “Width”, “Height” and “Unit” boxes, and then click “Next”, and as a result, the
“Custom Paper Size – Printable area” dialog box will be displayed as follows:

In the “Custom Paper Size – Printable area” dialog box, enter 0 in the “Top”, “Bottom”, “Left” and
Right” boxes, and then click “Next”, and as a result, the “Custom Paper Size – Paper Size Name”
dialog box will be displayed, as shown in the following figure:

HAN’S LASER MARKING SOFTWARE 6.0 9-7


In the “Custom Paper Size – Paper Size Name” dialog box, enter “HL100(100.00 x 100.00 mm)”
as the name of the custom paper size, and then click “Next”, and the “Custom Paper Size --
Finish” dialog box will be displayed, as shown in the following figure:

In the “Custom Paper Size -- Finish” dialog box, click “Finish”, and the interface returns to
“Plotter Configuration Editor” dialog box. At this time, you will find the drawing size you have
defined just now, as shown in the following figure:

9-8 HAN’S LASER MARKING SOFTWARE 6.0


In the “Plotter Configuration Editor” dialog box, click OK, and it returns to the “Plot” dialog box,
then click the “Plot Settings” tab and then “Paper size”, in the pull-down list, you can see the
drawing size you have defined just now, as shown in the figure below:

Setting optional parameters of command Plot

If the “Plot” dialog box is not opened, choose “File-> Plot…” from the menu bar, and the “Plot”
dialog box will be displayed. In the dialog box, click “Plot Settings”, and then choose “Limits” from
the combo box of “Plot area”, as shown in the figure below:

HAN’S LASER MARKING SOFTWARE 6.0 9-9


Choosing unit, drawing breadth and direction

If the “Plot” dialog box is not opened, choose “File-> Plot…” from the menu bar, and the “Plot”
dialog box will be displayed. In the dialog box, click “Plot Settings”, then, in the combo box of
“Paper size”, choose “HL100 (100.00 x 100.00 mm)”, and then choose “mm” as the unit and “1:1”
as the scale, as shown in the following figure:

Generating PLT files

If the “Plot” dialog box is not opened, choose “File-> Plot…” from the menu bar, and the “Plot”
dialog box will be displayed. In the dialog box, click “Plot Settings”, and check “Plot to file” from
the combo box of the “Plot to file” tab, and enter the desired file name in the “File name” box, then
from the pull-down box of “Path”, choose the path for exporting the file, and finally click “OK”, and
the corresponding PLT file will be exported.

9-10 HAN’S LASER MARKING SOFTWARE 6.0


AutoCAD R13
B Drawing Output

This section introduces how to output PLT files from AutoCAD R13.

Defining virtual device for outputting drawings

Start AutoCADR13, click File->Printer Setup…, and the “Preferences” dialog box is displayed:

Click the “New” button, and the “Add Printer” dialog box pops up. From the list of printer drive,
choose “Hewlett--Packed(HP--GL) ADI 4.2----by Autodesk Inc.”.
Then enter a desired name in the “Add a Description” edit box, for example, “HANS LASER”. Click
OK, and the “AutoCAD Text Windows” dialog box pops up.
Press the Enter key for five times, and the interface goes back to the “Preferences” dialog box. In
the list box, choose the printer name you have entered just now, for example, “HAN’S LASER”, and
choose the “Set Current” command from the right side, and the printer you have defined just now
will be set as the current value.

HAN’S LASER MARKING SOFTWARE 6.0 9-11


Settings of AutoCAD R13 drawing output

After making drawings in AutoCAD, you can output them by generating PLT files in HP-GL format.
The detailed steps are as follows:
Setting drawing ouput device
Setting optional parameters of command Plot
Setting optimization
Selecting unit, darwing breadth and direction
Defining scale, angle and start point of drawings
Previewing drawings
Generating PLT files
After setting parameters for the first time, AutoCAD will save such parameter settings, so it’s
usually unnecessary to change such settings.

Setting drawing output device

If the “Plot Configuration” dialog box is not opened, choose “File\Print” from the menu bar, and
the “Plot Configuration” dialog box will be displayed.
Click “Device and Default Selection”, and a corresponding dialog box will pop up, then choose the
defined virtual device name, for example, “han's laser”, and click “OK” to back to the “Plot
Configuration” dialog box.
Reference: Defining virtual device for outputting drawings

Setting optional parameters of command Plot

If the “Print / Plot Configuration” dialog box is not opened, choose “File\Print…” from the menu
bar, and the “Print / Plot Configuration” dialog box will pop up.

9-12 HAN’S LASER MARKING SOFTWARE 6.0


In the “Additional Parameters” area of the “Plot Configuration” dialog box, there are a series of
options, these options can determine which kind of information to be drawn and where the
information will be sent to. The main parameters include:
Display: when the PLOT command is activated, all contents on the screen will be drawn.
Extents: all objects on the drawing will be drawn, no matter they inside the drawing or outside the
drawing.
Limits: objects on the drawing will be drawn (use the area defined by the LIMITS command).
View: all objects in the pre-defined view area of the drawing will be drawn. You have to define the
view area first.
Window: objects in the window will be drawn. You can draw a window by entering coordinate
values or picking two points.
Hide lines: the 3-dimensinal objects have to be hidden before making drawings from the model
space.
Adjust Area Fill: the boundary for you to draw filling objects, such as polygons and circular areas.
The line width is half of that of the pen width. This option is useful only when your drawing has to
been accurate to half of the pen width.
Pot To File: to output drawing data to files so as to generate PLT files.
During the process of outputting drawings, pay attention to choose Limits and Plot to Files as
shown in the figure.

Setting optimization

If the “Print / Plot Configuration” dialog box is not opened, choose “File\Print…” from the menu
bar, and the “Print / Plot Configuration” dialog box will be displayed.
Click “Optimization”, and the “Optimizing Pen Motion” dialog box pops up, as shown in the figure.
This dialog box is used to optimize movement of pen, thereby reducing unnecessary movements
and reducing drawing time accordingly.

Except “No optimization”, all the other options can increase the optimization level. For example, if
“Adds full motion optimization” is selected, all the other options (except “No optimization”)
above it will be selected simultaneously. Click OK after selection, and the interface returns to the
“Print / Plot Configuration” dialog box.
Usually, for PLT files generated by AutoCAD, the sequence of strokes is related to the sequence of
drawing patterns. In addition, patterns of the same color are always put together, namely, the
software does not process another colors until it finishes processing all the patterns of a same color,
which also complies with the principle of plotter optimization: a kind of pen is used for a color, and

HAN’S LASER MARKING SOFTWARE 6.0 9-13


when strokes of the color is finished, another pen is used to draw patterns of another color. If a
pattern includes two colors, black and red, black is usually drawn first and then red.
In actual application, upon different requirements of patterns, you can choose 0, 2 or 4 items of
optimization. Marking speed goes faster as the items of optimization increases, however, some
other problems may occur. Usually, if the patterns to be marked are very fine (e.g. marking of
clocks or watches), just choose 0 items of optimization, namely, no optimization will be made. For
marking of crystals, capacitors and inductors, you can choose 2 or 4 items of optimization.
If 4 items of optimization is chosen, marking speed is higher, but incorrect sequence may occur and
some strokes are connected together. If the distance from the end of a stroke to the start of another
stroke is less than 0.25mm, these two strokes are treated as one stroke, namely, connected
strokes.
If 2 items of optimization is chosen, marking speed is normal, and incorrect sequence may occur,
but no connected strokes occur.

Selecting unit, drawing breadth and direction

If the “Print / Plot Configuration” dialog box is not opened, choose “File\Print…” from the menu
bar, and the “Print / Plot Configuration” dialog box will pop up.

In the “Paper Size and Orientation” option:


The unit “MM” is usually used in working environment of metric system.
Click the “Size” button, and the “Paper Size” dialog box is displayed. In the dialog box, choose
sizes of drawing, as shown in the following figure:

9-14 HAN’S LASER MARKING SOFTWARE 6.0


Usually, we use the pre-defined sizes. Length and Height in the USER option are usually the range
of marking (e.g. 100X100mm), which are also the same with the values set by Limits.
If no size matches the range set by Limits, you can manually enter the values of Width and Height.
Click the “OK” button to close the “Paper Size” dialog box and return to the “Plot Configuration”
dialog box.

Defining scale, angle and start point of drawings

If the “Print / Plot Configuration” dialog box is not opened, choose “File\Print…” from the menu
bar, and the “Print / Plot Configuration” dialog box will be displayed.

HAN’S LASER MARKING SOFTWARE 6.0 9-15


Set these parameters in “Scale, Rotation and Origin” area.
According to the range of our application, choosing “Scale To Fit” is ok. Since we generally check
the “Limits” for drawing output range and set the paper breadth the same as the plotting range, the
“Scale To Fit” actually already realizes the ratio of 1:1 of plotting to drawing output, thereby it is
able to in proportion import the PLT file correctly in HAN’S LASER MARKING SOFTWARE 6.0
system.
Click the “Rotation and Origin” button, and the “Plot Rotation and Origin” dialog box pops up:

Choose rotation angle and start point of making drawings. In actual application, it’s unnecessary to
change such parameters. Just use the default settings.
In the “Plot Rotation” area, click 0, 90, 180 or 270 to make rotation angle.
In the edit boxes of “X Origin” and “Y Origin”, enter the values for moving from the left lower corner
of drawing to the right upper corner.
Click “OK” to close the dialog box and to return to the “Print / Plot Configuration” dialog box.

Previewing drawings

If the “Plot Configuration” dialog box is not opened, choose “File\Print” from the menu bar, and
the “Plot Configuration” dialog box is displayed.
In the “Plot Preview” area to realize preview of drawings.
To view more detailed information of the drawing, make sure you have checked Full, and then click
the Preview button.
Press the “End Preview” button to return to the “Plot Configuration” dialog box.

Generating PLT files

If the “Print / Plot Configuration” dialog box is not opened, choose “File\Print…” from the menu
bar, and the “Print / Plot Configuration” dialog box is displayed.

9-16 HAN’S LASER MARKING SOFTWARE 6.0


Click the “File Name” button to go to the “Create Plot File” dialog box (if the “Plot To File” option is
not checked, the “File Name” button will be in grey color, which means the button is invalid. To
make the “File name” button valid, please check “Plot To File”).

Choose the directory of the PLT file, and name the drawing in the “File Name” edit box, as shown in
the figure above. And then click OK to return to the “Print / Plot Configuration” dialog box, and as
a result, the corresponding PLT file will be generated and the system returns to the working status
of AutoCAD.

HAN’S LASER MARKING SOFTWARE 6.0 9-17


C Secondary
Development Interface

This section introduces the usage of the secondary development interfaces.

Version Revision Change record


Date
1.0 2010.10.10 Initial version
Add Unicode and cancel the incorrect interfaces
1.1 2010.12.01
according to Foxconn’s requirements.
Add object and document operation-interface
1.2 2011.02.16 according to the customized division’s requirements,
provide more applications.
1.3 2012.02.08 Add motion control interface.

Overview

This dynamic link library is developed based on the Hans Laser Marking Software V5.3 or higher
version with the purpose of satisfying the special needs of some advanced users in the following
cases:
1. The marking system is only one part of the customer system and the customers are with
strong development abilities, they hope that the marking system can be completely integrated
into theirs system.
2. For the abroad nonstandard users, owing to the problem of communication and distance, this
way is able to effectively solve some automation application problems
3. Other industries or departments can develop their own marking system based on this dynamic
link library.

The same as other marking software, this dynamic link library only supports the EMCC card.

This dynamic link library adopts the API to export the interface, which is the same as the Windows,
the function uses the stdcall statement, which can be used by several development tools, such as
VC++、VB、Delphi、C++ Builder、C# etc., the user has to illustrate the call, the methods are as
follow:
1. Call the Windows API function LoadLibrary () to dynamically load DLL.
2. Call the Windows API function GetProcAddress () to acquire the pointer of the function to be
called.
3. Use the function pointer to call the functions in the DLL to complete related performances.
4. When ending the program or will not use the program any more, call the Windows API
function FreeLibrary () to release the dynamic link library.

The name of the software interface dynamic link library: HansAdvInterface.dll

The software provides complete installation diskette; you can use after installing according to the
installation steps. Before using, you have to go to the standard software to do some parameter
settings, such as BOX calibration, marking position calibration, laser setting and so on.

9-18 HAN’S LASER MARKING SOFTWARE 6.0


Note: the software interface and marking software can not be used at the same time, if initialize the
machine through the interface when the marking software is running, there will feedback an error
code 1(Another program is running), in this case you have to shut down the marking software or the
calibration software.

Returned value and structure definition

All the function returned values are served as a faired universal error code; the definitions of the
code value are as follow:
#define HL_ERR_SUCCESS 0// Succeed
#define HL_ERR_PROGRUN 1// Another program is running
#define HL_ERR_PATH 2// Path incorrect.
#define HL_ERR_FAILOPEN 3// Initialization failure.
#define HL_ERR_ NOINITIAL 4// Uninitialized
#define HL_ERR_WARNING 5// Alarm
#define HL_ERR_OVERTIME 6//Command timeout.
#define HL_ERR_READFILE 7// Unable to read the file
#define HL_ERR_NOFINDFONT 8// Designated font is non-existent.
#define HL_ERR_NOPEN 9// Designated layer number is non-existent.
#define HL_ERR_NOOBJECT 10// Designated object is not found.
#define HL_ERR_PARAM 11// Parameter is invalid.
#define HL_ERR_STATUS 12// False state, this state can not execute this
operation.
#define HL_ERR_ALLOCMEMORY 13//Memory allocation failure.
#define HL_ERR_OVERRANGE 14// Marking range is over range.
#define HL_ERR_BUFFERSIZE 15// Buffer is not enough.
#define HL_ERR_NULLPTR 16// Null pointer.
#define HL_ERR_NODOC 17// Designated document is not found.
#define HL_ERR_UNKNOWN 100// Unknown error.

#define WM_TOUCH_MSG (WM_USER+1095) // Initiatively detect the footswitch touch


message

// Structure definition of filling parameter


struct baseHatch
{
BOOL bEnable; // Fill enable.
BOOL bEquaDist; // Equidistance enable
BOOL bKeepAngle; // Fill line rotates with the contour.
int nFillStyle; //Fill type
double dbSpace; // Fill space
double dbAngle; // Fill angle
double dbBeamComp; // Optical grating size.
double dbLineReduce; // Line reduce amount
double dbStartOffset; // Start offset amount
double dbEndOffset; // End offset amount
double dbMinJump; // Min. jump distance
//
BOOL bLoop; // Scale enable
int nLoopNum; // Scaling loop number
double dbLoopDist; // Scaling loop distance
BOOL bRemoveLine; // Remove fill line after scaling
BOOL bRemoveOrg; // Remove original contour line after scaling

HAN’S LASER MARKING SOFTWARE 6.0 9-19


int nFillNum; // Fill times
double ProAngle; //Progression angle
double AddDis; // Progression distance
BOOL bSaveCountour; // Reserve contour when progression filling
} BaseHach;

typedef struct HATCH_PARA


{
BaseHatch newFileData1;
BaseHatch newFileData2;
BOOL bFillFirst;
} HATCHPARA,*LP_HATCHPARA;

// Structure definition of font parameter


typedef struct FONT_PARA
{
int nFontType; // Font type0-TTF,-SHX,-HANS,-DOT
BYTE nCharSet; //Character set, Unicode is used in coding.
char szFontName[100]; // Used for TTF and HANS font
char szShxCN [100]; // Used for Chinese characters of SHX and DOT font.
char szShxEN[100]; // Used for English letters of SHX and DOT font.
char szShxNum [100];
} FONTPARA,*LP_FONTPARA;

// Structure definition of layer parameter


typedef struct LAYER_PARA
{
int nCount; // Marking times.
double dbMarkV; // Vector marking speed (mm/s)
double dbJumpV; // Vector jumping speed (mm/s)
double dbQFre; //Q frequency (KHz)
double dbQRls; //Q release (us)
double dbCurrent; //Current (A)
int nFpkTime; //First pulse inhibitory time
double dbFPKInitRate; //Initial spot rate (0.0~1.0)
double dbFPKLenRate; //Inhibitory length rate (0.0~0.999)
double dbFPKMaxPRate; // Peak energy rate (0.0~1.0)
double dbFPKCurRate; // First pulse current rate (0.0~1.0)
int nQuality; // Marking quality rate
int nLayerDelay; // Layer delay
int nLaserOnDelay; //Laser ON delay (us)
int nLaserOffDelay; //Laser OFF delay (us)
int nMoveLineDelay; //Stroke delay (us)
int nJumpDelay; //Jump delay (us)
int nRoundDelay; //Corner delay (us)
double dbCurrentR; //Current (%)
double dbSimmerCur; //Maintenance current (%)
int nWaveForm; //Wave form
double dbPowerR; //Power (%)
} LAYERPARA,*LP_LAYERPARA;

9-20 HAN’S LASER MARKING SOFTWARE 6.0


Interface function description

****************************************************************
Part A. universal part, applicable to all users
****************************************************************
1. HS_GetDllVersion
Grammar: int HS_GetDllVersion(WORD* pMainVer,WORD *pDllVer)
Function: To acquire the DII version as well as the version information of the main programs
required by it. The version information is composed by three sections of 16 bits, from high to low
allocated 4 bits, 5 bits and 7 bits respectively, for example, if the main program version is 20869,
the binary arrangement should be 0101 00011 0000101, the analytical result is V5.3.5.
Parametric description:
pMainVer:Main version number, the version number of the main program adhered by DLL.Only
install the program of this version can DLL work properly.
pDllVer:Secondary version-number. Internal version number of the DLL used for distinguishing
different DLLs

2. HS_InitialMachine
Grammar: int HS_InitialMachine(LPCTSTR pszPath)
Function: To initialize the control system
Parametric description: The full path where the library file is, pszPath is the internal default path if
null pointer.

3. HS_CloseMachine
Grammar: int HS_CloseMachine()
Function: To shut down the control system
Parametric description: No

4. HS_GetMarkRange
Grammar: int HS_GetMarkRange(double *pX,double *pY);
Function: To acquire the marking range
Parametric description:
pX:Size of Box in X direction (mm)
pY:Size of Box in Y direction (mm

5. HS_LoadMarkFile
Grammar: int HS_LoadMarkFile(LPCTSTR pszFileName)
Function: To load the marking file, if succeed, it will automatically take this file as the current
workfile.
Parametric description:
pszFileName: The complete path and name of marking file.

6. HS_GetDocList
Grammar: int HS_GetDocList(char szDocList[][50], int* pCount)
Function: To acquire the list of all the files currently already opened; the file name should be no
more than 50Bytes.
Parametric description:
szDocList: File list pointer
pCount: The size of the array introduced into the buffer, return to actual acquiring file number after
processing .

7. HS_SetCurDoc

HAN’S LASER MARKING SOFTWARE 6.0 9-21


Grammar: int HS_SetCurDoc(LPCTSTR lpszDocName);
Function: To set the current workfile.
Parametric description:
lpszDocName: Filename(with suffix. HS and path exclusive)

8. HS_SaveMarkFile
Grammar: int HS_SaveMarkFile(LPCTSTR lpszFile)
Function: To save the marking file, it has to input the complete path and file name.
Parametric description:
lpszFile: Complete path and file name, if it is NULL, save the path and the name displayed when
opeing the file.

9. HS_CloseMarkFile
Grammar: int HS_CloseMarkFile(LPCTSTR lpszFile,BOOL bSave)
Function: To save and shut down the marking file.
Parametric description:
lpszFile: Filename(with suffix. HS and path exclusive)
bSave: Whether to save the current file when shutting down it, saved based on the original file.
[Note]: The default file is not allowed to shut down, only the files opened through the interface can
be shut down.

10. HS_IsTouch
Grammar: int HS_IsTouch(int* pTouchFlag)
Function: The upper computer inquires and detects the footswitch, the detecting efficiency is low
and the too short interval may cause missing of detection.
Parametric description:
pTouchFlag:Signal bit zone, 1-triggered, 0-untriggered
[Note]: In hardware setting, the footswitch setting is valid for this interface, such as triggering level,
how many signals trigger once and so on.

11. HS_CheckTouch
Grammar: int HS_CheckTouch(HWND hWnd,BOOL bActive)
Function: Fast footswitch detection, real time detected by lower computer, once detects the
footswitch signal, it will send TOUCH message to the specified window. It is able to detect the
signal of very short interval. It is used when having high-end demands.
Parametric description:
hWnd: Window used for receiving WM_TOUCH_MSG message after the signal is triggered.
bActive: Activate or shut down the active detection
[Note]: After the active detection is shut down, the HS_IsTouch or HS_ReadPort can be used to
detect the TOUCH signal.

12. HS_Mark
Grammar: int HS_Mark(int nType,BOOL bWaitTouch,BOOL bWaitEnd, int
nOverTime,BOOL bMarkAll)
Function: To mark
Parametric description:
nType: Mark type, 0-normal mark, 1- red-light preview
bWaitTouch :Wait footswitch signal or not, TRUE- mark after detecting the signal, FALSE- mark
immediately.
bWaitEnd: Blocked or not, , TRUE- Return after marking finish, FALSE-unblocked, return
immediately.
nOverTime: Timeout limit of waiting footswitch signal (ms)
bMarkAll: Mark all or not (TRUE-All, FALSE-Part)

13. HS_IsMarkEnd

9-22 HAN’S LASER MARKING SOFTWARE 6.0


Grammar: int HS_IsMarkEnd(int* pFlag)
Function: To detect whether the marking has finished or not(HS_Mark is used in unblocked call).
Parametric description: Flag Marking signs , 0-be marking, 1- marking normally ended, 2-
marking interruption ended, 3- machine abnormal marking is ended.

14. HS_MarkPause
Grammar: int HS_MarkPause()
Function: To pause the marking
Parametric description: No

15. HS_Remark
Grammar: int HS_Remark()
Function: Recover the marking after pausing.
Parametric description: No

16. HS_MarkStop
Grammar: int HS_MarkStop()
Function: To stop the marking
Parametric description: No

17. HS_GetMarkTime
Grammar: int HS_GetMarkTime(UINT *pMarkTime);
Function: To acquire the last marking time.
Parametric description:
pMarkTime:Marking time (ms)

18. HS_ChangeTextByName
Grammar: int HS_ChangeTextByName(LPCTSTR lpszTextName, LPCTSTR lpszText)
Function: To change the text content
Parametric description:
lpszTextName: Changeable text alias
lpszText: Text content

19. HS_ChangeTextByNameW
Grammar: int HS_ChangeTextByNameW(LPCTSTR lpszName, LPCWSTRlpszTextValue)
Function: To change the text content (UNICODE coding)
Parametric description:
lpszTextName: Changeable text alias
lpszText:Text content

20. HS_GetTextByName
Grammar: int HS_GetTextByName(LPCTSTR lpszTextName, LPTSTR lpszText, int* pMaxCount )
Function: To acquire the changeable text content
Parametric description:
lpszTextName: Changeable text alias
lpszText: The buffer to receive the text content
pMaxCount: The byte count of the buffer, if the receiving length exceeds the byte count of the buffer,
this parameter will return the length of the receiving content.
Note: If the buffer is too small, pMaxCount will return the buffer size that actually needed.

21. HS_GetTextByNameW
Grammar: int HS_GetTextByNameW(LPCTSTR lpszName, LPWSTR lpszText, int*pMaxCount)
Function: To acquire the changeable text content(UNICODE coding)
Parametric description:
lpszTextName:Changeable text alias

HAN’S LASER MARKING SOFTWARE 6.0 9-23


lpszText: The buffer to receive the text content
pMaxCount: The byte count of the buffer, if the receiving length exceeds the byte count of the buffer,
this parameter will return the length of the receiving content.
Note: pMaxCount returns the buffer size that actually needed.

22. HS_ReadPort
Grammar: int HS_ReadPort(DWORD* pValue)
Function: To acquire the IO input state
Parametric description:
pValue: State value of the input port

23. HS_WritePort
Grammar: int HS_WritePort(DWORD dwValue,DWORD dwMask)
Function: To output IO signal
Parametric description:
dwValue: The output signal value
dwMask: The valid signal mask, only output the signal whose mask is 1, 0xFFFFFFFF outputs all
signals.

24. HS_SetDevCfg
Grammar: int HS_SetDevCfg()
Function: To pop up the system dialog box to set the hardware parameters.
Parametric description: No

25. HS_PreviewGraph
Grammar: int HS_PreviewGraph(HWND hWnd,double dbCenterX,double
dbCenterY,double dbScale)
Function: To preview the current marking content
Parametric description:
hWnd: Display the marking content in the specified window.
dbCenterX: Display the X coordinate value of the central point, the default is 0.
dbCenterY: Display the Y coordinate value of the central point, the default is 0.
dbScale: Scale factor of preview, default is 1.0, zoom in the displaying when it is bigger than 1,
zoom out the displaying when it is smaller than 1.

26. HS_SetHatchPara
Grammar:int HS_SetHatchPara(LPVOID pPara)
Function: To set the fill parameter
Parametric description:
pPara: The data pointer of fill parameter, details please refer to the HATCHPARA definition.

27. HS_GetHatchPara
Grammar: int HS_GetHatchPara(LPVOID pPara)
Function: To acquire the current fill parameter
Parametric description:
pPara: The data pointer of fill parameter, details please refer to the HATCHPARA definition.

28. HS_SetFontPara
Grammar:int HS_SetFontPara(LPVOID pPara)
Function: To set the font parameter
Parametric description:
pPara:The data pointer of font parameter, details please refer to the FONTPARA definition.

29. HS_GetFontPara
Grammar: int HS_GetFontPara(LPVOID pPara)
Function: To acquire the current font parameter

9-24 HAN’S LASER MARKING SOFTWARE 6.0


Parametric description:
pPara:The data pointer of font parameter, details please refer to the FONTPARA definition.

30. HS_SetLayerPara
Grammar: int HS_SetLayerPara(int nLayer, LPVOID pPara)
Function: To set the specified layer parameter
Parametric description:
nLayer: The layer number of the layer wanted to set
pPara: The data pointer of layer parameter, details please see the LAYERPARA definition.

31. HS_GetLayerPara
Grammar: int HS_GetLayerPara(int nLayer, LPVOID pPara)
Function: To acquire the parameter information of the specified layer.
Parametric description:
nLayer: The layer number of the layer wanted to acquire.
pPara:The data pointer of layer parameter, details please refer to the LAYERPARA definition.

32. HS_ImportVectorFile
Grammar: int HS_ImportVectorFile( LPCTSTR lpszFileName, double dbPosX,double
dbPosY,double dbWidth, double dbHeight, double
dbRotate,BOOL bHatch,int nHatchLayer, LPCTSTR
lpszObjName)
Function: To import the vector graphics file.
Parametric description:
lpszFileName: File name of the file to be imported, distinguish the type by the suffix (Plt、DXF)
dbPosX,dbPosY:The placing position of the graphics after being imported
dbWidth: The scaling rate of the graphics after being imported
dbHeight: The scaling width of the graphics after being imported
dbRotate: The rotation angle of the graphics after being imported
bHatch: Fill or not
nHatchLayer: Number of the layer to be filled
lpszObjName: Object name

33. HS_ImportImageFile
Grammar: int HS_ImportImageFile(LPCTSTR lpszFileName, double dbPosX,double
dbPosY,double dbWidth,double dbHeight,double
dbRotate,int nMarkType, double dbDotDistX,double
dbDotDistY, int nAccDot,BOOL bReciprocate, int
nRepairDot,LPCTSTR lpszObjName )
Function: To import the bitmap graphics file.
Parametric description:
pszFileName: File name of the file to be imported, distinguish the type by the suffix
dbPosX,dbPosY:The placing position of the graphics after being imported
dbWidth: The scaling rate of the graphics after being imported
dbHeight: The scaling width of the graphics after being imported
dbRotate: The rotation angle of the graphics after being imported
nMarkType: Bitmap marking type, 0-Grayscale bitmap, 1-Two-value bitmap
dbDotDistX: Dot distance of bitmap on X axis
dbDotDistY: Dot distance of bitmap on Y axis

Following parameters are only valid when the marking type is grayscale bitmap
nAccDot: Acceleration dot number
bReciprocate: Reciprocated scanning

HAN’S LASER MARKING SOFTWARE 6.0 9-25


nRepairDot: Compensation dot number
lpszObjName: Object name
Note: Since the parameter adjustment of grayscale bitmap marking is very complicated, the
adjustment of the grayscale bitmap is done by the marking software, the database interior will call
the parameters that already adjusted, and no other development interface will be provided.

34. HS_AddText
Grammar: int HS_AddText(LPCTSTR lpszStr, double dbHeight, double
dbWidthRatio,BOOL bModel, LPCTSTR pszName,double
dbPosX,double dbPosY, int nAlign, double dbAngle, int
nLayer, BOOL bHatch,int nHatchLayer, LPCTSTR lpszObjName)
Function: To add text data
Parametric description:
pszStr: Text content
dbHeight: Text height
dbWidthRatio: Width ratio
bModel: Changeable text or not
nModelID: Changeable text ID
dbPosX: Position of the text on the X axis
dbPosY: Position of the text on the Y axis
nAlign: Aligned mode
dbAngle: Rotation angle
nLayer: Border layer
bHatch: Fill or not
nHatchLayer: Filled layer
lpszObjName: Object name

35. HS_AddText2
Grammar: int HS_AddText2(LPCTSTR lpszStr, double dbHeight, double
dbWidthRatio,BOOL bModel, LPCTSTR pszName,double
dbPosX,double dbPosY, int nAlign, double dbAngle, int
nLayer, BOOL bHatch,int nHatchLayer,double dbCharSpace,
double dbLineSpace, LPCTSTR lpszObjName)
Function: To add text data, compared with HS_AddTex, it adds the parameters of Character
spacing and Vertical spacing.
Parametric description:
pszStr: Text content
dbHeight: Text height
dbWidthRatio: Width ratio
bModel: Changeable text or not
nModelID: Changeable text ID
dbPosX: Position of the text on the X axis
dbPosY: Position of the text on the Y axis
nAlign: Aligned mode
dbAngle: Rotation angle
nLayer: Border layer
bHatch: Fill or not
nHatchLayer: Filled layer
dbCharSpace: Character spacing
dbLineSpace: Vertical spacing
lpszObjName: Object name

9-26 HAN’S LASER MARKING SOFTWARE 6.0


36. HS_AddBarcode
Grammar: int HS_AddBarcode(LPCTSTR lpszStr, int nBarType, double dbHeight,double
dbPosX, double dbPosY, double dbAngle, int nAlign, int
nLayerNo, double dbBarRatio, double dbLineDist, double
dbShrink, BOOL bReverse, double dbRevWidth, double
dbRevHeight, BOOL bModel, LPCTSTR lpszTextName,
LPCTSTR lpszObjName)
Function: To add barcode data
Parametric description:
pszStr: Barcode content
nBarType:Barcode type
0 - EAN8,
1 - EAN13,
2 - EAN128,
3 - CODE128A,
4- CODE128B,
5 - CODE128C,
6 - CODE128AUTO,
7 - CODE39,
8 - INT25,
9 - EXT39,
10 - UPCA,
11 - UPCE,
12 - PDF417,
13 - DATAMATRIX
14- QR

dbHeight: Barcode height


dbPosX: Position of the barcode on the X axis
dbPosY: Position of the barcode on theY axis
dbAngle: Rotation angle
nAlign: Aligned mode
nLayerNo: Layer number
dbBarRatio: Width ratio
dbLineDist: Line distance
dbShrink:: Indent
bReverse: Reversedly fill the barcode or not
dbRevWidth: Width of the reversed fill(mm)
dbRevHeight: Height of the reversed fill(mm)
bModel: Changeable text or not
nModelID: Changeable text ID
lpszObjName: Object name

37. HS_AddCurve
Grammar: int HS_AddCurve( double ptBuf[][2],int nPtNum,int nLayer,BOOL bHatch,int
nHatchLayer, LPCTSTR lpszObjName)
Function: To add curve data
Parametric description:
ptBuf: Curve dot array
nPtNum: Dot number
nLayer: Applied Layer
bHatch: Fill or not
nHatchLayer:Filled layer

HAN’S LASER MARKING SOFTWARE 6.0 9-27


lpszObjName:Object name

38. HS_AddDotMatrix
Grammar: int HS_AddDotMatrix(double ptBuf[][2],int nPtNum,int nLayer, LPCTSTR
lpszObjName)
Function: To add dot matrix data
Parametric description:
ptBuf: Curve dot array
nPtNum: Dot number
nLayer: Applied Layer
lpszObjName:Object name

39. HS_GetObjList
Grammar: int HS_GetObjList(TCHAR szObjList[][50],int* pCount)
Function: To acquire the object list of the current workfile
Parametric description:
szObjList: Object name list pointer
pCount:The size of the array introduced into the buffer, return actual acquiring object number after
processing.

40. HS_SelectObjects
Grammar: int HS_SelectObjects(LPCTSTR lpszObjName, BOOL bSelected)
Function: Select/ not select the specified object, once the object is selected, you can do operations
such as marking, moving, rotating, shearing, arraying, extracting prpperty and delecting on it.
Parametric description:
lpszObjName: Object name, if it is NULL, and then operate on all objects.
bSelected:Select or not, TRUE-select,FALSE-not select.

41. HS_ClearObjects
Grammar: int HS_ClearObjects()
Function: To delete the current selected object.
Parametric description: No

42. HS_Move
Grammar: int HS_Move( double dbMoveX,double dbMoveY)
Function: To move the current selected object.
Parametric description:
dbMoveX:Amount of movement on X axis (mm)
dbMoveY:Amount of movement on Y axis (mm)

43. HS_Rotate
Grammar: int HS_Rotate(double x,double y,double dbRotate)
Function: To rotate the current selected object.
Parametric description:
x: X coordinate value of the rotating datum point
y: Y coordinate value of the rotating datum point
dbRotate:Rotation angle(Degree)

44. HS_Shear
Grammar: int HS_Shear( double dbBaseX,double dbBaseY, double dbAngleX,double
dbAngleY)
Function: To shear the current selected object.
Parametric description:
dbBaseX: Shearing position on the X axis

9-28 HAN’S LASER MARKING SOFTWARE 6.0


dbBaseY: Shearing position on the Y axis
dbAngleX: Shearing angle (Degree) on the X axis
dbAngleY: Shearing angle (Degree) on the Y axis

45. HS_Scale
Grammar: int HS_Scale(double x,double y,double dbScaleX,double dbScaleY)
Function: To scale the current selected object.
Parametric description:
x: X coordinate value of the datum point
y: Y coordinate value of the datum point
dbScaleX:Scaling rate on the X axis
dbScaleY:Scaling rate on the Y axis

46. HS_Array
Grammar: int HS_Array(double ptArray[][2],int nSize)
Function: To array the current selected object.
Parametric description:
ptArray: Position coordinates array of the array.
nSize: Array size of the array

47. HS_GetObjProperty
Grammar: int HS_GetObjProperty(double* pLeft,double *pTop,double *pRight,double
*pBottom)
Function: To acquire the property of the current selected object, return the information nof object
Quad[l,t,r,b]
Parametric description:
pLeft: Quad left coordinate
pTop: Quad top coordinate
pRight: Quad right coordinate
pBottom: Quad bottom coordinate

48. HS_IGotoXYZ
Grammar: int HS_IGotoXYZ(int nType, double dbX,double dbY, double dbZ)
Function: Immediate instruction, move the XYZ axis to the specified position (XY refer to the
optical scanner, Z refers to the 3D focusing)
Parametric description:
nType:(Type 0- only move the XY,1-Only move the Z,2-Move the XYZ together)
dbX:(Coordinate value of the target site of X, mm)
dbY:(Coordinate value of the target site of Y, mm)
dbZ: (Coordinate value of the target site of Z, range is 0--65535)

49. HS_MoveMotorV
Grammar: int HS_MoveMotorV(int nAxisNo, double dbMoveValue, int nMoveModel,
int nMoveType)
Function: Motor single axis running
Parametric description:
nAxisNo: Axis number (Number of the running axis, through the axis number to determine the
motion mode: rotation or translation)
dbMoveValue: Motion quantity (the unit of rotation is degree, and the translation is mm)
nMoveModel: Move model: 0 Absolute, 1 Relative 2 Home
nMoveType: Move type:0 Work move, 1 Empty move

50. HS_HomeMoveV

HAN’S LASER MARKING SOFTWARE 6.0 9-29


Grammar: int HS_HomeMoveV(int nAxisNo, BOOL bSoftHome)
Function: Motor single axis home
Parametric description:
nAxisNo: Axis number
bSoftHome: Go back to the software home position or not.

51. HS_SetAsSoftHome
Grammar: int HS_SetAsSoftHome(int nAxis)
Function: To set the current position as the software home position
Parametric description:
nAxis:Axis number

52. HS_ILaserOn
Grammar: int HS_ILaserOn(double dbQFrq,double dbQRls,double dbCurrentA,double dbPower)
Function: Immediate instruction, turn on the laser.
Parametric description:
dbQFrq:Q frequency,
dbQRls:Q releasing time
dbCurrentA:Working current of laser (A), used for Q-switched laser.
dbPower:Working power of laser (%), used for IPG、SPI laser

53. HS_ILaserOff()
Grammar: int HS_ILaserOff()
Function: Immediate instruction, turn off the laser.
Parametric description:No

54. HS_GetLastError
Grammar: int HS_GetLastError(int* pError, LPTSTR lpszMsg, int nSize)
Function: To acquire the last error code and its detailed error message.
Parametric description:
pError: Error code
lpszMsg: The buffer that saves the error message
nSize: Size of the error message buffer

****************************************************************************************
Part B. Advanced application, some applications require authorization
****************************************************************************************
Data definitions required by advanced application:

// Data structure of the external interface dot


class CInterDot
{
public:
CInterDot()
{
x = 0;
y = 0;
z = 0;
}
CInterDot(double x1,double y1)
{
x = x1;

9-30 HAN’S LASER MARKING SOFTWARE 6.0


y = y1;
}

CInterDot(double x1,double y1,double z1)


{
x = x1;
y = y1;
z = z1;
}

CInterDot & operator=(const CInterDot &dot)


{
if ( this == &dot )
return *this;
else
{
x = dot.x;
y = dot.y;
z = dot.z;
}
return *this;
}

public:
double x; //x
double y; //y
double z; //z (3D RESERVED)
};

// Data class of the external interface stroke


class CInterStroke: public CObject
{
public:
CInterStroke()
{
m_nLayer = 0;
m_dotArray.RemoveAll();
}

virtual ~CInterStroke ()
{
m_dotArray.RemoveAll();
}

void AddDot(CInterDot& dot){


m_dotArray.Add(dot);
}

void SetLayer( int nLayer ){


m_nLayer = nLayer;
}

CInterStroke & operator=(const CInterStroke &stroke)


{
if( this == &stroke )
return *this;

HAN’S LASER MARKING SOFTWARE 6. 9-31


else
{
m_nLayer = stroke.m_nLayer;
m_dotArray.RemoveAll();
m_dotArray.Append(stroke.m_dotArray);
}
return *this;
}
public:
CArray<CInterDot, CInterDot>m_dotArray;
int m_nLayer;
};

// Data chain list of the external interface stroke


Typedef CTypedPtrList<CObList, CInterStroke *>InterStrokeList;

55. HS_GetStrokeList
Grammar: int HS_GetStrokeList(LPCTSTR lpszObjName,LPVOID pList)
Function: To acquire the stroke list of the current specified object, DLL allocates storage internally,
after the external has been used up, use the HS_FreeStrokeList to release.
Parametric description:
lpszObjName:Specified object name, when it is NULL, take all objects.
pList: Deposit the extracted stroke list; details please refer to InterStrokeList definition.

56. HS_MarkStorkeList
Grammar: int HS_ MarkStorkeList(int nType,LPVOID pList)
Function: To mark the stroke list of the introduced InterStrokeList object
Parametric description:
nType: 0-laser,1-red-light
pList:Stroke list

57. HS_FreeStorkeList
Grammar: int HS_FreeStorkeList(LPVOID pList)
Function: To free the user-defined stroke list.
Parametric description:
pList:InterStrokeList stroke list

58. HS_SendCustomCmd [*]


Grammar: int HS_SendCustomCmd(******,*******)
Function: Used for the upper computer initiatively communicates with the lower computer; details
please refer to the internal use document.
Note: This interface is for internal use only!

59. HS_SetCustomMsgCall [*]


Grammar: typedef void (*HS_USERDEFINE_MSG_CALLBACK)(********************);
int HS_SetCustomMsgCall(HS_USERDEFINE_MSG_CALLBACK pCallBack);
Function: Used for the lower computer initiatively communicates with the upper computer
Note: This interface is for internal use only!

9-32 HAN’S LASER MARKING SOFTWARE 6.0


Version Information

Edit date Version Contents changed

March, 2010 Initial version Corresponds to V5.3.2


August, 2010 Second version Corresponds to V5.3.3
October, 2011 Third version Corresponds to V6.0
Specifications are subject to change without further notice.

Headquarters
Han’s Laser Building, Beihuan Road, Hi-Tech Industrial Park, Nanshan District, Shenzhen, 518057,
Guangdong Province
Customer service hotline:
Telephone exchange: +86 755 86161000/86161040
Sales consultation hotline: 400-666-4000
Fax: + 86 755 86161088
http://www.hanslaser.com

You might also like