Chapter 5: Standard RLL Instructions - ASCII
The following examples show various syntax conventions and the length of the output to the
1
printer.
Example:
2
" "
"A"
3
" "
" $" "
4
" $ R $ L "
" $ 0 D $ 0 A " Length 2 with one CR and one LF
5
" $ $ "
In printing an ordinary line of text, you will need to include double quotation marks before
6
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
7
during the application development.
8
VPRINT Example Combined with PRINTV Instruction
The VPRINT instruction is used to create a string in V–memory. The PRINTV is used to
9
print the string out of port 2.
10
14
11
12
13
15
14
A
B
16
C
D
5–226
DL205 User Manual, 4th Edition, Rev. B
Length 0 without character
Length 1 with character A
Length 1 with blank
Length 1 with double quotation mark
Length 2 with one CR and one LF
Length 1 with one $ mark
Create string permissive
C12
Delay Permissive for VPRINT
C13
Delay for VPRINT to complete
T1
VPRINT
Byte Swap:
"Print to" Address:
"STX" V3000:B "$0D"
Delay permissive for VPRINT
C13
SET
TMR
Delay for VPRINT
to complete
T1
K10
PRINTV
CPU/DCM Slot:
Port Number:
Start Address:
Number of Bytes:
Append:
0D (hexadecimal)
Byte Swap:
Busy:
Complete:
Delay permissive for VPRINT
C13
SET
All
V4000
CPU
K2
V4000
K12
None
C0
C1
Need help?
Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?