Home
Display - Service, Support
Contents
1. Cable s l brc e E RC RC RARO CR UO d LocalLine Hardware Components RS 232 C Cable Installation sparsa RR RR Installation Procedures Dipswitch Configuration and Host Network Data Rate Selection Synchronous AsynchronousOperation Full Half D plex u Hs eee et e re tacent Pa Re ee n Parity Enable Inhibit EVen Odd PAN ie ina iii i ia br eed eed a ag nad ra V Tes Operate MOd S Lin ii iii eR DeL erae eoe Ele dada Final Bum in 55 2 OtherUserSwiches_ banh anh ee ee aa a a i On Off line Switch Se e En Reset SWITCH BIS e ae Meade A LED Displays 2 2 Host Adapter Power up Sequence Using the Host SIM
2. Graphics Examples 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 Your Name Title Telephone Number Company Name Company Address Manual Name SIMATIC TIWAY Host Adapter User Manual Edition Second Manual Assembly Number 2587871 0002 Date 10 95 Order Number PPX TIWAY 8102 FOLD NO POSIAGE NECESSARY IF MAILED IN THE UNITED STATES BUSINESS REPLY MAIL FIRSTCLASS PERMITNO 3 JOHNSON TN POSIAGE WILL BE PAID BY ADDRESSEE ATTN Technical Communications M S 519 SIEMENS ENERGY amp AUTOMATION INC 3000 BILL GARLAND RD P O BOX 1255 JOHNSON CITY TN 37605 1255 FOLD SIMATIC is a registered trademark of Siemens AG TIWAY PM550 5TI and Series 500 are trademarks of Siemens Energy amp Automation Inc Belden is a registered trademark of Belden Wire amp Cable Company
3. 51 Gather blocks as defined 52 Write and gather defined blocks 53 Program condition 4 Poll condition The Host Adapter will allow all TI WAY Primitives Refer to the NIM User Manuals for Primitives supported in each NIM For a more detailed description of Primitive structure and functions refer tothe SIMATIC TIWAY I Systems Manual TI WAY 8101 The CIM does not support TI WAY Primitives SIMATIC TIWAY I Host Adapter User Manual Description and Operation 2 11 2 5 Host Adapter Command Codes The devices on either side of the Host Adapter the host computer and the TIWAY I network are entirely different in protocol The adapter is therefore not only an interface translator but a network controller as well The host computer interface supports a set of Communication Adapter Command Codes which provides network control by way of high level command code operations The following sections describe each command code which are briefly summarized below 00 Error Response 05 Disconnect Secondary 01 Send Network Data 06 Read Secondary Log 02 Broadcast Network Data 07 Read Secondary Diagnostics 03 Poll Secondary 08 Read Adapter Diagnostics 04 Connect Secondary FF Reset Adapter Enor Response The Error Response command code is used primarily to notify the host of an Command exception from normal operation within the Host Adapter There arethree Code 00 possible areas where an error can occur Each of these areas has
4. Code 02 Poll Secondary Command Code 03 Connect Secondaries Command 04 Disconnect Secondaries Command Code 05 Read Secondary Log Command 06 Read Secondary Diagnostics 07 Read Adapter Diagnostics Command Code 08 Reset Adapter Command 5 2200 PR SIMATIC TIWAY I Host Adapter User Manual Description and Operation 2 1 2 1 Description The Host Adapter allows communication with up to 254 Programmable Controllers or other Secondaries on a TI WAY network by connecting a host computer to the network The Host Adapter has two interface ports one to communicate with the host computer and one to communicate with the TIWAY I network Both Host Adapter ports have several features and user selectable options which allow you to modify the Host Adapter to meet your particular interface needs The features and options are listed in the sections below for the host computer and the network ports There are four Host Adapter models Table 2 1 shows the four models you should choose the one which fits your needs Table 2 1 Host Adapter Models Type of Media Card Local Line RS 232 C 423 110 V Model 7101 Model 7102 220V Mode
5. Off line Switch SWIEC Dr uyay Reset SWIEC i ctc ati ii Aa ira Sale ka Local MES 5 ne eene ii h A ii da a 4 6 LED Displays ROC RC tease meee 4 7 Host Adapter Power up Sequence 4 8 Using the Host Chapter5 Diagnostic Tests 5 1 2255 E 222979 kr CR c Ch CR CC i iii ae Operational Diagnostic Test Userinitlated Self Ies uyu ay eet e d ie aaa b t d Bum in and Final Tests 4 2 5 2 Technical ASSSANCE ERR ERR RE RR ER EROR RON RO WR iv Contents List of Figures 1 1 2 1 2 2 2 3 4 1 4 2 4 3 4 4 4 5 4 6 4 7 TIWAY I System Block Diagram 1 4 Block Diagram of TIWAY I Host 2 5 Network Communication Levels 2 7 Host Adapter Message 2 9 Number of Local Line Secondar
6. Table 4 1 Table 4 1 Local Line Connector Pin Assignments No Connection SHIELD Cable shield and signal common x No Connection LLM Positive biased signal line Connection m H No Connection Negative biased signal line Upto 254 Secondaries and one host can be interconnected via the Local Line interface The interconnecting cable usually consists of a main cable or spine with droplines or taps to each Secondary The maximum main line cable length cable type tap length tap spacing number of Secondaries and maximum baud rates are interrelated network variables and have a direct influence upon network performance SIMATIC TIWAY Host Adapter User Manual Installation 4 3 Network Media Installation continued Figure 4 1 illustrates the relationship of cable distance to number of Secondaries for different baud rates for two types of twisted pair cable Note that the cable distance in thousands of feet is shown vertically the maximum number of units that may be attached is shown horizontally For example Figure 4 1 indicates that when using Belden 9860 cable or its equivalent up to 75 stations can be attached to a network operating at 38K bps and having a spine length of 20 000 feet At 115 2K bps the maximum length of a Local Line network having 254 stations would be 10 000 feet Pon LLL SZK SR Lowen 38 4 K bps BELL 988 115 K bps 2 EZ
7. UP TO 100 FEET NO LIMIT ON NUMBER OF NIMs DAISY CHAINED ON ONE DROPLINE TAP DROPLINES LESS THAN 36 IN LENGTH ARE NOT CON SIDERED IN CALCULATING DISTANCE TO NEXT TAP Figure 4 3 Tap Spacing Examples 4 8 Insta lla tion SIMATIC TIWAY Host Adapter User Manual 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 A CAUTION Improper wiring can present fire hazards and cause damage to equipment Observe all local and national electrical fire codes when installing all electrical wiring In general there are three routes network cabling may take e Under flooring e In ceiling e Inside surface ducting Any combination of these three routes may be used on a single network The choice is often determined by whether the building or buildings in which the network is being installed is new construction or is an existing building The following paragraphs describe some of the advantages and disadvantages of each type of cable routing Under floor For under floor routing the cable can be enclosed within ducts or with raised flooring in the open air Under floor systems enclosed in ducts are usually expensive and while they are better protected against unauthorized taps than are open air systems they often make future
8. a gt lt gt Response lt 05 gt lt gt aa lt gt where lt aa gt the Secondary address which is to be disconnected denotes optional element 2 16 Description and Operation SIMATIC TIWAY Host Adapter User Manual NOTE If no Secondary address is found an address field of 00 is returned Read Secondary The Read Secondary Log command code reads the list of Secondaries Log Command currently connected to the network Code 06 The command and response for this code are shown below Command lt 06 gt Response lt 06 gt lt gt lt aa gt lt where lt aa gt the Secondary addresses of the network log SIMATIC TIWAY Host Adapter User Manual Description and Operation 2 17 Host Adapter Command Codes continued Read Secondary The Read Secondary Diagnostics command code is used to read the Diagnostics 07 diagnostic cell for a network Secondary It consists primarily of status information related to the network functions performed in the Host Adapter If no Secondary is connected the Adapter generates an error condition and invokes the error processor The following shows the command and response for this code Command lt 07 gt lt aa gt Response lt 07 gt lt aa gt lt gt lt xxxx gt lt gt lt qqqq gt lt cccc gt lt fff gt lt uuuu gt lt 0000 gt where lt aa gt Secondary address lt pppp gt number of times polled lt gt number of f
9. e e e m Q z a m lt o CABLE UNIT LOADING NUMBER OF STATIONS Figure 4 1 Numberof Local Line Secondaries versus Cable Distance 4 4 Installation SIMATIC TIWAY Host Adapter User Manual Local Line Hardware Components The hardware components of a L ocal Line network are explained in the sections below and consist of the following e Siemens Tap Housing PPX 500 5606 e Customer supplied twisted pair cabling NOTE When the Host Adapter is located at either end of the network the Local Line bias switch must be placed in the ON position Tap Housing Thetap housing shown in Figure 4 2 is manufactured by Siemens specifically for the Local Line network The tap housing can be mounted rigidly toa NEMA panel or other enclosure It could also be used to splice cables in a cable tray without being rigidly mounted The tap housing not only allows tapping into a twisted pair cable but also contains termination resistors resists moisture relieves strain and provides noise isolation for attached cabling One tap housing is provided with Host Adapter Model 7101 or 7103 Additional tap housings may be ordered from your Siemens distributor under part number 500 5606 The termination resistors mentioned in the previous paragraph are very important They must be used to ensure that the main line cable is properly terminated and biased This in turn ensures that the Local Line will operate reliably E
10. e toD Me edt et qh akak o e um abide ed Data Interchange isses cago etes ek Ro os Pie Pa Para dc dor aa Message Str cture E xe reve eR aa ex Re tee Rd e d Pa ee na haqa es 3 2 Summialy Li uni xd USC a Chapter4 Installation 4 1 Requirements for Installation eee scene mmm mm mmn 4 2 Network Media Installation Localline Cablen 5 TL LocalLine Hardware 2 2 RS 232 C Cable Installation 2 222222222 2 2 4 3 Installation 4 4 Dipswitch Configuration and Host Network Data Rate Selection aaa Synchronous Asynchronous Operation Full Half RR RR REY k EVE unes Panty Enable IMIDE pacer pace CP Ee ala Even Odd Panty e cR rr ER dace er E RP ER Er ER ER RR a CUR a Shas Quq kara TSH Operate ModE Sai sostiene ak na Ee e qaqapasqa bear Final BUM IN JESS i eo ea er dore aU dua a kR ds 4 5 Other User Switches On
11. improvements Network Data Rates 110 115 2K bps Asynchronous synchronous half full duplex Network Undetected Bit Error Rate 6 x 10E 13 calculated with premium cables Unit Size 95 high by 4 0 wideby 7 5 deep Unit Power Consumption 20VA maximum 00020000 Operating Temperature 0 to 60 C 32 to 140 F Storage Temperature 40 to 85 40 to 185 Operating Humidity Range 0 95 relative humidity noncondensing Agency Approvals UL Listed SIMATIC TIWAY Host Adapter User Manual Description and Operation 2 21 Physical Interface Data Link Interface Data Link States Data Interchange Message Structure Chapter 3 Host Adapter Protocol SIMATIC TIWAY I Host Adapter User Manual Host Adapter Protocol 3 1 3 1 General This chapter describes the protocol which allows communication with the Host Adapter Physical Interface The mechanical and electrical characteristics of the Host Adapter interface are described in the following sections Mechanical Characteristics The Host Adapter functions as a data terminal DTE according to the EI A RS 232 C specification Therefore it requires a male plug 25 pin D type connection on the communications cable Table 3 1 lists the pin assignments used all other pins remain vacant in order to prevent damage to the host computer or the Host Adapter which might be caused by non standard pin usage Table 3 1 Standard Connector Pin As
12. timer e Indicator operation SIMATIC TIWAY I Host Adapter User Manual Diagnostic Tests 5 3 General continued Table 5 2 illustrates the LED indicator status for the user initiated self test Table 5 2 Indicator Status for Self test Fail Not Sub tests Included ROM RAM C is Adapter Good ROM RAM Watchdog Receive Network Interface L J abberstop N etwork Host Port same tests as above Flashing Flashing Test completed Note During the test the Comm Active and Online LEDs are off Bum in and Final The burn in and final tests are primarily factory tests and are normally not Tests used in any applications 5 4 Diagnostic Tests SIMATIC TIWAY Host Adapter User Manual 5 2 Technical Assistance If you encounter problems in the installation or operation of the TI WAY Host Adapter you may call Siemens Technical Services for assistance at 423 461 2522 If you need additional help or information that is not included in this manual contact your Siemens distributor or sales office If you need assistance in contacting your distributor or sales office in the United States call 800 964 4114 SIMATIC TIWAY I Host Adapter User Manual Diagnostic Tests 5 5 Customer Response 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
13. 000000000 a EVEN PARITY 1 ODD PARITY 0 PARITY 1 NO PARITY 0 FULL DUPLEX 1 HALF DUPLEX 0 SYNCHRONOUS 1 ASYNCHRONOUS 0 HOST BAUD RATE WY I Figure 4 6 Host Adapter Switches There are eight configuration dipswitches for the Host port and ten for the Network port of which nine are used Switch 7 is currently unassigned The switch settings are binary coded so that Switch 1 represents the most significant bit MSB and Switch 8 represents the least significant bit LSB 4 14 Installation SIMATIC TIWAY Host Adapter User Manual Host Network Data Rate Selection Synchronous Async hronous Operation When you are configuring the dipswitches for the Host Adapter you should check to make sure that both the NIM and the host computer dipswitches match the Host Adapter configuration The host configuration should be 7 bits with parity and 1 stop bit The dipswitches are read by the Host Adapter only after a reset Therefore any changes to the dipswitches must be followed by a reset The first four dipswitches 1 4 for both the Host and Network ports are used to select the baud rate at which the Host or Network ports will communicate Table 4 2 illustrates the configurations of these four dipswitches for various baud rates Table 4 2 Host Network Ports Data Rate Selection Dipswitches L3 3 150 bps Data Rate x o o 9 1 9 1 3
14. 3 Installation Procedures AW gt If power is supplied to the Host Adapter before installation is completed unpredictable operation can result Unpredictable operation can cause death or serious injury to personnel and or damage to equipment Do not supply power to the Host Adapter until all other installation procedures have been completed 1 Therearethree possible places on the Host Adapter where the two L shaped mounting brackets can be located Depending on how you want the Adapter to be mounted attach the mounting brackets to the adapter in any of these three places Refer to Figure 4 4 for the possible bracket mounting locations PN NN NS MY lt MOUNTING BRACKETS TE AT MOUNTING BRACKETS EET boc are LOCATED AT REAR HOST ADAPTER HOST ADAPTER MOUNTED BEHIND PANEL BRACKETS ATTACHED AT FRONT Figure 4 4 Possible Bracket Locations on Host Adapter 2 You should mount the Host Adapter in a suitable enclosure such as a NEMA panel to protect against adverse environmental conditions and the possibility of electrical shock The Adapter should not be near moisture sprays or where the temperature is above 60 C or below 0 C 4 12 Installation SIMATIC TIWAY Host Adapter User Manual ACAUON Installing the adapter so that air flow vents are covered can cause restricted air flow over the air vents leading to overheating Overheating can cau
15. 6 mee 3 6 Ame 3 2 The SYNC ASYNC switch is used for modem operation In the synchronous position the Host Adapter uses the receiver signal element timing to sample the receive data and the transmitter signal element timing to send transmit data Both the receiver and transmitter signal timing elements are supplied by the modem In the asynchronous position the modem does not supply receiver or transmitter timing elements and the Host Adapter uses internal clocks to determine receive data sample points and to send transmit data SIMATIC TIWAY Host Adapter User Manual Installation 415 Dipswitch Configuration and Function continued Full Half Duplex Parity Enable Inhibit Even Odd Parity NRZI NRZ Test Operate Modes Final Bum in Tests 4 16 Installation The full nalf duplex switch selects operation compatible with full or half duplex modems even though communication with the Host Adapter is half duplex only When half duplex operation is selected the Adapter does not activate the Request to Send circuit before Data Carrier Detect becomes inactive Timing relationships between Data Carrier Detect and Request to Send are ignored when full duplex is selected On the Host Port dipswitches switch 7 either enables or inhibits parity If switch 7 on the Host port is set to enable parity switch 8 on the Host Port selects either odd 0 or even 1 parity The NRZI NR
16. ATIC TIWAY Host Adapter User Manual Installation 4 1 4 1 Requirements for Installation The following items are necessary to install the TI WAY Host Adapter and to connect it to the TI WAY I network e Host Adapter e L shaped mounting brackets and bracket screws e Customer provided mounting screws e Belden 9271 cable or equivalent customer supplied e housing e AC power cable customer supplied e TIWAY I network For Local Line installation 4 2 Installation SIMATIC TIWAY Host Adapter User Manual 4 2 Network Media Installation TIWAY I is a multidrop communications network consisting of a main line and dropline cables which connect a host computer to as many as 254 Secondaries The selection of the media interface depends primarily upon two criteria the distance to be spanned and the cost of installation The main trunk can be up to 25 000 feet long and each dropline can be up to 100 feet long with Local Line For distances exceeding 25 000 feet the use of RS 232 C media interfaces and modems is required If cable redundancy is desired two cables and two Host Adapters must be installed The following sections describe cable installation for Local Line and RS 232 C media interfaces Local Line Cable The Local Line is designed to operate with shielded twisted pair cable which has a characteristic impedance of 124 ohms The interface is a male 9 pin D type receptacle with pin assignments as shown in
17. F1 At this time the Online indicator on the NIM and the Comm Active indicator on the Host Adapter will light 4 20 Installation SIMATIC TIWAY Host Adapter User Manual Ifthe connection to NIM address 01 is not successful for example if there were no NIM at address 01 Comm Active and Online would light and Receive would flash ten times T his means that the Host Adapter is polling the Secondary and is attempting to make a connection After Receive has flashed ten times all LEDs except Adapter Good will go out To indicate that the connection was not successful the message returned on the screen will not be the same as the message sent F or example if the following message appeared on the screen 000E0400FBF0 then the 00 instead of 01 would indicate that the Host Adapter was unableto find any NIM connected at address 01 Since this may mean that there is a problem with the network connection you should check the network cable connections on both the NIM and the Host Adapter You should also check to be sure that the configuration dipswitches agree on both the NIM and the Host Adapter Once the Connect Secondaries command is successful you may wish to know the status of the sequencer connected to the Secondary To do this you would type a transaction request which looks like this 00140101000103FBEA This will transmit TI WAY Primitive 03 requesting Machine Status and Configuration The response for exam
18. SIEMENS SIMATIC TIWAY Host Adapter User Manual Order Number PPX TIWAY 8102 Manual Assembly Number 2587871 0002 Second Edition ADANGER DANGER indicates imminently hazardous situation that if not avoided will result in death or serious injury DANGER is limited to the most extreme situations A WARNNG WARNING indicates a potentially hazardous situation that if not avoided could result in death or serious injury and or property damage A CAUTION CAUTION indicates a potentially hazardous situation that if not avoided could result in minor or moderate injury and or damage to property CAUTION is also used for property damage only accidents Copyright 1995 by Siemens Energy amp 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 Energy amp Automation Inc All rights including rights created by patent grant or registration of a utility model or design are reserved Since Siemens Energy amp Automation Inc does not possess full access to data concerning all of the uses and applications of customer s products we do not assume responsibility either for customer product design or for any infringements of patents or rights of others which may result from our assistance MANUAL PUBLICATION HISIORY SIMATIC TIWAY Host Adapter UserManual OrderManual Number PPX
19. Secondary Diagnostic commands processed iiii number of Read Adapter Diagnostic commands processed lt jjjj gt number of Reset Adapter Commands processed lt kkkk gt total number of poll cycles lt llll gt total number of I frames transmitted lt mmmm gt total number of timeouts Total number of timeouts lt nnnn gt total number of I frames received 0000 total number of I frames re transmitted lt pppp gt total number of receive errors qqqq total number of transmit errors lt rrrr gt total number of Secondary initializations lt ssssssss gt current system clock value in 256 microsecond intervals SIMATIC TIWAY I Host Adapter User Manual Description and Operation 2 19 Host Adapter Command Codes continued Reset Adapter The Reset Adapter command code forces a software jump to the system Command initialization routine This routine will run the power up diagnostics and Code FF will re initialize the operating system The following is the command and response for this code Command FF Response lt FF gt 2 20 Description and Operation SIMATIC TIWAY Host Adapter User Manual 2 6 Specifications Descriptor TIWAY I Conformant Theory of Operation Open system interconnection OSI model developed by International Standards Organization ISO Data Link Protocol HDLC with 16 bit cyclic redundancy error checking CRC CCITT Host Port Protocol Siemens Non intelligent Terminal Protocol with
20. TIWAY 8102 Refer to this history in all correspondence and or discussion about this manual Event Date Description Original Issue 06 84 Original Issue 2704939 0001 Second Edition 10 95 Second Edition 2704939 0002 LISTOF EFFECTIVE PAGES Pages Description Cover Copyright Second History Effective Pages Second vi Second 1 1 1 5 Second 2 1 2 21 Second 3 1 3 6 Second 4 1 4 22 Second 5 1 5 5 Second Registration Second Pages Description Contents Chapterl Overview 1 1 InBoducton uo ae sa a 1 2 1 2 TIMAY I System Characteristics 1 3 1 3 Related Publications 1 5 Chapter2 Description and Operation 2 1 DESC MUON M TE 2 2 Host Computer Port Featuresand 2 2 Network Port Featuresand Options 2 3 Other Host Adapter Featuresand 2 3 2 2 Host Adapter Block Diagram Analysis 2 5 CPUC BI m RS 232 G CIS T LocalLine Interface Card Power Supply Card sus p l o 2 3 COMMUNICATIONS Z s uq s i is i i ous Highest Levelei s coed bse recat ein S ek
21. Z non return to zero inverted non return to zero switch selects the type of encoding to be used during network communication The NRZI encoding option is required for asynchronous operation Either NRZI or NRZ may be used with synchronous operation but NRZ encoding is preferred Switch 9 on the Network port dipswitches selects either test 1 or operate 0 mode If switch 9 is configured for test switch 10 chooses either final test or burn in test These are used primarily for factory testing normally switch 9 should be set for operate which allows the setting for switch 10 to be either 1 or 0 SIMATIC TIWAY I Host Adapter User Manual 4 5 Other User Switches On Off line Switch Self test Switch Reset Switch Local Line Bias Other switches are available to allow user access to Host Adapter features They are reset on off line mode setting built in test functions and Local Line biasing These switches are accessible from the same access panel as the dipswitches The On Off line switch when placed in the on line position allows the Host Adapter to communicate with the network and the host computer In the off line position the Host Adapter is logically disconnected from the network The position of this switch is read before each communication cycle soa reset of the Host Adapter is not necessary each time the On Off line switch position is changed The Self test switch is a push button which initiates a set
22. a subset of error codes based on the area where they occurred The following chart shows the three areas and the error codes for each NOTE U pper case characters represent H exadecimal digits lower case characters represent binary digits Code lt 00 gt 0 0 Oxxx xxxx gt Network Exception Area Code 00 gt 0 0 1xxx gt Host Exception Area Code 00 gt lt 1 0 xxxx gt Adapter Internal Exception Area The command and response for the Error Response Code is shown below Command None Response 00 lt dddd gt aa where aa the Secondary address field Present only when a network error has occurred lt dddd gt the diagnostic code see Table 2 3 denotes optional element 2 12 Description and Operation SIMATIC TIWAY l Host Adapter User Manual Table 2 3 Enor Diagnostic Codes Meaning e 0000 Undefined network problem 0082 Lost CTS on Host Port transaction 0001 Secondary timed out 0083 Timed out waiting on Host transaction Miscellaneous Secondary protocol errors 0084 Unrecognized command code 0003 Wrong Secondary aa responded 0085 Invalid field received with command code 0004 Secondary frame too short 0086 Host frame of excessive length 0005 Secondary frame too long 0087 Host frame too short 0006 Bad Null address 0088 Secondary not connected to network 0007 Nodata returned from Secondary 0089 Missed start of message delimiter 0008 Rec
23. ach tap housing is supplied with termination resistors to connect to the ends of the main line cable At each end a termination resistor must be connected between LLM and the cable shield and also between LLM and the cable shield inside the tap housing SIMATIC TIWAY Host Adapter User Manual Installation 4 5 Network Media Installation continued ERWIN HWY P O DRAWER 1255 JOHNSON CITY TN 37605 1255 TIWAY NETWORK TAP HOUSING TOP COVER REMOVED FOR CLARITY Figure 4 2 Tap Housing Twisted Pair Cabling Siemens recommends Belden 9860 twisted pair cabling or its equivalent for use as the Local Line network spine Belden 9271 or its equivalent should be used for the dropline Brands other than those listed here will be specified by Siemens upon request 4 6 Installation SIMATIC TIWAY Host Adapter User Manual Important Planning Considerations Some major points to consider duringthe planning phase of a Local Line network are e Fromthestart allow for system growth This means making provisions for the attachment of additional computing devices by routing cables through all probable areas of future plant expansion e Always make the network flexible enough to allow for rearrangement of plant equipment e Since network system noise is usually picked up by its interconnecting wiring steps should be taken at the outset to bypass or eliminate noise sources e f cable redundancy is desired the two cables should never be r
24. adapter self test will not start if the Host Adapter is on line Failure to place the adapter off line during the test may cause a temporary communication error on the network Be sure to place the On Off line switch in the off line position and to disconnect the adapter from the network during the adapter self test SIMATIC TIWAY Host Adapter User Manual This test will perform both internal and external loopback jabberstop and data rate sub tests to each channel If a media card is missing or is bad the test will fail A loopback connector is required for the RS 232 C 423 port If no loopback connector exists on an RS 232 C 423 channel that channel will fail the external loopback sub test The remaining channel will still be tested to see if it is functioning correctly Table 5 1 shows the signal line connections made by the loopback connector No loopback connector is necessary on the Local Line port Table 5 1 RS 232 C 423 Loopback Connections 4 5 Request to Send RTS Clear to Send CTS om Data Terminal Ready DTR ps 2 The sub tests for the user initiated self test indude RAM data and address line verification internal and external RAM e ROM integrity using CRC and checksum e Serial Communications Chip SCC using internal loopback and baud rate e Transmitter Receiver via external loopback and jabberstop e Verification of watchdog
25. and code will be returned The following shows the command and response for this code Command lt 01 gt lt aa gt lt pppp gt Response lt 01 gt lt gt lt gt where lt aa gt the Secondary address field to which the data is sent lt pppp gt the network Primitive NOTE When using a CIM on the network a Poll Secondary command may be necessary after a Send Network Data command This occurs because some CIM commands may take longer to complete than the Host Adapter s poll cycle time Broadcast Network The Broadcast N etwork Data command code is used to send network Data Transfer Primitive elements to all Secondaries simultaneously The Host Adapter Command passes the information to the command code processor which builds Code 02 Unnumbered Information HDLC Frames which are sent over the network The HDLC layer returns either an indication of successful transmission or an error code The response can be retrieved by the Poll Secondary command code NOTE A Poll Secondary command code 03 must be sent immediately after each Broadcast Network Data Transfer command This will ensure that all latent information is cleared from the Secondary The command and response for this code are shown below Command lt 02 gt lt gt Response lt 02 gt where lt pppp gt the Primitive data element 2 14 Description and Operation SIMATIC TIWAY Host Adapter User Manual Poll Secondary Comma
26. and the two characters which delimit the beginning and end of a message Message Delimiters A colon marks the beginning of a message A semicolon marks the end of a message Any characters between a colon and the next semicolon are interpreted as a valid message while any characters between a semicolon and the next colon areignored This allows the host to use any parameters required by its software between lines of output Any character other than 0 9 or A F which is received between a colon and the next semicolon is interpreted as being error When transmitting data to the host the Host Adapter sends carriage return and line feed characters after the terminating colon Character Count Toaidin error control the colon at the beginning of the message is followed by a four digit character count in H ex ASCII notation This represents the total number of printable characters in the message including the colon character count message body error checking code and terminating semicolon This number is limited toa maximum value of 570 decimal or 023A Hex 3 4 Host Adaper Protocol SIMATIC TIWAY Host Adapter User Manual Error checking Code An ASCII four character error checking code ECC in the form of a 16 bit hexadecimal number is included at the end of the message just before the semicolon terminator The ECC is a checksum computed as follows 1 Divide the character count and the message body into blocks of four charac
27. at between the NIM and the Host Adapter At this level Primitives are used Only one set of Primitives is used by all NIMs as described in Section 2 4 The third level of communication is between the Host Adapter and the host computer Communication at this level is accomplished through the use of Command Codes Finally at the highest level there is the communication between an operator and the host computer This level involves the software of the host computer which is used to generate the Command Codes SIMATIC TIWAY Host Adapter User Manual Description and Operation 2 7 Communications continued Highest Level 1 2 3 4 Lowest Level 5 2 8 The following is an example of the series of events that would occur when a specific instruction is sent to a controller User runs a program written to do a specific job The program asks for the required data i e which controller is to be talked to etc The user s program generates the instruction and puts it into the correct format Non intelligent Terminal Protocol Here the instruction is probably a Primitive embedded in a command code instruction This instruction is then embedded in a high level language for example PRINT OOOE The high level language command PRINT is processed when it goes to the next lowest level which is the Host Adapter The Host Adapter strips away the command code section of the instruction and uses it for routing the remaind
28. attempted and the Request to Send circuit is turned off The Host Adapter remains in this state until Data Set Ready and Received Line Signal Detector circuits are turned on When they are turned on the Host Adapter enters the Receive State and will accept data on the Received Data circuit Receive State Request to Send circuit remains off while the Host Adapter is in the Receive state It remains in this state until either a message terminating character has been received from the host computer until an error condition has been detected or until it enters the Receive Wait state again Characters received during the Receive state are accumulated in a Received Data buffer area When the message terminating character has been received and if no error conditions exist the Data Link layer enters the Frame Processing state while waiting for a message transmission request from the higher level software within the Host Adapter When an error condition is detected the Data Link layer places an appropriately framed error message in the Transmit Data buffer and enters the Transmit Wait state Frame Processing State While the Data Link layer is in the Idle state the Request to Send circuit is off Any data coming in on the Received Data circuit is ignored When a request for message transmission is received from the higher level Host Adapter software the Data Link appends the appropriate message framing characters to data contai
29. bed in the sections that follow CPU Card The CPU card consists of 16K RAM 16K ROM 2 port Serial Communications Controller a 12 MHz external clock TMS 9995 microprocessor one 8 switch and one 10 switch dipswitch bank 6 LEDs which indicate the status of the Host Adapter a watchdog timer and baud rate generation and control circuitry The Serial Communications Controller SCC implements the network control functions at the hardware level It can generate the transmit and receive clocks and synchronize Receive operations in the HDLC operation The SCC has two channels with separate transmitters receivers and baud rate generators SIMATIC TIWAY I Host Adapter User Manual Description and Operation 2 5 Host Adapter Block Diagram Analysis continued RS 232 C 423 Card Local Line Interface Card Power Supply Card The RS 232 C 423 card provides a standard format of communication that is compatible with most user I O equipment An output driver and input receiver for the RS 232 C 423 card transfer data to and from the communication cable They are disabled during a hardware reset to prevent spurious line signals during power on reset J abberstop circuitry is used on this card to prevent the communications media from being tied up for an excessive amount of time such as when a software failure leaves the CPU in the active transmission state continuously transmitting data over the communications channel The jabberstop will halt thi
30. e Sena hee ag a Lowest LEVEL iii m i in ede Phe vb es Den e eed ie d deb k a doles 2 4 TIMAY I Primitives u o uuu rr rx ye ace ae e rcr ae a aa aa 2 5 Host Adapter Command Codes Error Response Command 00 Send Network Data Command 01 Broadcast Network Data Transfer Command Code 02 Poll Secondary Command 03 Connect Secondaries Command 04 Disconnect Secondaries Command 05 Read Secondary Log Command 06 Read Secondary Diagnostics 07 Read Adapter Diagnostics Command 08 Reset Adapter Command 2 6 Specific ATION xd ua ais a si a RR Contents iii Chapter3 Host Adapter Protocol 3 1 General 5 222 u ss 33 34 30 ia amend ROCA CRGA malas D Physical INTEMa CE L ose ham n qe ee dn ete dre ae Ye Une R Data Link interface pana alae E ERROR basi b paa a Data LINK States u u u ecrit eben Ea Eee
31. eive buffer overflow Missed end of message delimiter FCS errors on frame received Message length count error Frames aborted by Secondary 008C Message check sum bad 000C Transmitter underruns 1000 Undefined Adapter problem 000E Frame did not end on byte boundary 1002 No media card installed on Host Port 0010 Lost DCD Data Carrier Detect on RS 232 1003 System stack management error receive 0011 Lost CTS Clear to Send on RS 232 receive 1004 System queue management error 0012 Received an invalid frame 1005 Illegal interrupt received by processor 0013 Illegal communications interrupt 1006 Invalid op code encountered by processor 0014 Timed out waiting on DCD half duplex 1007 Buffer management error RS 232 0015 Timed out waiting on CTS RS 232 1008 No buffer available at present 0080 Problem undefined on host 1009 Nonetwork media card installed x 0081 Lost DCD on Host Port transaction 100A All memory is allocated position SIMATIC TIWAY Host Adapter User Manual Description and Operation 2 13 Host Adapter Command Codes continued Send Network Data The Send Network Data command code transfers an information frame over Command the network All protocol control information is handled by the HDL C layers Code 01 in the Host Adapter Normally a network response will be passed back up to the Host Port by the command code processors in the Host Adapter If an exception occurs then the exception comm
32. er of the instruction the Primitive to the network The NIM takes the instruction isolates the part it needs and translates the remainder into a code understandable to the controller Figure 2 3 shows the Host Adapter Message Structure Description and Operation SIMATIC TIWAY Host Adapter User Manual STATE OF MESSAGE DELIMITER END OF MESSAGE DELIMITER MESSAGE CHARACTER COUNT CHECK SUM TRANSMISSION Adapter Data PROTOCOL COMMAND CODE STRUCTURE SECONDARY ADDRESS STRUCTURE LENGTH OF PRIMITIVE DATA PRIMITIVE PRIMITIVE CODE DESCRIPTOR DATA IN BYTES FIELD UNITS Figure 2 3 Host Adapter Message Structure SIMATIC TIWAY Host Adapter User Manual Description and Operation 2 9 2 4 2 10 Primitives Primitives are high level commands used by the network control interface which allow a user to communicate with different Secondaries in the same manner A Primary can access for example mage Register memory in NIM equipped 520 530 5TI and PM550 controller with exactly the same command without regard to the specific Task Codes used by that controller The purpose of the Primitives is to remove the differences between the controllers This allows all TI WAY controllers to be treated equally for application programs The Primitives also allow data to be accessed more efficiently by adding powerful options to the data transfer The data types lengths of data types and data addresses supported b
33. erchange August 1969 2 RS 423 Electrical Characteristics of Unbalanced Voltage Digital Interface Circuits April 1975 SIMATIC TIWAY Host Adapter User Manual Overview 1 5 2 1 2 2 2 3 2 4 2 5 2 6 Chapter 2 Descnption and Operation 5 su i a aria a REA WARE REA adden Host Computer Port Featuresand Network Port Featuresand Other Host AdapterFeaturesand Options Host Adapter Block Diagram Analysis CPUC Ad cetera LE S ET RS 232 G7423 GG L a a gus uy amk i kaha a Local Line Interface rb a ee akaqa aa PowerSupply esas ace DEG RR ERGO rece cs COMMUNICATIONS side EE au Highest Levels cin ain DEG RR ERG ik aes Lowest LEVEL 4222 tei a dee eod WR A E TIMAY I PrIIUVOS iis oes ree army bse eet iai ai nde FE RR RR NR ca Host Adapter Command Codes Error Response Command 00 Send Network Data Command 01 Broadcast Network Data Transfer Command
34. expansion of the network more difficult and expensive Open air underfloor cabling systems usually provide good access and allow maximum network expansion and flexibility SIMATIC TIWAY Host Adapter User Manual Installation 4 9 Network Media Installation continued In ceiling For in ceiling routing network cables are usually supported in troughs or with hooks and clamps every 10 or 15 feet Some advantages of in ceiling installation are that e t provides flexibility e Installation can be made at low cost and e t ensures accessibility to cabling Some disadvantages are that e ltisimpractical for buildings without drop ceilings e t may present difficulties due to its inaccessibility and e Ceilings often collect dust and other debris Surface Ducting Surface ducting for network cabling is usually installed along the baseboards or is attached to walls at desktop height While surface ducting ordinarily protects cables from both physical and EMI effects it may also require that network computing devices be positioned near a wall Obstructions You should avoid both physical obstructions such as posts walls partitions and the like and also electrical interference Some sources of such interference are e Power distribution mains e Arcing motors e Fluorescent lighting e Teletypes e Undesired signal transfer cross talk between adjacent circuits e Poor cable to equipment impedance matching 4 10 I
35. ies versus Cable Distance Tap Housing i ei 4 6 Spacing Examples eid usqay Possible Bracket Locations on Host Adapter 4 12 AC Power TSMINalS ss Gace topna k eek ERO Ra aj ROC AO uu dae eae 4 13 Host Adapter Switches 2 22 4 14 Host AdapterLED Panel uu iaa mi iua teen 4 18 Contents v List of Tables 2 1 2 2 2 3 3 1 3 2 4 1 4 2 5 1 5 2 Host Ada pter Models luu de eee eda C RR lu Ak Fa ew 2 2 e ate ec dc leon ignei 2 11 Error Diagnostic 2 2 13 Standard Connector Pin 2 3 2 Message Structure for Host 3 6 Localline Connector Pin Assignments 4 3 Host Network Ports Data Rate 5 4 15 5 232 423 5 5 3 Indicator Status for Self te Stanisa ae eee Hx x CE take ka 5 4 Contents Chapter 1 Overview 11 Introduction 1 2 TIMMY I System Characte
36. l 7103 Model 7104 Host Computer Port Features Features and Options e RS 232 C 423 port DTE e 7 bit Hex ASCII data 1stopbit e Host Computer H ost Adapter communications via Non intelligent Terminal Protocol using command codes Options e Baud rates ranging from 110 to 19 2K bps e Synchronous asynchronous modem use e 7 bits of data with or without a parity bit e Even or odd parity e Full or half duplex communication e Modem or direct line to the host computer 2 2 Description and Operation SIMATIC TIWAY Host Adapter User Manual Network Port Features and Options Other Host Adapter Features and Options Features e 16 cyclical redundancy check CRC CCITT error detection e Connection to as many as 254 controllers via NIMs High Level Data Link Control HDLC protocol Options e Baud rates ranging from 110 to 115 2K bps e Full or half duplex communication e NRZI NRZ e Modem or direct line connection e Synchronous or asynchronous communication Features e TIWAY I conformant on the network interface side e Noise hardened e Suitable for factory environment e Internal user test Host Computer NIM communication using Primitives TI WAY network instructions Options e Local Line bias if Host Adapter is located at the physical end of the Local Line cable e be logically disconnected from the TIWAY network via dipswitch SIMATIC TIWAY I Host Adapter User Manual Descrip
37. nd Code 03 Connect Secondaries Command Code 04 The Poll Secondary command code is used to request a response from a Secondary T his command is used either in conjunction with the Broadcast Network Data Transfer command or to retrieve any latent information from a Secondary The following shows the command and response for this code Command lt 03 gt lt aa gt Response lt 03 gt lt aa gt lt gt where lt aa gt the Secondary address field to which the data is sent lt pppp gt the Primitive data element The Connect Secondaries command code is used in conjunction with an address list to connect Secondaries to the network If no address list is found then the Adapter enters an error state and an error processor is invoked If the Broadcast Address FF hex is sent the Host Adapter will poll all Secondaries at the end of the Transmit state It will also transmit a list of on line Secondaries back to the Host If no Secondaries connect to the network an address field of 00 Hex is returned a caution If the Broadcast Address FF Hex is sent a lengthy delay is possible 4 seconds for each Secondary address that is not physically connected to the network The Broadcast Address is only recommended when a large number of Secondaries is connected to the network SIMATIC TIWAY I Host Adapter User Manual Description and Operation 2 15 Host Adapter Command Codes continued The command and resp
38. ned in the Transmit Data buffer and enters the Transmit Wait state SIMATIC TIWAY I Host Adapter User Manual Host Adapter Protocol 3 3 General continued Data Interchange Message Structure Transmit Wait State In the Transmit Wait state the Data Link layer places the Transmit Data pointer to the first character of the Transmit Data buffer and turns on the Request to Send circuit The Data Link layer then enters the Transmit state when the Clear to Send circuit is turned on Transmit State When in the Transmit state the Data Link layer serially transmits the data in the Transmit buffer via the Transmitted Data circuit When the transmission of the message is finished the Data Link layer turns off the Request to Send circuit and enters the Receive Wait state If the Clear to Send circuit is turned off during data transmission the Data Link layer stops transmitting and goes into an idle state Data transmission is synchronous or asynchronous as well as serial by bit with the standard ASCII 7 bit code Single start and stop bits are used and parity no parity and even odd parity may be chosen Data transmission rates may be one of the following 110 150 300 600 1 2K 9 6K or 19 2K bps The following sections describe the structure of the messages used by the Host Adapter Character Set Theonly ASCII characters which may be used to form valid messages are those used in hexadecimal numbers the digits 0 9 and the letters A F
39. nostic Test User initiated Self Test 5 2 Diagnostic Tests There are five levels of built in tests in the Host Adapter power on test e operational test e self test e burrm in test e final test This test executes the initialization routine following a master reset All LED indicators light for approximately 1 second prior to executing any sub tests All LEDs except for the Test LED will be out while the tests are running If the tests all pass the Adapter Good LED will light The sub tests include a RAM data and address integrity test aROM CRC integrity test and a communications controller internal loopback test U pon failure of any of the Power on tests the adapter will keep the watchdog timer alive go to the IDLE state and wait for the reset switch to be pressed This test executes during all normal modes of the Host Adapter s operation off line or on line The sub tests do not disturb normal operation of the network They are performed at least once per minute under all conditions An operational diagnostics failure is treated in the same way as a power on test failure Test status is indicated on the Adapter Good LED which will blink after a failure This diagnostic test may be performed by the user only when the adapter is in the Off line mode as determined by the On Off line switch and when the Test switch is pressed Normal adapter operation is suspended during this test mode A CAUTION The
40. nsta lla tion SIMATIC TIWAY I Host Adapter User Manual RS 232 C Cable Installation Noise Minimum Distances 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 should be kept between all network cabling and the following e Power lines up to 440 volts e Generators e Eledric motors e Electric welders e Transformers e _ Induction furnaces and heaters e Rectifiers e All sources of microwave radiation The physical layer in TIWAY provides a modem interface for synchronous or asynchronous modems at data transmission rates up to 115 2 K baud The modem interface provides standard signals for control of two way alternate data transmission using both half and full duplex modems The modem interface is a standard Type E DTE configuration as defined in Section 5 of EIA RS 232 C This interface uses male plug 25 pin D type receptacle for connection to the communication cable The circuits and pin assignments shown earlier in Table 3 1 are used here as well All other pins should be left vacant to prevent damage which may be caused by non standard pin usage The use of the interchange circuits should conform to the functional descriptions given in Section 5 of EIA RS 232 C SIMATIC TIWAY Host Adapter User Manual Installation 4 11 4
41. o out The Test LED will stay lit for approximately 6 seconds while the Host Adapter runs through a series of diagnostics including RAM and ROM tests and a serial communications port internal loopback check If the diagnostics are successful the Adapter Good LED will illuminate and will stay on If a failure on any test occurs the Adapter Good LED will flash SIMATIC TIWAY Host Adapter User Manual Installation 4 19 4 8 Using the Host Adapter This section gives examples of how the H ost Adapter may be used once it is installed and the dipswitches are configured for both Host and N etwork ports For a detailed explanation of the TI WAY Primitives and Command Codes used in these examples please see the SIMATIC TIWAY Systems Manual and the manuals accompanying the NIMs used with the TI WAY I system Oncethe Host Adapter has been installed and powered up you may use any non intelligent terminal to type in commands such as the Command Code to connect a Secondary EXAMPLE Connect Secondaries Type 000E 0401F BF 1 Usingthe principles discussed in Chapter 3 of this manual an analysis of the message structure would look like this Connect Error Beginning Secondaries Checking of Message Pomme Code E g l 000E 04 01 FBF1 l l Character Address End of Count of NIM Messaqe If a successful connection to NIM address 01 is made the response will show that the connection has been made 000E0401FB
42. of diagnostics including a communications loopback test This test requires a special hardware setup using the loopback connector supplied with the Host Adapter This setup is described more fully in Chapter 5 Diagnostic Tests The Host Adapter must have the Online switch in the off line position to initiate the self test The Reset switch is a push button switch which causes a reset and invokes the power on test The power on test is explained in detail in Chapter 5 Diagnostic Tests For the Host Adapters and NIMs supplied with Local Line media interfaces a switch is provided which allows selection of bias or no bias for the Local Line This switch provides a network system function of placing a 100 millivolt potential between each of the two conductors in the cable and the signal common The Local Line must be biased to prevent unwanted oscillations at the receivers connected to the line Bias should be applied by only two units one at each end of the cable in the network SIMATIC TIWAY Host Adapter User Manual Installation 4 17 4 6 4 18 LED Displays Installation There are 6 LEDs on the CPU card to indicate the current machine state as shown in Figure 4 7 ADAPTER GOOD COMM ACTIVE L E LLL L RECEIVE LLL transmit LC Test move MODEL XXXX Figure 4 7 Host Adapter LED Panel Adapter Good The Adapter Good LED signifies that all power on reset diagnostics passed successfully and that the run
43. onse for this code is shown below Command lt 04 gt lt aa gt lt aa gt lt gt Response lt 04 gt lt aa gt lt aa gt lt gt where lt aa gt the Secondary address which is to be connected NOTES Ifa Broadcast Address is sent FF Hex then no other address field should be sent in conjunction with it The CIM does not discard old network information frames when it is connected or disconnected Therefore when connecting a CIM you should send a Poll Secondary command from the Host to the CIM until a No Data Returned from Network Secondary 00 0007 error response is returned This will ensure that any latent information in the CIM is removed denotes optional element Disc onnect The Disconnect Secondaries command code is used in conjunction with an Secondaries address list to disconnect Secondaries from the network If no address list is Command found then the Host Adapter generates an error condition and invokes the Code 05 error processor If the broadcast address is found then the Adapter will re poll all Secondaries at the conclusion of the TRANSMIT cycle and build a table of off line Secondary addresses to transmit to the Host Port If no Secondaries disconnect an address field of 00 Hex is returned NOTE If a Broadcast Address is sent FF Hex then no other address field should be sent with it The following shows the command and response for this code Command lt 05 gt lt gt lt
44. outed along the same path since the environmental factors which disable one cable will very likely disable the second cable Local Line Tap Spacing Local Linesignal characteristics require that the distance between droplines on the network be calculated using the length of the droplines at the last drop point The minimum distance between droplines must be equal to or greater than one half the length of the dropline at the last drop point Two drop lines with the last one closer than one half the drop line length of the previous one are considered a double drop point from the closest tap The sum of both of their lengths is used to calculate the spacing between them and the next dropline A dropline fifty feet long for example precludes the installation of the next station tap closer than 25 feet along the spine No limit is placed on the number of NI Ms that can be daisy chained to form a drop line off of the main trunk as long as the resulting tap length is no greater than 100 feet Figure 4 3 illustrates three typical examples of tap spacing SIMATIC TIWAY Host Adapter User Manual Installation 4 7 Network Media Installation continued EXAMPLE ONE NOT LESS THAN 30 F NOT LESS EACH NOT LESS THAN 50 THAN 50 2 EXAMPLE TWO THIS IS CONSIDERED AS A DOUBLE DROP FROM THE CLOSEST THE NEXT NEAREST TAP MUST THEN BE GREATER THAN 50 AWAY EXAMPLE THREE OVERALL DROPLINE LENGTH CAN BE
45. ple might look like this 002E0101000E030500300FFF0400000003FF0000E390 Analysis of this code would yield the following information Sequencer L Memory C Memory Global a in Wd Ue 002E0101000E03 05 0030 OFFF 0400 0000 0000 E390 ond Primitive and Protocol 530 V Memory Local Error Overhead Sequencer Size 1 0 Checking Identifier Memory Code SIMATIC TIWAY Host Adapter User Manual Installation 4 21 Using the Host Adapter continued Another command you might use could be Disconnect Secondaries To do this type 000E0501FAF 1 The screen will display the response indicating that all Secondaries have been disconnected 000E0501FAF 1 At this point all six LEDs on the NIM will light briefly and then go out leaving only the Test mode LED illuminated Adapter Good will remain lit on the Host Adapter For a more complete description of the Command Codes and Primitives supported by each NIM you should refer to the appropriate NIM manuals andtotheSIMATIC TIWAY I Systems Manual 4 22 Installation SIMATIC TIWAY Host Adapter User Manual Chapter 5 Diagnostic Tests 5 1 General PoWeron Te SE a CU OEC A e e dear Operational Diagnostic Test Use rinitiated Self Test Burn in and Final Tests 5 2 Technical Assistance SIMATIC TIWAY I Host Adapter User Manual Diagnostic Tests 5 1 5 1 General Power on Test Operational Diag
46. rames transmitted lt gt number of timeouts lt gggg gt number of I frames received lt cccc gt number of I frames re transmitted ffff2 number of received errors from Secondary lt uuuu gt number of transmitted errors to Secondary gggg number of times Secondary initialized since last Host Adapter reset 2 18 Description and Operation SIMATIC TIWAY Host Adapter User Manual Read Adapter The Read Adapter Diagnostics command code retrieves the data for the Diagnostics internal status of the Host Adapter This data contains the entire network Command status and is defined similarly to the Read Secondary Diagnostics lt 07 gt Code 08 command code The command and response for this code are shown below Command lt 08 gt Response lt 08 gt lt gt lt bbbb gt lt cccc gt lt dddd gt eeee lt fff gt lt gggg gt lt hhhh gt lt gt 4jjj2 lt kkkk gt lt 4lll gt lt nmmm gt lt nnnn gt lt 0000 gt lt pppp gt lt qqqq gt lt rrr gt lt ssssssss gt where lt aaaa gt number of invalid commands from Host lt bbbb gt number of Send Information commands processed lt cccc gt number of Broadcast commands processed lt dddd gt number of Poll Secondary commands lt eeee gt number of Connect Secondary commands processed lt ffff gt number of Disconnect Secondary commands processed lt gggg gt number of Read Secondary Log commands processed lt hhhh gt number of Read
47. ristics 1 3 Related Publications SIMATIC TIWAY I Host Adapter User Manual Overview 1 1 1 1 Introduction The SIMATIC TIWAY Host Adapter is a device which allows a Host Computer to be connected to the TI WAY Communications Network This manual describes the installation and operation of the Host Adapter This chapter contains a brief description of the TI WAY I system and the Host Adapter s role within the system The remainder of the manual describes the Host Adapter s function Chapter 2 protocol Chapter 3 installation procedures Chapter 4 and diagnostic tests Chapter 5 1 2 Overview SIMATIC TIWAY I Host Adapter User Manual 1 2 TIMAY I System Characteristics TIWAY I isa Local Area Network LAN which is designed for industrial environments The TIWAY I network connects a series of Siemens Programmable Controllers With the network you can obtain modify or replace data stored in any of the following controllers e SIMATIC 520 530 e SIMATIC PM550 e SIMATIC 5TI Series 102 103 TIWAY I is designed to satisfy today s factory requirements for acquiring data and controlling manufacturing processes It is a significant enhancement of Siemens Local Line which has supported the PM550 and DS 990 computer products since 1991 The improvements to Siemens Local Line include extended geographic coverage increased data transmission rates for higher information throughput and a common interface
48. s condition after an excessive number of data bits are detected in the outgoing data stream The Local Line Interface card uses opto isolated line driver receivers to send or receive data to or from the CPU card A jabberstop circuit serves to disable communications from the CPU card tothe LLIF card when the transmission length of data frames becomes excessive The LLIF card receives its power from the CPU card interface along with the necessary bias voltages from the isolated power supply The power supply is a forward converter switching type which provides both 45 volts DC and 5 volts DC for operation The power supply protects against excess current and voltage and has an internal fuse to protect against abnormal component short circuits 2 6 Description and Operation SIMATIC TIWAY Host Adapter User Manual 2 3 Communications To make communications with a controller more user friendly there are different levels of communications between each of the network components as shown in Figure 2 2 Each level has its own format for communicating In effect each level builds upon the next lower level HOST COMMAND PRIMITIVES COMPUTER HOST SOFTWARE ADAPTER HOST COMPUTER Figure 2 2 Network Communication Levels First at the most basic level there is Task Code Communication between the NIM and the controller Each model of controller uses a different group of Task Codes The next level of communication is th
49. se damage to the equipment Do not install the adapter so that the air vents are covered 3 Host Adapter has been mounted remove the shield covering the three AC terminals ground neutral line With power off attach the AC power cable and then replace the shield See Figure 4 5 4 Connect the Local Line or modem interface cable to the TI WAY port 5 Connectthe Host interface cabletothe Host port 6 Power up the unit GROUND NEUTRAL LINE Figure 4 5 AC Power Terminals SIMATIC TIWAY Host Adapter User Manual Installation 413 4 4 Dipswitch Configuration and Function There are two banks of dipswitches for the H ost Adapter one for the H ost port and one for the Network port All switches are located behind the access cover on the front of the Host Adapter T he following sections define the switches and describe the effect they have upon the Host Adapter s operation Figure 4 6 illustrates the switch assignments for the H ost Adapter ADAPTER GOOD ADAPTER GOOD COMM ACTIVE COMM ACTIVE E LJ LLL LL p r C E RECEIVE RECEIVE TRANSMIT LL transmit TEST MODE resr mooe MODEL XXXX MODEL XXXX RESET TEST TIWAY I ONLINE OFFLINE ADAPTER FINAL TEST 1 BURN IN TEST 0 TEST 1VOPERATE 0 NRZI 1 NRZ 0 PARE FULL DUPLEX 1 HALF DUPLEX 0 SYNCHRONOUS 1 ASYNCHRONOUS 0 NETWORK BAUD RATE All DODD 0
50. signments Pin ISO RS 232 C unction AA Protective Ground CF Received Line Signal Detector Data Carrier Detect RLSD DCD DB Transmitter Signal Element Timing DD Receiver Signal Element Timing CD Data Terminal Ready DTR Electrical Characteristics Linedrivers and receivers which are compatible with RS 232 C and RS 423 specifications may be used with the Host Adapter 3 2 Host Adaper Protocol SIMATIC TIWAY Host Adapter User Manual Data Link Interface Data Link States The data link layer services provide secure message transfer over a physical link which may be error prone These services include link establishment and disconnection character and message framing and sequence control and error checking Ifthe Host Adapter is connected directly to the Host Computer without modems the Host Adapter functions as data terminal equipment DTE and the Host Computer functions as data communications equipment If modems are used both the Host Adapter and the Host Computer are DTE the modem is DCE on both input and output The Host Adapter can control the modem circuitry to provide two way alternate transmission on half or full duplex modems The following are descriptions of data link states and transitions Receive Wait State At initialization or when the Data Set Ready circuit is off the Host Adapter waits for the Data Set Ready circuit to come on No data transmission and reception is
51. ters left justified and zero filled 2 Interpret each block as a four digit hexadecimal number 3 Addtheresulting numbers 4 Takethetwo s complement of the sum to get the ECC As an example consider a message whose body is the ASCII string 1234ABC The total character count is found by adding together the number of characters in the message the 4 characters for the ECC the 4 characters for the character count and the 2 characters used to delimit the message Thus the total character count for a message containing 1234 is 7 4 4 2 17 11 Hex Appending this to the body results in 00111234ABC The ECC is given by Two s complement of 0011 1234 ABC0 41FB Error Code so that the entire message is 00111234ABC41F B SIMATIC TIWAY I Host Adapter User Manual Host Adapter Protocol 3 5 3 2 Summary Table 3 2 summarizes the message structure described above Table 3 2 Message Structure for Host Adapter Protocol Contents Number of eametee haracters Beginning Delimiter Beginning Delimiter Cono 500 Teint Sewn TTT REN Sa a 3 6 Host Adaper Protocol SIMATIC TIWAY I Host Adapter User Manual 4 1 4 2 4 3 4 4 45 4 6 4 7 4 8 Chapter 4 Installation Requirements Network Media Installation
52. ti me diagnostics have been completed successfully thus far The power on diagnostics check all major elements of the Adapter A failure of any component of the normal operation mode diagnostics causes the Adapter Good LED to blink Comm Active Comm Active LED is off when the Host Adapter is awaiting a host information frame The Adapter cannot receive a frame whilethe Comm Active light is on The LED is on if communication tothe Host Port is in progress On line TheOn line LED indicates that the Adapter is communicating with the network The LED lights at the onset of the on line network data transfer condition and goes out when the network data transmission is complete Receive Receive LED lights when any receive operation on either port is in progress It goes out when the receive operation ends Transmit The Transmit LED lights when a data transmission cycle is initiated on either port It goes out when the data transmission ends Test Test LED indicates that the User Test button has been pressed and the Adapter is in off line mode This LED remains illuminated until all the specified sub tests have been executed Once the sub tests have been completed the LED blinks with the remaining LEDs indicating the source of the failure SIMATIC TIWAY I Host Adapter User Manual 4 7 Host Adapter Power up Sequence After the Host Adapter is powered up all six LEDs will flash briefly then all but the Test LED will g
53. tion and Operation 2 3 Description continued 2 4 The Host Adapter protocol enables it to be used with any host computer see Chapter 3 Both synchronous and asynchronous communications are supported for the Host Port Baud rates on the Host Port range from 110 to 19 2K bps The Network Port on the Host Adapter has two communication options The first is a direct connection to the TIWAY network via a Local Line Interface Card This will connect directly with the TIWAY Local Line twisted pair network which will allow a network length of up to 25 000 feet and 1500 VRMS isolation The second option is an RS 232 C 423 synchronous asynchronous modem attachment The Network Port baud rate ranges from 110 to 115 2K bps It supports the High Level Data Link Control HDLC protocol with 16 bit cyclical redundancy check CRC CCITT error detection and will support up to 254 Secondaries on the TI WAY I network Description and Operation SIMATIC TIWAY Host Adapter User Manual 2 2 Host Adapter Block Diagram Analysis Figure 2 1 illustrates the basic structure of the Host Adapter HOST INTERFACE INTERFACE NETWORK SECONDARIES NIMs COMMAND HDLC PROCESSOR PROCESSOR ADAPTER Figure 2 1 Block Diagram of TIWAY I Host Adapter The major functional components of the Host Adapter are e CPU card e RS 232 C 423 card e Local Line card e Power Supply These four components will be descri
54. which permits communication with any of the controllers mentioned above TIWAY I is a hosted network a primary host computer controls up to 254 separate Secondaries providing a central collection point for information With appropriate host software a TI WAY I operator can program monitor and control any controller on his network from a single location SIMATIC TIWAY Host Adapter User Manual Overview 1 3 TIVAY I System Characteristics continued The importance of the new TI WAY Host Adapter is that it provides a communications link between the TIWAY network and any host computer Figure 1 1 is a block diagram of a TI WAY network with a Host Adapter HOST COMPUTER HOST ADAPTER TIWAY NETWORK FUTURE PRODUC Figure 1 1 TIWAY I System Block Diagram For detailed information on the TI WAY system you should refer to the SIMATIC TIWAY I System Manual PPX TIWAY 8101 1 4 Overview SIMATIC TIWAY Host Adapter User Manual 1 3 Related Publications The following publication is available from Siemens to give you a reference for further information on the operation of TIWAY I and its compatible products Manual No e TIWAY I Systems Manual PPX TIWAY 8101 You may also wish to refer to the following documents for more information regarding RS 232 C and RS 423 specifications 1 RS 232 C Interface Between Data Terminal Equipment and Data Communication Equipment Employing Serial Binary Data Int
55. y the Primitives provide greater flexibility than the Task Codes supported in a standard programming peripheral such as a Video Programming Unit VPU Some of the benefits of the Primitives are e reduction in the amount of host computer software needed to acquire data from the Secondaries e Theelimination of the different types of software required to uniquely handle different types of Secondaries e More efficient use of the available network bandwidth by increasing the amount of data that is available a single message For example with a single programming peripheral Task Code you might be able to access no more than 15 words of data With some Primitives up to 134 words can be accessed e reduction in total system loading This is possible because the Network Interface Modules can memorize data locations that are repeatedly accessed Certain Primitives enable a user to access a block of data previously defined and stored in the controller Description and Operation SIMATIC TIWAY Host Adapter User Manual Table 2 2 provides a list of TIWAY Primitives Table 2 2 TIVAY I Primitives Te o 0 OE Exception reporting E Werde D rive rat entrain Self Diagnostics r E EE FERE ae Locate instruction execution memory 40 Remove instruction execution memory 42 Insert data elements Define block up to 32 separate blocks
Download Pdf Manuals
Related Search
Related Contents
AFP-400 Control Panel 7707R_RETRO_GLAMOUR alta Manuel d`Utilisation Cargar Adora N vollintegriert 取扱説明書 - マックス P\N:110401102778 - PinSonne Elektronik L186DR and L216DR and L236DR user manual(20130513) Copyright © All rights reserved.
Failed to retrieve file