Академический Документы
Профессиональный Документы
Культура Документы
Edition: 2017-02-23
Interface description
TLV commands and interpreter
2017-02-23
SW-TLV-EN
Material number: 1436502
© TRUMPF Schweiz AG
Table of contents
Command-interpreter user
interface for TruTops Mark®
1. Functional scope of the command-interpreter ........... 1-3
Note
The LSB (least significant bit) abbreviation appears in the
description in chapter 2, section 3.8.
If you imagine a horizontal bit sequence, then it depends on the bit
sequence whether the bits are counted from the right (with the
LSB) or left (with the MSB).
The counting starts with zero for the lowest-value bit (LSB) on the
right side and goes from right to left. The lowest-value bit has the
lowest value of 1.
Fig. 1-1
3. Application window
3.1
3.2
3.3
Fig. 1-5
Input dialog box for finding the TLV commands Fig. 1-9
This button can be used to start the configuration dialog box of the
communication interface.
For more information regarding the configuration options, refer to
the following communication interfaces:
• Profibus documentation
• Interface description
TLV Commands
1. Structure of TLV Commands/TLV
Communications ............................................................ 2-7
1.1 TLV Commands ............................................................... 2-7
1.2 TLV Communications ....................................................... 2-7
TLV communication (example with laser marking system/laser marking device VectorMark Fig. 2-1
compact)
Table 2-2
Table 2-5
Abbreviati
Description
on Example in ASCII display
T Text string in
"Hello"
ASCII/Unicode format
G Whole number in
"1234"
ASCII/Unicode format
D Decimal number in
ASCII/Unicode format
"45.678"
(only decimal point permits
no commas!)
B BINARY string in
"11001100"
ASCII/Unicode format
Table 2-8
Table 2-9
3.1 Laser/shutter
Starts the marking procedure for the loaded marking file and waits until the marking procedure has been
completed.
TAG LENGTH VALUE Remark
Request 0 No data The following conditions must
be fulfilled:
• Marking file must be
loaded
• The beam source or the
pilot laser must be
switched on
Response "G1" + "G2" Extended error code:
G1: Result of the TLV request: • Is added on to the
0: Æ Command executed TLV Response when the
correctly result of the
TLV request is "1".
1: Æ Command could not be
executed (see extended
error code)
3: Æ Invalid TLV LENGTH of
the request for the
active communication
interface
G2: Extended error code:
1: Æ No converted marking file
is available
20204 2: Æ No marking file is loaded
Number of 3: Æ Lasers or pilot lasers are
bytes in the switched off
TLV Value
4: Æ Marking and/or
conversion procedure by
Trigger command
already activated
5: Æ Marking procedure has
been aborted manually
10: Æ General conversion errors
11: Æ No conversion, empty
variable
12: Æ Laser font not available
13: Æ Variable from text file: all
data processed
14: Æ Serial number: end value
reached
15: Æ Execution in the case of
activated "Restart mark"
is not allowed
> 15: Æ Internal error
Table 2-16
Table 2-17
Table 2-19
Table 2-24
Starts the conversion procedure for the loaded marking file, does not however wait until the conversion
procedure has been completed, but rather jumps back at once.
TAG LENGTH VALUE Remark
Request 0 No data The following conditions must
be fulfilled:
• Marking file must be
loaded
Response "G1" + "G2" Extended error code:
G1: Result of the TLV request: • Is added on to the TLV
0: Æ Command executed Response when the
correctly result of the TLV request
is "1".
1: Æ Command could not be
executed (see extended
error code)
3: Æ Invalid TLV LENGTH of
the request for the active
communication interface
Table 2-28
Table 2-37
Table 2-43
Reads information concerning the segment assigned from the loaded, segmented marking file
TAG LENGTH VALUE Remark
Request Number of The following conditions
bytes in the must be fulfilled:
"G"
TLV Value A segmented marking file
G: Segment number must be loaded
Response Format of the decimal
"G1" + "D1" + "D2" + "D3" + "D4" + "D5" + "D6" + numbers:
G2"
• Are returned with
G1: Result of the TLV request: 3 digits after the
0: Æ Command executed correctly decimal point.
1: Æ Command could not be executed Extended error code:
(see extended error code)
2: Æ Erroneous TLV VALUE • Is added on to the
TLV Response when
3: Æ Invalid TLV LENGTH of the request the result of the
for the active communication TLV Request is "1".
interface
4: Æ Invalid TLV LENGTH of the response
for the active communication
interface
20242 Number of D1: X offset of the segment
bytes in the
TLV Value D2: Y offset of the segment
D3: Z offset of the segment
D4: Segment width (X axes direction)
D5: Segment height (Y axes direction)
D6: Absolute angle for cylinder
segmentation
G2: Extended error code
1: Æ Segmentation not activated
2: Æ Segment data could not be read
3: Æ No segmented file has been
loaded
4: Æ Time overrun
5: Æ Segment with the assigned number
contains no marking data
> 5: Æ Internal error
Table 2-44
Creates a segment and binning matrix for the matrix segmentation from the offset/binning file of the customer.
TAG LENGTH VALUE Remark
Request Is only supported from TruMark
on.
Table 2-50
Table 2-51
Reads the error number, the short error text, the date and the time of day of the last error to occur at the laser
TAG LENGTH VALUE Remark
Request 0 No data
Response Formatting of the error
"G1" + "T1" + "T2" + "T3" + "T4" + "G2" number:
G1: Result of the TLV request: "XXYYZZZZ" (e.g.
0: Æ Command executed correctly "53011234") with:
1: Æ Command could not be
executed (see extended XX = Error identification
error code) as HEX number
YY = Error number as
3: Æ Invalid TLV LENGTH of the HEX number
Number of request for the active ZZZZ = Error code as
bytes in communication interface HEX number
20262 the TLV 4: Æ Invalid TLV LENGTH of the
Value response for the active Extended error code:
communication interface
T1: Error number • Is added on to the
TLV Response
T2: Short error text when the result of
T3: Error date the TLV Request is
"1".
T4: Error time
G2: Extended error code:
> 0: Æ Internal error
Table 2-54
Reads the warning number, the short warning text, the date and the time of day of the last warning to appear
at the laser
TAG LENGTH VALUE Remark
Request 0 No data
Activates the Q-switch for operation as an OEM beam source without an RTC card
TAG LENGTH VALUE Remark
Request 2 If no RTC card is present
"G" in the system (TM6000
beam source without PC),
G: Status of the Q-switch: use this command.
0: Æ Q-switch off Otherwise use command
20284.
1: Æ Q-switch on
Preparation of a list of commands for the activation/deactivation of the beam source through the scanner with
the assigned laser power and frequency for operation as the OEM beam source
TAG LENGTH VALUE Remark
Request Activation of the beam
"G1" + "G2" + "D1" + "D2" + "G3" source through:
G1: Laser power in % TLV command "Scanner
beam control" or
G2: Frequency in Hz
Restart_mark input of
D1: X-Position in the current marking the digital interface
field in mm
Deactivation of the
D2: Y position in the current marking beam source through:
field in mm
TLV command "Scanner
Number of G3: Pulse length of the Q-switch signal beam control" or
bytes in in us Abort_mark input of the
the TLV
digital interface
Value
The following conditions
must be fulfilled:
No marking procedure is
allowed to be active and
the beam source
(20284) must not be
20283 active.
Table 2-65
Activates/deactivates the beam source with the adjusted laser power and frequency by means of the scanner
in operation as the OEM beam source
TAG LENGTH VALUE Remark
Request 2 The following conditions
"G" must be fulfilled:
G: Status of the beam source: The list of commands of
0: Æ Beam source off the scanner must be
have been initialized in
1: Æ Beam source on advance by means of the
TLV Command
"Initialization of beam
monitoring
by the scanner"
20284
As OEM beam source
the "Mark active"
output is not controlled
in the laser status.
Table 2-68
Example: Set laser power to 90%
TAG LENGTH VALUE
Request 20285 3 "90"
3D 4F 00 00 03 00 00 00 39 30 00
Response 20285 2 "0"
3D 4F 00 00 02 00 00 00 30 00
Table 2-69
Table 2-70
Example: Set frequency to 60,000 Hz
TAG LENGTH VALUE
Request 20286 6 "60000"
3E 4F 00 00 06 00 00 00 36 30 30 30 30 00
Response 20286 2 "0"
3E 4F 00 00 02 00 00 00 30 00
Table 2-71
Sets the general laser parameter offsets of power, frequency, marking speed, defocus and pulse amplitude
TAG LENGTH VALUE Remark
Request Number of
bytes in "D1" + "D2" + "D3"+ "D4" + "D5"
the TLV
D1: Offset power in %
Value
D2: Offset frequency in Hz
D3: Offset speed in mm/s
D4: Offset defocus in mm
D5: Offset pulse amplitude in μs
Response Extended error code:
"G1" + "G2"
• Is added to the
G1: Result of the TLV request: TLV Response
0: Æ Command executed correctly when the result of
the TLV request
1: Æ Command could not be is "1".
executed (see extended
error code)
2: Æ Erroneous TLV VALUE
3: Æ Invalid TLV LENGTH of the
request for the active
communication interface
G2: Extended error code:
20288 1: Æ Lower limit for offset power
too low
Number of
2: Æ Upper limit for offset power
bytes in
too high
the TLV
Value 3: Æ Lower limit for offset
frequency too low
4: Æ Upper limit for offset
frequency too high
5: Æ Lower limit for the offset
speed is too low
6: Æ Upper limit for the offset
speed is too high
7: Æ Lower limit for offset
Defocus too small
8: Æ Upper limit for offset
Defocus too large
9: Æ Lower limit for offset
Pulse amplitude too small
10: Æ Upper limit for offset
Pulse amplitude too large
Table 2-74
Table 2-80
Table 2-82
Table 2-84
Table 2-86
Table 2-88
Example: Sets the segment offsets for the A axis to 2.3 mm,
for the X axis to 1.4 mm
TAG LENGTH VALUE
Request 20108 12 "2.3" + "1.4" + "0" + "0
8C 4E 00 00 0C 00 00 00 32 2E 33 00 31 2E 34 00 30 00 30 00
Response 20108 2 "0"
8C 4E 00 00 02 00 00 00 30 00
Table 2-95
Table 2-96
Example: Opening the door of the workstation up to the upper end
position (waiting until the door has been completely
opened)
TAG LENGTH VALUE
Request 20121 4 "1" + "1"
99 4E 00 00 04 00 00 00 31 00 31 00
Response 20121 2 "0"
99 4E 00 00 02 00 00 00 30 00
Table 2-97
Table 2-98
Table 2-100
Table 2-104
Table 2-108
G1"+"G2"+"G3"+"G4"+"G5"+"G6"+"G7"
G1: Result of the TLV request
0: Æ Command executed
correctly
1: Æ Command could not be
executed G2 – G7 can also be a
G2: T axis combination of the bit
0: Æ OK status: no error values, as for example
1: Æ No host communication
2: Æ Emergency stop pressed
when "1" and "16" are set
4: Æ No access to the drive with G2, then the value is
8: Æ No referenced "17".
16: Æ Positive limit switch is active
32: Æ Negative limit switch is
active
The selected mechanical
64: Æ Drive error component in the
128: Æ Power Off drive configuration is the
G3: Z axis Mech_VWS_5100.dll
0: Æ OK status: no error
1: Æ No host communication
2: Æ Emergency stop pressed
4: Æ No access to the drive Comment 1:
8: Æ No referenced All the active axes signal
16: Æ Positive limit switch is active "1" as the error code if
32: Æ Negative limit switch is there is no existing host
active
64: Æ Drive error communication.
Number of 128: Æ Power Off drive
bytes in 256: Æ Positional limit reached Comment 2:
the TLV G4: A axis (rotary axis) In case of the "Drive error"
Value 0: OK status: no error error, 128+64+8=200 is
1: Æ No host communication always set as error code
2: Æ Emergency stop pressed
4: Æ No access to the drive for "Power OFF" and "not
8: Æ No referenced referenced".
64: Æ Drive error
128: Æ Power Off drive
Comment 3:
G5: X axis
An axis not activated in
0: Æ OK status: no error
1: Æ No host communication
TruTopsMark always
2: Æ Emergency stop pressed confirms 0 as the error
4: Æ No access to the drive code.
8: Æ No referenced
16: Æ Positive limit switch is active
32: Æ Negative limit switch is
Comment 4:
active There is no point in
64: Æ Drive error comparing, for example,
128: Æ Power Off drive an EMERGENCY STOP
256: Æ Positional limit reached
always with a whole-
G6: C axis
number type. It is better to
G7: Y axis
filter out non-relevant
0: Æ OK status: no error
1: Æ No host communication
information bit by bit
2: Æ Emergency stop pressed and/or using an arithmetic
4: Æ No access to the drive expression.
8: Æ No referenced
16: Æ Positive limit switch is active
32: Æ Negative limit switch is
active
64: Æ Drive error
128: Æ Power Off drive
256: Æ Positional limit reached
Table 2-110
Comment 3:
Table 2-112
Example: Moving the Z axis continuously in positive direction of
travel
TAG LENGTH VALUE
Request 20163 4 "1" + "1"
C3 4E 00 00 04 00 00 00 31 00 31 00
Response 20163 2 "0"
C3 4E 00 00 02 00 00 00 30 00
Table 2-113
Response Limitation:
"G1" + "B1" + "B2" + "B3" + "G2"
The E1 to E9, E15 and
G1: Result of the TLV request: E16 inputs are used by
0: Æ Command executed correctly TruTops Mark® and are
thus unavailable.
1: Æ Command could not be
executed (see extended
error code) Formatting of the input
Number of information:
bytes in 3: Æ Invalid TLV LENGTH of the
20301 the TLV request for the active LSB is on the right in each
Value communication interface case in the binary string
4: Æ Invalid TLV LENGTH of the
response for the active Extended error code:
communication interface
B1: Status of the E8 to E1 inputs • Is added on to the
TLV Response when
B2: Status of the E16 to E9 inputs the result of the
B3: Status of the E24 to E17 inputs TLV Request is "1".
G2: Extended error code:
> 0: Æ Internal error
Table 2-118
Loads, converts and marks the assigned marking file and waits until the marking procedure has been
completed
TAG LENGTH VALUE Remark
Request The following conditions
must be fulfilled:
"T"
The laser or the pilot laser
T: Name of the marking file
must be switched on.
(including directory)
Explanations:
If the file extension is not
Number specified, then the
of bytes standard extension ".vlf"
in the will be used
TLV If no directory is specified,
Value then the
directory of the most
recently loaded marking
file or the directory set by
the
TLV Command "Set
directory path"
will be used.
Response Extended error code:
"G1" + "G2"
• Is added on to the
G1: Result of the TLV request: TLV Response when
20403 0: Æ Command executed correctly the result of the
1: Æ Command could not be TLV Request is "1".
executed (see extended
error code)
2: Æ Erroneous TLV VALUE
3: Æ Invalid TLV LENGTH of the
request for the active
Number communication interface
of bytes G2: Extended error code:
in the
1: Æ Marking file could not be
TLV
loaded
Value
10: Æ General conversion errors
11: Æ No conversion, empty variable
12: Æ Laser font not available
13: Æ Variable from text file: all data
processed
14: Æ Serial number: end value
reached
15: Æ Execution in case of activated
"Restart mark" is not allowed
> 15: Æ Internal error
Table 2-140
Sets the directory path from which marking files can be loaded
TAG LENGTH VALUE Remark
Request Number of After executing this TLV
bytes in command, the "Load
"T"
the TLV marking file" and/or "Mark
Value T: Directory name marking file X" commands
can be used without
specifying a directory path
for the assigned marking
file there.
Response
"G1" + "G2"
G1: Result of the TLV request:
20404 0: Æ Command executed correctly
1: Æ Command could not be
executed (see extended
error code)
2
2: Æ Erroneous TLV VALUE
3: Æ Invalid TLV LENGTH of the
request for the active
communication interface
G2: Extended error code:
1: Æ Path does not exist
> 1: Æ Internal error
Table 2-142
Reads the file name and/or directory name of the loaded marking file
TAG LENGTH VALUE Remark
Request The following conditions
"G" must be fulfilled:
G: Function to be executed: - Marking file must be
loaded
1: Æ Return path and name of the
2 marking file
2: Æ Return path of the marking file
3: Æ Return name of the marking
file
Scales, moves or rotates the marking around the midpoint of the image field
TAG LENGTH VALUE Remark
Request The following conditions
"D1" + "D2"+ "D3"+ "D4" must be fulfilled:
D1: Scaling factor _ Marking file must be
1: Æ Original size loaded
Explanations:
D2: Angle of rotation in ° clockwise - The settings remain in
around the mid point of the effect for the loaded
Number image field marking file
of bytes 0: Æ No rotation until they are overwritten
in the with this TLV Command
TLV D3: Displacement along the X axis
in mm or unless a different
Value marking file
0: Æ No displacement is loaded.
D4: Displacement along the Y axis - Sequence of operations:
in mm 1. Scale
0: Æ No displacement 2. Rotate around the
midpoint of the image field
20423 (+° = clockwise )
3. Move
Response Extended error code:
"G1" + "G2"
• Is added on to the
G1: Result of the TLV request: TLV Response when
0: Æ Command executed correctly the result of the
1: Æ Command could not be
TLV request is "1".
Number executed (see extended
of bytes error code) Notice:
in the Æ
When this command is
2: Erroneous TLV VALUE
TLV used with the option
3: Æ Invalid TLV LENGTH of the
Value "Rotate, Move and Scale"
request for the active
in the configuration under
communication interface
"HW components/RTC",
G2: Extended error code: this is executed with RTC
> 0: Æ Internal error card commands, i.e. when
rotated this has no effect on
the size.
Table 2-153
Scales, moves or rotates the marking around the midpoint of the image field
TAG LENGTH VALUE Remark
Request The following conditions
"D1" + "D2" + "D3" must be fulfilled:
D1: Angle of rotation of the marking Explanations:
field - The marking field is
0: Æ No rotation rotated around the angle
and the displacement in X
D2: Displacement along the X axis and Y direction for Head B
in mm is calculated and taken
Number 0: Æ No displacement into account. The X or
of bytes D3: Displacement along the Y axis Y displacement is added
in the in mm in case of Head A and
TLV Head B.
0: Æ No displacement
Value
- Sequence of operations:
Table 2-157
Activates one of the two scanner lists. The contents of this list will be marked by means of the "Restart mark"
input the next time that marking is started.
TAG LENGTH VALUE Remark
Request The following conditions
"G" must be fulfilled:
G: Active list selection: - A converted marking file
1: Æ List 1 needs to have been
loaded into the selected
2: Æ List 2
Number list beforehand by means
of bytes of the TLV Command
in the "Load marking objects
TLV into the scanner".
Value A converted marking file
has been loaded
- The "Restart_mark /
Abort_mark" digital inputs
must be configured
Table 2-159
Table 2-161
Example: Starting scanner list 1
TAG LENGTH VALUE
Request 20443 2 "1"
DB 4F 00 00 02 00 00 00 31 00
Response 20443 2 "0"
DB 4F 00 00 02 00 00 00 30 00
Table 2-162
Explanation
- During deletion, all used
CAD variables are reset.
Explanations:
- During deletion, all used
CAD variables are reset.
Table 2-169
Table 2-171
Imports the assigned CAD file into a marking file that has already been opened for editing
TAG LENGTH VALUE Remark
Request Conditions:
"T1" + "T2" + "G" + "D1" + "D2" + "D3" + "D4" - A marking file for editing must be
opened
T1: Name of the CAD file to be (TLV commands "Generate
imported (including directory) marking file for editing" or
"Load marking file for editing").
T2: Name of the laser parameter for
the import. If no information is Explanations:
given, the original laser
parameters are used when - The following CAD formats are
importing a marking file. supported:
- VLF / DXF / HP / HPG / HPGL /
HGL / PLT
- A text file is used during DXF
G: Import mode
import
0: Æ Without displacement for allocating the DXF fonts to the
®
TruTops Mark Fonts
1: Æ With displacement (position is (selection via TruTops Mark®
defined by the lower left-hand configuration)
corner) - Structure of the text file:
D1: X value of the lower left-hand - One font allocation per line -
corner of the import in mm "Dxf_fontname:TruTopsMark_fontn
ame;"
Is taken into account only when - See also the following sample file:
Number import mode = 1 C:\TruMark\Standard_GUI\
of bytes Y value of the lower left-hand Font_to_font.txt
20463 in the D2:
corner of the import in mm - If no file extension is specified
TLV then the standard extension
Value -> Is taken into account only
when Import mode = 1 ".vlf" will be used
- If no directory is specified, then
D3: Scaling factor the directory of the
last marking file loaded or the
> 1: Æ Original size
directory set by the
D4: Angle of rotation in ° clockwise "Set directory path" TLV Command
will be used.
> 0: Æ No rotation - Laser parameter must be
specified with the complete
parameter path
(e.g. Aluminum\Marking).
- If the assigned laser parameter is
not available, then the "Standard"
laser parameter
will be used.
- The laser parameters must be
available in the source file
(C:\TruMark\VLF\Vorlagen\*.vlf)
under "In this project"
- Import position is the lower left-
hand corner of a rectangle that
encloses
all of the objects of the
CAD file to be imported.
Saves the marking file currently opened for editing under the assigned name.
TAG LENGTH VALUE Remark
Request Conditions:
"T"
- A marking file must be
T: Name under which the marking opened for editing
file opened for editing should be (TLV commands "Generate
saved (including directory). marking file for editing" or
"Load marking file for
Number editing").
of bytes Explanations
in the - If no file extension is
TLV specified, then the standard
Value extension ".vlf" will be used
- If no directory has been
specified, the directory of the
last loaded marking file or the
directory set by the "Set
directory path" TLV
command
will be used.
Response Extended error code:
20464
"G1" + "G2"
Is added on to the TLV
G1: Result of the TLV request: Response when the
0: Æ Command executed correctly result of the
1: Æ Command could not be
TLV Request is "1".
executed (see extended
error code)
Number 2: Æ Parameter VALUE is
of bytes unknown
in the 3: Æ Invalid TLV LENGTH of the
TLV request for the active
Value communication interface
G2: Extended error code:
1: Æ No marking file has been
opened for
processing
2: Æ Marking file could not be
saved
> 2: Æ Internal error
Table 2-175
Example: Save the marking file opened for
editing under the name "TEST_01.VLF":
TAG LENGTH VALUE
Request 20464 12 "TEST_01.VLF"
F0 4F 00 00 0C 00 00 00 54 45 53 54 5F 30 31 2E 56 4C 46 00
Response 20464 2 "0"
F0 4F 00 00 02 00 00 00 30 00
Table 2-176
Adds a line with the assigned geometry to the marking file currently opened for editing
Table 2-177
Adds an arc with the assigned geometry to the marking file currently opened for editing
LENGT
TAG H VALUE Remark
Request Conditions:
"D1" + "D2" + "D3" + "D4" + "D5" + "D6" + "T"
D1: X value of the midpoint of the arc - A marking file for editing
in mm must be opened
(TLV commands "Generate
D2: Y value of the midpoint of the arc marking file for
in mm editing" or "Load marking file
D3: Radius of the arc in mm for editing").
Number
of bytes D4: Direction of rotation of the arc Explanations
in the 0: Æ Clockwise - Laser parameter must be
TLV Æ
specified with the complete
1: Counter-clockwise
Value parameter path
D5: Start angle of the arc in ° in the (e.g. Aluminum\Marking).
mathematical coordinate system - If the assigned laser
D6: End angle of the arc in ° in the parameter is not available,
mathematical coordinate system then the
"Standard" laser parameter
T: Name of the laser parameter for will be used.
the arc
20472
Response Extended error code:
"G1" + "G2"
• Is added on to the TLV
G1: Result of the TLV request: Response when the
0: Æ Command executed correctly result of the TLV
1: Æ Command could not be request is "1".
executed (see extended
error code)
Number 2: Æ Parameter VALUE is
of bytes unknown
in the
3: Æ Invalid TLV LENGTH of the
TLV
request for the active
Value communication interface
G2: Extended error code:
1: Æ No marking file has been
opened for editing
2: Æ The marking file opened is
corrupt
> 2: Æ Internal error
Table 2-179
Example: Add an arc to the marking file
opened for editing with the midpoint X=2.5/Y=5,
radius 4, in the angle range of 5.3° to 45.7° by using the
"Mark" laser parameter:
TAG LENGTH VALUE
Request 20472 27 "2.5" + "5" + "4" + "5.3" + "45.7" + "Marking"
F8 4F 00 32 2E 35 00 35 00 34 00 35 2E 33 00 34 35 2E 37 00 4D 61 72 6B 69 65
1B 00 00 00
00 72 65 6E 00
Response 20472 2 "0"
F8 4F 00 30 00
02 00 00 00
00
Table 2-180
Adds a circle with the assigned geometry to the marking file currently opened for editing
TAG LENGTH VALUE Remark
Request Conditions:
"D1" + "D2" + "D3" + "T" - A marking file for editing
D1: X value of the midpoint of the must be opened
circle in mm (TLV commands "Generate
marking file for
D2: Y value of the midpoint of the
editing" or "Load marking file
circle in mm
Number for editing").
of bytes D3: Radius of the circle in mm
Explanations
in the T: Name of the laser parameter - Laser parameter must be
TLV for the circle specified with the complete
Value parameter path
(e.g. Aluminum\Marking).
- If the assigned laser
parameter is not available,
then the
"Standard" laser parameter
will be used.
Adds a rectangle with the assigned geometry to the marking file currently opened for editing
TAG LENGTH VALUE Remark
Request Conditions:
"D1" + "D2" + "D3" + "D4" + "D5" + "T"
- A marking file for editing
D1: X value of the lower left-hand must be opened
corner of the rectangle in mm (TLV commands "Generate
D2: Y value of the lower left-hand marking file for
corner of the rectangle in mm editing" or "Load marking file
Number for editing").
D3: Width of the rectangle in mm
of bytes Explanations
in the D4: Height of the rectangle in mm
- Laser parameter must be
TLV D5: Angle of rotation of the rectangle specified with the complete
Value in ° parameter path
T: Name of the laser parameter (e.g. Aluminum\Marking).
for the rectangle - If the assigned laser
parameter is not available,
then the
"Standard" laser
parameter will be used.
20474 Extended error code:
Response
"G1" + "G2"
• Is added on to the TLV
G1: Result of the TLV request: Response when the
0: Æ Command executed correctly result of the TLV
1: Æ Command could not be
request is "1".
executed (see extended
error code)
Number
of bytes 2: Æ Parameter VALUE is
unknown
in the
TLV 3: Æ Invalid TLV LENGTH of the
Value request for the active
communication interface
G2: Extended error code:
1: Æ No marking file has been
opened for editing
2: Æ The marking file opened is
corrupt
> 2: Æ Internal error
Table 2-183
Adds a text with the assigned geometry to the marking file currently opened for editing
TAG LENGTH VALUE Remark
Request Conditions:
"D1" + "D2" + "D3" + "D4" + "T1" + "T2" + "T3"
- A marking file for editing
D1: X value of the lower left-hand must be opened
corner of the text in mm (TLV commands "Generate
D2: Y value of the lower left-hand marking file for
corner of the text in mm editing" or "Load marking file
Number for editing").
D3: Angle of rotation of the text in °
of bytes
Explanations
in the D4: Text size in mm
- Laser parameter must be
TLV T1: Name of the font for the text specified with the complete
Value
T2: Text that should be added parameter path
(e.g. Aluminum\Marking).
T3: Name of the laser parameter - If the assigned laser
for the text parameter is not available,
then the
"Standard" laser parameter
will be used.
Assigns the new laser parameter to all objects which had been assigned a particular laser parameter in the
marking file currently opened for editing
TAG LENGTH VALUE Remark
Request Conditions:
"T1" + "T2"
- A marking file for editing
T1: Name of the laser parameter to must be opened
be found (TLV commands "Generate
Number marking file for
T2: New name of the laser parameter
of bytes editing" or "Load marking file
to be replaced
in the for editing").
TLV
Value Explanations
- Laser parameter must be
specified with the complete
parameter path
(e.g. Aluminum\Marking).
Assigns the new fill to all objects which had been assigned a particular fill in the marking file currently opened
for editing
TAG LENGTH VALUE Remark
Request Conditions:
"T1" + "T2"
- A marking file for editing
T1: Name of the fill must be opened
T2: New fill for replacement (TLV commands "Generate
marking file for
editing" or "Load marking file
for editing").
Explanations
Number
- Laser parameter must be
of bytes
specified with the complete
in the
parameter path
TLV
(e.g. Aluminum\Marking).
Value
-Comment:
This command also works
with a text object with a
dynamic fill.
-Limitation:
20479 All fills that are in a group are
not taken into consideration.
Initializes all variables with an empty character string in the marking file currently opened for editing.
TAG LENGTH VALUE Remark
Request 0 No data Conditions:
Example:
TAG LENGTH VALUE
Request 20480 0
00 50 00 00 00 00 00 00 00
Response 20480 2 "0"
00 50 00 00 02 00 00 00 30 00
Table 2-196
Assigns a new standard value to a variable in the marking file currently opened for editing
TAG LENGTH VALUE Remark
Request Conditions:
"T1" + "T2"
- A marking file for editing
Number T1: Name of the variable must be opened
of bytes (TLV commands "Generate
T2: Value of the variable
in the marking file for
TLV editing" or "Load marking file
Value for editing").
Hides certain CAD block objects in the marking file currently opened
TAG LENGTH VALUE Remark
Request Conditions:
"G1" + "T1" + "G2"
- A marking file for editing
G1: Type of information must be opened
1: Æ Binning – Info (TLV commands "Generate
Number (col1;row1/col2;row2/…) marking file for
of bytes 2: Æ Block name (block1/block2/..) editing" or "Load marking file
in the for editing").
3: Æ Reject Map File (EO)
TLV
Value T1: Info (see type)
The blocks that have already
If empty, the last status is
been hidden are displayed
restored.
again G2 = 1
G2: Initialize layer
(1 = yes, 0 = no)
Response Extended error code:
"G1" + "G2"
• Is added on to the TLV
G1: Result of the TLV request: Response when the
0: Æ Command executed correctly result of the
20483 Æ TLV Request is "1".
1: Command could not be
executed (see extended
error code)
2: Æ Parameter VALUE is
unknown
Number 3: Æ Invalid TLV LENGTH of the
of bytes request for the active
in the communication interface
TLV G2: Extended error code:
Value
1: Æ Block / EO file could not be
found
2: Æ Error in the length info
3: Æ Wrong info type
4: Æ Reject Map File could not be
opened
5: Æ Error when reading the Reject
Map File
6: Æ No marking file has been
opened for editing
Table 2-203
Response
"G1" + "G2"
G1: Result of the TLV request:
20485 0: Æ Command executed correctly
1: Æ Command could not be
executed (see extended
error code)
2: Æ Parameter VALUE is unknown
3: Æ Invalid TLV LENGTH of the
request for the active
communication interface
Number
of bytes G2: Extended error code for Extended error code:
in the TruMark: - Only supported from
TLV
1: Æ No marking file has been TruMark onwards.
Value
opened for editing
- Is added on to the TLV
2: Æ The marking file opened is Response when the
corrupt result of the TLV request
3: Bitmap not available is "1".
4: Height or width of the bitmap
is zero. The formats: JPG,
TIF and PCX have no height
and width stored in the
format.
5: Bitmap cannot be read in
Table 2-205
Table 2-207
Adds a line with the assigned geometry to the marking file currently opened for editing
TAG LENGTH VALUE Remark
Request Conditions:
"D1" + "T1" + "T2" + "T3" + "T4" - A marking file for editing
must be opened
D1: FLAG Not used (TLV commands "Generate
marking file for
Editing" or "Load marking
T1: Base values of the polygon in file for editing").
the format
"S=2;x0,y0;x1y1;…;xi,yi;E=0;x,y Explanations
….xiyi;" - Laser parameter must be
specified with the complete
S 0 Straight lines Parameter path
2 B spline (e.g. Aluminum\Marking).
- If the assigned laser
4 By the calibration parameter is not available,
Number points
of bytes then the
20487 in the E Not used "Standard" laser parameter
TLV will be used.
Value
Polygon consists of
calibration points in the
format: x.xxx,y.yyy
T2: Name of the laser parameter
for the polyline Ellipse arc consists of:
T3: Name of the filling for a closed Center: x,y
polygon Main axis angle: x.xx
Start angle: x.xx
T4: Name of the layer for the polyline
End angle: x.xx
Main radius: x.xx
Second radius: x.xx
Direction: x
Table 2-209
Table 2-210
Adds a line with the assigned geometry to the marking file currently opened for editing
TAG LENGTH VALUE Remark
Request Conditions:
"D1" + "D2" + "D3" + "D4" + "D5" + "T1" + "T2" - A marking file for editing
+ "T3" must be opened
(TLV commands "Generate
D1: X coordinate of the center of the marking file for
ellipse editing" or "Load marking
D2: Y coordinate of the center of file for editing").
Number ellipse
Explanations
of bytes
D3: Angle of the main axis to the - Laser parameter must be
in the
horizontal specified with the complete
TLV
D4: Length of the main axis Parameter path
Value
(e.g. Aluminum\Marking).
D5: Length of the secondary axis - If the assigned laser
T1: Name of the laser parameter parameter is not available,
for the polyline then the
"Standard" laser parameter
T3: Name of the filling for an ellipse will be used.
T4: Layer name of the ellipse
Response Extended error code:
"G1" + "G2"
• Is added on to the TLV
20488 G1: Result of the TLV request: Response when the
0: Æ Command executed correctly result of the TLV
1: Æ Command could not be
request is "1".
executed (see extended
error code)
2: Æ Parameter VALUE is
unknown
Number 3: Æ Invalid TLV LENGTH of the
of bytes request for the active
in the communication interface
TLV G2: Extended error code:
Value 1: Æ No marking file has been
opened for editing
2: Æ The marking file opened is
corrupt
3: Æ Level does not exist
4: Æ Parameter D4 and D5 are less
than 0.1 mm
5: Æ Fill does not exist
Table 2-211
Table 2-212
Adds a line with the assigned geometry to the marking file currently opened for editing
TAG LENGTH VALUE Remark
Request Conditions:
"D1" + "D2" + "D3" + "D4" + "D5" + "D6" + - A marking file for editing
"D7" + "D8" + "D9" + "T1" + "T2" must be opened
(TLV commands "Generate
D1: X coordinate of the center of the marking file for
ellipse editing" or "Load marking
D2: Y coordinate of the center of file for editing").
ellipse
Explanations
D3: Length of the main axis - Laser parameter must be
D4: Length of the secondary axis specified with the complete
Number Parameter path
of bytes D5: Direction of the elliptical arc (e.g. Aluminum\Marking).
in the 0=Clockwise - If the assigned laser
TLV 1=Counterclockwise parameter is not available,
Value then the
D6: X coordinate of the starting point
"Standard" laser parameter
D7: Y coordinate of the starting will be used.
point.
D8: X coordinate of the end point
D9: Y coordinate of the end point.
T1: Name of the laser parameter
for the polyline
Table 2-213
Table 2-214
Adds a line with the assigned geometry to the marking file currently opened for editing
TAG LENGTH VALUE Remark
Request
Number "T1" + "T2"
of bytes
T1: Name and path of the file to be
in the
copied
TLV
Value T2: Name and path of the location
where the file will be copied
Response Extended error code:
"G1" + "G2"
• Is added on to the TLV
G1: Result of the TLV request: Response when the
0: Æ Command executed correctly result of the TLV
20490 1: Æ Command could not be
request is "1".
executed (see extended
Number error code)
of bytes 2: Æ Parameter VALUE is
in the unknown
TLV
3: Æ Invalid TLV LENGTH of the
Value
request for the active
communication interface
G2: Extended error code:
1 Æ File could not be copied
Table 2-215
Table 2-216
Adds a complex object of the transferred geometry to the marking file currently opened for editing
TAG LENGTH VALUE Remark
Request Conditions:
"T1" + "T2"+ "T3" - A marking file for editing
must be opened
T1: Name of the laser parameter (TLV commands "Generate
T2: Name of the fill marking file for
editing" or "Load marking
T3: Name of layer
file for editing").
Explanations
- Laser parameter must be
specified with the complete
Parameter path
Number (e.g. Aluminum\Marking).
of bytes - If the assigned laser
in the parameter is not available,
TLV then the
Value "Standard" laser parameter
will be used.
With an assembled
geometry object the
commands 20494,
20495 and 20496 must
always be sent in this
sequence in order that
the object can be fully
20494 created.
Table 2-217
Table 2-218
Adds a complex object of the transferred geometry to the marking file currently opened for editing
TAG LENGTH VALUE Remark
Request With an assembled
"D1" + "D2"+ "T3" geometry object the
D1: Mode commands 20494,
20495 and 20496 must
FLAG 1 Outer polygon always be sent in this
2 Extend outer sequence in order that
polygon the object can be fully
3 Outer polygon created. The command
20495 can be sent
Number 4 Extend inner multiple times in
of bytes polygon
succession. It must
20495 in the D2: Flag always be commenced
TLV
FLAG 2 B spline with the outer polygon
Value
4 Through base
values for B
spline
0 Polyline (straight
lines)
T3: GeometryList
Base values of the polygon in
the format "x0,y0;x1y1;…;xi,yi;"
Table 2-219
Table 2-220
Table 2-221
Adds a complex object of the transferred geometry to the marking file currently opened for editing
TAG LENGTH VALUE Remark
Request With an assembled
geometry object the
commands 20494,
Number 20495 and 20496 must
of bytes
always be sent in this
in the
TLV sequence in order that
Value the object can be fully
created.
Table 2-222
Table 2-223
Limitations:
Number The variable identifier
of bytes may not use characters
20501 in the that are not included in
TLV the ASCII character set.
Value Unicode characters are
introduced with \u and
closed with semicolon
(;).
Multiple Unicode
characters are
transferred separately
(see Example 3).
Barcode display objects
cannot process any Unicode
data.
- Data matrix – with control
character: ~dnnn
nnn = ASCII – decimal value
Table 2-224
Example 2: Set the content of the variables "V1" to "0" and "V2"
to "AB[cr][lf]C" (only applies to the data matrix code)
TAG LENGTH VALUE
Request 20501 42 "V1" + "0" + "V2" + "AB~d013~d010C"
56 00 31 00 00 00 30 00 56 00 32 00 00 00 41 00 42 00 7E 00 64 00 30 00 31
15 50 00 00 2A 00 00 00
00 33 00 7E 00 64 00 30 00 31 00 30 00 43 00 00 00
Response 20501 2 "0"
15 50 00 00 02 00 00 00 30 00
Table 2-226
[慸] = 0x6178
[慷] = 0x6177
Assigns a new standard value to a variable in the marking file currently opened for editing
TAG LENGTH VALUE Remark
Request The following conditions
" T1" + "T2" must be fulfilled:
A marking file must be
T1: Name of the variable
open for editing (TLV
T2: Default value of the variable command "Generate
marking file for editing"
or "Load marking file for
editing").
Limitations:
The variable identifier
may not use characters
Number that are not included in
of bytes the ASCII character set.
in the Unicode characters are
TLV introduced with \u and
Value closed with semicolon
(;).
Multiple Unicode
characters are
transferred separately
(see Example 2).
Barcode display objects
cannot process any Unicode
20503 data.
- Data matrix – with control
character: ~dnnn
nnn = ASCII – decimal value
Table 2-230
[慸] = 0x6178
[慷] = 0x6177
Starts the assigned program .exe with the assigned parameter string
TAG LENGTH VALUE Remark
Request The following conditions
"T1" + "T2" + "G" must be fulfilled:
The program to be
T1: Name of the program to be
started must be available
started
on the control system
T2: String with the call-up PC and correctly
parameters for the program installed.
Number G: Command execution mode The program name must
of bytes be specified, together
0: Æ Start the program without
in the with the directory.
waiting for the end
TLV 1: Æ Start the program and wait for
Value the end Explanations
• If no call-up
parameters are
used, then an
empty string must
be assigned for this
purpose (see
Example).
20601
Response Extended error code:
"G1" + "G2"
G1: Result of the TLV request:
• Is added on to the
TLV Response
0: Æ Command executed correctly when the result of
1: Æ Command could not be the TLV Request is
executed (see extended "1".
Number error code)
of bytes 2: Æ Parameter VALUE is
in the unknown
TLV 3: Æ Invalid TLV LENGTH of the
Value request for the active
communication interface
G2: Extended error code:
1: Æ Program does not exist
2: Æ Program could not be
started
> 2: Æ Internal error
Table 2-233
20603
Digital interfaces are not
operated while the LPC is
running.
Comment 1:
The following firmware is
required for the TM6000:
CIP release from version
V2090 CLH release from
version 2080
V0080
Comment 2:
For the TM3000/TM5000
The following firmware is
required:
CMU_1070
Table 2-241
Table 2-243
18 – 200000 μs
TargetBrightness (grayscale)
0 – 255
Number Syntax of the Roi:
of bytes Roi (pixel coordinates)
x1 y1 x2 y2 (a space is
20703 in the (x1/y1 – x2/y2) required as separator)
TLV
Value T2: Tag value
18 – 200000 μs (exposure time)
0 – 255 (grayscale)
Table 2-245
Table 2-246
Table 2-247
Table 2-252
Table 2-254
Table 2-255
9.1 Example_01
Load and mark a marking file without
variables
TLV Commands
No. Customer writes Explanation
(TAG)
TLV Commands
No. Customer writes Explanation
(TAG)
4 20423 Scaling/displacement
9 20423 Scaling/displacement
TLV Commands
No. Customer writes Explanation
(TAG)
TLV Commands
No. Customer writes Explanation
(TAG)
TLV Commands
No. Customer writes Explanation
(TAG)
TLV Commands
No. Customer writes Explanation
(TAG)
TLV Commands
No. Customer writes Explanation
(TAG)
1 20201 Laser/shutter (Laser on/shutter open)
2 20283 Initialization of beam monitoring through the scanner
(setting the power, frequency, pulse width and position for
the first point)
3 20284 Scanner beam monitoring (activate beam source)
4 20284 Scanner beam monitoring (deactivate beam source after the
desired time)
5 20283 Initialization of beam monitoring through the scanner
(setting the power, frequency, pulse width and position for
the second point)
6 20284 Scanner beam monitoring (activate beam source)
7 20284 Scanner beam monitoring (deactivate beam source after the
desired time)
File "Sample_07" Table 2-263
TLV Commands
No. Customer writes Explanation
(TAG)
1 20201 Laser/shutter (Laser on/shutter open)
2 20401 Load marking file (marking file with 1 variable)
3 20222 Query conversion status
4 20421 Set variable
5 20402 Convert marking file
6 20222 Query conversion status
7 20441 Load marking objects in scanner list 1
-Reset Restart Counter = 1
-Load laser parameters = 1
Retrigger mode…
8 20442 Activate scanner list 1
9 --- A positive edge at X20 input = Retrigger starts the marking of
the vectors from list 1 of the Scanlab card
10 20421 Set variable
11 20402 Convert marking file
12 20222 Query conversion status
13 20441 Load marking objects in scanner list 2
-Reset Restart Counter = 1
-Load laser parameters = 1
14 20442 Activate scanner list 2
15 20207 Query marking status
16 --- A positive edge at X20 input E15 = Retrigger starts the
marking of the vectors from list 2 of the Scanlab card
File "Sample_08" Table 2-264
TLV Commands
No. Customer writes Explanation
(TAG)
1 20201 Laser/shutter (Laser on/shutter open)
4 20501
Unified Ideograph:
TLV Commands
No. Customer writes Explanation
(TAG)
1 20201 Laser/shutter (Laser on/shutter open)
Start delay =0
TLV Commands
No. Customer writes Explanation
(TAG)
Preparation (only perform at start):
EndLoop
File "Sample_12" Table 2-267
TLV Commands
No. Customer writes Explanation
(TAG)
6 20207 Query marking status again and when = 0, then execute next
command
7 20421 Reset variable
TLV Commands
No. Customer writes Explanation
(TAG)
1 20708 Display available cameras