SIMATIC TIWAY 1 Peerlink User Manual Order Number: PPX:TIWAY–8127–2 Manual Assembly Number: 2587871–0062 Second Edition
Copyright 1994 by Siemens Industrial Automation, Inc. All Rights Reserved — Printed in USA Reproduction, transmission or use of this document or contents is not permitted without express consent of Siemens Industrial Automation, Inc. All rights, including rights created by patent grant or registration of a utility model or design, are reserved. Since Siemens Industrial Automation, Inc.
MANUAL PUBLICATION HISTORY SIMATIC TIWAY I Peerlink User’s Manual Order Manual Number: 2587871–0062 Refer to this history in all correspondence and/or discussion about this manual.
LIST OF EFFECTIVE PAGES Pages Cover/Copyright History/Effective Pages iii — vii 1-1 — 1-6 2-1 — 2-11 3-1 — 3-21 4-1 — 4-8 5-1 — 5-9 6-1 — 6-2 A-1 — A-3 B-1 — B-7 C-1 — C-13 D-1 — D-8 E-1 — E-4 Index-1 — Index-3 Registration Description Second Second Second Second Second Second Second Second Second Second Second Second Second Second Second Second Pages Description
Contents Chapter 1 Overview of the Module 1.1 General Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 1.2 PPX:500-5053—Single Communication Channel . . . . . . . . . . . . . . . . . . 1-5 1.3 PPX:500-5054 & PPX:505-7354—Dual Communication Channels . . . 1-6 Chapter 2 Network Operation 2.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2 2.2 Data Transmission . . . . .
Chapter 4 Normal I/O 4.1 Beginning Network Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1.1 Output Word WY4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1.2 Output Word WY5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3 4-3 4-3 4.2 Network Status Words . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2.1 Input Word 1 (WX1) . . . . . . . . . . . . . . . .
B.2.6 Setting the Output Words . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B.2.7 Checking Network Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-5 B-6 Appendix C Programming Examples with Dual or Single Communication Channels C.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-2 C.2 Example #1: Dual Communication Channels . . . . . . . . . . . . . . . . . . . . . C.2.
List of Figures 1-1 1-2 1-3 Peerlink Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Diagram of PPX:500-5053 or PPX:505-7354 Network . . . . . . . . . . . . . . . . . . . Dual Channel Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3 1-5 1-6 2-1 2-2 2-3 2-4 TIWAY Peerlink Multidrop Bus Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3 Single Media Network Scan Time .
List of Tables 3-1 3-2 3-3 3-4 P/C Models with Peerlink Part Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2 Dipswitch Settings for Number of Words to be Sent . . . . . . . . . . . . . . . . . . . . . 3-6 Dipswitch Settings for Network Address Selection . . . . . . . . . . . . . . . . . . . . . . 3-6 Pin Assignments for Network Cable Connector . . . . . . . . . . . . . . . . . . . . . . . . . 3-12 5-1 Peerlink Troubleshooting Chart . . . . . . . . . . . . . . . . . . . . . . . .
Chapter 1 Overview of the Module 1.1 General Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 1.2 PPX:500-5053—Single Communication Channel . . . . . . . . . . . . . . . . . . . . . 1-5 1.3 PPX:500-5054 & PPX:505-7354—Dual Communication Channels . . . . . .
1.1 General Description The Peerlink module is a member of the family of intelligent input/output (I/O) modules. It is also in a special category of intelligent modules which are part of the SIMATIC TIWAY network family. You may wish to refer to the TIWAY I Systems Manual (Manual No. TIWAY-8101) for more information on TIWAY networking products. Peerlink modules are an integral part of the Peerlink network, which is a local area network designed to achieve peer-to-peer communication.
TIWAY I Network Port Channel B Status Indicators Access Hatch Release Tab Not shown: TIWAY I Network Port Channel A PPX:500–5053 Not shown: TIWAY I Network Port Channel A PPX:500–5054 PPX:505–7354 Figure 1-1 Peerlink Modules Overview 1Ć3
General Description (continued) The term “station” refers to a P/C with a Peerlink module that is assigned a specific network address. Each station on a Peerlink network is capable of transmitting up to 16 words of data (16-bit words) to every other station on the network. This means that each station can receive up to 240 words of data if a system with a maximum load of 16 stations (each transmitting 16 words) is used.
1.2 PPX:500-5053—Single Communication Channel Peerlink PPX:500-5053, which uses one communication channel, provides an active monitor and a backup, or “passive monitor”, selected by the active monitor. This model might be preferred in applications where media loss is not a problem but where continuous operation in necessary in the event that the active monitor fails. Figure 1-2 illustrates a typical single-channel Peerlink network with both active and passive monitors assigned.
1.3 PPX:500-5054 & PPX:505-7354–Dual Communication Channels Peerlink models PPX:500-5054 and PPX:505-7354 can operate like the PPX:500-5053, but also offer a dual communication channel option. By setting a switch on the module, you may use a single communication channel with both active and passive monitors.
Chapter 2 Network Operation 2.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2 2.2 Data Transmission . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4 2.2.1 2.2.2 2.2.3 Peerlink to Peerlink Data Transmission . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Peerlink to P/C Data Transmission . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.1 Overview TIWAY Peerlink modules can be used to create peer-to-peer applications requiring rapid communications between P/Cs. Peerlink modules can also act as a complement to the TIWAY I network by off-loading high speed message transfers between P/Cs from TIWAY I. This enables TIWAY I to better perform its functions of overall data acquisition and supervisory control. Peerlink modules use a bit-oriented protocol similar to High-Level Data Link Control (HDLC) for network control.
For each Peerlink station on the network, there must be 16 words of V Memory allocated in each P/C. For example, if you have two Peerlink stations, each P/C must have 32 words of contiguous V Memory space reserved. If you have 16 Peerlink stations, each P/C must have 256 words reserved. You specify the location of this V Memory space by using normal I/O output words 4 and 5 which specify the starting address of the Peerlink data table.
2.2 Data Transmission 2.2.1 Peerlink to Peerlink Data Transmission The Peerlink network uses the TIWAY I Local Line, which is a physical signaling technique (baseband, differential current drive). All Peerlink modules transmit data on the Peerlink network at 115.2K bits per second. The Peerlink network update time or network scan is defined as the time it takes every Peerlink module on the network to update every other Peerlink module on the network with its data.
Number of Words per Station Scan Time (ms) 90 80 16 14 12 10 8 6 4 12 70 60 50 40 30 20 10 0 2 3 4 5 6 7 8 9 10 11 Number of Stations 12 13 14 15 16 Figure 2-2 Single Media Network Scan Time Number of Words per Station Scan Time (ms) 90 16 14 12 10 8 6 4 12 80 70 60 50 40 30 20 10 0 2 3 4 5 6 7 8 9 10 11 Number of Stations 12 13 14 15 16 Figure 2-3 Redundant Media Network Scan Time Network Operation 2-5
Data Transmission (continued) 2.2.2 Peerlink to P/C Data Transmission 2.2.3 P/C to P/C Data Transmission 2-6 Peerlink modules use a high speed block transfer method to transfer data from the module to the P/C. This method was chosen to achieve the performance requirements of a peer-to-peer network. There are several installation and performance requirements to be considered because of this. They follow: S The module can be located in any base in a TI560 Class P/C.
Typically, a transfer from the V Memory table in one P/C to the V Memory table in another P/C would take: 1 P/C scan of P/C transmitting data Worst case could be: + 1 network scan + 1 P/C scan of P/C receiving data 1 network 1 P/C scan of 2 P/C scans of + + scan P/C transmitting P/C receiving data data It is also possible for a slower P/C to “miss” an update cycle from a P/C which has a faster scan time.
2.3 Set-up Considerations S Generally, any station on a Peerlink network can be designated as the active monitor. S You should always assign network addresses consecutively, beginning with network address 1. Since you must allocate 16 words of V Memory for each station on a Peerlink network, the higher the number of the last network address, the more memory space you will need to reserve in each P/C’s V Memory.
S With Peerlink operating in single channel mode, the manner in which the passive monitor is assigned may be used to protect your operation if a cable breaks. If network addresses (N.A.) are assigned so that the active monitor is at one end of the physical network, and the passive monitor is at the other end, then in the event of a cable break on the trunk, both halves of the network can continue operating as shown below: N.A. #1 N.A. #3 N.A. #4 Cable Break N.A. #5 Active Monitor N.A.
2.4 Using the Network Data Once the network is connected, and the dipswitches set, the V Memory table in the P/C at which you wish the network data to appear must be specified. It should be a sequential block of V Memory which is not used for anything else. The number of words allocated should equal 16 times the highest addressed station number on the network. The only thing that Peerlink requires is that you specify the starting address of this table through normal I/O.
P/C Station #2 (Network Address 2) P/C Station #1 (Network Address 1) vaaa Network Address #1 vbbb Network Address #1 P/C Station #3 (Network Address 3) vccc Network Address #1 P/C Station #4 (Network Address 4) vddd Network Address #1 P/C Station #5 (Network Address 5) veee Network Address #1 vaaa Network + Address offset #2 vbbb Network + Address offset #2 vccc Network + Address offset #2 vddd Network + Address offset #2 veee Network + Address offset #2 Network Address #3 Network Address
Chapter 3 Installing and Initializing the Peerlink Module 3.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2 3.2 Setting the Dipswitches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4 3.3 Inserting the Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-8 3.4 Powering Up the Module . . . . . . . . . . . . . . . . . . . . . . .
3.1 Overview This section describes how to mount the Peerlink module in the Series 500 and Series 505 I/O base, connect the communication cables to the Peerlink module, and initialize the system for operation. The Programmable Controller (P/C) and the programming device (such as a VPU200) are assumed to be in place before you install a Peerlink module. Table 3-1 lists the software release levels required for using the Peerlink modules with the P/Cs listed.
Installation Steps Summary The following steps are required to install the Peerlink module for models PPX:500–5053, PPX:500–5054, and PPX:505–7354. 1. Disconnect power to the P/C system (I/O base, power supply, etc.). 2. Set the configuration dipswitches on the Peerlink module. 3. Insert the module into the base and secure it. 4. Power up the P/C system. 5. Connect the network cables. 6. Log the module into the P/C I/O map. 7.
3.2 Setting the Dipswitches As Figure 3-1 and Figure 3-2 illustrates, there are two blocks of dipswitches on the Peerlink module. However, only the 10–switch block is used for configuring the module. WARNING 3-4 All Peerlink modules on the same network should be configured for the same media mode (single or redundant channels). Mixing modes may result in erratic network behavior, causing potential for personal injury or property damage. 1. Switch 10.
10 9 8 7 6 5 4 3 2 1 MODULE GOOD P/C COMM GOOD ONLINE RECEIVE TRANSMIT TEST MODE 1 Redundant (1)/Single (0) Communication Channel(s) Active Monitor (1)/ Non–Monitor (0) Number of Words to Transmit = 10 (See Table 3-2) Network Address = 2 (See Table 3-3) 0 0= Slide right 1= Peerlink Configuration Dipswitches (See Chart at Right) Slide left Not Used (Set to Zero) 1–0 Figure 3-1 Series 500 Peerlink Module (with Access Cover Removed) Installing and Initializing the Module 3-5
Setting the Dipswitches (continued) Table 3-2 Dipswitch Settings for Number of Words to be Sent No.
Network Configuration Parameters 0= Press left 1= Press right Figure 3-2 Series 505 Peerlink Module Dipswitches Installing and Initializing the Module 3-7
3.3 Inserting the Module NOTE: The Peerlink module may be placed in any I/O base of the 560 Class P/Cs. In all other Series 500 and Series 505 P/Cs, the Peerlink module must be placed only in the local I/O base (bases 0 or 1). Before inserting the Series 500 module, you should decide whether you want to protect it by “keying” the module’s position in the I/O base.
Once the keys are in place (if you wish to key the module), you should orient the module so that the indicators are on the top half of the module and carefully push the module into the I/O base as shown in Figure 3-4. When the module is fully seated in the I/O base, tabs will hold the module in place. To take the module out, pull the tabs away from the module and take it out of the I/O base, being careful not to damage the edge card.
Inserting the Module (continued) For the Series 505 Peerlink module, insert it into the I/O base as shown in Figure 3-5. Then secure it with the bezel screws. 3cm x kg f (2.6in x lb) max torque Figure 3-5 Mounting the Peerlink Module (Series 505) WARNING 3-10 Do not insert or remove Peerlink modules while power is applied to the P/C, since doing this may alter the P/C memory or cause a P/C fatal error resulting in possible personal injury or property damage.
3.4 Powering-up the Module When the Peerlink module has been inserted into the I/O base, apply power to the Peerlink module by powering–up the P/C. WARNING Do not insert or remove Peerlink modules while power is applied to the P/C. Doing so can cause the P/C to alter memory, or may cause erratic network behavior, causing potential for personal injury or property damage.
3.5 Network Cable Installation 3.5.1 Overview After you have set the dipswitches on the Peerlink modules and inserted the modules into the I/O base, you need to connect the network cables to each Peerlink module on the network. This section discusses some general considerations for planning and installing a network cable system. The network cable is designed to operate with shielded twisted-pair cable which has a characteristic impedance of 124 ohms.
Tap Housing: The tap housing, shown in Figure 3-6, is made by Siemens Industrial Automation, Inc. specifically for the TIWAY I network. The tap housing can be mounted rigidly to a NEMA panel or other enclosure. It can also be used to splice cables in a cable tray without being rigidly mounted. The tap housing not only provides an orderly connection to the TIWAY I network, but also contains terminating resistors, resists moisture, relieves strain, and provides noise isolation for attached cabling.
Network Cable Installation (continued) Twisted Pair Cabling: Siemens recommends Belden 9860 twisted pair cabling or its equivalent for use as the Peerlink network spine. For distances less than 3000 feet, Belden 9271 or its equivalent is acceptable for the trunk line. Belden 9271 or the equivalent should be used for the dropline. Brands other than those listed here will be specified by Siemens upon request. 3.5.
In general, network cabling should never come into direct contact with any electrical conductor, and if cabling is installed inside a conduit, the conduit should be grounded in accordance with applicable electrical codes. A minimum of three feet of distance should be kept between all network cabling and the following. D Power lines D Generators D Electric motors D Electric welders D Transformers D Induction furnaces and heaters D Rectifiers D All sources of microwave radiation 3.5.
Network Cable Installation (continued) Example One: 100‘ 100‘ Not Less Than 50‘ 100‘ Example Two: 100‘ Each Not Less Than 50‘ 25‘ 60‘ This is considered as a double drop from the closest tap. The next nearest tap must then be greater than 50i away. 25‘ 100‘ Not Less Than 30‘ 25‘ Min 50‘ Example Three: Overall Dropline length can be up to 100 feet.
3.5.5 Cable Routing Cable routing should be planned as if the path between all stations on the network were free of obstructions. The next step is to modify the first routing to account for obstructions, then calculate the amount of cable needed. CAUTION Observe all local and national electrical and fire codes when installing wiring. In general, there are three routes network cabling may take.
Network Cable Installation (continued) In-ceiling Routing: For in-ceiling routing, network cables are usually supported in troughs or hooks and clamps every 10 or 15 feet. Some advantages of in-ceiling installation are that: D It provides flexibility. D Installation can be made at low cost. D It ensures accessibility to cabling. Some disadvantages are D It is impractical for buildings without drop ceilings. D Working in high ceilings can be hazardous.
3.6 Connecting the Network Cable Figure 3-8 illustrates the Peerlink module and the location of the network ports. To connect the network cable, first remove the plastic dust cover(s) on the TIWAY Peerlink network port connectors. Next, carefully insert the cable connector into the port. Be sure to secure the cable by tightening the screws on either side of the connector. Figure 3-8 provides a pin diagram for the Peerlink interface on the module. Ch. B Ch. A Ch. B Ch. A Ch.
3.7 Checking That the Module is Logged In 3.7.1 Updating the I/O Configuration Definition After inserting the module into the base, update the I/O configuration in the controller. If any module is statically logged in on a TI530 Class P/C, the Peerlink module will not automatically be logged in. A VPU or other programming device must be connected to the controller to register and verify controller module communication. 3.7.
3.7.3 Viewing the I/O Configuration Chart Use SHOW to view the I/O Configuration Chart. If the Peerlink module is installed in slot 1, for channel 1, base 00, the I/O chart will appear as displayed in Figure 3-10.
Chapter 4 Normal I/O 4.1 4.2 Beginning Network Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3 4.1.1 4.1.2 Output Word WY4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Output Word WY5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3 4-3 Network Status Words . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Once you have plugged in the Peerlink module and connected the cables, you will need to use a SIMATIC VPU200 or other programming device to allocate V Memory and to set up any necessary network diagnostics. WARNING Be sure there is enough V Memory space allocated for the Peerlink data table in each P/C. Otherwise, Peerlink data in V Memory will write over existing data. Peerlink logs into normal I/O as three input words (WXs) and five output words (WYs).
4.1 Beginning Network Operation The two output words which are used in Peerlink modules are described here first because after the output words are set, the network will begin transmitting data. You can then use the input words (WX1, WX2, and WX3) to check network operating status. 4.1.1 Output Word WY4 4.1.2 Output Word WY5 This 16-bit word is for use with the 560 Class P/Cs only. There is no WY4 in the 525 and 535 P/Cs. In all other P/Cs it must be set to zero.
4.2 Network Status Words To check the operation of all the Peerlink modules on the network, you should use input words WX1, WX2, and WX3 (network status words) as described in the following sections and in the application examples in Appendices B and C. 4.2.1 Input Word 1 (WX1) Input word 1 defines which stations are active on network communication channel A. Bit 1 corresponds to network address 1, bit 2 to network address 2, and so on.
4.2.2 Input Word 2 (WX2) Input word 2 defines which units are active on network communication channel B. The only time you should see any “1”s for bits in WX2 is if you are using a Peerlink model PPX:500-5054 and PPX:505–7354 with dipswitch #10 set to “1” (for redundant media).
Network Status Words (continued) 4.2.3 Input Word 3 (WX3) Input word 3 shows several pieces of information as shown in Figure 4-2. MSB LSB 16 15 14 13 Error Code 12 11 10 Passive Monitor Station Address 9 8 7 6 5 Active Monitor Station Address 4 3 2 1 Module’s Station Address Single (0) or Redundant (1) Media Comm.
The following sections describe what each of the 16 bits of WX3 signifies and how to interpret the bit values. 4.2.4 Error Code: Bits 15 and 16 This is an indication from the Peerlink module to the P/C of an incorrect V Memory table starting address.
Network Status Words (continued) 4.2.7 Passive Monitor Address: Bits 9–12 These 4 bits define the station address of the Peerlink module that is the passive monitor. NOTE: When using redundant communication channels, since there is no passive monitor option, these 4 bits will show the same address as the active monitor. 4.2.8 Active Monitor Address: Bits 5–8 4.2.9 Station’s Own Address: Bits 1–4 These 4 bits define the station address of the Peerlink module that is the active monitor.
Chapter 5 Diagnostic Tests and Troubleshooting 5.1 5.2 Diagnostic Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2 5.1.1 5.1.2 5.1.3 Power-Up Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Operational Diagnostic Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . User-Initiated Diagnostic Test . . . . . . . . . . . . . . . . . .
5.1 Diagnostic Tests There are several test modes built into the Peerlink module software. D Power-up/reset D Continuous (run-time) D User-selected. The following sections describe each test mode. 5.1.1 Power-Up Test This test executes the initialization routine following a reset. Whenever the module is powered-up to reset, it will run through this test routine to make sure that the module hardware is operating properly. While the tests are executing, all of the front panel indicators light.
5.1.3 User-Initiated Diagnostic Test CAUTION You may wish to run the user-initiated test, which is a more extensive diagnostic routine than the other two tests described earlier, as part of a preventive maintenance program. You should only run the test when the Peerlink module is off-line, since the test will disrupt the system operation. Remember to physically disconnect the Peerlink module from the network before starting the user-initiated diagnostic test.
Diagnostic Tests (continued) MODULE GOOD P/C COMM GOOD ONLINE RECEIVE TRANSMIT TEST MODE Run/Test Reset Run/Test Reset PPX:500–5053 and PPX:500–5054 PPX:505–7354 Figure 5-1 Peerlink Diagnostic Test Switches 5-4 Diagnostic Tests and Troubleshooting
If the Peerlink module fails one of the user-initiated diagnostic tests routines, the front panel indicators will light as described in the following. LED Description MODULE GOOD Lights when the module passes the ROM and RAM integrity tests. P/C COMM GOOD Lights when the module passes the communications integrity tests. TRANSMIT Lights (with the RECEIVE LED) when Channel A passes the integrity tests. RECEIVE Lights when Channel B passes the integrity tests.
5.2 Peerlink Troubleshooting Guide The tools used in troubleshooting with the Peerlink module are the six indicator lights, the three normal I/O input words (WXs) sent to the P/C, and P/C auxiliary functions. By checking the network status bits (WXs) when you first set up the Peerlink network, you may be able to detect and solve configuration problems quickly.
Table 5-1 Peerlink Troubleshooting Chart (Continued) Symptom Possible Problem Solution Module passes power-up test; MODULE GOOD light is on, but P/C COMM GOOD does not come on for several seconds. If you have pressed RESET, it may take the module several scans to log itself back in. This is normal. It may take the P/C COMM GOOD indicator a few seconds to light. P/C COMM GOOD indicator stays off. The Peerlink module may be in a distributed base. It should be in the local I/O base.
Peerlink Troubleshooting Guide (continued) Table 5-1 Peerlink Troubleshooting Chart (Continued) 5-8 Symptom Possible Problem Solution RECEIVE or TRANSMIT indicators are not lit after user-initiated diagnostic test. User-initiated diagnostic test may have been run while the module is connected to the network. Disconnect module from network; re-run diagnostic test. Module stays in a loop: resetting, running diagnostics, resetting.
Table 5-1 Peerlink Troubleshooting Chart (Continued) Symptom Possible Problem Solution All indicators and normal I/O words appear normal, but no data appears to be transmitted. You may be trying to write data to an address which is “receive” only. Check your data table and transmit data only in the 16-word block associated with your module. or You may have two Verify the address stations set to the same address. on each Peerlink. settings or You may have the dipswitches set incorrectly.
Chapter 6 Technical Assistance Technical Assistance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2 Other Relevant Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Technical Assistance If you need additional help, or information, contact your Siemens Industrial Automation, Inc. distributor or sales agent. If you need assistance in contacting your distributor or sales office in the United States, call 800–964–4114. If additional technical assistance is needed, call the SIA Technical Services Group in Johnson City, Tennessee at 615–461–2522. Other Relevant Documents Other manuals which you may find helpful to refer to are listed below, with manual numbers.
Appendix A Systems Configuration Forms for TIWAY Peerlink Network Systems Configuration Forms A-1
It is important to keep complete, up-to-date records on system configuration. Below are some sample record-keeping forms for use with a TIWAY Peerlink Network. These may be photocopied. Type of Peerlink Used (Redundant or Non-redundant Media):________________________ Table A-1 P/C Type or Reference A-2 Systems Configuration Forms Peerlink Base/ Slot No.
Table A-2 V Memory Table Allocation Network Address: __________________________________________________ V-memory Table Starting Address:_________________________________ V Memory Locations Comments Network Address Network Address Network Address Systems Configuration Forms A-3
Appendix B Network Set-Up Example B.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-2 B.2 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-3 B.2.1 B.2.2 B.2.3 B.2.4 B.2.5 B.2.6 B.2.7 Inserting the Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting the Configuration Dipswitches . . .
B.1 Introduction This section contains a simple example of how to set up a two-station Peerlink network. The example will take you through all of the initialization steps outlined in this manual. You may wish to refer to the TI520C/TI530C/TI530T Manual Set (Manual No. 2462158–0026) and the VPU200/TI520/TI530C/TI525 Programming Guide (Manual No. PPX:530-8116) if you need specific information about the TI530T P/C or about the VPU200.
B.2 Installation B.2.1 Inserting the Module Place each Peerlink module into slots 1 and 2 of the I/O bases for both TI530T P/Cs as described in the Installation section of this manual. Peerlink Station 1 Peerlink Station 2 TI530T P/C TI530T P/C Network Address 1 B.2.
Installation (continued) B.2.3 Connecting Network Cables B.2.4 Powering-Up the Module B.2.5 Checking That The Module Is Logged In Once the dipswitches on each module have been set, connect the modules on the Peerlink network by plugging in the 9-pin cable connectors to each Peerlink module. Since you are only using one communication channel, you will only need to connect one 9-pin connector (into Channel A, which is located on the bottom of the module).
B.2.6 Setting the Output Words The output words WY4 and WY5 are used to define the starting address of the V memory table allocated to the Peerlink network in each P/C. For TI530Ts, only WY5 is used; WY4 should be set to zeroes. For each P/C on the network, you need to specify a sequential block of V memory words equal to 16 times the highest network address. For this example, in which the highest network address is 2, you need to allocate 32 words of V memory in each TI530T.
Installation (continued) B.2.7 Checking Network Status You should now be able to use the three input words to check the status of the network and the module. Input words 1 and 2 (WX1, WX2) show which units are active on network communication channels A and B, respectively.
For station 2, WX3 would look like this: MSB BIT VALUE LSB 16 15 14 0 0 No Errors 0 13 12 11 0 0 Channel A 0 10 0 Passive Monitor Address 9 8 7 6 5 4 3 2 1 0 0 1 0 0 0 1 0 Active Monitor Address 1 Module Network Address Single Channel In this example, since station 2 was designated as the active monitor, station 1 then became the passive monitor. If station 2 were to fail for any reason, station 1 would take over the role of active monitor until station 2 recovered.
Appendix C Programming Examples with Dual or Single Communication Channels C.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-2 C.2 Example #1: Dual Communication Channels . . . . . . . . . . . . . . . . . . . . . . . . C-4 C.2.1 C.2.2 C.2.3 C.3 Network Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Program Operation . . . . . . . . . . . . . . . . . . . . .
C.1 Introduction This section contains two programming examples which illustrate how to use Peerlink network diagnostics using the three normal I/O status words. The first programming example is designed for a Peerlink system with dual communication channels; the second is designed for a system using a single communication channel. Status Words There are three words of module and network status information reported to the P/C from the Peerlink module.
Each of these bits represents a corresponding network address which is active on the network on Channel A. This example shows network addresses 1, 2, 3, 4, 5, 6, 7 and 8 active on the network on Channel A. MSB BIT VALUE LSB 16 15 14 0 0 0 13 12 11 0 0 0 10 9 8 7 6 5 4 3 2 1 0 0 1 1 1 1 1 1 1 1 Figure C-2 Input Word 2 (WX2) Each of these bits represents a corresponding network address which is active on the network on Channel B.
C.2 Example #1: Dual Communication Channels This program performs two functions: C.2.1 Network Configuration D It verifies that the module is set up correctly by checking the network address, V Memory starting address, and redundant media setting. D It verifies that each station which should be active on the network is logged in on the active channel lists (status words 1 and 2).
The next step will be to ensure that the module (station 2) has been set up correctly by checking for proper network address, V Memory starting address and redundant media setting. The way to do this is by using status word 3 (WX3), and by masking off the bits which are not important for information at the moment – bits 5-13. The result of WX3 after the unused bits are cleared is then compared with the expected WX3 value.
Example #1: Dual Communication Channels (continued) The last step may be skipped (using a JMP statement) if C3 and C4 are on. These last steps are implemented in order to determine exactly which stations are down. They also provide the P/C with the knowledge that it should not use data from the particular station being checked if it is determined not to be active.
C.2.3 Sample Program 1: Checking Configuration with Dual Channel Usage C51 C50 LDC A: LDC WY4 A: N=0 WY5 Set V Memory starting address to V1 N=1 C50 C51 LDC A: BITS V300 A: N = 24591 300 N=1 WAND A: B: C: WX3 V300 V301 Read WX3 and mask off unused bits for comparision. 1110 0000 0000 1111 Error Code Module Address Single/Redundant C51 C1 LDC A: V302 CMP A: B: V301 V302 N = 8194 Compare status word to expected value.
Example #1: Dual Communication Channels (continued) C1 C2 BITP A: WY3 Check the active channel indicator. Turn on C2 if B is being used. N=4 C1 C2 C50 MOVW A: B: WX1 V303 Channel A is being used so read WX1 (channel A active list) into V303 for future use. N=1 C1 C2 C50 MOVW A: B: WX2 V303 Channel B is being used so read WX2 (channel B active list) into V303 for future use. N=1 C1 C7 BITP A: V303 If bit set in active list for active channel, then okay to use the data.
C.3 Example #2: Single Communication Channel This program performs the following functions: C.3.1 Network Configuration D It verifies that the module is set up correctly by checking the network address, V Memory starting address, and single media setting. D It checks the active channel bit, since single media should always be running on Channel A. D It verifies that each station which should be active on the network is logged in on the active channel list (status word 1).
Example #2: Single Communication Channel (continued) C.3.2 Program Operation This program is designed to first load the value of the V Memory starting address (V500) into WY116 and WY117. With 4 active stations this will allocate a block of 64 V Memory locations in station 4 (V500-V563). The next step will be to ensure that the module (network address 4) has been set up correctly by checking for proper network address, V Memory starting address, single media setting and Channel A active bit.
NOTE: The manner in which the TI530 Class P/C reads data is the reverse from Peerlink. For example, in Peerlink, status word 1 looks like this: MSB BIT VALUE LSB 16 15 14 0 0 0 13 12 11 10 0 0 0 0 9 8 7 6 5 4 3 2 1 0 1 1 1 1 1 1 1 1 In using the BITP instruction, bit 1 in Peerlink would be bit 16 for the TI530 Class P/C.
Example #2: Single Communication Channel (continued) C.3.3 Sample Program 2: Checking Configuration With Single Channel Usage C51 C50 LDC A: WY116 N=0 LDC A: WY117 Set V Memory starting address to V500 N = 500 C51 C50 LDC A: V300 N = 28687 BITS A: V300 N=1 WAND A: B: C: Read WY115 and mask off unused bits for comparision.
C51 C1 CMP LDC A: V302 A: B: V301 V302 Compare status word to expected value 0000 XXXX XXXX 0100 N=4 C3 C1 CMP LDC A: V304 A: B: WX113 V304 Compare WX113 against expected active list. 0000 0000 0000 1111 N = 15 C1 C7 BITP A: WX113 If bit set in active list for active channel, then okay to use the data. N = 16 C7 Use the data for station #1 C1 C8 BITP A: WX113 If bit set in active list for active channel, then okay to use the data.
Appendix D System Performance Examples D.1 Determining Worst Case Total Scan Time . . . . . . . . . . . . . . . . . . . . . . . . . . . D-2 D.2 P/C Interlocking Between P/Cs with Different Scan Times . . . . . . . . . . . . D-4 D.2.1 D.2.2 Scenario 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Scenario 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
D.1 Determining Worst Case Total Scan Time In the simple transfer line application shown in Figure D-1, data is continuously being sent from P/C 1 down the line to other P/Cs. Data is also being sent up the line as feedback information.
Number of Words per Station Scan Time (ms) 90 80 16 14 12 10 8 6 4 12 70 60 50 40 30 20 10 0 2 3 4 5 6 7 8 9 10 11 Number of Stations 12 13 14 15 16 Figure D-2 Single Media Network Scan Time Total P/C to P/C scan is the time it takes data to be transmitted from P/C to P/C using the Peerlink network as the medium.
D.2 P/C Interlocking Between P/Cs with Different Scan Times Peerlink distributes data from each P/C to every other P/C, assuring that the V Memory tables for each are updated with the latest data once per network scan. Since the P/Cs on the network are operating asynchronously and possibly at different rates, some data transmitted may never be seen by another P/C. For example, data being sent from a Peerlink on a fast P/C can be changing so fast that a slower P/C may “miss” some of the values.
Peerlink station #1 V Memory starting address = V1 C1 C2 TIMER 1 Generate transfer pulse C2 P = 0.200 C2 C3 MOVW A: B: V300 V1 Move data into Peerlink table.
P/C Interlocking Between P/Cs with Different Scan Times (continued) D.2.2 Scenario 2 This next example may be used in applications where handshaking is required between P/Cs to acknowledge data sent or received. In this case, a transmitting P/C would send its data words with one word designated as a “command code”. This command code or sequence number could then be interpreted by the receiving P/C when it receives the data.
Figure D-4 is a ladder logic program that illustrates one method of implementing the handshaking routine. This sample program has been implemented in P/C Network Address 1. In this example, the data to be transmitted is collected or calculated in V Memory from V51 to V65. This is a temporary storage area. When the data is ready to be sent, it is moved to V100 (the V Memory starting address) for transfer onto the network.
P/C Interlocking Between P/Cs with Different Scan Times (continued) C51 C1 C1 C3 ONE–SHOT 1 Generate pulse to transmit data C3 C4 ADD A: B: C: V66 V1 V66 Assign Command Code C3 C4 MOVW Transfer to V100–V115 A: B: V51 V100 N = 16 C1 C2 CMP A: B: V131 V66 Check for correct response. If correct send new data out. C2 C4 ONE–SHOT 2 MOVW A: B: V116 V20 Copy response into work area V20.
Appendix E Peerlink Specifications E.1 Operating Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-2 E.2 PPX:500–5053 and PPX:500–5054 Environmental Specifications . . . . . . E-3 E.3 PPX:505–7354 Environmental Specifications . . . . . . . . . . . . . . . . . . . . . . . .
E.
E.2 PPX:500–5053 and PPX:500–5054 Environmental Specifications Operating Temperature 0_ to 60_ C (32_ to 140_ F) Storage Temperature –40_ to 85_ C (–40_ to 185_ F) Relative Humidity 5% to 95% noncondensing Vibration Random Electrostatic Discharge Electrical Noise Immunity Conducted Radiated NAVMAT P–9492 Test Fdc with 0.04g@/Hz, 80–350 Hz, and 3dB/octave rolloff, 80–20 Hz and 350–2000 Hz at 10 min/axis MIL–STD–883 5.
E.
Index A channels, number of communication, 1-2 compatible controllers, 1-4 active monitor, 1-5, 1-6, 2-2, 2-8, 2-9, 2-10, 3-4, 4-6, 5-8 active monitor address, 4-6, 4-8 active stations, determining the, 4-4, 4-5 address, setting the network, 3-4, 3-6 addresses active monitor, 4-6, 4-8, 5-8 for this module, 4-6, 4-8 passive monitor, 4-6, 4-8, 5-8 stations, 5-9 assistance, technical, 6-2 D diagnostics, power-up, 3-11 dipswitches Model 505–7354, 3-7 Models 500–5053 and 500–5054, 3-5 setting the, 3-4 documen
L passive monitor, 1-5, 1-6, 2-2, 2-8, 2-9, 2-10, 3-4, 4-6, 5-8 Local Line, 2-4, 3-12 passive monitor address, 4-6, 4-8 Logging module into controller, 3-20 power budget, 3-2, E-2 protocol, HDLC, 2-2 M MODULE GOOD light, 3-11, 4-3, 5-2, 5-5 manuals, related, 6-2 multidrop line, 2-3 N network active monitor, 2-9, 2-10, 3-4, 4-6, 5-8 addresses, 3-4, 3-6 baud rate, 2-4 cable installation, 3-12 cable pin assignments, 3-12 cables connecting to the module, 3-19 length limits, 2-3, E-2 recommended types, 2-
TI530 class controller, 1-4 TI560 class controller, 1-4 U user manuals, related, 6-2 requirements for, 2-3 starting address, 4-2, 4-3, 5-5, 5-8 W WX1, 2-9, 4-4, B-6, C-2 WX2, 2-9, 4-5, B-6, C-3 V V Memory allocation requirements, 2-10 WX3, 2-9, 4-6, B-6, B-7, C-3 WY4, 4-3, B-4, B-5, C-4 WY5, 4-3, B-4, B-5, C-4 Index-3
SIMATIC is a trademark of Siemens AG. Peerlink, TIWAY, TISOFT1, TISOFT2, TISOFT3, VPU200, Series 500 and Series 505 are trademarks of Siemens Industrial Automation, Inc. TI560, TI565, TI560T, TI530, TI520, TI520C, TI530C, TI530T, TI525, TI535 are trademarks of Texas Instruments. Belden is a registered trademark of Cooper Industries. UL is a registered trademark of United Laboratories. CSA is a registered trademark of Canadian Standards Association.
Customer Registration We would like to know what you think about our user manuals so that we can serve you better. How would you rate the quality of our manuals? Excellent Good Fair Poor Accuracy Organization Clarity Completeness Overall design Size Index Would you be interested in giving us more detailed comments about our manuals? Yes! Please send me a questionnaire. No. Thanks anyway.
FOLD NO POSTAGE NECESSARY IF MAILED IN THE UNITED STATES BUSINESS REPLY MAIL FIRST CLASS PERMIT NO.3 JOHNSON CITY, TN POSTAGE WILL BE PAID BY ADDRESSEE ATTN: Technical Communications M/S 3519 SIEMENS INDUSTRIAL AUTOMATION INC.