Repeating the same field on the label, 6 repeating the same field on the label – Compuprint 6314 CDL User Manual
Page 44
CDL – Programmer Manual
44
' 3 = font no. 3
' 11 = horizontal and vertical expansion
' 000 = ignored when the font is not 9
' 0020 = line co-ordinate
' 0200 = column co-ordinate
' xx...x = space reserved for the field to be filled
PRINT #1, "X" 'end label definition mode
'the following instructions fill in the dynamic fields defined
'during label definition and can be
'sent later
'assign value 1234567 to the first field
PRINT #1, CHR$(2); "U"; "01"; "1234567"
'assign value 12345 to the second field
PRINT #1, CHR$(2); "U"; "02"; "12345"
'assign value 123456 to the third field
PRINT #1, CHR$(2); "U"; "03"; "123456"
PRINT #1, CHR$(2); "G" 'print the label using the data just sent
CLOSE #1
fig. 33 – Example with dynamic fields
2.3.6
Repeating the same field on the label
When the same field is repeated more than once (e. g. an article code first as a bar code and then
“decoded”), you can use command STX Sn to make the processing more effective and ensure that
any changes to the first field are repeated in the subsequent fields without errors.
Each field defined during label definition mode is saved in a register. This is done explicitly with
command G (see sect. 2.1.2.1.1 on page 13) or automatically in progressive order: the first field is