The text of a manual · part 23 of 55
Hand-Held Terminal (Catalog Number 1747-PT1) User Manual: 12 - Monitoring Controller Operation
Pages 187 to 198 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 187
Chapter
12
Monitoring Controller Operation This chapter briefly describes monitoring controller operation. Topics include: • monitoring a program file • monitoring data files • monitoring data file displays • online data changes
Monitoring a Program File
The following demonstrates how to monitor a program file while online: 1. Start from the main online display: File Name: 222 File Name 0 1 2 222 3 OFFLINE F1
Prog Name:1000 Type Size(Instr) System 76 Reserved 0 Ladder 56 Ladder 0 RUN UPLOAD DWNLOAD MODE CLR_PRC> F2
F3
F4
F5
2. Press [ENTER] to view additional menu functions. Then press [F5], MONITOR. The following display appears requesting the file number you want to monitor: File Name: 222 Prog Name:1000 File Name Type Size(Instr) 0 System 76 1 Reserved 0 2 222 Ladder 56 3 Ladder 0 ENTER FILE NUMBER: RUN F1
F2
F3
F4
F5
3. To view the main program file (2), press 2, then [ENTER]. The ladder program display appears:
Program Cursor
Another Mode Menu
2.0.0.0.*
] [ ] [ ] [ ] [ ] [
] [
MODE F1
FORCE F2
( ) ( ) ( ) ( ) ( )
] [ ] [ ] [ EDT_DAT F3
SEARCH F4
RUN
The cursor location is displayed in the upper right corner. This indicates that the cursor is located in program file 2, rung 0, nest level 0, branch level 0 and the asterisk (*) means the cursor is not on an instruction, in this case the cursor is located on the left power rail.
F5 Processor Node Address and Operating Mode
Further details of the ladder display are provided in chapter 7, Creating and Editing a Program. 12–1
Page 188
Chapter 12 Monitoring Controller Operations
True/False Indication Once the processor is operating in the Run or Test mode, the ladder program indicates the logical state of the instructions, either true or false. In the previous display and on the following pages, true instructions and the program cursor appear as follows: • true instructions are intensified (heavier line weight) • the cursor is the blinking reverse video block • a true instruction at the cursor location flashes between the intensified instruction and the reverse video block
Monitoring Data Files
This section describes the types of data files, where to access them in the HHT, and how to monitor them.
Data Files These files contain information used in your ladder program. Data table files include: • Data File 0 – Output • Data File 1 – Input • Data File 2 – Status • Data File 3 – Binary or Bit • Data File 4 – Timer • Data File 5 – Counter • Data File 6 – Control • Data File 7 – Integer • Data File 8– Reserved file • Data Files 9–255 – User created files. They can be bit, timer, counter, control, and integer files. When offline, use data files 3–255 to set up sequencers, math routines, “recipes,” and look-up tables. When online, use data files to reset timers and counters, and sequencers to test and/or troubleshoot.
12–2
Page 189
Chapter 12 Monitoring Controller Operations
Accessing Data Files There are four ways to access the data table: Option 1 While offline, press [F3], PROGMAINT, from the menu display, then [ENTER], and [F1], EDT_DAT. Option 2 While monitoring a program offline, press [ENTER] and [F1], EDT_DAT. Option 3 While online, press [ENTER] from the main online display, then [F4], EDT_DAT. Option 4 While monitoring a program online, press [F3], EDT_DAT. Important: Data table file protection is available with any of the SLC 500 processors. However, the form of protection can only be changed during offline programming. • Fixed and SLC 5/01 processors – output files are always protected and all other files are unprotected from online changes while the processor is in the Run mode. • SLC 5/02 processors – at the time you save your program you can protect output files, all files, or no files from online changes while the processor is in the Run mode.
Monitoring a Data File The following count–up ladder program is an example of how to monitor data files. Rung 0
Rung 1 Rung 2 Rung 3 Rung 4
CTU
I:1.0 ] [ 0
COUNT UP Counter Preset Accum
C5:0 3 0
(CU) (DN)
C5:0 ] [ CU
0:3.0 ( ) 0
C5:0 ] [ DN C5:0 ] [ OV I:1.0 ] [ 1
0:3.0 ( ) 1 0:3.0 ( ) 2 0:5.0 (RES) END
12–3
Page 190
Chapter 12 Monitoring Controller Operations
The following HHT display shows the ladder program being monitored in the online mode. The cursor is located on the XIC instruction C5:0/DN on rung 2. XIC:C5:0/13
2.2.0.0.1 (CTU)
] [ ] [ ] [ ] [ ] [ MODE F1
( ) ( ) ( ) FORCE F2
EDT_DAT F3
SEARCH F4
(RES) RUN F5
When you are monitoring a file, the location of the cursor in the ladder program determines how you access a particular address within a data file: • If the cursor is on an instruction when you press [F3], EDT_DAT, the cursor moves to the address (bit or word level) of the instruction in the appropriate data file. • If the cursor is on a power rail or branch intersection when you press [F3], EDT_DAT, the cursor moves to the beginning of the first data file, the Output data file. You can then use the ADDRESS function key, followed by [ENTER] to specify any address in the data table. Monitor the counter data file by pressing [F3], EDT_DAT. The following display appears: COUNTER
C5:0 CU CD 0 0 3 0
STATUS PRESET ACCUM
DN 0
OV 0
UN 0
UA 0
STATUS=000 000 RUN ADDRESS NEXT FL PREV FL NEXT PG PREV PG F1
F2
Function Key
12–4
F3
F4
F5
Description
[F1], ADDRESS
Locates any address in the data table
[F2], NEXT_FL
Displays the next consecutive file in the data table
[F3], PREV_FL
Displays the previous file in the data table
[F4], NEXT_PG
Displays the next page of elements in the existing data file
[F5], PREV_PG
Displays the previous page of elements in the existing data file
Page 191
Chapter 12 Monitoring Controller Operations
Data File Displays
The following section provides you with an example of what each data table display appears as. The radix (or number system) that the file elements are displayed in is fixed: binary for Input, Output, and Bit files; decimal for Integer files; and formatted display for Status, Timer, Counter, and Control files. To access the data table, place the cursor on the left power rail in the online monitor display and press [F3], EDT_DAT. The first file in the data table appears, the output data file.
Output File (O0) The output data file displays the elements that correspond to the specified controller I/O configuration. The following output file display indicates that there is an 8–point output module in slot 3. Each bit in the word represents the On/Off status of an output circuit or terminal. All bits are presently reset (0). Important: If the processor is in the Run mode, you can only save changed data in the output file if you have a SLC 5/02 processor and your file was saved allowing this option. Refer to chapter 8. Address O0:3.0
15 data 0 0000 0000
O0:3.0/0 = 0 RUN ADDRESS NEXT FL PREV FL NEXT PG PREV PG F1
F2
F3
F4
F5
To display the next consecutive data file – the input data file, press [F2], NEXT_FL.
Input File (I1) The input data file displays the elements that correspond to the specified controller I/O configuration. The following input file display indicates that there is a 4–point input module in slot 1 and an 8–point input module in slot 2. Each input slot is shown as a word/element address. Each bit in the word represents the On/Off status of an input circuit or terminal. All bits are presently reset (0). Address I1:1.0 I1:2.0
15 data
0 0000 0000 0000
I1:1.0/0 = 0 RUN ADDRESS NEXT FL PREV FL NEXT PG PREV PG F1
F2
F3
F4
F5
12–5
Page 192
Chapter 12 Monitoring Controller Operations
To display the next consecutive data file – the status data file, press [F2], NEXT_FL.
Status Data File (S2) The status data file contains information about processor operation, diagnostics, memory module loading, fault codes, etc. The displays below show the 16–word status file for a fixed controller or a SLC 5/01 processor. To move between displays, press [F3], NEXT_PG. 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
12–6
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
Page 193
Chapter 12 Monitoring Controller Operations
The displays below show the 33–word status file for a SLC 5/02 processor. To move between displays, press [F3], NEXT_PG. To display the next consecutive data file – the bit data file, press [F2], NEXT_FL.
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
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 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
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
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
12–7
Page 194
Chapter 12 Monitoring Controller Operations
Bit Data File (B3) The display below shows the bit data file. Two elements are shown; B3:0 and B3:1. The cursor is located on bit B3/0. All bits are reset to zero. Address B3:0 B3:1
15 data 0 0000 0000 0000 0000 0000 0000 0000 0000
B3/0 = 0 RUN ADDRESS NEXT FL PREV FL NEXT PG PREV PG F1
F2
F3
F4
F5
To display the next consecutive data file – the timer data file, press [F2], NEXT_FL.
Timer Data File (T4) The display below shows the timer data file. The cursor is on the enable bit (EN) of timer T4:0. The control words EN, TT, and DN (bits 15, 14, and 13) are all reset. The preset is currently 1000 and the accumulator is 0. Timer STATUS PRESET ACCUM
T4:0 EN TT 0 0 1000 0
DN 0
STATUS=000 RUN ADDRESS NEXT_FL PREV_FL NEXT_PG PREV_PG F1
F2
F3
F4
F5
To display the next consecutive data file – the counter data file, press [F2], NEXT_FL.
Counter Data File (C5) The display below shows the counter data file. The cursor is on the count–up enable bit CU (bit 15) of counter C5:0. The control word bits CU, CD, DN, OV, UN, and UA (bits 15, 14, 13, 12, 11, and 10 respectively) are all reset. The preset is currently 10 and the accumulator is 0. Counter STATUS PRESET ACCUM
C5:0 CU CD 0 0 10 0
DN 0
OV 0
UN 0
UA 0
STATUS=000000 RUN ADDRESS NEXT_FL PREV_FL NEXT_PG PREV_PG F1
F2
F3
F4
F5
To display the next consecutive data file – the control data file, press [F2], NEXT_FL. 12–8
Page 195
Chapter 12 Monitoring Controller Operations
Control Data File (R6) The display below show the control data file. The cursor is on the enable bit EN (bit 15) of control element R6:0. The control word bits EN, EU, DN, EM, ER, UL, IN, and FD (bits 15, 14, 13, 12, 11, 10, 9, and 8 respectively) are all reset. The length is 25 and the position is 0. Control STATUS PRESET ACCUM
R6:0 EN EU 0 0 25 0
DN 0
EM 0
ER 0
UL 0
IN 0
FD 0
STATUS=0000000 RUN ADDRESS NEXT_FL PREV_FL NEXT_PG PREV_PG F1
F2
F3
F4
F5
To display the next consecutive data file – the integer data file, press [F2], NEXT_FL.
Integer Data File (N7) The display below shows the integer data file. Four elements are shown: N7:0 through N7:3. The cursor is on N7:0, which currently has a decimal value of 1098. Address N7:0 N7:1 N7:2 N7:3
Data 1098 0 2000 5
N7:0=1098 RUN ADDRESS NEXT_FL PREV_FL NEXT_PG PREV_PG F1
F2
F3
F4
F5
To display the next consecutive data file, press [F2], NEXT_FL. If a data file numbered 8 or higher has been used, the displays will change accordingly. Otherwise, the HHT wraps around to the start of the data table and displays the output data file.
Online Data Changes
This section illustrates how: • to monitor counter operation • to change counter preset and accumulator values • counter enable, done, and overflow bits operate • to reset a counter The examples in this section are based on the count–up ladder diagram shown on page 12–3. The count–up enable bit CU (bit 15), done bit DN (bit 13), and overflow bit OV (bit 12) of the counter energize external outputs 0, 1, and 2 respectively. External input 0 enables the counter; external input 1 resets the counter.
12–9
Page 196
Chapter 12 Monitoring Controller Operations
To change online data, begin by monitoring the program online while the processor is in either the Run or Test Continuous Scan (CSN) mode. XIC:I1:1.0/0
NO FORCE
2.0.0.0.1 (CTU)
] [ ] [ ] [ ] [ ] [ MODE F1
( ) ( ) ( ) FORCE F2
EDT_DAT F3
SEARCH F4
(RES) RUN F5
Observe the following: • XIC instruction C5:0/15 (count–up bit) and rung 1 are true whenever rung 0 is true, and false whenever rung 0 is false. • Each time rung 0 makes a false to true transition, the accumulator value increments. Position the cursor on the CTU instruction and press [ZOOM] to display the counter accumulator value. • When the accumulator value equals the preset, 3, XIC instruction C5:0/13 (done bit) goes true, making rung 2 true. The instruction remains true as long as the accumulator is greater than or equal to the preset value. To change the counter preset or accumulator values or the status bits: 1. Press EDT_DAT from either the zoom display or the online monitor display. A screen similar to the one below appears. Counter STATUS PRESET ACCUM
C5:0 CU CD 0 0 3 16
DN 1
OV 0
UN 0
UA 0
STATUS=001000 RUN ADDRESS NEXT_FL PREV_FL NEXT_PG PREV_PG F1
F2
F3
F4
F5
In this display, the accumulator (ACCUM) is 16 and the done bit DN (bit 13) is set. Reset the counter by making rung 4 true momentarily. The accumulator value and the done bit are reset to zero. 2. Change the preset and accumulator values from the EDT_DAT screen. Press the down arrow key to place the cursor on the preset. Type 32767 (maximum value) and press [ENTER]. Press the down arrow key to place the cursor on the accumulator (ACCUM). Type 32767 (maximum value) and press [ENTER]. The display appears as follows: Counter STATUS PRESET ACCUM
C5:0 CU CD 0 0 32767 32766
DN 1
OV 0
UN 0
UA 0
STATUS=32766 RUN ADDRESS NEXT_FL PREV_FL NEXT_PG PREV_PG F1
12–10
F2
F3
F4
F5
Page 197
Chapter 12 Monitoring Controller Operations
3. Increment the counter by turning on I:1/0. The accumulator value equals the preset value, the done bit DN (bit 13) is set, and rung 2 is true. 4. Increment the counter again. The is in an overflow condition, setting the overflow bit OV (bit 12). Rung 3 in the ladder program is true. The display changes as follows: Counter STATUS PRESET ACCUM
C5:0 CU CD DN 0 0 1 32767 –32768
OV 1
UN 0
UA 0
STATUS=–32768 RUN ADDRESS NEXT_FL PREV_FL NEXT_PG PREV_PG F1
F2
F3
F4
F5
The accumulator is on the 32768th count, shown as –32678. As the count continues to increment, the accumulator shows negative numbers of decreasing absolute value.
12–11