Addressing Reference
1785 PLC-5
14
Figure 13 shows address formats for structured data. Figures 15 thru 22
and tables B thru L show data structures and mnemonics for the various
file types.
Figure 13
General
Format for Addressing a Structure or a Member of a Structure
Identifier
File
Type
T Timer 6 bytes
C Counter 6 bytes
R Control 6 bytes
SC SFC Status 6 bytes
BT Blk-transfer 12 bytes
ST ASCII String 84 bytes
PD PID Control 164 bytes
MG Message Control 112 bytes
File Number
3 – 999 decimal
Structure Member (optional)
Refer to Table B – S
Structure Number
0 – 77 Octal for token data files
0 – 584 Decimal for message files
0 – 398 Decimal for PID files
0 – 779 Decimal for ASCII-string files
0 – 999 Decimal for all other file types
Logical
Address Identifier
le Separator
Member Separator (if addressing a member)
$ T 123 : 123 . ACC
17395–I
Structure Size
Note:
BT
, MG, PD, SC, and ST files are not available on PLC-5/10, -5/12, -5/15, and -5/25 processors.
T
able C
T
imer Mnemonics
Mnemonic Structure Member Size PLC Data Type
.EN Enable 1 bit bit
.TT Timing 1 bit bit
.DN Done 1 bit bit
.PRE Preset Value 2 bytes signed word
.ACC Accumulated Value 2 bytes signed word
Figure 14
Timer
Structure
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
17396–I
EN TT TD Reserved
Used to maintain timer accuracy
PRE – Preset V
alue (–32,768 thru +32,767)
ACC –
Accumulated V
alue (–32,768 thru +32,767)
Addressing Structured Data