The text of a manual · part 46 of 55
Hand-Held Terminal (Catalog Number 1747-PT1) User Manual: 27 - The Status File, pages 396 to 402
Pages 396 to 402 of 486, from Hand-Held Terminal (Catalog Number 1747-PT1) User Manual
The original document is the PDF (1.5 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Allen-Bradley 1747-PT1
Page 396
Chapter 27 The Status File
Address
Description
5/02
S:20 and S:21
Test – Fault/Powerdown – Rung/File Read/write. These registers indicate the executable rung (word S:20) and file (word S:21) number that the processor last executed before a major error or powerdown occurred. To enable this feature, you must select the Test Single Step option at the time you save your program. You can use these registers to pinpoint the execution point of the processor at the last powerdown or fault routine entry. This function is also active in the Run mode. See S:2/4.
•
Application example: Your program contains several TON instructions. TON T4:6 in file 2, rung 25 occasionally obtains a negative preset. Recovery from the negative preset fault is possible by placing the preset at 100 and resetting the timer. Place the following rung in your fault routine to accomplish this. Bit B3/0 is latched as evidence that an application recovery has been initiated. Note: The HHT can save a SLC 5/02 program that has this option enabled, but the Test Single Step mode is not available with the HHT.
EQU
EQU
EQU
MOV
EQUAL Source A
S:6
EQUAL Source A
S:20
EQUAL Source A
S:21
MOVE Source
Source B
52
Source B
25
Source B
2
The value 52 equals 0034 Hex. This is the error code for a negative timer preset.
Rung Number
File Number
Dest
100 T4:6.PRE
T4:6 (RES) B3 (L) 0 S:1 (U) 13 (RET)
27–28
5/01, Fixed
Page 397
Chapter 27 The Status File
Address S:22
Description Maximum Observed Scan Time Read/write. This word indicates the maximum observed interval between consecutive scans.
5/02
5/01, Fixed
•
Consecutive scans are defined as: Intervals between file 2/rung 0 and the END instruction, TND instruction, or the REF instruction. This value indicates, in 10 ms increments, the time elapsed in the longest program cycle of the processor. The processor compares each last scan value to the value contained in S:22. If the processor determines that the last scan value is larger than the value stored at S:22, the last scan value is written to S:22. Resolution of the maximum observed scan time value is +0 to –10 milliseconds. For example, the value 9 indicates that 80–90 ms was observed as the longest program cycle. Interrogate this value using a programming device data monitor function if you need to determine or verify the longest scan time of your program. The I/O scan, processor overhead, and communication servicing are not included in this measurement. S:23
Average Scan Time Read/write. This word indicates a weighted running average time. The value indicates, in 10 ms increments, the time elapsed in the average program cycle of the processor. For every Scan t,
•
Ave = (Ave * 7) + Scant 8 Resolution of the average scan time value is +0 to –10 milliseconds. For example, the value 2 indicates that 10–20 milliseconds was calculated as the average program cycle. The I/O scan, processor overhead, and communication servicing are not included in this measurement. S:24
Index Register Read/write. This word indicates the element offset used in indexed addressing.
•
When an STI, I/O Slot, or Fault Routine interrupts normal execution of your program, the original value of this register is restored when execution resumes.
27–29
Page 398
Chapter 27 The Status File
Address
Description
5/02
S:25 and S:26
I/O Interrupt Pending Read only. These two words are bit-mapped to the 30 I/O slots. Bit S:25/1 through S:26/14 refer to slots 1–30. Bits S:25/0 and S:26/15 are reserved.
•
The pending bit associated with an interrupting slot is set when the corresponding I/O slot interrupt enable bit is clear at the time of an interrupt request. It is cleared when the corresponding I/O event interrupt enable bit is set, or when an associated RPI instruction is executed. The pending bit for an executing I/O interrupt subroutine remains clear when the ISR is interrupted by an STI or fault routine. Likewise, the pending bit remains clear if interrupt service is requested at the time that a higher or equal priority interrupt is executing (fault routine, STI, or other ISR). I/O interrupts are discussed in chapter 31. S:27 and S:28
I/O Interrupt Enabled Read/write. These two words are bit-mapped to the 30 I/O slots. Bit S:27/1 through S:28/14 refer to slots 1–30. Bits S:27/0 and S:28/15 are reserved.
•
The default value of each bit is 1 (set). The enable bit associated with an interrupting slot must be set when the interrupt occurs to allow the corresponding ISR to execute. Otherwise, the ISR will not execute and the associated I/O slot interrupt pending bit will become set. Changes made to these bits using the data monitor function or ladder instructions other than IID or IIE of a programming terminal take affect at the next end of scan. I/O interrupts are discussed in chapter 31. S:29
User Fault Routine File Number Read/write. You enter a program file number (3–255) to be used in all recoverable and non-recoverable major errors. Program the ladder logic of your fault routine in the file you have specified. Write a 0 value to disable the fault subroutine. To provide protection from inadvertent EDT_DAT alteration of your selection, program an unconditional MOV instruction containing the program file number of your fault routine to S:29, or program a CLR instruction at S:29 to prevent fault routine operation. The user fault routine is discussed in chapter 29.
27–30
•
5/01, Fixed
Page 399
Chapter 27 The Status File
Address
Description
5/02
S:30
Selectable Timed Interrupt – Setpoint Read/Write. You enter the time base, in tens of milliseconds, to be used in the selectable timed interrupt. Your STI routine will execute per the value you enter. Write a 0 value to disable the STI.
•
5/01, Fixed
To provide protection from inadvertent EDT_DAT alteration of your selection, program an unconditional MOV instruction containing the setpoint value of your STI to S:30, or program a CLR instruction at S:30 to prevent STI operation. If the STI is initiated while in the Run mode by loading the status registers, the interrupt starts timing from the end of the program scan in which the status registers were loaded. Selectable timed interrupts are discussed in chapter 30. S:31
Selectable Timed Interrupt – File Number Read/write. You enter a program file number (3–255) to be used as the selectable timed interrupt subroutine. Write a 0 value to disable the STI.
•
To provide protection from inadvertent EDT_DAT alteration of your selection, program an unconditional MOV instruction containing the file number value of your STI to S:31, or program a CLR instruction at S:31 to prevent STI operation. Selectable timed interrupts are discussed in chapter 30. S:32
I/O Interrupt Executing Read only. This word indicates the slot number of the specialty I/O module that generated the currently executing ISR. This value is cleared upon completion of the ISR, Run mode entry, or upon powerup.
•
You can interrogate this word inside of your STI subroutine or fault routine if you wish to know if these higher priority interrupts have interrupted an executing ISR. You may also use this value to discern interrupt slot identity when multiplexing two or more specialty I/O module interrupts to the same ISR. I/O interrupts are discussed in chapter 31.
27–31
Page 400
Chapter 27 The Status File
Status File Display –SLC 5/02 Processors
The status file displays that apply to SLC 5/02 processors are shown below. The displays are accessible offline and online under the EDT DAT function. To move between data files: Press NEXT FL or PREV FL. To move between displays: Press NEXT PG or PREV PG. To move the cursor from any data file address to any other data file address: Press ADDRESS, enter the address, then press ENTER.
Status File S2:5 Minor Fault 0000 0000 0000 0000 S2:6 Fault Code 0000H Desc: No Error S2:29 Err File: 0 Indx Cross File: No S2:24 Index Reg: 0 Single Step: No S2:5/0 = 0 PRG ADDRESS NEXT FL PREV FL NEXT PG PREV PG F1
F2
F3
F4
F5
S2:27/0 = 0 PRG ADDRESS NEXT FL PREV FL NEXT PG PREV PG F1
F2
F3
F4
F5
Status File S2:7 Suspend Code 0 S2:8 Suspend File 0 S2:4 Running Clock 0000 0000 0000 0000 S2:13&14 Math Register 00000000H
Status File S2:25 & S2:26 I/O Interrupt Pending 1 2 3 0 0 0 0 0000 0000 0000 0000 0000 0000 0000 0000
S2:7 = 0 PRG ADDRESS NEXT FL PREV FL NEXT PG PREV PG
S2:25/0 = 0 PRG ADDRESS NEXT FL PREV FL NEXT PG PREV PG
F1
F2
F3
F4
F5
Status File S2:3H Watchdog [x10mS] 10 S2:3L Last Scan [x10mS] 0 S2:23 Avg. Scan [x10mS] 0 S2:22 Max. Scan [x10mS] 2 S2:3H = 10 PRG ADDRESS NEXT FL PREV FL NEXT PG PREV PG F1
F2
F3
F4
F5
Status File Selectable Timed Interrupt S2:31 Subroutine File: 0 S2:30 Frequency [x10mS]: 0 Enabled: 0 Executing: 0 Pending: 0 S2:31 = 0 PRG ADDRESS NEXT FL PREV FL NEXT PG PREV PG F1
F2
F3
F4
F5
Status File Debug Single Step File Single Step 0 Breakpoint 0 Fault/Powerdown 1
Rung S2:16&17 0 S2:18&19 0 S2:20&21 2 S2:16 = 0 PRG ADDRESS NEXT FL PREV FL NEXT PG PREV PG F1
F2
F3
F4
F5
Status File S2:11 & S2:12 I/O Slot Enables 1 2 3 0 0 0 0 1111 1111 1111 1111 1111 1111 1111 1111 Slot = 0 S2:11/0 = 1 PRG ADDRESS NEXT FL PREV FL NEXT PG PREV PG F1
27–32
Status File S2:27 & S2:28 I/O Interrupt Enables 1 2 3 0 0 0 0 0000 0000 0000 0000 0000 0000 0000 0000
F2
F3
F4
F5
F1
F2
F3
F4
F5
Status File S2:15H Communication KBaud Rate 19.2 S2:15L Processor Address 1 Note: Enter 1 for 1200 Enter 3 for 9600 Enter 2 for 2400 Enter 4 for 19200 S2:15H = 4 PRG ADDRESS NEXT FL PREV FL NEXT PG PREV PG F1
F2
F3
F4
F5
Status File Active Node List 1 2 3 0 0 0 0 0111 1000 0000 0000 0000 0000 0000 0000 Node = 0 S2:9/0 = 0 PRG ADDRESS NEXT FL PREV FL NEXT PG PREV PG S2:9 & S2:10
F1
F2
F3
F4
F5
Status File Arithmetic Flags S:0 Z:0 V:0 C:0 S2:0 Proc Status 0000 0000 0000 0000 S2:1 Proc Status 0000 0000 1000 0001 S2:2 Proc Status 1000 0000 0000 0010 S2:0/0 = 0 PRG ADDRESS NEXT FL PREV FL NEXT PG PREV PG F1
F2
F3
F4
F5
Page 401
Chapter 27 The Status File
Status File Display – SLC 5/01 and Fixed Processors
The figures below are the status file displays that apply to the SLC 5/01 and fixed processors. The displays are accessible offline and online under the EDT DAT function. To move between data files: Press NEXT FL or PREV FL. To move between displays: Press NEXT PG or PREV PG. To move the cursor from any data file address to any other data file address: Press ADDRESS, enter the address, then press ENTER.
Status File S2:5 Minor Fault 0000 0000 0000 0000 S2:6 Fault Code 0000H Desc: No Error S2:3L Program Scan [x10mS] last: 0 S2:3H Watchdog [x10mS] 10 S2:5/0 = 0 PRG ADDRESS NEXT FL PREV FL NEXT PG PREV PG F1
F2
F3
F4
F5
Status File S2:7 Suspend Code 0 S2:8 Suspend File 0 S2:4 Running Clock 0000 0000 0000 0000 S2:13&14 Math Register 00000000H S2:7 = 0 PRG ADDRESS NEXT FL PREV FL NEXT PG PREV PG F1
F2
F3
F4
F5
Status File S2:15H Communication KBaud Rate 19.2 S2:15L Processor Address 1 Note: Enter 3 for 9600 Enter 4 for 19200 S2:15H = 4 PRG ADDRESS NEXT FL PREV FL NEXT PG PREV PG F1
F2
F3
F4
F5
Status File Active Node List 1 2 3 0 0 0 0 0111 1000 0000 0000 0000 0000 0000 0000 Node = 0 S2:9/0 = 0 PRG ADDRESS NEXT FL PREV FL NEXT PG PREV PG S2:9 & S2:10
F1
F2
F3
F4
F5
Status File S2:11 & S2:12 I/O Slot Enables 1 2 3 0 0 0 0 1111 1111 1111 1111 1111 1111 1111 1111 Slot = 0 S2:11/0 = 1 PRG ADDRESS NEXT FL PREV FL NEXT PG PREV PG F1
F2
F3
F4
F5
Status File Arithmetic Flags S:0 Z:0 V:0 C:0 S2:0 Proc Status 0000 0000 0000 0000 S2:1 Proc Status 0000 0000 1000 0001 S2:2 Proc Status 1000 0000 0000 0010 S2:0/0 = 0 PRG ADDRESS NEXT FL PREV FL NEXT PG PREV PG F1
F2
F3
F4
F5
27–33