DL205 User Manual, 4th Edition, Rev. B
5–203
Chapter 5: Standard RLL Instructions - Message
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
V-memory element
– this is used for printing V-memory contents in the integer format or
real format. Use V-memory number or V-memory number with “:” and data type. The data
types are shown in the table below. The Character code must be capital letters.
NOTE:
There must be a space entered before and after the V-memory address to separate it from the text
string. Failure to do this will result in an error code 499.
Example:
V2000
Print binary data in V2000 for decimal number
V2000 : B
Print BCD data in V2000
V2000 : D
Print binary number in V2000 and V2001 for decimal number
V2000 : D B
Print BCD data in V2000 and V2001
V2000 : R
Print floating point number in V2000/V2001 as real number
V2000 : E
Print floating point number in V2000/V2001 as real number with
exponent
Example:
The following example prints a message containing text and a variable. The “reactor
temperature” labels the data, which is at V2000. You can use the : B qualifier after the V2000
if the data is in BCD format, for example. The final string adds the units of degrees to the
line of text, and the $N adds a carriage return / line feed.
V-memory text element
– this is used for printing text stored in V-memory. Use the %
followed by the number of characters after V-memory number for representing the text. If
you assign “0” as the number of characters, the print function will read the character count
from the first location. Then it will start at the next V-memory location and read that number
of ASCII codes for the text from memory.
Example:
V2000 % 16
16 characters in V2000 to V2007 are printed.
V2000 % 0
The characters in V2001 to Vxxxx (determined by the number in
V2000) will be printed.
#
Character code
Description
1
none
16-bit binary (decimal number)
2
: B
4 digit BCD
3
: D
32-bit binary (decimal number)
4
: D B
8 digit BCD
5
: R
Floating point number (real number)
6
: E
Floating point number (real number with exponent)
X1
Print the message to Port 2
when X1 makes an off-to-on
transition.
K2
“Reactor temperature = ” V2000 “deg. $N”
Message will read:
Reactor temperature = 0156 deg.
represents a space
^
^
^