The text of a manual · part 2 of 3
1785 PLC-5 Programmable Controllers Addressing Reference Manual, pages 11 to 20
Pages 11 to 20 of 28
The original document is the PDF (172 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
Filed in the catalog under the Allen-Bradley 1785-LT
Page 11
1785 PLC-5 Addressing Reference
8
This word of the status file:
Stores:
S:10
Minor fault (word 1) Description Bit 0 battery is low (replace in 1-2 days) 1 DH+ table has changed (active node table) 2 STI delay too short, interrupt program overlap 3 EEPROM memory transfer at power-up 4 edits prevent SFC continuing 5 invalid I/O status file 6 not defined 7 no more command blocks exist 8 not enough memory on the memory module to upload the program from the processor 9 no MCP is configured to run 10 MCP not allowed 11 PII word number not in local rack 12 PII overlap 13 no command blocks exist to get PII 14 arithmetic overflow 15 SFC action overlap
S:11
Major fault Description Bit 0 corrupted program file (codes 10-19) 1 corrupted address in ladder file (codes 10-29) 2 programming error (codes 30-49) 3 SFC fault (codes 71-79) 4 error while assembling program (code 70) 5 start-up protection fault) 6 peripheral device fault 7 jumped to fault routine (codes 0-9) 8 watchdog faulted 9 system configured wrong (codes 80-89) 10 recoverable hardware error 11 MCP does not exist or is not ladder or SFC file 12 PII does not exist or is not ladder 13 STI does not exist or is not ladder 14 fault routine does not exist or is not ladder 15 fault routine is not a ladder file
Page 12
1785 PLC-5 Addressing Reference
This word of the status file:
Stores:
S:12
Fault codes Description Code 0-9 user-defined 10 failed data table check 11 bad user program checksum 12 bad integer operand type 13 bad mixed mode operand type 14 not enough operands for instruction 15 too many operands for instruction 16 bad instruction found 17 no expression end 18 missing end of edit zone 19 download aborted 20 indirect address out of range (high) 21 indirect address out of range (low) 22 attempt to access undefined file 23 file number less than 0 or greater than the number of defined files: or, indirect reference to file 0, 1, 2; or bad file number 24 indirect reference to wrong file type 30 subroutine jump nesting level exceeded 31 too few subroutine parameters 32 jump to non-ladder file 33 CAR routine not 68000 code 34 bad timer parameters entered 35 bad PID delta time entered 36 PID setpoint out of range 37 invalid I/O specified in an immediate I/O instruction 38 invalid use of return instruction 39 FOR loop missing NXT 40 control file too small 41 NXT instruction with no FOR 42 jump target does not exist 43 file is not an SFC 44 error using SFR 45 invalid channel number entered 46-69 reserved
S:13
Program file where fault occurred
S:14
Rung number where fault occurred
S:15
VME status file
S:16
I/O status file
9
Page 13
1785 PLC-5 Addressing Reference
10
This word of the status file:
Stores:
S:17
Minor fault (word 2) Description Bit 0 BT queue full to remote I/O 1 queue full – channel 1A 2 queue full – channel 1B 3 queue full – channel 2A 4 queue full – channel 2B 5 no modem on serial port 6 remote I/O rack in local rack table; or, remote I/O rack is greater than the image size 8 ASCII instruction error 9 duplicate node address 10 DF1 master poll list error 11 protected processor data table element violation 12 protected processor file violation
S:18
Processor clock year
S:19
Processor clock month
S:20
Processor clock day
S:21
Processor clock hour
S:22
Processor clock minute
S:23
Processor clock second
S:24
Indexed addressing offset
S:26
User control bits Description Bit 0 Restart/continuous SFC: when reset, processor restarts at first step in SFC. When set, processor continues with active step after power loss or change to RUN. 1 Start-up protection after power loss; when reset, no protection. When set, processor executes fault routine at power-up (sets word 11, bit 5). 2 Define the address of the local rack: when reset, local rack address is 0. When set, local rack address is 1. 3 Set complementary I/O: when reset, complementary I/O is not enabled. When set, complementary I/O is enabled. 4 Local block transfer compatibility bit: when reset, normal operation. When set, eliminates frequent checksum errors to certain BT modules. 5 When set (1), delay adapter channel response by 1s for compatibility with PLC-3 scanners. When reset (0), operate in normal response time.
S:27
Rack control bits: • low 8 bits – I/O rack inhibit bits for racks 0-7 • high 8 bits – I/O rack reset bits for racks 0-7
Page 14
1785 PLC-5 Addressing Reference
This word of the status file:
Stores:
S:28
Program watchdog setpoint
S:29
Fault routine file
S:30
STI setpoint
S:31
STI file number
S:32
Global status bits: • low 8 bits – rack fault bits for racks 10-17 (octal) • high 8 bits – rack queue-full bits for racks 10-17
S:33
Rack control bits: • low 8 bits – I/O rack inhibit bits for racks 10-17 • high 8 bits – I/O rack reset bits for racks 10-17
S:34
Global status bits: • low 8 bits – rack fault bits for racks 20-27 (octal) • high 8 bits – rack queue-full bits for racks 20-27
S:35
Rack control bits: • low 8 bits – I/O rack inhibit bits for racks 20-27 • high 8 bits – I/O rack reset bits for racks 20-27
S:46
PII program file number
S:47
PII module group
S:48
PII bit mask
S:49
PII compare value
S:50
PII down count
S:51
PII changed bit
S:52
PII events since last interrupt
S:53
STI scan time (in ms)
S:54
STI maximum scan time (in ms)
S:55
PII last scan time (in ms)
S:56
PII maximum scan time (in ms)
S:57
User program checksum
S:59
Extended-local I/O channel discrete transfer scan (in ms)
S:60
Extended-local I/O channel discrete maximum scan (in ms)
S:62
Extended-I/O channel maximum block-transfer scan (in ms)
S:63
Protected processor data table protection file number
11
Page 15
1785 PLC-5 Addressing Reference
This word of the status file:
Stores:
S:77
Communication time slice for communication housekeeping functions (in ms)
S:78
MCP I/O update disable bits Bit 0 for MCP A Bit 1 for MCP B etc.
S:79
MCP inhibit bits Bit 0 for MCP A Bit 1 for MCP B etc.
S:80-S:127
MCP file number MCP scan time (in ms) MCP max scan time (in ms) The above sequence applies to each MCP; therefore, each MCP has 3 status words. For example,
Logical Addressing for ASCII, Binary, BCD, Floating-Point, and Integer Files word 80: file number for MCP A word 81: scan time for MCP A word 82: maximum scan time for MCP A word 83: file number for MCP B word 84: scan time for MCP B etc.
Figure 7 Format for Logical Addressing of ASCII, Binary, BCD, Floating-Point, and Integer Files
File Separator Logical Address Identifier
Bit Separator (if addressing a bit)
$ B 123 : 123 / 15
File Type
File Number
Word Number
Bit Number
A = ASCII display (default) B = Binary D = BCD display (defalut) F = Floating-point N = Integer
3 – 999 Decimal
0 – 999 Decimal
0 – 15 Decimal
Note:
12
Except for data entry and display, all values in A, B, D, and N files are processed as integer values stored in natural binary format.
Page 16
1785 PLC-5 Addressing Reference
Figure 8 Word of ASCII (ANSI X3.4) File
15
14
13 12 11 10 ASCII character
9
8
7
6
5 4 3 2 ASCII character
1
0
PLC Data Type: signed word 17410–I
Figure 9 Word of a Binary File
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
PLC Data Type: signed word (negative values in 2’s complement form) Range: –32,768 thru +32,767 17411–I Figure 10 Word of Decimal (BCD) File
15
14 13 MSD
12
11
10
9
8
7
6
5
4
3
2 1 LSD
0
MSD = Most significant digit LSD = Least Significant Digit PLC Data Type: signed word Display: BCD (4 digits per word) 0 thru 9,000 17412–I
Figure 11 Word of Floating-Point File 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 S Exponent (8 bits) Mantissa (23 bits)
8
7
6
5
4
3
2
1
0 17394–I
PLC Data Type: IEEE Float (32-bit value) Range: +/– 1.1754944 E–38 thru +/– 3.4028237 E+38 Figure 12 Word of Integer File
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
PLC Data Type: signed word (negative values in 2’s complement form) Range: –32,768 thru +32,767 17415–I
13
Page 17
1785 PLC-5 Addressing Reference
Addressing Structured Data
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
File Separator Logical Address Identifier
Member Separator (if addressing a member)
$ T 123 : 123 . ACC
Identifier T C R SC BT ST PD MG
File Type Timer Counter Control SFC Status Blk-transfer ASCII String PID Control Message Control
Structure Size
File Number
Structure Member (optional)
6 bytes 6 bytes 6 bytes 6 bytes 12 bytes 84 bytes 164 bytes 112 bytes
3 – 999 decimal
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
Note: BT, MG, PD, SC, and ST files are not available on PLC-5/10, -5/12, -5/15, and -5/25 processors.
17395–I
Table C Timer 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 EN TT
13 12 TD
11 10 9 8 7 6 5 4 3 2 1 0 Reserved Used to maintain timer accuracy PRE – Preset Value (–32,768 thru +32,767) ACC – Accumulated Value (–32,768 thru +32,767) 17396–I
14
Page 18
1785 PLC-5 Addressing Reference
Table D Example Timer Addresses To Address:
PLC Data Type:
Example Address:
Whole Timer Structure structure
$T4:5
Timer Accumulated Word signed word
$T4:3.ACC
Timer Preset Word signed word
$T4:3.PRE
Timer Enabled Bit bit
$T4:3.TE
Timer Timing Bit bit
$T4:3.TT
Timer Done Bit bit
$T4:3.TD
Table E Counter Mnemonics Mnemonic
Structure Member
Size
PLC Data Type
.CU
Up Enable
1 bit bit
.CD
Down Enable
1 bit bit
.DN
Done
1 bit bit
.OV
Overflow
1 bit bit
.UN
Underflow
1 bit bit
.PRE
Preset Value
2 bytes signed word
.ACC
Accumulated Value
2 bytes signed word
Figure 15 Counter Structure
15 14 13 12 11 10 9 8 7 6 5 4 3 CU CD DN OV UN Reserved PRE – Preset Value (–32,768 thru +32,767) ACC – Accumulated Value (–32,768 thru +32,767)
2
1
0
17375–I
15
Page 19
1785 PLC-5 Addressing Reference
Table F Example Counter Addresses To Address:
PLC Data Type:
Example Address:
Whole Counter Structure structure
$C5:4
Counter Accumulated Word signed word
$C5:7.ACC
Counter Preset Word signed word
$C5:7.PRE
Counter Up Bit bit
$C5:7.CU
Counter Down Bit bit
$C5:7.CD
Counter Done Bit bit
$C5:7.DN
Counter Overflow Bit bit
$C5:7.OV
Counter Underflow Bit bit
$C5:7.UN
Table G Control Mnemonics Mnemonic
Structure Member
Size
PLC Data Type
.EN
Enable
1 bit bit
.EU
Enable Unloading
1 bit bit
.DN
Done
1 bit bit
.EM
Empty
1 bit bit
.ER
Error
1 bit bit
.UL
Unload
1 bit bit
.IN
Inhibit Comparison
1 bit bit
.FD
Found
1 bit bit
.UL
Unload
1 bit bit
.IN
Inhibit Comparisons
1 bit bit
.LEN
Length
2 bytes signed word
.POS
Position
2 bytes signed word
Figure 16 Control Structure
15 14 13 12 11 10 9 8 7 6 5 4 3 2 EN EU DN EM ER UL IN FD Reserved LEN – Length (–32,768 thru +32,767) POS – Position (–32,768 thru +32,767)
1
0
17376–I
16
Page 20
1785 PLC-5 Addressing Reference
Table H Example Control Addresses To Address:
PLC Data Type:
Example Address:
Whole Control Structure structure
$R6:0
Control Position Word signed word
$R6:0.POS
Control Length Word signed word
$R6:0.LEN
Control Enable Bit bit
$2R6:0.EN
Control Unload Enable Bit bit
$2R6:0.EU
Control Done Bit bit
$2R6:0.DN
Control Empty Bit bit
$2R6:0.EM
Control Error Bit bit
$2R6:0.ER
Control Unload Bit bit
$2R6:0.UL
Control Inhibit Bit bit
$2R6:0.IN
Control Found Bit bit
$2R6:0.FD
Table I SFC Status Mnemonics Mnemonic
Structure Member
Size
PLC Data Type
.SA
Scan Active
1 bit bit
.FS
First Scan
1 bit bit
.LS
Last Scan
1 bit bit
.OV
Timer Overflow
1 bit bit
.ER
Step Errored
1 bit bit
.DN
Done
1 bit bit
.PRE
Preset Value
2 bytes signed word
.TIM
Active Time
2 bytes signed word
17