The text of a manual · part 20 of 55
Hand-Held Terminal (Catalog Number 1747-PT1) User Manual: 9 - Configuring Online Communication
Pages 165 to 176 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 165
Chapter
9
Configuring Online Communication This chapter describes online communication between the HHT and SLC 500 processors. Topics include: • online configuration • the Who function
Online Configuration
As described in chapter 1, the HHT may be connected directly to a port located on an SLC 500 processor or it may be connected to any fixed, SLC 5/01, or SLC 5/02 processor that is active on a DH–485 network. Important: The HHT is not compatible with the SLC 5/03 processor. For the examples in this section, the DH–485 network is configured as follows: Node Address
Allen–Bradley 1784–T45, T47 or Compatible Laptop
Network Device
0
APS Terminal
1
Hand–Held Terminal
2
SLC 5/02 Processor
3
SLC 500 Processor
4
SLC 5/01 Processor
SLC 500 Hand–Held Terminal
Node 1 Node 0 1747–PIC Interface Converter
1747–AIC Isolated Link Coupler
Node 2
SLC 500 5/02 Modular I/O Controller
1747–AIC Isolated Link Coupler
Node 3
SLC 500 20 I/O Fixed Controller
1747–AIC Isolated Link Coupler
Node 4
SLC 500 5/01 Modular I/O Controller
9–1
Page 166
Chapter 9 Configuring Online Communication
To configure your HHT for online communication, begin at the main menu display of the HHT. SLC 500 PROGRAMMING SOFTWARE Rel. 2.03 1747 – PTA1E Allen–Bradley Company Copyright 1990 All Rights Reserved PRESS A FUNCTION KEY SELFTEST TERM PROGMAINT F1
F2
F3
OFL UTILITY F4
F5
Press [F5], UTILITY. The following display appears: File Name: 222 File Name 0 1 2 222 3 ONLINE
WHO
F1
F2
Prog Name:1000 Type Size(Instr) System 76 Reserved 0 Ladder 56 Ladder 0 OFL PASSWRD CLR_MEM F3
F4
F5
The following functions are available from this display: Function Key
Description
[F1], ONLINE
Allows you to go online and communicate with the processor you were previously attached to. If you were not previously attached to a processor, the Who function is entered.
[F2], WHO
Allows you to view the nodes on the network, run network diagnostics, attach to and communicate with a specific node, change a node configuration, and set and clear ownership. Allows you to change a password in the HHT offline program. Allows you to clear the HHT offline memory.
[F3], PASSWRD [F4], CLR_MEM
In the following example, go online to the processor at node address 4. Assume that the HHT has previously been attached to node 4, and that the program in the HHT and the program in the processor are identical. From the UTILITY menu, press [F1], ONLINE. The display changes as follows: File Name: 222 File Name 0 1 2 222 3
Prog Name:1000 Type Size(Instr) System 77 Reserved 0 Ladder 13 Ladder 1 RUN OFFLINE UPLOAD DWNLOAD MODE CLR_PRC > F1
9–2
F2
F3
F4
F5
Display toggles between the processor node address and the processor operating mode.
Page 167
Chapter 9 Configuring Online Communication
Because the program files match, there are 2 menu screens and 10 function keys. The greater than sign (>), in the lower right corner of the display, indicates that a second function key menu is available. The following functions are available to you: Function Key
Description
[F1], OFFLINE
Returns you to the utility menu display.
[F2], UPLOAD
Reads the program from the processor RAM and copies it to the HHT RAM. This function overwrites any program currently stored in HHT RAM.
[F3], DOWNLOAD
Copies the program stored in HHT RAM to the processor RAM. This function overwrites the program stored in the processor RAM. Allows you to change the processor operating mode to Run, Test, or Program. Allows you to the clear the processor RAM and place the memory in the Default state.
[F4], MODE [F5], CLR_PRC
Pressing [ENTER] displays the second set of function keys. Function Key
Description Allows you to change the processor password/master password. Transfers processor RAM to EEPROM or EEPROM/UVPROM to processor RAM. Allows you to monitor or edit processor data files. Allows you to observe the program operation of the processor program file that you specify.
[F1], PASSWORD [F3], TRANSFER MEMORY [F4], EDT_DAT [F5], MONITOR
Exceptions The function keys and menus vary depending on how the HHT and processor programs relate. In the following example, assume that the HHT has previously been attached to this processor, but the offline program in the HHT has been altered and no longer matches the program in processor RAM. If the HHT and processor programs do not match, the following display appears when you press [F1], ONLINE: Program Directory Programmer Processor Prog: 1000 Prog: 1000 File: 222 File: Exec Files: 4 Exec Files: 4 Data Files: 9 Data Files: 9 PROGRAM FILES DIFFER RUN OFFLINE UPLOAD DWNLOAD MODE CLR_PRC F1
F2
F3
F4
F5
When the program files do not match, there is only one menu display and five function keys. Notice the absence of the greater than sign (>), in the lower right corner.
9–3
Page 168
Chapter 9 Configuring Online Communication
Another exception is when the processor contains the default program. The following screen appears: Program Directory Programmer Processor Prog: 1000 Prog: DEFAULT File: 222 File: Exec Files: 4 Exec Files: 3 Data Files: 9 Data Files: 3 DEFAULT FILE IN PROCESSOR PRG OFFLINE DWNLOAD CLR_PRC MEM_PRC F1
The Who Function
F2
F3
F4
F5
The Who function allows you to view the nodes on the network, run network diagnostics, attach to and communicate with a specific node, change a node configuration, and set and clear ownership. From the utility display, press [F2], WHO. The following display appears:
Asterisks indicate the node previously attached to.
Node Addr. 2 3 *** 4 0 Node Addr:
2
DIAGNSTC F1
F2
Device Max Addr./Owner 5/02 (31) 500–20 (31) 5/01 (31) APS (31) Baud Rate: 19200 OFL ATTACH NODE_CFG OWNER F3
F4
Current Node
F5
Important: The HHT uses top–line editing. This means that the information shown nearest the top of the display is the current node address. For example, the above display indicates that pressing [F3], ATTACH, causes the HHT to go online with node 2. In the following sections, “selected” refers to the node nearest the top of the display. The current node is also indicated on the status line of the display. To change the node address, or to view additional nodes on the network, use the [↑] and [↓] keys.
9–4
Page 169
Chapter 9 Configuring Online Communication
The following functions are available from the Who display: Function Key [F1], DIAGNSTC
[F3], ATTACH
Description Allows you to monitor the status of the network or the selected node. Initiates communication with the selected node for uploading/downloading a program, changing the processor operating mode, clearing processor memory, changing processor password/master password, monitoring a program, viewing or modifying data files, or clearing the processor memory.
[F4], NODE_CFG
Allows you to change the node address, the maximum node address, and the baud rate of each node.
[F5], OWNER
Allows you to clear or set ownership of the selected processor. Setting ownership prevents other programmers from accessing the owned processor program.
9–5
Page 170
Chapter 9 Configuring Online Communication
Diagnostics 1. To monitor the diagnostics of the network or the selected node, press [F1], DIAGNSTC from the Who display. The following display appears: Node Addr. 2 3 4 0 Node Addr:
2
NODE F1
Device Max Addr./Owner 5/02 (31) 500–20 (31) 5/01 (31) APS (31) Baud Rate: 19200 OFL NETWORK
F2
F3
F4
F5
2. To monitor the diagnostic display of the selected node press [F1], NODE. The following display appears: Node: 2 Device Type: 5/02 Firmware Rel: 5 Series: C Mode: PRG Fault Code: 0000H Program Name 1000 Forces: Not Installed OFL F1
F2
F3
F4
F5
3. To monitor the diagnostic display of the network press [ESC], then [F5], NETWORK. The following display appears: Total Nodes: 5 Msgs Sent: 29736 Retries: 0 Bad Msgs Rcvd: 0 NAK Sent: 0 Node Addr: 2
Max. Addr.: 31 Msgs Rcvd: 202 Limit Exceeded: 0 NAK Rcvd:
0 OFL RESET
F1
F2
F3
F4
F5
4. From this display, you can reset the messages sent and messages received counters by pressing [F5], RESET. 5. Press [ESC] twice to return to the Who menu.
9–6
Page 171
Chapter 9 Configuring Online Communication
Attach The Attach function initiates communication between the HHT and a processor. The Attach function allows you to: • upload/download a program • change processor operating modes • clear the processor memory • enter or remove a password/master password • transfer memory between processor RAM and EEPROM • monitor program execution • monitor and change data file values • force I/O • search the user program for specific instructions and/or addresses The function keys and menus vary depending on how the HHT and processor programs relate. In this example, attach the HHT to node 4. Assume that the HHT and processor programs are identical. 1. Start at the Who display: Node Addr. 2 3 *** 4 0 Node Addr:
2
DIAGNSTC F1
F2
Device Max Addr./Owner 5/02 (31) 500–20 (31) 5/01 (31) APS (31) Baud Rate: 19200 OFL ATTACH NODE_CFG OWNER F3
F4
Current Node
F5
2. Press the [↓], twice to select node 4. The display appears as follows: Node Addr. *** 4 0 1 2 Node Addr:
4
DIAGNSTC F1
F2
Device Max Addr./Owner 5/01 (31) APS (31) TERMINAL (31) 5/02 (31) Baud Rate: 19200 OFL ATTACH NODE_CFG OWNER F3
F4
Current Node
F5
3. Press [F3], ATTACH. The following menu is displayed: File Name: 222 File Name 0 1 2 222 3
Prog Name:1000 Type Size(Instr) System 77 Reserved 0 Ladder 13 Ladder 1 RUN OFFLINE UPLOAD DWNLOAD MODE CLR_PRC > F1
F2
F3
F4
Display toggles between the processor node address and the processor operating mode.
F5
9–7
Page 172
Chapter 9 Configuring Online Communication
Because the program files match, there are 2 menu displays and 10 function keys. The greater than sign (>), in the lower right corner of the display, indicates that a second function key menu is available. At this point, all the functions listed on page 9–3 are available to you. Return to the utility display by pressing [F1], OFFLINE or press [ESC], then [F2], YES. Exception The function keys and menus vary depending on how the HHT and processor programs relate. In this example, attach the HHT to node 2. Assume that the processor contains a program other than the default, and the program is different from the program in the HHT. 1. From the utility menu display, press [F2], WHO to bring up the Who display: Node Addr. 2 3 *** 4 0 Node Addr:
2
DIAGNSTC F1
F2
Device Max Addr./Owner 5/02 (31) 500–20 (31) 5/01 (31) APS (31) Baud Rate: 19200 OFL ATTACH NODE_CFG OWNER F3
F4
Current Node
F5
2. Use the [↑] and [↓] keys to change the order of the nodes listed, if necessary. Press [F3], ATTACH, since the current node is already 2. The following menu is displayed: Program Directory Programmer Processor Prog: 1000 Prog: 2345 File: File: Exec Files: 4 Exec Files: 4 Data Files: 9 Data Files: 9 PROGRAM FILES DIFFER PRG OFFLINE UPLOAD DWNLOAD MODE CLR_PRC F1
F2
F3
F4
F5
3. You may now perform one of the five functions displayed. 4. Press [F1], OFFLINE or press [ESC], then [F2], YES, to return to the utility display.
Node Configuration The Node Configuration function allows you to configure a processor or the HHT for online communication. The Node Configuration functions are: • change the node address • change the maximum address • change the baud rate
9–8
Page 173
Chapter 9 Configuring Online Communication
Begin at the WHO display. Press[F4], NODE_CFG. Node Addr. 2 3 4 0 Node Addr:
Device Max Addr./Owner 5/02 (31) 500–20 (31) 5/01 (31) APS (31) 2 Baud Rate: 19200 OFL CHG_ADDR MAX_ADDR BAUD F1
F2
F3
F4
F5
The following functions are available from this menu: Function Key
Description
[F1], CHG_ADDR
Allows you to change the node address of your HHT or the node address of any active processor on the DH–485 network. Cycle power to the processor for your changes to take effect.
[F2], MAX_ADDR
Allows you to set the maximum node address for your HHT or any active processor on the network.
[F3], BAUD
Allows you to set or change the communication rate of your HHT or any active processor on the network. Cycle power to the processor for the changes to take effect.
You do not need to cycle power if you change your HHT node address, the address changes as soon as you press [ENTER]. Important: Each programming device and processor on a DH–485 network must have a unique address from 0 through 31. The default node address of a processor is 1 and a programmer is 0. Consequences of Changing a Processor Node Address Remember that the processor node address resides in the status data file (word S:15) of a program. This means that when you overwrite the contents of processor memory by using the download function or transfer memory function, the node address may change as follows: • Download – When you download a program and cycle processor power, the node address of the downloaded program takes effect, overwriting the previous node address. • Memory Transfer – When you transfer a program from a memory module to the processor and cycle processor power, the node address of the transferred file takes effect, overwriting the previous node address. Important: Immediately after you download a program for transfer a program from a memory module to the processor, press [F1], CHG_ADR and re–enter the current node address. Failure to do this can result in a duplicate or incorrect node address after you cycle power to the processor.
9–9
Page 174
Chapter 9 Configuring Online Communication
Entering a Maximum Node Address You may change the maximum node address for your HHT and any active processors on the DH–485 network. However, you cannot alter the value on another programming device. For the most efficient network operation, it is best to set the maximum node addresses of all devices on the DH–485 network to the lowest available value. The default maximum node address for all SLC 500 family processors and programming devices is 31. To minimize the network scan time, it is recommended to eliminate any unused node addresses of a higher number than the addresses used on the network. For example, if the highest node address used on your network is 5, then you should set the maximum node address of all devices on the network to 5. Consequently, the polling devices on the network no longer take the time to look for nodes 6 through 31. Important: If you later add a device to the network with a higher node address than the present maximum node address, you must change the maximum node addresses to include that address. Failure to do so causes the devices on the network to ignore the new device. When you cycle power to a Series A SLC 500 or SLC 5/01 processor, the maximum node address returns to the default selection of 31. Changing the Baud Rate The baud rate of a processor or programming device is the speed at which it communicates with other devices on the DH–485 network. The available baud rates are: • 19200 baud (default setting for all SLC 500 family devices) • 9600 baud • 2400 baud (not available on SLC 500 and SLC 5/01 processors) • 1200 baud (not available on SLC 500 and SLC 5/01 processors) You do not need to cycle power if you change your HHT baud rate. The baud rate changes as soon as you press [ENTER]. Important: The baud rate change to a processor does not take effect until power is cycled to the processor.
Set and Clear Ownership The set and clear ownership function allows a terminal to “own” one or more processor files on the network. Ownership means that as long as the owner is active on the network, other terminals cannot access the online functions of the owned processor files. Only a programming device can own a processor.
9–10
Page 175
Chapter 9 Configuring Online Communication
When the owner exits the network or goes offline, another terminal can clear the ownership of the inactive node and gain access to an owned processor file. In this example, the SLC 5/02 processor with node address 5 is owned by the APS terminal with address 0, which is no longer online. Clear node 0’s ownership of the processor and set the HHT, node 1, as owner of node 5. 1. Begin at the Who display. To indicate ownership by a programmer, the node address of the owner is included in parentheses with the maximum node address. Node Addr. 3 4 5 1 Node Addr:
3
DIAGNSTC F1
F2
Device Max Addr./Owner 500–20 (5) 5/01 (5) 5/02 (5/0) TERMINAL (5) Baud Rate: 19200 OFL ATTACH NODE_CFG OWNER F3
F4
Indicates that node 5 is owned by node 0.
F5
2. To claim ownership of node 5, press the [↓] key twice, then press [F5], OWNER. The display changes as follows: Node Addr. 5 1 3 4
Device 5/02 TERMINAL 500–20 5/01
Max Addr./Owner (5/0) (5) (5) (5)
Node Addr: SET_OWNR
5
Baud Rate:
19200
OFL CLR_OWNR
F1
F2
F3
F4
F5
3. Press [F1], SET_OWNR. Since the previous owner, node 0, is no longer active, the display changes as follows: Node Addr. 5 1 3 4
Device 5/02 TERMINAL 500–20 5/01
Max Addr./Owner (5/1) (5) (5) (5)
Node Addr: SET_OWNR
5
Baud Rate:
19200
OFL CLR_OWNR
F1
F2
F3
F4
F5
Indicates that node 5 is now owned by node 1.
4. To clear ownership, place the cursor on the desired node and press [F5], CLR_OWNR. In order to succeed, you must be the current owner or the current owner cannot be active on the network.
9–11
Page 176
Chapter 9 Configuring Online Communication
Recommendations When Using DH–485 Devices The following summarizes the recommendations for a DH–485 network. • Use node 0 (default) and the lowest node numbers for the programming device(s). • Number the processor nodes consecutively, beginning at the lowest possible number. • When establishing a multi–node network, keep in mind that the default node address for a processor is 1. This means that unless the address has been changed previously, all processor nodes on the network initially have node address 1, this makes it impossible to communicate with an individual processor. You must bring up the network one node at a time, assigning each node address before proceeding to the next. • Set the maximum node address as low as possible. The highest numbered node should have its maximum node address set to its own address. • Set the maximum node address the same for all nodes on the network. • Make certain that the baud rate settings of all nodes are the same. A terminal only communicates with processors set at the same baud rate. The baud rate change for a processor does not take effect until you cycle power to the processor. The default baud rate for a device on the network is 19200. • Make certain that the node address and baud rate are correct before making a processor memory change using the upload or download functions. These functions overwrite the existing node address and existing baud rate when you cycle processor power.
!
9–12
ATTENTION: If two processors on the DH–485 network are assigned the same node address, it is possible that the processor file in one of the processors will be lost and replaced with the default file.