Compuprint 6314 CDL Manual de usuario Pagina 46

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 53
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 45
CDL – Programmer Manual
46
HELLO
HELLO
HELLO
HELLO
HELLO
fig. 34 – Example with repeated fields
2.3.7 Incremental fields
It is often necessary to print a series of labels with a progressive number or letter. You can do this
by using the commands
+pii
(
-pii
) and
>pii
(
<pii
) (see sect. 2.1.2.1.1 on page 13). The
p
is used as
a
filler character
that is the most significant positions are filled with the character
p
.
The following examples, the first in
text
format, the second in Basic, give the result shown in fig.
35.
<STX>L<CR>
D11<CR>
PC<CR>
H15<CR>
133300001550200AAA<CR>
<01<CR>
133300001100200AAA<CR>
>01<CR>
133300000650200000<CR>
-01<CR>
133300000200200000<CR>
+01<CR>
Q0005<CR>
E<CR>
OPEN "com1:9600,n,8,1" FOR OUTPUT AS #1
PRINT #1, CHR$(2); "L"
PRINT #1, "D11"
PRINT #1, "PC"
PRINT #1, "H15"
PRINT #1, "1"; "3"; "33"; "000"; "0155"; "0200"; "AAA"
'decreases the previous field by 1 (alphanumerical fields)
PRINT #1, "<01"
PRINT #1, "1"; "3"; "33"; "000"; "0110"; "0200"; "AAA"
Vista de pagina 45
1 2 ... 41 42 43 44 45 46 47 48 49 50 51 52 53

Comentarios a estos manuales

Sin comentarios