Automationdirect.com DirectLOGIC DL205 Series User Manual page 420

Table of Contents

Advertisement

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.
#
Character code
1
2
3
4
5
6
Example:
V2000
V2000 : B
V2000 : D
V2000 : D B
V2000 : R
V2000 : E
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.
X1
PRINT
K2
"Reactor temperature = " V2000 "deg. $N"
Message will read:
Reactor temperature = 0156 deg.
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
V2000 % 0
Chapter 5: Standard RLL Instructions - Message
none
16-bit binary (decimal number)
: B
: D
32-bit binary (decimal number)
: D B
: R
Floating point number (real number)
: E
Floating point number (real number with exponent)
Print binary data in V2000 for decimal number
Print BCD data in V2000
Print binary number in V2000 and V2001 for decimal number
Print BCD data in V2000 and V2001
Print floating point number in V2000/V2001 as real number
Print floating point number in V2000/V2001 as real number with
exponent
^
^
16 characters in V2000 to V2007 are printed.
The characters in V2001 to Vxxxx (determined by the number in
V2000) will be printed.
DL205 User Manual, 4th Edition, Rev. B
Description
4 digit BCD
8 digit BCD
Print the message to Port 2
when X1 makes an off-to-on
transition.
represents a space
^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
5–203

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?

Table of Contents

Save PDF