DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-222
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
VPRINT V-memory element – the following modifiers can be used in the VPRINT ASCII
string message to “print to V–memory” register contents in 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.
Examples:
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
The following modifiers can be added to any of the modifies above to suppress or convert
leading zeros or spaces. The character code must be capital letters.
Example with V2000 = 0018 (binary format)
Example with V2000 = sp sp18 (binary format) where sp = space
V–memory Register
with Modifier
Number of Characters
1
2
3
4
V2000
sp
sp
1
8
V2000:B
sp
sp
1
2
V2000:BS
1
2
V2000:BC0
0
0
1
2
V–memory Register
with Modifier
Number of Characters
1
2
3
4
V2000
0
0
1
8
V2000:B
0
0
1
2
V2000:B0
1
2
#
Character code
Description
1
S
Suppresses leading spaces
2
C0
Converts leading spaces to zeros
3
0
Suppresses leading zeros
#
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)