DL205 User Manual, 4th Edition, Rev. B
5–226
Chapter 5: Standard RLL Instructions - ASCII
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
The following examples show various syntax conventions and the length of the output to the
printer.
Example:
” ”
Length 0 without character
”A”
Length 1 with character A
” ”
Length 1 with blank
” $” ”
Length 1 with double quotation mark
” $ R $ L ”
Length 2 with one CR and one LF
” $ 0 D $ 0 A ” Length 2 with one CR and one LF
” $ $ ”
Length 1 with one $ mark
In printing an ordinary line of text, you will need to include
double quotation
marks before
and after the text string. Error code 499 will occur in the CPU when the print instruction
contains invalid text or no quotations. It is important to test your VPRINT instruction data
during the application development.
VPRINT Example Combined with PRINTV Instruction
The VPRINT instruction is used to create a string in V–memory. The PRINTV is used to
print the string out of port 2.
C12
Create string permissive
C13
Delay Permissive for VPRINT
T1
Delay for VPRINT to complete
VPRINT
Byte Swap:
“Print to” Address:
“STX” V3000:B “$0D”
All
V4000
SET
Delay permissive for VPRINT
TMR
Delay for VPRINT
to complete
T1
K10
PRINTV
CPU/DCM Slot:
Port Number:
Start Address:
Number of Bytes:
Append:
Byte Swap:
Busy:
Complete:
CPU
K2
V4000
K12
0D (hexadecimal)
None
C0
C1
C13
SET
Delay permissive for VPRINT
C13
14
15
16