beautypg.com

Compuprint 6314 CDL User Manual

Page 38

background image

CDL – Programmer Manual

38

Both of the following examples produce the label shown in fig. 30: the first is a text file while the
second is a Basic program.

L
D11
PC
H15
1X1100000000010B390230002004
1X1100000400014L382004
103300000200140PRINT TEST
E

OPEN "com1:9600,n,8,1" FOR OUTPUT AS #1

PRINT #1, CHR$(2); "L"
PRINT #1, "D11"
PRINT #1, "PC"
PRINT #1, "H15"

'box
PRINT #1, "1"; "X"; "11"; "000"; "0000"; "0010"; "B"; "390"; "230"; "002"; "004"

'line
PRINT #1, "1"; "X"; "11"; "000"; "0040"; "0014"; "L"; "382"; "004"

'alphanumerical field
PRINT #1, "1"; "0"; "33"; "000"; "0020"; "0140"; "PROVA DI STAMPA"
' 1 = rotation by 0 degrees
' 0 = font no. 0
' 33 = horizontal and vertical expansion
' 000 = ignored the font used is between 0 and 8
' 0020 = line co-ordinate
' 0140 = column co-ordinate
' PR...A = string to be printed

PRINT #1, "E"

CLOSE #1

fig. 30 – Example of alphanumerical fields

This manual is related to the following products: