EasyManua.ls Logo

Automationdirect.com DL06 - Page 363

Automationdirect.com DL06
533 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-202
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Data Format Suffixes for Embedded V-memory Data
Several data formats are available for displaying V-memory data on the LCD. The choices are
shown in the table below. A colon is used to separate the embedded V-memory location from
the data format suffix and modifier. An example appears on the previous page.
The S, C0, and 0 modifiers alter the presentation of leading zeros and spaces. S removes
leading spaces and left justifies the result. C0 replaces leading spaces with leading zeros.
0 is a modification of C0. 0 eliminates any leading zeros in the C0 format version and converts
them to spaces.
Data Format Modifier Example Displayed Characters
none
(16-bit format)
V2000 = 0000 0000 0001 0010
1 2 3 4
V2000 1 8
[:S] V2000:S 1 8
[:C0] V2000:C0 0 0 1 8
[:0] V2000:0 1 8
:B
(4 digit BCD)
V2000 = 0000 0000 0001 0010
1 2 3 4
[:B] V2000:B 0 0 1 2
[:BS] V2000:BS 1 2
[:BC0] V2000:BC0 0 0 1 2
[:B0] V2000:B0 1 2
:D
(32-bit decimal)
V2000 = 0000 0000 0000 0000
Double Word
V2001 = 0000 0000 0000 0001
1 2 3 4 5 6 7 8 9 10 11
[:D] V2000:D 6 5 5 3 6
[:DS] V2000:DS 6 5 5 3 6
[:DC0] V2000:DC0 0 0 0 0 0 0 6 5 5 3 6
[:D0] V2000:D0 6 5 5 3 6
:DB
(8 digit BCD)
V2000 = 0000 0000 0000 0000
Double Word
V2001 = 0000 0000 0000 0011
1 2 3 4 5 6 7 8
[:DB] V2000:DB 0 0 0 3 0 0 0 0
[:DBS] V2000:DBS 3 0 0 0 0
[:DBC0] V2000:DBC0 0 0 0 3 0 0 0 0
[:DB0] V2000:DB0 3 0 0 0 0
:R
(DWord floating
point number)
V2001/V2000 = 222.11111
(real number)
Double Word
1 2 3 4 5 6 7 8 9 10 11 12 13
[:R] V2000:R f 2 2 2 . 1 1 1 1 1
[:RS] V2000:RS f 2 2 2 . 1 1 1 1 1
[:RC0] V2000:RC0 f 0 0 0 2 2 2 . 1 1 1 1 1
[:R0] V2000:R0 f 2 2 2 . 1 1 1 1 1
:E
(DWord floating
point number
with exponent)
V2001/V2000 = 222.1
(real number)
Double Word
1 2 3 4 5 6 7 8 9 10 11 12 13
[:E] V2000:E f 2 . 2 2 1 0 0 E + 0 2
[:ES] V2000:ES f 2 . 2 2 1 0 0 E + 0 2
[:EC0] V2000:EC0 f 2 . 2 2 1 0 0 E + 0 2
[:E0] V2000:E0 f 2 . 2 2 1 0 0 E + 0 2
f = plus/minus flag (plus = no symbol, minus = - )