Structure of the TLV Command Listings..................... 2-8
2.1 2.2 2.3
TLV Sequence with ASCII string as TLV Value............... 2-8 TLV Sequence with Unicode string as TLV Value ......... 2-10 Legend of the abbreviations used for the zeroterminated strings .......................................................... 2-11 2.3.1. Result of the TLV request (G1)....................... 2-12 2.3.2. Extended error code (G2)............................... 2-12
3.
TLV commands for laser control system .................. 2-13
3.1 3.2 3.3
Laser/shutter .................................................................. 2-13 Shutter ........................................................................... 2-14 Pilot laser ....................................................................... 2-15
Marking .......................................................................... 2-16 Trigger marking.............................................................. 2-18 Abort marking ................................................................ 2-19 Marking status ............................................................... 2-20 Laser status in Winmark format ..................................... 2-21 Laser reset ..................................................................... 2-22 Trigger conversion ......................................................... 2-23 Conversion status .......................................................... 2-24 Read pilot laser mode .................................................... 2-25 Set pilot laser mode ....................................................... 2-26 Read "Marking on the fly" parameters ........................... 2-27 Set "Marking on the fly" parameters .............................. 2-29 Read RTC parameters................................................... 2-30 Segment info .................................................................. 2-31 Segment data ................................................................ 2-33 Mark Segment ............................................................... 2-34 Creating the matrix and binning file for matrix segmentation ................................................................. 2-36 Creation of a new matrix file for the matrix segmentation ................................................................. 2-38 Laser status ................................................................... 2-41 Last error........................................................................ 2-42 Short error/warning text ................................................. 2-43 Last warning .................................................................. 2-44 Laser .............................................................................. 2-45 Q-switch ......................................................................... 2-46 Initialization of beam monitoring by the scanner ........... 2-47 Scanner beam monitoring.............................................. 2-49 Laser power ................................................................... 2-50 Frequency ...................................................................... 2-51 Defocusing ..................................................................... 2-52 Set laser parameters offsets .......................................... 2-53 Switching on or switching off "Marking on the fly" ......... 2-54 Switching on or switching off the retrigger mode........... 2-55
4.
TLV commands for Mechanics SW module .............. 2-56
4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 4.10
Reference all axes ......................................................... 2-56 Reference axis ............................................................... 2-57 Reference two axes ....................................................... 2-58 Move axis ....................................................................... 2-59 Move two axes ............................................................... 2-61 Axis position................................................................... 2-62 Recognize focal position................................................ 2-63 Set segment offset for axes ........................................... 2-64 Open door ...................................................................... 2-65 Close door...................................................................... 2-66
3.21
6
Table of contents
2017-02-23
SW-TLV-EN
4.11 4.12 4.13 4.14 4.15 4.16 4.17 4.18 4.19
Rotate rotation door ....................................................... 2-67 Status rotating door ....................................................... 2-68 Move foil module............................................................ 2-69 Edge-detection............................................................... 2-70 Mechanics status ........................................................... 2-71 Mechanics error ............................................................. 2-74 Moving axes continuously (from TTM 2.7) .................... 2-78 Stop all axes (from TTM 2.7) ........................................ 2-79 Switch axis on or off....................................................... 2-80
5.
TLV commands for the digital interface .................... 2-81
5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8 5.9
Inputs of the digital interface.......................................... 2-81 X input of the digital interface ........................................ 2-82 Digital interface outputs ................................................. 2-83 X output of the digital interface ...................................... 2-84 Inputs 1 to 8 of the digital interface................................ 2-85 Inputs 9 to 16 of the digital interface.............................. 2-86 Inputs 17 to 24 of the digital interface............................ 2-87 Outputs 1 to 8 of the digital interface ............................. 2-88 Outputs 9 to 16 of the digital interface ........................... 2-89
6.
TLV commands for the marking control system ...... 2-90
6.1 6.2 6.3 6.4 6.5 6.6 6.7 6.8 6.9 6.10
Load marking file ........................................................... 2-90 Convert marking file ....................................................... 2-91 Mark marking file X ........................................................ 2-92 Set directory path........................................................... 2-93 N text variable (see also "Set variable") ........................ 2-94 Read file name/directory ................................................ 2-95 Set variable .................................................................... 2-96 Read variable................................................................. 2-98 Scaling/displacement ..................................................... 2-99 Rotating/displacing the marking field in MHS systems ........................................................................ 2-100 Load marking objects into the scanner ........................ 2-101 Activate scanner list ..................................................... 2-104 Start scanner list .......................................................... 2-105 Delete active VCT files ................................................ 2-106 Delete all VCT files ...................................................... 2-107 Hiding and showing the HMI ........................................ 2-108 Generating marking file for editing............................... 2-109 Load marking file for editing......................................... 2-110 Import CAD file ............................................................ 2-111 Save the marking file opened for editing ..................... 2-113 Adding a line ................................................................ 2-113 Add an arc.................................................................... 2-115 Add a circle .................................................................. 2-116
Add a rectangle............................................................ 2-117 Add a text..................................................................... 2-118 Add an expanded text.................................................. 2-119 Add a variable .............................................................. 2-121 Replace laser parameter ............................................. 2-122 Replace fill parameter .................................................. 2-123 Initialize all variables.................................................... 2-124 Initialize variable .......................................................... 2-125 Set laser parameters – properties ............................... 2-126 Read laser parameter – Properties ............................. 2-127 Hide blocks .................................................................. 2-128 Add a Bitmaps (as of TruTops Mark 2.5.3).................. 2-129 Close the TruCad Server ............................................. 2-130 Adding a polyline ......................................................... 2-131 Adding an ellipse ......................................................... 2-133 Adding an ellipse arc ................................................... 2-135 Copying a file .............................................................. 2-137 Starts the adding of an assembled geometry object ... 2-138 Add an assembled geometry object to a polyline ........ 2-139 Closes the editing of an assembled geometry object ........................................................................... 2-141
Set variable with Unicode data .................................... 2-142 Read variable with Unicode data ................................. 2-145 Initialize variable with Unicode data (from TruTops Mark 2.9)...................................................................... 2-146
External program ......................................................... 2-148 DLL function................................................................. 2-149 Start laser calibration (LPC) or cancel (from TTM 2.7) ............................................................. 2-150 LPC status (from TTM 2.7) .......................................... 2-152 Load camera settings .................................................. 2-154 Execute camera function ............................................. 2-155 Set tag value ................................................................ 2-156 Read tag value............................................................. 2-158 Capture image ............................................................. 2-160 Load image in camera (not yet implemented) ............. 2-161 Save image .................................................................. 2-162 Query available cameras ............................................. 2-163
9.
Sample processes for activation of the laser marking system with TLV sequences...................... 2-164
8
Table of contents
2017-02-23
SW-TLV-EN
9.1 9.2
9.3 9.4 9.5
9.6 9.7 9.8 9.9 9.10 9.11 9.12 9.13
SW-TLV-EN
2017-02-23
Example_01 Load and mark a marking file without variables....................................................................... 2-164 Example_02 Load and mark a marking file without variables for which the marking has been moved and scaled.................................................................... 2-165 Example_03 Load and mark a marking file with three variables ...................................................... 2-166 Example_04 Create a marking file Add objects and mark the created marking file ...................................... 2-167 Example_05 Add a rectangle and a line to an existing marking file and mark the revised marking file ................................................................................ 2-168 Example_06 Include a CAD file in a marking file and mark the modified marking file .............................. 2-169 Example_07 Mark 2 points without marking file using scanner beam monitoring .................................. 2-170 Example_08 Load, convert and activate the marking file in the 2 scanner lists ................................ 2-171 Example _09 Load and mark a marking file with a variable that is set with Unicode data .......................... 2-172 Example_11 Load the marking file in scanner list and set the MOF parameters ....................................... 2-173 Example_12 Demonstration of using automated Binning ......................................................................... 2-174 Example_13 TLV conversion statuses (G2) with variable ........................................................................ 2-175 Example_14 Execute camera function and carry out code analysis. ........................................................ 2-176
Table of contents
9
10
Table of contents
2017-02-23
SW-TLV-EN
Chapter 1 Command-interpreter user ® interface for TruTops Mark
SW-TLV-EN 2017-02-23
1.
Functional scope of the command-interpreter ........... 1-3
2.
Starting the TLV command interpreter........................ 1-5