The text of a manual · part 22 of 45
Enhanced and Ethernet PLC-5 Programmable Controllers User Manual: Chapter 11 - Communicating with Devices on an Ethernet Network, pages 175 to 184
Pages 175 to 184 of 388, from Enhanced and Ethernet PLC-5 Programmable Controllers User Manual
The original document is the PDF (5.1 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 1785-L20B and Allen-Bradley 1785-L40B
Page 175
Chapter
11
Communicating with Devices on an Ethernet Network
Using This Chapter
Media and Cabling
For Information About
Go to Page
Media and cabling
11-1
Assigning your IP address
11-2
Network addressing
11-2
Configuring channel 2 for Ethernet communication
11-2
Using advanced Ethernet functions
11-9
Using domain name service
11-15
Using the embedded web server
11-16
Using multihop messaging
11-29
Communicating with ControlLogix devices
11-32
Interpreting error codes
11-33
Interpreting Ethernet status data
11-34
Ethernet PLC-5 performance considerations
11-37
Ethernet is a local area network that provides communication between various devices at 10 Mbps. The physical communication media you use can be any standard 802.3 media, including: • thick-wire coaxial cable (10Base5) • thin-wire coaxial cable (10Base2) • twisted pair (10Base-T) • fiber optic • broadband The Ethernet port (channel 2) connects to either a thin-wire, thick-wire, or twisted-pair network via a 15-pin transceiver or Medium Access Unit (MAU) connection. See Appendix G for detailed information about Ethernet cable connections.
1
Publication 1785-UM012D-EN-P - July 2005
Page 176
11-2
Communicating with Devices on an Ethernet Network
Assigning Your IP Address
Contact your network administrator or the Network Information Center for a unique IP address to assign to your PLC-5/20E, -5/40E, or 5/80E controller.
Network Addressing
Because the Ethernet PLC-5 controller uses the TCP/IP protocol, each controller on the network requires a unique IP address. The IP address is software-configurable using either the BOOTP protocol or your programming software. If you are using the BOOTP protocol, you must also obtain the hardware Ethernet address. Rockwell Automation assigns each Ethernet PLC-5 controller a hardware Ethernet address at the factory. Look for the address either: • in the back, upper corner of your module; or • in the channel 2 configuration screen of your programming software
Configuring Channel 2 for Ethernet Communication
After you assign a unique IP address to your Ethernet PLC-5 controller, you must configure channel 2 so your network recognizes the controller. Configure this channel using one of two methods: • manually entering module configuration information using the screens within your programming software package • entering module configuration information using a BOOTP utility (use a BOOTP server on your network to edit the BOOTPTAB file)
Manually Configuring Channel 2 The default for the Ethernet PLC-5 controller is BOOTP enabled. You must first disable BOOTP before you can use the programming software to enter module configuration information.
Publication 1785-UM012D-EN-P - July 2005
Page 177
Communicating with Devices on an Ethernet Network
11-3
You can manually configure channel 2 for Ethernet communication using your programming software over a DH+ or serial link
Enter the IP address and toggle the BOOTP enable field to No. Enter further configuration information in the appropriate fields. See the following table on the next page. IMPORTANT
BOOTP enabled is the factory default. You cannot manually change the IP address with your programming software if BOOTP is enabled
Publication 1785-UM012D-EN-P - July 2005
Page 178
11-4
Communicating with Devices on an Ethernet Network
Ethernet Channel 2 Configuration Fields This Field
Specifies
Configure by Doing the Following
Diagnostic file
The file containing the channel’s status information.
Enter an integer file number (10-999). The system creates an integer file 44 words long. ATTENTION: Assign a unique diagnostic file to each channel. Do not assign a diagnostic file that is the I/O status file you assigned or any other used file. Unpredictable machine action can result. Important: You must define a diagnostics file for a channel configured for anything but unused (even if you are not using the channel) if you want status information for that channel.
Ethernet Address
The controller’s Ethernet hardware address.
Assigned by Rockwell Automation and cannot be changed. Displayed as a set of 6 bytes (in hex), separated by colons.
Display only BOOTP Enable
Whether BOOTP is enabled.
Select NO. Before you specify No, make sure you have an IP address specified. With BOOTP set to No, the controller uses the parameters that you specify locally. To enable BOOTP, see page 11-5.
IP Address
The controller’s Internet address.
Disable BOOTP first. You cannot manually change the IP address with programming software if BOOTP is enabled. Enter an address in this form: a.b.c.dWhere: a, b, c, d are between 1-254 (decimal) You must specify the IP address to have the controller connect to the TCP/IP network. Do not use 0 or 255 as a, b, c, or d in the IP address.
Message Connect Timeout
The number of milliseconds allowed Enter a timeout period in milliseconds. (The controller rounds to the for an MSG instruction to establish a nearest 250 ms.) The valid range for a timeout period is 0-65,535 ms. connection with the destination node. The default is 15,000 ms.
Message Reply Timeout
The number of milliseconds the Enter a timeout period in milliseconds. (The controller rounds to the Ethernet interface waits for a reply to nearest 250 ms.) The valid range for a timeout period is 0-65,535 ms. a command it initiated (through an MSG instruction). The default is 3,000 ms.
Inactivity Timeout
The number of minutes of inactivity before the connection is closed.
Enter a timeout period in minutes. The valid range for a timeout period is 0-65,535 minutes. The default is 30 minutes.
Publication 1785-UM012D-EN-P - July 2005
Page 179
Communicating with Devices on an Ethernet Network
This Field
Specifies
Configure by Doing the Following
The broadcast address to which the controller should respond.
See page 11-9 for information about advanced network functions, including the use of broadcast addressing.
11-5
Advanced Functions Broadcast Address
This function does not allow for sending one message simultaneously to multiple PLC-5E controllers. Subnet Mask
The controller’s subnet mask.
See page 11-11 for information about subnetworks and gateways.
The subnet mask is used to interpret IP addresses when the network is divided into subnets. Gateway Address
The IP address of the gateway that provides a connection to another IP network.
See page 11-11 for information about subnetworks and gateways.
This field is required when you communicate with other devices not on a local subnet. Link ID
A DH+ link number
Enter a link ID number. The valid range is 0-199.
Use the link ID number to identify the network when configuring a ControlLogix system using the Gateway software.
Using BOOTP to Enter Configuration Information You can also use BOOTP to obtain subnet masks and gateway addresses. See page 11-12.
BOOTP is a protocol that will supply the controller with configuration information at power-up. BOOTP lets you dynamically assign IP addresses to controllers on the Ethernet link. To use BOOTP, a BOOTP server must exist on the local Ethernet subnet. The server is a computer (either a personal computer, VAX, or UNIX system) that has BOOTP-server software installed and reads a text file containing network information for individual nodes on the network.
Publication 1785-UM012D-EN-P - July 2005
Page 180
11-6
Communicating with Devices on an Ethernet Network
To enable BOOTP, use the Ethernet channel 2 configuration screen in your programming software. Specify YES for BOOTP Enable.
IMPORTANT
If you change this field from NO to YES, the change does not take effect until you cycle power.
Specify further configuration information using this screen. When BOOTP is enabled, the following events occur at power-up: • The controller broadcasts a BOOTP-request message containing its hardware address over the local network or subnet. • The BOOTP server compares the hardware address with the addresses in its look-up table in the BOOTPTAB file. • The BOOTP server sends a message back to the controller with the IP address and other network information that corresponds to the hardware address it received. With all hardware and IP addresses in one location, you can easily change IP addresses in the BOOTP configuration file if your network needs change. If you have BOOTP enabled and the message BOOTP response not received appears, check the cabling connections and the BOOTP server system.
Publication 1785-UM012D-EN-P - July 2005
Page 181
Communicating with Devices on an Ethernet Network
IMPORTANT
11-7
If BOOTP is disabled, or no BOOTP server exists on the network, you must use PLC-5 programming software to enter/change the IP address for each controller.
Editing the BOOTPTAB Configuration File IMPORTANT
Be sure you know the Ethernet hardware address of the module. You will enter it in this file.
You must edit the BOOTPTAB file, which is an ASCII text file, to include the name, IP address, and hardware address for each Ethernet PLC-5 controller you want the server to boot. To edit this file: 1. Open the BOOTPTAB file using a text editor. • The file contains lines that look like this: #Default string for each type of Ethernet client defaults5E: ht=1:vm=rfc1048 These are the default parameters for Ethernet PLC-5 controllers and must always precede the client lines in the BOOTPTAB file. • The file also contains a line that looks like this: plc5name: tc=defaults5E:ip=aa.bb.cc.dd:ha=0000BC1Cxxyy
IMPORTANT
Use this line as the configuration template for Ethernet PLC-5 controllers.
1. Make one copy of the Ethernet PLC-5 controller template for every Ethernet PLC-5 controller in your system. 2. Edit each copy of the template as follows: A. Replace plc5name with the name of the Ethernet PLC-5 controller. Use only letters and numbers; do not use underscores. B. Replace aa.bb.cc.dd with the IP address to be assigned to the controller.
Publication 1785-UM012D-EN-P - July 2005
Page 182
11-8
Communicating with Devices on an Ethernet Network
C. Replace xxyy with the last four digits of the hardware address. Use only valid hexadecimal digits (0-9, A-F); do not use the hyphens that separate the numbers. (You will find the hardware address on a label affixed to the printed circuit board of the Ethernet PLC-5 controller.) 3. Save, close, and make a backup copy of this file. EXAMPLE
In this example there are three Ethernet PLC-5 controllers and an HP 9000 personal computer. The names and hardware addresses are device specific: DeviceNameIP AddressHardware Address Ethernet PLC-5sigma112.34.56.100:00:BC:1C:12:34 Ethernet PLC-5sigma212.34.56.200:00:BC:1C:56:78 Ethernet PLC-5sigma312.34.56.300:00:BC:1C:90:12
802.3/Ethernet (TCP/IP) BOOTP server
HP 9000 (HP-UNIX) computer)
PLC-5/20E processor sigma1
PLC-5/20E processor sigma2
PLC-5/40E or -5/80E processor sigma3
Based on this configuration, the BOOTPTAB file looks like:
# #
Legend:
gw -- gateways ha -- hardware address
# # # ht -- hardware type(1) ip -- host IP address sm -- subnet mask
# # vm -- BOOTP vendor extensions format(2) tc -- template host
#Default string for each type of Ethernet client defaults5E: ht=1:vm=rfc1048 #Entries for Ethernet PLC-5 controllers: device1: tc=defaults5E:ip=12.34.56.1:ha=0000BC1C1234 device2: tc=defaults5E:ip=12.34.56.2:ha=0000BC1C5678 device4: tc=defaults5E:ip=12.34.56.3:ha=0000BC1C9012 (1) (2)
1 = 10MB Ethernet use rfc1048
Run your BOOTP utility to send the configuration information to the Ethernet interface module.
Publication 1785-UM012D-EN-P - July 2005
Page 183
Communicating with Devices on an Ethernet Network
Using Advanced Ethernet Functions
11-9
Configure the following advanced communication characteristics using the Ethernet channel 2 configuration screen: • broadcast address • subnet mask • gateway address If You are Using
See Page
Broadcast addressing
11-9
Subnet masks and gateways
11-11
IMPORTANT
If BOOTP is enabled, you can’t change any of the advanced Ethernet communications characteristics.
Using Broadcast Addressing The broadcast address is part of the IP protocol used by a host to send messages to every IP address on the link. This field in the channel 2 configuration screen identifies the address on which the module will receive broadcast messages sent by a host.
IMPORTANT
The broadcast address is used only for the reception of messages. When used in the context of Ethernet addressing, the broadcast function does not refer to ladder-logic messaging. This function does not allow for sending one message to multiple PLC-5E controllers at the same time.
Publication 1785-UM012D-EN-P - July 2005
Page 184
11-10
Communicating with Devices on an Ethernet Network
In most cases, you can leave the broadcast address at the default setting.
Configure this Field
By Doing the Following
Broadcast Address
Cursor to the field, and enter an address of the following form: a.b.c.dWhere: a, b, c, d are between 0-255 (decimal) If you change the default and need to reset it, type 0.0.0.0.
Publication 1785-UM012D-EN-P - July 2005