The text of a manual · part 45 of 70
SLC 500 Instruction Set Reference Manual, pages 441 to 450
Pages 441 to 450 of 694
The original document is the PDF (7.2 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-L514
Page 441
SLC Passthru Communications
IMPORTANT
14-11
Only Ethernet devices that support Client Server Protocol (CSP), such as SLC 5/05 processors, PLC-5 processors, PLC-5 Ethernet sidecars (1785-ENET), and RSLinx software, can use SLC 5/05 passthru. Passthru does not work with Ethernet devices supporting only EtherNet/IP protocol.
Using RSLinx Classic, version 2.50 and higher, with SLC 5/05 Passthru RSLinx Classic, version 2.42 and below, only supports DF1 Full-duplex to Ethernet, DF1 Half-duplex Master to Ethernet, DH-485 to Ethernet, Ethernet to DF1 Full-duplex, and Ethernet to DH-485 passthru. RSLinx Classic, version 2.43 supports all modes of channel-to-channel passthru described below, except when channel 0 control line handshaking is enabled. RSLinx Classic, version 2.50 and higher supports all modes of channel-to-channel passthru as described below. When channel 0 is configured for DF1 Full-duplex and S:34/5=1, the SLC 5/05 passthru processor can be used by RSLinx to go online through channel 0 to the channel 1 Ethernet network. Each Ethernet device that RSLinx browses uses up an outgoing SLC 5/05 connection. See Table 12.3 to determine how many available outgoing connections the SLC 5/05 has available. The RSLinx RS-232 DF1 driver is used, with Device configured for either 1770-KF3/1747-KE, which allows browsing of Ethernet devices from a block of entries within the range of 1 to 31 in the Passthru Routing Table, or for 1770-KF2/1785-KE, which allows browsing of Ethernet devices from a block of entries within the range of 1 to 77 octal (1 to 63 decimal). The size of the block of entries must not exceed the number of available outgoing connections. The passthru processor will show up on the RSWho browse at node 0. You should configure the properties of the DF1 network within RSWho to browse the specific range of addresses that are being used in the passthru routing table. When channel 0 is configured for DF1 Half-duplex Master and S:34/5=1, the SLC 5/05 passthru processor can be used by RSLinx to go online through channel 0 to the channel 1 Ethernet network. The RSLinx DF1 Slave driver is used. The SLC 5/05 passthru processor channel 0 configuration must be set up in Standard Polling Mode, and the slave address of RSLinx must be included in the polling range. The DF1 Slave driver properties in RSWho must be modified to poll for a block of entries within the range of 129 to 254 (the valid 5/05 passthru range of addresses, which is 128 plus the Passthru Routing Table entry numbers of 1 to 126). The size of the block of entries must not
Publication 1747-RM001G-EN-P - November 2008
Page 442
14-12
SLC Passthru Communications exceed the number of available outgoing connections. The passthru processor will show up on the RSWho browse at node 128. When channel 0 is configured for DH-485 and S:34/0=0, the SLC 5/05 passthru processor can be used by RSLinx to go online through channel 0 to the channel 1 Ethernet network, as long as the PC running RSLinx is directly connected to the DH-485 network through a 1784-KTX(D), -PKTX(D), or – PCMK card. When RSWho is browsing the SLC 5/05 on DH-485 with S:34/0=0, then a ‘+’ sign will appear to the left of the SLC 5/05 icon. Clicking on the ‘+’ sign will expose an Ethernet network underneath the SLC 5/05 icon. The Ethernet network properties in RSWho must be modified to poll for a block of entries within the range of 129 to 254 (the valid 5/05 passthru range of addresses, which is 128 plus the Passthru Routing Table entry numbers of 1 to 126). The size of the block of entries must not exceed the number of available outgoing connections. Clicking on the ‘+’ sign to the left of the Ethernet network will result in RSWho browsing for those nodes on the Ethernet network. When channel 0 is configured for either DF1 Full-duplex, DF1 Half-Duplex Master, DF1 Radio Modem (with S:34/5=1) or DH-485 (with S:34/0=0), the SLC 5/05 passthru processor can be used by RSLinx to go online through channel 1 to the channel 0 DF1 or DH-485 network, as long as the PC running RSLinx is directly connected to the Ethernet network. The PC’s IP address must be present in the Passthru Routing Table for RSLinx Ethernet to channel 0 passthru to work. When RSWho is browsing the SLC 5/05 on Ethernet with the AB_ETH driver, and channel 0 is either configured for DH-485 with S:34/0=0 or for DF1 with S:34/5=1, then a ‘+’ sign will appear to the left of the SLC 5/05 icon. Clicking on the ‘+’ sign will expose a DH-485 or DF1 network underneath the SLC 5/05 icon. Clicking on the ‘+’ sign to the left of the DH-485 or DF1 network will result in RSWho browsing for nodes 0 to 31 on the DH-485 network or for node 1 on the DF1 network. Refer to the steps on page 14-13 for browsing multiple nodes when channel 0 is configured for DF1 Half-duplex Master or DF1 Radio Modem.
Publication 1747-RM001G-EN-P - November 2008
Page 443
SLC Passthru Communications
14-13
SLC 5/05 Passthru Error Codes A SLC 5/05 passthru processor may respond to a MSG instruction or RSLinx with an error code of 20H under the following conditions. • The routing table integer file number is out of range (9 to 255). • The routing table file does not exist in the user program directory or is less than 2 word elements in length. • The IP address entry in the routing table does not exist. • Lack of available connections.
Optimizing RSLinx Channel 1 to DF1 Half-duplex Master/DF1 Radio Modem Passthru Use the following procedure to get RSWho to browse from channel 1 through the SLC 5/03, 5/04, and 5/05 processors when either the DF1 Half-duplex Master or DF1 Radio Modem channel 0 driver is configured. 1. If using a SLC 5/05 as the passthru processor, be sure to configure the IP address of the PC running RSLinx/RSWho into the SLC 5/05 Passthru Routing Table. 2. Make sure that the DF1 passthru enable bit (S:34/5) is set in the passthru processor. 3. Configure the appropriate RSLinx driver to communicate via DH-485 with an SLC 5/03 passthru processor, via DH+ with an SLC 5/04 passthru processor or via Ethernet with an SLC 5/05 passthru processor. TIP
RSLinx must be directly connected on the same network (DH-485, DH+, or Ethernet) as the passthru processor for passthru to work.
Publication 1747-RM001G-EN-P - November 2008
Page 444
14-14
SLC Passthru Communications
4. When you run RSWho on that passthru processor network, the SLC 5/03, 5/04, or 5/05 passthru processor should appear with a ‘+’ sign to the left of its icon as shown below: Figure 14.1 SLC 5/04 Passthru Processor on RSWho
5. Click on the ‘+’ sign and verify that a Channel 0, DF1 network appears below the SLC 5/04 (or SLC 5/03 or 5/05), as shown below: Figure 14.2 Channel 0, DF1 Network
Before browsing this Channel 0 DF1 network, you should configure RSWho to only browse the range of remote node addresses that you expect to find. You should also limit RSWho to browse only one node at a time. To accomplish this, right click on the Shortcut DF1 network and select properties.
Publication 1747-RM001G-EN-P - November 2008
Page 445
SLC Passthru Communications
14-15
6. Check Browse only the specified addresses: and specify the low and high addresses of the range to be browsed: Figure 14.3 Configuring RSWho Browse Addresses
7. Click on the Advanced Browse Settings tab, check the Use custom browse settings box and enter 1 for the Maximum concurrent packets to this network: Figure 14.4 Advanced RSWho Browse Settings
Publication 1747-RM001G-EN-P - November 2008
Page 446
14-16
SLC Passthru Communications
If channel 0 is configured for DF1 Half-duplex Master, then the RSWho Poll Timeout should be set to: Channel 0 ACK Timeout * [1+ (2 * channel 0 message retries)]
If channel 0 of an SLC 5/05 is configured for DF1 Radio Modem, then the RSWho Poll Timeout should be set the same as the Ethernet channel 1 MSG Reply Timeout. The RSWho Poll Timeout for known stations should be set to the time it takes to poll the entire range of addresses. Click OK and close RSWho (but you can leave RSLinx running). Start RSWho again and now you should be able to browse through the passthru processor to any remote nodes in the configured address range that are able to respond on the half-duplex or radio modem network. TIP
Your passthru processor will show up as remote node 0 when using RSWho, as shown below. Therefore, it is a good idea to configure the channel 0 node address of the passthru processor as zero.
Figure 14.5 Passthru Processor in RSWho
Publication 1747-RM001G-EN-P - November 2008
Page 447
Chapter
15
Messaging Examples
The purpose of this chapter is to illustrate some of the more common but elaborate messaging examples using the SLC 500 processors. Not all examples will appear with a full detailed step by step procedure necessary. Step by Step procedures are available for all of the examples in KnowledgeBase Documents at the following website: http://support.rockwellautomation.com/knowledgebase Search for the associated Knowledge Base Document Number referenced after the associated example. It may be necessary to register and obtain a username and password if accessing the website for the first time or if your web browser does not have cookies enabled. IMPORTANT
Local versus Remote type Message
Refer to the SLC 500 Modular Hardware Style User Manual, publication 1747-UM011, for the setup of DH-485, DH+, and Ethernet networks, as well as DF1 communication.
Local Message A Local MSG is used to transmit data from one processor to another on the same network. If two processors are connected together a Local type message is used to transfer information from one to the other.
Remote Message A Remote MSG is used to exchange information to a device that is not connected on the local network. A device (another processor or an actual bridging device) on the local network will act as a bridge or gateway to the destination network.
1
Publication 1747-RM001G-EN-P - November 2008
Page 448
15-2
Messaging Examples
IMPORTANT
Remote Terminology
In a multi-network environment, each network must have a unique Link ID (Pass Thru Link ID) for help in obtaining acceptable results.
Remote Bridge Address Remote Bridge Address is the remote node address of the bridge device used to connect two networks together.
TIP
SLC Fixed Processors, SLC 5/01 and SLC 5/02 are all non-remote MSG capable processors. When issuing a remote message and the target device is non-remote capable, a remote bridge address is needed.
Remote Station Address Remote Station Address is the final destination address of a remote MSG instruction.
Remote Bridge Link ID Remote Bridge Link ID is a user assigned address that differentiates same type networks from each other when multiple networks are connected together. Passthru Link ID’s are required when initiating a Remote MSG. All processors on a particular network need to have all the Passthru Link ID’s set to the same address. Valid Link ID addresses are from 1 to 65,534. Note: SLC processors can only initiate to remote networks with Link IDs in the range of 1 to 254.
TIP
Publication 1747-RM001G-EN-P - November 2008
Make sure that all processors on the same network share the same Link ID.
Page 449
Messaging Examples
TIP
15-3
Link ID’s are modified in each processors Channel Configuration properties.
The default Passthru Link ID for the SLC 5/03, 5/04 and 5/05 processors channel 0 port is 1. The default Passthru Link ID for the SLC 5/03, 5/04 and 5/05 processors channel 1 port is 2. Refer to Chapter 14 for more information regarding passthru.
SLC 5/03 Passthru Examples
Passthru Example: DF1 to DH-485 The following illustrates a SLC 5/03 processor as a passthru processor. The SLC 5/03 processor will forward messages received on the DF1 network (channel 0) to the DH-485 network (channel 1). For this example, the SLC 5/03’s configuration bits are set to the following values. • DF1 Pass-Thru Enable bit (S2:34/5) is set • DH-485 Pass-Thru Disable bit (S2:34/0) is set • DF1 Remote/Local Pass-Thru (S2:34/6) is clear
The DF1 Pass-Thru Enable Bit (S2:34/5) enables messages to be passed to and from the channel 0 DF1 network from and to the channel 1 DH-485 network. This bit must be set to enable DH-485-to-DF1 passthru.
Publication 1747-RM001G-EN-P - November 2008
Page 450
15-4
Messaging Examples
The DF1 Remote/Local Pass-Thru bit (S2:34/6) is cleared in order to send messages to the channel 1 DH-485 network as remote DH-485 packets. This is the default setting for this bit. The DF1 Remote/Local Pass-Thru bit (S2:34/6) is needed when non-remote capable devices exist on the channel 1 DH-485 network, such as SLC 500 Fixed, SLC 5/01, SLC 5/02, ControlLogix, FlexLogix, and CompactLogix controllers. The DF1 Remote/Local Pass-Thru bit (S2:34/6) should be set for passthru messaging to these controllers.
RSLogix500 V 6.10.10 and earlier do not reference S2:34/6 in structured display formats. In order to alter this bit, change the RADIX from structured to binary.
TIP
Publication 1747-RM001G-EN-P - November 2008
No programming logic is necessary in the passthru processor.