Home

SIMATIC TI505 S5 UNILINK Adapter Installation

image

Contents

1. Bit Address Remainder of YYYY 8 Value Conversion When converting the value for Packed Discretes the most significant bit MSB of the TI 500 T1 505 value corresponds to the least significant bit LSB of the S5 When converting the value for the Unpacked Discretes the byte on off state of the TI 500 TI505 corresponds to the bit specified in the S5 Contents of TI 500 T1505 Packed Outputs Contents of 55 Output Bytes 011 2 3 4 5 6 7 7 6 5 4 3 2 1 0 O First discrete bit accessed First discrete bit accessed J Contents of TI 500 TI 505 Unpacked Outputs 00 s 0 Only discrete bit accessed Reading and Reading the CP 525 A memory with the TT types 04 and 07 is supported Whiting Writing tothe CP 525 A memory with TT types 04 and 07 is not supported due to the functionality of the CP module itself S5 UniLink Adapter Installation and Operation Simatic 55 Memory Mapping A 7 A 7 Hag Bytes CP 525 M Type Description The S5 Flag Bytes memory as accessed through a CP module refers to memory that is organized by 255 contiguous bytes of memory The TT types that map to this type of S5 memory are Packed Control Register TT Type 08 and Unpacked Control Register TT Type 05
2. TI545 TI545 TI565 1003638 Figure 1 4 S5 UniLink Adapter in a TINAY Network 1 4 Product Overview 5 UniLink Adapter Installation and Operation Primitive Primitives are high level commands used by the TI WAY network to access Command Set data types in different secondary devices The TIWAY network primitives supported by the S5 UniLink Adapter area subse of the entire TI WAY primitive command set as represented in Figure 1 5 Refer to Appendix B for a description of the primitives supported Entire set of primitives supported by TIWAY S5 Adapter supported primitives 1003639 Figure 1 5 S5 Unilink Adapter Primitives S5 Memory Types Dueto significant differences in the internal memory structure and architecture between the TI 505 PLCs and the S5 PLCs only a subset of the memory types is supported as represented in Figure 1 6 Refer to Appendix A for a description of the memory types supported Memory Types TI505 PLC supported Memory by the S5 Types Adapter 1003640 Figure 1 6 S5 Unilink Adapter Memory Types 5 UniLink Adapter Installation and Operation Product Overview 1 5 21 2 2 2 3 24 Chapter 2 Installation and Set up QU AU iii ALAN ADANA ae tinea E inte oe ine a mee al 2 2 The S5 Unilink Adapterasa TIWAY Secondary 0 eee 2 2 Setting Up the S5 Unilink Adapter 0 02 cece ce
3. Address Mapping 7 TI500 TI505 Control Register M emory Address S5 Flag Bytes Memory Address CCCC hex Byte Address 7 Quotient of CCCC 8 Bit Address Remainder of CCCC 8 Value Conversion When converting the value for Packed Control Registers the most significant bit MSB of the TI 500 T 505 value corresponds to the least significant bit LSB of the S5 When converting the value for the Unpacked Control Registers the byte on off state of the TI 500 T1505 corresponds to the bit specified in the S5 Contents of TI500 TI 505 Packed Control Registers Contents of S5 Flag Bytes 0 1 2 3 4 5 6 7 7 6 5 4 3 2 1 0 L First register bit accessed First flag bit accessed J Contents of TI500 TI 505 Unpacked Control Registers 00 s 0 Only register bit accessed Reading and Reading the CP 525 M memory with the TT types 05 and 08 is supported Whiting Writing tothe CP 525 M memory with TT types 05 and 08 is not supported due to the functionality of the CP module itself A 8 Simatic 55 Memory Mapping 5 UniLink Adapter Installation and Operation A 8 Timer CP 525 T Type Desc ription Address Mapping Value Conversion Reading and Whiting The S5 Timer memory as accessed through a CP module refers to memory that is organized by 256 contiguous words of memory Because the accessible timer memory is different for different CPUs the 55 PIM assumes no knowledge of the accessible memory ranges for timer
4. The S5 Counter memory as accessed through a CP module refers to memory that is organized by 256 contiguous words of memory Because the accessible Counter memory is different for different CPUs the 55 PIM assumes no knowledge of the accessibl e memory ranges for Counter memory The TT type that maps to this type of 55 memory is Counter Current TT Type 16 The Timer Counter Current TT Type OF accesses S5 Timer memory only thus no access to 5 Counter memory is provided through TT Type OF NOTE If a TIWAY request is out of range the exception returned will be of the form 80DD TI500 TI 505 Counter Memory Address S5 Counter Memory Address XXXX hex Word Address XXXX hex y S5 Word Address XXXX hex in Counter Z memory T1500 T1505 XXXX hex in Counter Current memory When converting the value for S5 Counters the S5 counter current value is copied directly and the remaining bits are set to zero Contents of 55 Counter Memory 12 11 10 8 7 6 3 9 Ng Set to Zero N hd 14 13 12 11 10 9 8 7 6 3 2 Contents of TI 500 T1 505 Counter Memory Reading the CP 525 Z memory with the TT type 16 is supported Writing to the CP 525 Z memory with TT type 16 is not supported due to the fundionalit
5. 5 10 20 50 100 Cable Unit Loading Number of Stations 1003648 Figure 3 3 Numberof Local Line Secondaries vs Cable Distance Local Line Data Signals are coupled between the transmission line and the transmit receive Transmission circuits to provide a level of rejection to normal AC power frequency Parameters interference and other noise sources Information is transferred asynchronously on the TI WAY I twisted pair media at user selectable data rates of 110 150 300 600 1200 2400 4800 9600 19 2K 38 4K 57 6K and 115 2K bits per second in half duplex mode and NRZI encoding NOTE TheLocal Lineinterface does not support synchronous operation or NRZ encoding 3 4 TIWAY Network Communication 5 UniLink Adapter Installation and Operation 3 2 Modem Interface Ports RS 232 C Modem Interface Ports Modem Port Pin Assignments The modem interface is a standard Type E DTE configuration as defined in the EIA RS 232 C standard that uses EI A RS 423 drivers This interface uses a female 25 pin D type connector on both Ports 1 and 2 as shown in Figure 3 4 RS 232 S5 Interface Port Power Connections Dual RS 232 modem interface ports A000654 Figure 3 4 RS 232 RS 423 Modem Interface Ports These two ports support redundant media transmission when connected to redundant modem networks T he pin assignments shown in Table 3
6. Company Name Company Address Manual Name S5 UniLink Adapter Installation and Operation Edition Second Assembly No 2587871 0065 Date 04 94 Order Number PPX TIWAY 8126 2 FOLD BUSINESS REPLY MAIL FIRSTCLASS PERMITNO 3 JOHNSON CITY TN POSTAGE WILL BE PAID BY ADDRESSEE SIEMENS INDUSTRIAL AUTOMATION INC 3000 BILL GARLAND RD P O BOX 1255 JOHNSON CITY TN 37605 1255 ATTN Technical Communications M S 3519 FOLD NO POSIAGE NEC ESSARY IF MAILED IN THE UNITED STATES SIMATIC is a trademark of Siemens AG TIWAY I 5TI PM550 and UniLink are trademarks of Siemens Industrial Automation Inc Smartmodem is a trademark of Hayes Microcomputer Products Inc T1500 TI505 TI545 and TI565 are trademarks of Texas Instruments Incorporated Belden is a registered trademark of Cooper Industries
7. P Type a ee n Extended Analog I O Bytes CP 525 Q Type Absolute Address CP 525 S Type 2 2 System Address CP 525 B Type 1 cece cece n nnn Appendix B TIWAY I Primitives Supported by S5 PIM OVEWIEW uua estado da Rub dd add Pina don Gb ica dd donkal UB He peda E RR E RE Excepto ii osea ke RR UR Rei due Bade da KL PUDE a wine oe teva ek de PU MEME IET cru d cat a ti e A da od Configuration sick re a A xd e a ANG Primitive Format Configuration e Read Baka a a PAGA PA idad da Read Random Block 2 2 02 RR ns Witte BIO sii ee eun tee e ae rb es ad a ors ed hd d dd Write Random Block ssssee cc cee ee een ha Define BlOGCK icri dtt b ertet eh eed redd e ce re RU Dd svn a Gather BloCK serisini adbuc oma e ada RR Ree a Edo oc Bae pow PD a Ge RAE Write and Gather Block sssseee RR rn Contents v Appendix C S5 Adapter CP 525 Enor Codes C 1 S5 Unilink Adapter Primitive Exceptions eseeeee eee nnn n n nnn Primitive Exceptions hh hh C2 CPBISENOECOUGSu siii saxa AKA A AN ACLARAR RUN URN one Description of CP 525 EmorCodes issssssssssssssssseee ee Example C P525 Eror Code sic ABA ANA ar ir enh EIE EE T PI AA vi Contents List of Figures 1 1 1 2 13 1 4 1 5 1 6 2 1 2 2 2 3 2 4 2 5 2 6 2 7 3 1 3 2 3 3 3 4 3 5 3 6 A 1 A 2 S5 Unilink Adapter Interface A e nnn S5 UniLink Adapter S5 P
8. ccc eee 3 12 For Additional Information 0 0 ccc ccc cece eee aa 3 12 S5 UniLink Adapter Installation and Operation TIWAY Network Communication 3 1 3 1 Local Line Interface Ports Overview Local Line Interface Ports TheS5 UniLink Adapter is available in four models offering a choice of two physical interfaces for network communications Local Line or RS 232 C interfaces in different voltage versions Table 3 1 lists the model numbers the type of interface and the supply voltage for each model Table 3 1 S5 UniLink Adapter Models Model Number Network Port Supply Voltage PTI 505 7115 Dual Local Line 120 VAC PTI 505 7116 Dual RS 232C 423 120 VAC PTI 505 7117 Dual Local Line 240 VAC PTI 505 7118 Dual RS 232C 423 240 VAC More information on the media types can be found in the TI WAY Systems Manual and in the UNILINK Adapter Installation and Operation Manual The Local Line interface to TI WAY is a female 9 pin D connector Two ports are provided see Figure 3 1 for the following purposes e Port Lis the primary network port e Port2 provides support for redundant media transmission when Ports 1 and 2 are connected to a redundant twisted pair cable network RS 232 S5 Interface Port Power Connections AC AC NEUT CND LINE Dual Local Line media ports A000654 Figure 3 1 Local Line Interface Ports 3 2 TWAY I Network C
9. type A 4 CPU number 2 6 2 7 Dipswitches dipswitch 1 ain dipswitch 2 settings 2 7 location 2 6 purpose 2 6 Index Error codes CP 525 C 3 Mix F Floating point conversion S5 value A 3 TI500 TI 505 value A 3 H HDLC protocol 3 8 l nstallation 2 2 2 8 Installing the PIM 2 8 Intelligent modems 3 6 Interface local line 3 2 S5 interface port 3 9 L Local area network Network Interface M an les 14 TIWAY network 1 Local Line interface bus structu re 3 3 data transmission parameters 3 4 pin assignments ports primary network 22 redundant media Index 1 M Manuals ix Memory quick reference chart 4 2 types A 2 M emory types Seealso CP 525 memory types absolute address A 11 analog I O bytes A 11 counter A 10 data block A 4 extended analog I O b es A 11 extended data Block ACS flag bytes A 8 input bytes A 6 output bytes A 7 S5 supported types system address ti mer A 9 Modem interface ports connector type 3 5 pin assignments 3 5 specifications 3 6 Non intelligent modems 3 6 P Personality Interface Module description installing 2 8 slot location T 3 PIM SeePersonality Interface Module Pin assignments CP 525 connector 2 5 local line 3 3 modem R5 232 3 5 S5 Adapter connector 2 5 Primitive command set 1 5 Index
10. 3 8 TIWAY Network Communication 5 UniLink Adapter Installation and Operation 3 5 S5 Interface Port Communic ations Overview S5 Interface Communic ations RK 512 Computer Link with 3964R Procedure In automation engineering data must often be exchanged between programmable controllers or between a programmable controller and a central process computer The data exchange can be implemented using the communications processor CP 525 with its interpreter RK 512 and the procedure 3964R This means that the programmable controllers of the S5 U family 115U 135U 155U can be hooked up with the S5 UniLink Adapter through one of these CP modules Each 55 UniLink Adapter with an S5 PIM is connected to a CP 525 Communications Processor through the S5 interface port with an RS 232 interface The S5 Adapter uses the RK 512 protocol with the 3964R transfer procedure to establish communications with the CP 525 module Refer to Chapter 2 for a brief description of the steps necessary to set up the CP 525 Communications Processor For moreinformation consult the CP 525 Communications Processor manuals Port 3 on the S5 UniLink Adapter assumes communications with the attached CP 525 module using the 3964R transfer procedure Sections 3 6 and 3 7 discuss the steps involved in transmitting and receiving using the 3964R procedure 5 UniLink Adapter Installation and Operation TIWAY Network Communication 3 9 3 6 Transmitting with the 3964R
11. 3 are supported All other pins should be left vacant to prevent damage which may be caused by nonstandard pin usage Table 3 3 RS 232 RS 423 D Connector Pin Assignments Finno cert creat Deero a as a ReweteseWTS Clear to Send CTS 108 2 Data Terminal Ready DTR EA Transmitter Signal Element Timing S5 UniLink Adapter Installation and Operation TIWAY Network Communication 3 5 Modem Interface Ports continued Modem Specific ations Runaway Tansmitter Recovery Theline drivers and receivers meet the requirements for the RS 423 and RS 232 C standards The modem interface is user selected for either asynchronous or synchronous operation at data rates of 110 150 300 600 1200 2400 4800 9600 19 2K 38 4K 57 6K and 115 2K bits per second For communication applications longer than the 25 000 feet limit of the Local Lineinterface you need to use modems The modems used must be non intelligent and have data transparency Non intelligent refers to the class of modems that do not have an internal command set Modems such as the Hayes Smartmodem and compatibles do have an internal command set and should not be used Generally modems that meet the Bell 103 202 and 208 specifications will work but the Bell 212A dass modems will not In addition to being non intelligent the modems must support data transparency which means no start bits no stop bits and no parity This is necessary because TI WAY uses
12. CP 524 module 1 2 Product Overview 5 UniLink Adapter Installation and Operation A000653 Figure 1 2 S5 Unilink Adapter installed in res o 2 o c o lt x S gt E A000653a Figure 1 3 S5 Personality Interface Module PIM 1 3 Product Overview 5 UniLink Adapter Installation and Operation 1 2 TINAY System Characteristics TINAY Network Adding the S5 UniLink Adapterto the TINAY Network TIWAY is a bus structure Local Area Network LAN designed for industrial environments The TI WAY network connects a series of PLCs and other devices to one or more host computers SIMATIC TI500 SIMATIC TI505 controllers are connected to a TI WAY network through Network Interface Modules NIMs The PM550 PLC can be connected with a Computer Interface Module CI M but it limits the configuration choices The UniLink Adapter is a TIWAY interface device that allows other devices such as the following to be connected to a TI WAY network e Robots e Computer numerical controlled machines e Non TI500 TI 505 programmable controllers e Intelligent instruments e Computer equipment TheS5 UniLink Adapter provides a communication link between the TIWAY network and the S5 family of PLCs Figure 1 4 shows an example of a TIWAY network which includes the S5 Adapter Host Computer VO NN Y Y NIM S5 S5 NIM NIM Adapter Adapter SIMATIC V V SIMATIC SIMATIC
13. GG Symbol Value Definition HH Attached device operational status mode 00 Operational and performing instruction data type and loop execution RUN 80 Not operational due to a fatal error condition EE Attached device auxiliary power source status 01 Auxiliary power source status not available FF NIM operational status 00 Secondary adapter operational Ix Channel B machine port is not functional GG Secondary Local Remote Status t oliba Configuration Primitive 03 allows the Primary to identify the types of devices that exist on the network Request LLLL 03 Response LLLL 03 HH DDDD EEEE FFFF GGGG lll JJJJ KKKKKKKK PPPPPPPPPPPP Symbol Value Definition pH i Operational status see Status DDDD 0100 UniLink Secondary Adapter Lp oo eating vipat memory size JJJ 0000 Global input output memory size PPPPPPPPPPPP 02494067 0062 Software configuration control number 48 bits B 4 TIWAY I Primitives Supported by S5 PIM S5 UniLink Adapter Installation and Operation Primitive Format Configuration Read Block Primitive 04 is the format primitive that allows you to determine the maximum length of the primitive acceptable to the Network Interface Module The buffer length is returned in number of bytes Request LLLL 04 Response LLLL 04 NNNN MM EE FF GG BB BB Symbol Value Definition O NNNN 010E Primitive field length supported Num
14. primitives Refer tothe TI WAY Primitive Compatibility Specification for specific details B 2 TIWAY Primitives Supported by S5 PIM S5 UniLink Adapter Installation and Operation Native NOTE The 55 PIM checks all requests based on the maximum memory ranges allowed by the CP module and assumes no knowledge of the actual memory ranges in the CPU Thus if a request is inside the range of the CP module but outside the range of the CPU the exception returned is 80DD The Native primitive allows an embedded CP 525 command DDDD to be transferred to the attached device The 55 PIM will not perform any conversion of the embedded command or corresponding response The embedded command has a maximum length of 128 data information bytes the maximum length the CP module supports Do not request more information than 128 bytes can hold because follow on messages are not supported and the information will be lost Request LLLL 01 DDDD Response LLLL 01 HH DDDD Sme bemgo O OU Operational status see Status DDDD Defined by the type of device being accessed 5 UniLink Adapter Installation and Operation TIWAY Primitives Supported by S5 PIM B 3 Status Primitive 02 is the Machine Status primitive It reports the current operational state of the attached device in common format for all types of attached devices Listed below arethe response field values supported by the S5 PIM Request LLLL 02 Response LLLL 02 HH EE FF
15. the bit oriented HDLC protocol to transfer information between devices Most short haul modems are non intelligent and provide data transparency You also have a choice of using either NRZ or NRZI encoding with the modem interface NRZI is recommended because of its self clocking properties Please refer to the appropriate TI WAY documentation for specific details regarding the use of modems The S5 UniLink Adapter is equipped with a timeout or runaway transmitter recovery mechanism which ensures that the transmitter does not remain turned on longer that twicethe time required to send the maximum length message If the transmission exceeds this limit the Adapter will perform a hardware reset discarding all macro buffers and any outstanding directives NOTE Thehardware reset restores the UniLink Adapter tothe initialized or power up state At this point the Adapter will have to be reconfigured and the network restored to its operating state 3 6 TIWAY Network Communication 5 UniLink Adapter Installation and Operation 3 3 Redundant Media Transmission Altemate Channel Most TI WAY conformant devices support a redundant media scheme Port which provides active access to a device over one of two independent media channels Port 2 on both Local Line and RS 232 models of the 55 UniLink Adapter provides support for redundant media transmission If access to a device fails on one channel communications can be automatically or manually s
16. 2 Primitive commands configuration B 4 define block B 7 exception B 2 gather block B 8 native B 3 primitive format configuration B 5 read block B 5 read random block B 6 status B 4 write and gather bl ock B 9 write block write random block B 7 Primitive exceptions C 2 Programmable controllers 1 2 1 4 Programming CP 525 module 2 3 Protocol Redundant media alternate channel port 3 7 transmission 3 7 Runaway transmitter recovery 3 6 S S5 interface pin assi gnments 2 5 ports 2 4 2 6 S5 UniLink Adapter manens description of 1 2 models 3 2 setting Up 2 2 S5 supported primitives 1 5 S5 PLCs 1 2 T protocol 3 8 Technical assistance X U TIWAY network UniLink models x 3 2 connecting S5 PLCs 1 4 local area network 1 4 Network Interface Modules 1 4 V parameters 2 7 port 2 6 Voltage supply x 3 2 Index 3 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 Your Name Title Telephone Number
17. Mapping Memory Type Overview seeseeenn EERE eee eee eee eee A 2 OVENIEW aa C T ETTIM A 2 Quick Reference Memory Chart sn A 2 Hoating Point Conversion eeeseeeeen nnn eee A 3 DescrptiOD oes ee ee a tea LA MEOS ere RT er e D bx E A 3 Data Block CP 525 D Type seseeeese eee A 4 DESCAPION aia dra ra A AR A AAA AAA AAA A 4 Addres Mapping uet ete e lebe dn cd iei aA Ba iodi ia d e A 4 Value Converson 22G ee be be ee KG Eee eee eee eee kx EAE A 4 Floating Point Suppolt a ade ad A 4 Reading and Writing cc cece A 4 Extended Data Block CP 525 X Type 2 a nanana A 5 ptem mm A 5 AddressMapplrg z dete ertet ete ie tee beh m C re ee Eis Aa Ge eee Adele ee A 5 Value Conversion 6 eere arr nr nnn n A 5 Floating Point Suppolt 4 2g NGA rr dive aap PARK NOE RG initial A 5 Reading and Writing mma A 5 Input Bytes CP 525 E Type ccc cece cece e cece eee eee huh A 6 presul O T A 6 Address Mapping za nhe pede dere a dont etre dedo DH bos DAA e beide A 6 Value Conversion aa ee e RR xir Rie I er ace BR ERA EE TES A 6 Reading and Writing oocccccccccccncnnn eee A 6 Output Bytes CP 525 A Type 222 aaaaaaa nnn nnn nnnm A 7 Descrnption isis e ERE EE GU ERE LAE P IEEE DER be ced eM Ea ee A4 A 7 AddressMapping ccccccccccc I hh hh A 7 Valle Conversion 4 si
18. ON Oa oO A UO N 5 000000000000 m o O O O O OIO OO OO O N al O 1003642 Figure 2 3 Pin Assignments for Connecting S5 Adapterto CP 525 5 UniLink Adapter Installation and Operation Installation and Set up 2 5 2 3 Setting the Dipswitc hes Dipswitc h Loc ation Dipswitch 1 Dipswitch 2 2 6 Installation and Set up Two banks of dipswitches are provided on the S5 UniLink CPU board accessible by opening the cover plate on the face of the unit see Figure 2 4 S5 PIM Dipswitch 1 Dipswitch 2 A000653a 1003643 Figure 2 4 S5 UniLink Adapter Dipswitc h Location Dipswitch 1 is used to configure the S5 Interface Port and the TI WAY network port as shown in Figure 2 5 The data rate of the S5 UniLink Adapter interface port can be set for either 9600 or 19 200 baud usi ng switch 3 on Dipswitch 1 see Figure 2 5 The remaining communications parameters are fixed as follows 8 data bits even parity and 1 stop bit Be sure to program the attached CP 525 module to accept the S5 UniL ink Adapter s communication parameters NOTE Set switches 1 and 2 to correspond to the CPU number with which you want the S5 UniLink Adapter to communicate Refer to the CP 525 manuals for more information about the CPU number Dipswitch 2 is used primarily to configure the secondary address of the S5 UniLink Adapter see Figure 2 6 Refer to your UNILINK Adapter Installation and Operation Manual for dipswitch settin
19. Proc edure Link Esta blishment Transmission Acknowledgment NOTE The term procedure refers to the device initiating the transfer and the term partner refers to the receiving device To establish the link the procedure sends the control character STX If the partner replies within the time allowed of 2000 ms the procedure starts the transmission If the partner answers with NAK any other character except DLE or if thereis a timeout then the attempt to establish a link has failed After a total of six unsuccessful attempts the procedure gives up signals there is an error establishing the link and sends the character NAK tothe partner If the link is successfully established the information data to be sent to the partner is immediately sent to the partner at the selected data rate The partner monitors the time between the characters as it receives them The time between two characters must not exceed the character delay time of 220 ms Whilethe information data is being transmitted the partner sends the character NAK the procedure breaks off and repeats it as previously described If any other character is received the procedure waits for the character delay time 220 ms to elapse and then sends NAK toreset the partner Then the procedure begins the transmission again with the link establishment STX Each DLE character sent is found in the transmission as two DLE characters DLE doubling i e the data 10H is sent twi
20. SIEMENS efesofomasyon com SIMATIC TI505 S5 UNILINK Adapter Installation and Operation User Manual efesotomasyon com Order Number PPX TIWAY 8126 2 Manual Assembly Number 2587871 0065 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 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 Technical data is subject to change We check the contents of every manual for accuracy at the time it is approved for printing however there may be undetected errors Any errors found will be corrected in subsequent editions Any suggestions for improvement are welcomed MANUAL PUBLICATION HISTORY SMATIC TI505 S5 UniLink Ada pter Installation and Operation Order Manual Number PPX 505 8116 2 Refer to this history in all correspondence and or discussion about this manual Event Date Desc ription Original Issue 09 92 Original Issue 2800120 0001 Second Issue 04 94 Sec
21. abel on the S5 PIM it is not large enough to allow you to insert or remove the PIM while the faceplate is closed The door and case are designed to ground you when you touch them discharging static electricity before you handle any of the Adapter s internal components As with any static sensitive devices use proper handling procedures to avoid exposing the module to sources of electrostatic discharges Keep the Adapter door closed securely when access to the PIM and dipswitches is not required Open the hinged faceplate by unscrewing the knob and lifting up you now have access to the module socket for installing or removing the PIM as well as the di pswitches a reset switch and six LEDs see Figure 2 7 To avoid possible damage to the PIM disconnect AC power to the S5 UniLink Adapter before you install or remove the PIM The S5 PIM fits in the socket in one direction only label side up Insert the module and press firmly to ensure that the contacts are securely connected Refer to your UNILINK Adapter Installation and Operation Manual for proper power up and diagnostictesting procedures A000653a 1003646 Figure 2 7 Installing the S5 PIM Installation and Set up 5 UniLink Adapter Installation and Operation 3 1 3 2 3 3 3 4 3 5 3 6 3 7 HU Chapter 3 TIWAY Network Communication Local Line Interface Ports ccccn cece eee AA AA AA AA AA 3 2 ANA AA PA 3 2 Local Line Interface POTES suse it ek d
22. any contiguous data element locations The blocks are specified through a 32 bit mask EEEEEEEE The Write occurs first followed by the Gather Refer to Gather Block for the bit masking information and other related items concerning the operation of this primitive Request LLLL 52 EEEEEEEE TT AAAA DD DD Symbol EEEEEEEE Bit mask See above Data element type AAAA Data element location Ha Response LLLL 52 HH EEEEEEEE DD DD Symbol HH Operational status see Status EEEEEEEE Bit mask See above C S5 UniLink Adapter Installation and Operation TIWAY I Primitives Supported by 55 PIM B 9 C 1 C 2 Appendix C S5 Ada pter CP 525 Eror Codes S5 Unilink Adapter Primitive Exceptions 22222222ee eee C 2 Pnmitive ExceDtiohS 3 a a ha Hue er edu eemper esce io s da ue Re ales C 2 CP 525 Error Codes saa AA AA C 3 Description of CP 525 Error Codes 222 eee C 3 Example CP 525 Error Code 2 22 22 C 3 CEST TES Tela com 5 UniLink Adapter Installation and Operation S5 Adapter CP 525 Eror Codes C 1 C1 S5 UniLink Adapter Primitive Exceptions Primitive Exceptions During operation two possible error codes could be returned by the S5 UniLink Adapter primitive exceptions and CP 525 errors Theerror byte of a primitive exception contains one of the following Request None Response LLLL 00 PP DDDD Table C 1 Primitive Exception Enor Byte Symbol Value Demon O Requ
23. aracter received the procedure waits for the next character to arrive within the character delay time 220 ms If thereis a character timeout the NAK character is sent to the partner and a repetition is expected If after a total of six unsuccessful attempts or if the repetition by the partner does not take place within the waiting time of 4 seconds the procedure breaks off reception and signals an error If the procedure recognizes the character sequence DLE ETX and BCC it stops receiving It compares the received block check character BCC with longitudinal parity If the block check character is correct and no other errors have occurred during reception the procedure sends a DLE If the BCC does not correspond NAK is sent to the partner Then a repetition is expected If the block can not be received without errors following six attempts or if the repetition by the partner does not take place within the waiting time of 4 seconds the procedure breaks off and signals an error If transmission errors occurs during the reception characters lost frame error parity error reception is continued until thelink is terminated and then NAK is sent tothe partner Then a repetition is expected as previously described If a device receives a send request STX character from its partner and does not answer within the acknowledgment delay time 2000 ms with DLE or NAK but also sends the character STX thereis an initialization conflict Both de
24. be of the form 80DD TI500 TI 505 V M emory Address S5 Data Block Memory MS Byte XX LS Byte YY 15 8 7 0 p NG 0 256 0 256 Block Address XX Accesses S5 Accesses S5 Block address Word address Word Address YY 256 words W 256 blocks maximum maximum 55 DB XX hex DW YY hex in Data Block D memory TI500 T1505 XXYY hex in variable V memory The value conversion method is identical value meaning the binary valuein the S5 memory location corresponds exactly to the value in the TI 500 T 505 memory location Contents of TI 500 T1 505 V M emory Contents of 55 D Memory 15 14 3 2 1 0 15 14 3 2 1 0 215 214 23 22 21 20 215 214 23 22 21 20 TheT1500 T1 505 IEEE floating point TT Type FO or V V dot is also supported for the 55 Data Block Memory The address mapping method remains the same with the implied length of 32 bits The floating point value conversion performed by the S5 PIM is described in Section A 1 Reading the CP 525 D memory with the TT types 01 and FO is supported Writing to the CP 525 D memory with TT types 01 and FO is also supported A 4 Simatic S5 Memory Mapping S5 UniLink Adapter Installation and Operation A 4 Extended Data Block CP 525 X Type Description Address Mapping Value Conversion Hoating Point Support Reading and Whi
25. ber of Data Acquisition Blocks supported VEE 200 Number of Data Acquisition Records supported FF 00 Number of Data Type Definitions supported Floating point formats supported The BB field represents the primitives supported The first byte represents primitives 0 7 the second byte represents primitives 8 15 and so on A value of 1 means the corresponding primitive is supported and a value of 0 means it is not Primitive 20 is a command to read a single contiguous block of data in the Secondary device Read Block will access contiguous data element locations from a given data element location Request LLLL 20 TT NNNN AAAA symbol Dion OOOO O Data element type NNNN Number of locations AAAA Data element location Response LLLL 20 HH DD DD Sme bamga O OU Operational status see Status op Uxs 5 UniLink Adapter Installation and Operation TIWAY Primitives Supported by S5 PIM B 5 Read Random Block White Block Primitive 21 is a command to read several random blocks of contiguous memory Request LLLL 21 TT NNNN AAAA repeated sma Kag Data element type NNNN Number of locations AAAA Data element location Response LLLL 21 HH XX BB DD DD Ei sam Operational status see Status Number of blocks not processed due to error Block numbers not processed due to error DD Data requeste
26. ber of locations AAAA Data element location Response LLLL 50 HH Sma Benon OU Operational status see Status S5 UniLink Adapter Installation and Operation TIWAY Primitives Supported by S5 PIM B 7 Gather Block The Gather Block primitive specifies which blocks as defined by the Define Block primitive will be read The blocks are specified through a 32 bit mask EEEEEEEE Each bit position in the bit mask corresponds to a block that was defined with primitive 50 Define Block A bit set to 1 indicates that the block is to be returned A bit set to 0 means that the block will not be returned You should not request more data than can be returned in a maximum length primitive frame The response will return the data associated with the requested blocks beginning with the lowest block number and increasing to the highest block number A data block separator is not provided in the response Request LLLL 51 EEEEEEEE where EEEEEEEE is 32 bits defined as MSB LSB Block 1 Block 20 Response LLLL 51 HH EEEEEEEE DD DD Symbol Operational status see Status EEEEEEEE Bit mask See above CI B 8 TIWAY Primitives Supported by S5 PIM S5 UniLink Adapter Installation and Operation White and Gather The Write and Gather Block primitive specifies which blocks as defined Block with Define Block primitive 50 will be read It also allows a user to replace
27. cated in an S5 PLC through a serial binary data interface using ElA RS 232 C control data and timing signals Basic Cable Connect the S5 PLC and the S5 UniLink Adapter as shown in Figure 2 2 Connections TIWAYI SIMATIC S5 PLC 115U 135U 155U Ps Port 1 Port 3 RS 232 Interface 1 port UniLink 1003641 Figure 2 2 S5 Unilink Adapter Interface e Plug the RS 232 cable into Port 3 of the 55 UniLink Adapter and the Interface 1 port of the CP 525 module e Connect the appropriate TI WAY lineinto the TI WAY port s on the S5 UniLink Adapter Port 3on the S5 UniLink Adapter is a 25 pin female D connector wired as Data Terminal Equipment DTE for connection to the CP 525 Communications Processor interface port also DTE 2 4 Installation and Set up 5 UniLink Adapter Installation and Operation S5 Interface Pin The pin assignments for the S5 interface are shown in Figure 2 3 Any pins Assignments not listed in the diagram should remain unused in order to prevent damage to the communications processor or the S5 UniLink Adapter NOTE Do not exceed 50 feet in length for the communications cable CP 525 Communications Processor DTE p IE S5 UniLink Adapter DTE PN E 140 20 TD 30 RD A 40 50 60 70 N o 80 90 OQ OF OO Oy OO OO n al o ky o
28. ce After sending the information data the procedure adds the characters DLE ETX and BCC as end identifier and waits for an acknowledgment If the partner sends the character DLE within the time allowed 2000 ms the information data was received without errors If the partner replies with any other character except DLE or thereis a timeout the procedure begins the link establishment again with STX After a total of six unsuccessful attempts to send the information data the procedure breaks off the attempt signals an error and sends NAK tothe partner 3 10 TIWAY I Network Communication 5 UniLink Adapter Installation and Operation 3 7 Receiving with the 3964R Proc edure Link Establishment Receiving Initialization Conflict After a successful transmission of the data information has been made to the partner the procedure enters the idle state awaiting the link to be established by the partner If the procedure receives any character except STX while in the idle state it waits until the character delay time 220 ms has elapsed and then sends a NAK character Then a repetition is expected If after a total of six unsuccessful attempts or if the repetition by the partner does not take place within the waiting time of 4 seconds the procedure breaks off reception and signals an error If the procedure receives the character STX it answers with DLE The procedure now expects a data reception from the partner After each ch
29. d This primitive replaces contiguous data element locations from a given data element location with the data specified in the request Request LLLL 30 TT AAAA DD DD Symbol ion Data element type AAAA Data element location ana Response LLLL 30 HH EII Operational status see Status B 6 TIWAY Primitives Supported by S5 PIM S5 UniLink Adapter Installation and Operation Wite Random Block Define Block This primitive replaces the specified blocks of data element locations with the data included in the request Request LLLL 31 TT NNNN AAAA DD DD repeated Symb et OO O O O O Data element type NNNN Number of locations AAAA Data element location CINC Response LLLL 31 HH XX BB BB Symbol Dein Operational status see Status Number of block writes not completed due to error Block numbers not processed due to error The Define Block primitive specifies up to 32 random blocks of data elements The blocks are referenced by number ranging from 1 to 20 hex A block once defined can be redefined to a different data element type and location by simply specifying that block number and then providing the required information for a new block A block can berestored tothe initial state of undefined by setting the NNNN field to zero Request LLLL 50 CC TT NNNN AAAA repeated O Benito O Block number 1 20 Hex Data element type NNNN Num
30. e e o IR RR RT 3 2 LocalLine Pin Assignments ssssssssssss eee hh 3 3 Local Line BUS Structure 2 212 ci noe nee dec E ae a c e e e oi 3 3 Local Line Data Transmission Parameters 2 RR 3 4 Modem Interface POMS 0cccccccccccccc AA AA AA AA AA hu 3 5 RS 232 C Modem Interface Ports 1 0 ccc ccc RR re 3 5 Modem Port Pin Assignments hh 3 5 Modem Specifications hh 3 6 Runaway Transmitter Recovery cece eee 3 6 Redundant Media Transmission ccccccccccccc hh 3 7 Altemate Channel Port xinaleelzi edle RNGA NGA WG we coed EX 6h UKG haaha 3 7 TINAY I HDLC Network Protocol ccccccccccccccc 3 8 S5 Interface Port Communications ccccccccccccc n 3 9 OVEWIEW xu have ex V RERxLWWRECEERERCe RS eI DRESS AE Aix KA A Y Y DERE xg EE 3 9 S5 Interface Communications lesser ns 3 9 RK 512 Computer Link with 3964R Procedure 2222 2a 3 9 Transmitting with the 3964R Procedure 2 0 a nana 3 10 Link Esta DIISAMENE sc occ viele de rede 9E IRE r4 lx LE be Cad anand ee Mak 3 10 NGA se e a e APA 3 10 Acknowledgment 242 44 ehh hh 3 10 Receiving with the 3964R Procedure ssssssnennnnnnnnnnnnnnunnnnnnnnnnnnnn 3 11 Link Establishment sees aa a oaa ence nese eee eben een us 3 11 RECEIVING yesh 3 11 Inmialization COnfliCE a NG cede cedere rok ce REO a Mba waded dal dade wand d REOR 3 11 Longitudinal Parity BCC Comparison
31. e ob ocean Ve d Floating Point Support Reading and Writing aiiiar eiai aai aa h haaa a AE a Ea a E E Contents A 5 A 6 A 7 A 8 A 9 A 10 Input Bytes CP 525 F Type BPI e enr et eain Tee tete karte e ETE Gas A Ur Bet qr AddressMapplng csi BIAG D par Eutr our der LAB RD Pale e RATE Re das Valle CONVERSION unb ceteras ba Plon e boda deo ort oe de docile dod t Reading and Writing hmm Output Bytes CP525 A Type 00 cece cece eee III D sSc a AddressMapplrig ierit ed bete ERE khi iio Value Conversion spiser ien sace dads sdb imc doe gor Cave URP UC RR AD RU t Reading and Writing Hag Bytes CP525 M Type coocccccccoconanannnnnnnnnnnnnnrrroranananananananos DESEMDUON AA AA AA AA lt A dante idee di Address Mapping 0 cece ccc tees Valle Conversion ve iis gina dead vo eiie A Dr Ro dub dU og Reading and Writing Timer CP 525 T Type ccccccc cece cece cee eee eee eee Pr teeilm R MUS Address MAPPING saka a mesedente tede n reor Go HR eH ae sie Value Conversion ssssssusssseesssesses eer rara n n ns Reading and Writing Counter CP525 Z pe eii DESEMDHON cuin tet Ee e e CR edu ee ea Rie ii Address Mapping miam dedere dresden ent prt dae A RU Re dr arc Valle C OnVelsio n udi etch o one bon dinh aedi oe Re c M bae A Reading and Writing S5 Data Types Not Supported by S5 PIM eeeeeeen nnn n nn nnn Analog I O Bytes CP 525
32. e supplied 0002 Data element location specified by TT is out of range see Note 0003 Primitive has excess data unit bytes 0004 Primitive has insufficient data unit bytes 0005 The number of information bytes received does not match the number of bytes specified in the field length 000A Theattached CP 525 module fails to respond 000E Primitive not valid for the specified data type TT 0010 The number of locations requested exceeds the maximum allowed see Note 0011 The number assigned to a data acquisition block or record is not within the supported block or record range 0012 The block or record number requested has not been defined 0013 Thenumber of data bytes in the requested blocks or records exceeds maximum number of bytes allowed by the primitive 0017 Theattached device did not respond properly 0019 Theresulting data element location formed by the starting address plus the number of data elements to access is out of range specified by TT 001A Communications has not been established with the attached device 001D The number of locations to access is zero NNNN 0 0024 An illegal IEEE floating point value an IEEE NaN Not a N umber exists in a primitive write request 80DD An exception was generated by the CP 525 module and its byte value is contained in the DD field This material assumes you have prior knowledge of TI WAY
33. ersonality Interface Module PIM 0c I S5 Unilink Ada pterin a TIWAY I Network sssssssse III S5 Unilink Adapter PriMitiVeS oocccccccccccccnnnccn II S5 Unilink Adapter Memory Types nnn Main Steps for Setting up the S5 Unilink Adapter 0 00 S5 Unilink Adapter Interface n n nnn Pin Assignments for Connecting S5 Adapterto CP 525 aaa S5 Unilink Adapter Dipswitch Location ccc cece tte S5 UniLink Dip switch 1 Settings 0 RII S5 UniLink Dipswitch 2 Settings III III Installing the S5 PIM Local Line Interface PortS 0 cece cee eee eee e eee es TIWAY Bus Structure Number of Local Line Secondaries vs Cable Distance 0 ccc cece nee RS 232 RS 423 Modem Interface PONS 0 ccc eee e Redundant Media Circuit 0 eee ns HDLC Information Fame 22 ccd a teme dak ddd OTIO BALER Reda SE eee IEEE Floating Point Value sssseseeee I S5 Floating Point Value Contents vii List of Tables C 1 C 2 viii S5 Unilink Adapter Models sssssssssseees e nnn S5 Unilink Adapter Models ssssssssssseees n nnn LocalLine Connector Pin Assignments sssssssssseeess eee RS 232 RS 423 D Connector Pin Assignments 00 e eee 7500 11505 vs S5 Memory Types coccccccccc HH Primitive Exception Error Byte eee CP 525 Emor Code Contents Pre
34. est primitive code that contains the exception DDDD 0000 The primitive code is not implemented in the 55 PIM 0001 Thereis no corresponding 55 memory type that maps to the TT type supplied 0002 Data element location specified by TT is out of range See N ote 0003 Primitive has excess data unit bytes 0004 Primitive has insufficient data unit bytes 0005 The number of information bytes received does not match the number of bytes specified in the field length 000A The attached CP 525 module fails to respond 000E Primitive not valid for the specified data type TT 0010 The number of locations requested exceeds the maximum allowed See Note 0011 The number assigned to a data acquisition block or record is not within the supported block or record range 0012 The block or record number requested has not been defined 0013 Thenumber of data bytes in the requested blocks or records exceeds the maximum number of bytes allowed by the primitive 0017 Theattached device did not respond properly 0019 Theresulting data element location formed by the starting address plus the number of data elements to access is out of range specified by TT 001A Communications has not been established with the attached device 001D The number of locations to access is zero NNNN 0 0024 An illegal IEEE floating point value an IEEE NaN Not a N umber exists in a
35. face Purpose of this This manual is intended to help you accomplish the tasks required to install Manual and operate the S5 UniLink Adapter with the SIMATIC S5 Personality Interface Module PIM This manual assumes that you are already familiar with the contents of the TIWAY I Systems Manual and the UNILINK Adapter Installation Operation Manual Related Manuals Theinformation in this manual is supplemented by the following manuals e TIWAY Systems Manual PPX TIWAY 8101 e TIWAY I UNILINK Host Adapter User s Manual PPX TIWAY 8121 e UNILINK Adapter Installation and Operation Manual PPX TIWAY 8106 The TIWAY System Manual provides more information on the installation and operation of your TIWAY network The UNILINK Adapter Installation amp Operation Manual details the installation and operation of the UNILINK Adapter Refer also to the user manuals for any other TI WAY network devices that you have installed or will be installing Additional information is found in thefollowing SIMATIC S5 manuals e COM 525 Manual Volumes 1 and 2 6ES5 998 1DB 21 e Automating with the SIMATIC S5 135U A19100 L 531 F 505 X 7600 The COM 525 Manuals provide complete information on installing and programming your CP 525 module The Automating with the SIMATIC 5 135U manual provides a thorough background of the SIMATIC S5 135U programmable controller PLC NOTE Throughout this manual all references to the CP 525 module a
36. g method remains the same with the implied length of 32 bits The floating point value conversion performed by the S5 PIM is described in Section A 1 Reading the CP 525 X memory with the TT types 02 and F1is supported Writing to the CP 525 X memory with TT types 02 and F1is also supported 5 UniLink Adapter Installation and Operation Simatic S5 Memory Mapping A 5 A 5 InputBytes CP 525 F Type Description The S5 Input Bytes memory as accessed through a CP module refers to memory that is organized in 128 contiguous bytes of memory Becausethe process input image memory area E memory is accessible only if a corresponding I O module is in use the 55 PIM assumes no knowledge of the accessible memory area of the process input image The TT types that map to this type of S5 memory are Packed Input Discretes TT Type 06 and Unpacked Input Discretes TT Type 03 NOTE If a TIWAY request is out of range the exception returned will be of the form 80DD Address Mapping TI500 TI505 Input Memory Address S5 Input Bytes Memory Address XXXX hex Byte Address Quotient of XXXX 8 Bit Address Remainder of XXXX 8 Value Conversion When converting the value for Packed Discretes the most significant bit MSB of the TI 500 T1 505 value corresponds to the least significant bit LSB of the S5 When converting the value for the Unpacked Discretes the byte on
37. gs 5 UniLink Adapter Installation and Operation Figure 2 5 shows the settings for Dipswitch 1 Dipswitch 1 Network Parameters Up 1 Down 0 01 CPU2 NRZ Down 10 CPU3 Switches Half Duplex Down S5 Interface Port Synchronous Up Baud Rate Asynchronous Down 19200 Up 9600 Down TIWAY Network Data Rates Figure 2 5 S5 UniLink Dipswitch 1 Settings Figure 2 6 shows the settings for Dipswitch 2 Up 1 Down 0 Diagnostic Tests TIWAY Network Address Up User Self Test Selection 1 254 Down Reset normal operation Normal Operation KEYDELAY Up 1 second delay Down No delay Figure 2 6 S5 UniLink Dipswitch 2 Settings 55 UniLink Adapter Installation and Operation Installation and Set up TIWAY Network 00 CPU1 NRZI Up Data Rate Settings 11 CPU4 Full Duplex Up Baud 110 110 110 110 110 150 300 600 1200 2400 4800 9600 19200 38400 57600 115200 1003644 1003645 2 7 2 4 Installing the S5 Personality Interface Module Installing the PIM N CAUTION N CAUTION Power Up 2 8 The S5 Personality I nterface M odule contains the software required to establish an interface with the S5 series of PLCs Although the faceplate of the 55 UniLink Adapter contains an opening that shows the l
38. imen bs esee ex de ene ducum Do PG Ler die AAA a TWANSMISSION cie a a ex ARESREAERCSRRXC ERAIEREX a4 DEQERXE OE a a Acknowledgment aree ren RR E EIE e Ban bh eed deed pa Ead d Receiving with the 3964R Procedure ee eere nnn nnn Link Establishment 0 RR IRRRRRRIRRRRRRIRRRR RR rns RECEIVING osbese ete eects y tede Fact gre dde den Foi dd on elt ae e das ed Initialization Conflict RR RRRRRRRRRRRRIRRRIRRIRIRIII Longitudinal Parity BCC Comparison For Additional Information IRR rns Appendix A SIMATIC S5 Memory Mapping A 1 A2 A 3 A4 Memory Type Overview 22222222822228 EERE nnne ee eee eee eee OVEIVIEW 2 ounce dresden rac tedio acd rt B cu dem See ee dg Quick Reference Memory Chart ccc cece cece s Hoating Point Conversion 0ccccc cece cece eee Pte LT Data Block CP 525 D Type 2 an cece eee eee eee eee Description aig AA EE IIEEETIEEXXATALERIXORi AR Rd de AddressMapping 4o paanan aka kana PAG TOEIC URP LENA PLAN ee eed Value Conversion ssssssuussssssssesses eee rm arr rn nnn Floating Point SUPPOTL o ger NG LAG EI rr ee svi DAD Ru EL LAP dw vg Reading and Writing ehh Extended Data Block CP 525 X Type ssssssnnn mnes nnn nnn Desc rptloP kawa han edes ve tes dede ce e ip le ee bb battu bid AddressMapplhg Le RR ERIS ph he Dh ERE Dh ALAGA a Rae dete Value C OnWVelsion iusserit toti oh as elo dito aede o
39. memory TheTT types that map to this type of 55 memory are Timer Current TT Type 14 and Timer Counter Current TT Type OF The Timer Counter Current TT Type OF will access S5 Timer memory only thus no access to S5 Counter memory will be provided through TT Type OF NOTE If a TIWAY request is out of range the exception returned will be of the form 80DD TI500 TI 505 Timer Memory Address S5 Timer Memory Address XXXX hex Word Address XXXX hex Iy 55 Word Address XXXX hex in Timer T memory TI500 T1505 XXXX hex in Timer memory of Timer Counter memory When converting the value for 55 Timers the time value of the S5 Timer is copied directly and the remaining bits are set to zero Contents of 55 Timer Memory 12 11 10 9 8 7 6 5 4 3 Ng Set to Zero Ww 13 12 11 10 9 8 7 6 3 2 Contents of T1500 TI 505 Timer Memory Reading the CP 525 T memory with the TT types OF and 14 is supported Writing to the CP 525 T memory with TT types OF and 14 is not supported due to the functionality of the CP module itself 5 UniLink Adapter Installation and Operation Simatic S5 Memory Mapping A 9 A 9 Counter CP 525 Z Type Description Address Mapping Value Conversion Reading and Whiting
40. n hass anatia aaaea gana RE bx bn erede dae unius DP Re due Bor dre e DIDSWIECh 2 sap DADA KGG Rx Fax en bred sro e dpt Oppius 2 4 Installing the S5 Personality Interface Module seen nn n n n n nnn Installing the PIM ss sestan iaa aae a ao aae aa RR a RES a KA AA dike Pad rni de inim Ohne e O und bun a e b a Chapter3 TIWAY Network Communication 3 1 Local Line Interface Ports 0ccococcccccccc uh OVERVIEW Tidiane lid ae e NG DANE cod ro a in deta o ha fpe ue ee bane Local Line Interface Ports RR RI RH Rh Rh hn LocalLine Pin Assignments sssssssssssseee eee Local Line Bus Structure suse IRI ens Local Line Data Transmission Parameters ssssssee Rh Contents 3 2 3 3 3 4 3 5 3 6 3 7 Modem Interface Ports ccccncn cence eee AA AA AA AA RS 232 C Modem Interface Ports Modem Port Pin Assignments ena Modem Specifications mh Runaway Transmitter Recovery heh Redundant Media Transmission aaa eee ee eee eee eee Altemate Channel Port 0 ccc ccc RR rn TINAY I HDLC Network Protocol cc cece cece eee eee AA S5 Interface Port Communications ccoccccccccccccccn a ecc c ea crt sd th ie sf 3 9 S5 Interface Communications ce cee RII hn 3 9 RK 512 Computer Link with 3964R Procedure 0 cee 3 9 Transmitting with the 3964R Procedure Link Esta blis
41. ne how the exponent and mantissa values are derived from the equations below NOTE ThelEEE floating point supported by the TI 500 T 505 PLCs is only a subset of the IEEE standard Please refer to a Series 505 PLC specification for this information 27 26 Y Exponent Mantissa TI500 TI505 value 2 E 127 1 M 1003650 Figure A 1 71500 711505 IEEE Hoating Point Value 30 27 24 23 22 V ss N Exponent Exponent Mantissa Mantissa Sign Sign S5 value M 2 7 E 1003651 Figure A 2 S5 Hoating Point Value 5 UniLink Adapter Installation and Operation Simatic S5 Memory Mapping A 3 A 3 Data Block CP 525 D Type Description Address Mapping Value Conversion Hoating Point Support Reading and Whiting The S5 Data Block memory as accessed through the CP 525 module refers to memory that is organized by 256 blocks of 256 words 16 bits for a total of 64K words of memory Because the Data Block memory is user configurable in the CPU the 55 PIM assumes no knowledge of the accessible memory ranges for each block The TT typethat maps tothis type of 55 memory is variable or V memory TT type 01 NOTE If a TI WAY request is out of range the exception returned will
42. niLink Adapter properly follow these steps Program the CP 525 Communications Processor and the S5 PLC CPU Run appropriate cabling Set the Dipswitches in the S5 UniLink Adapter Install the S5 Personality Interface Module PIM Power Up the S5 UniLink Adapter Figure 2 1 Main Steps for Setting up the S5 UniLink Adapter 2 2 Installation and Set up 5 UniLink Adapter Installation and Operation Programming the CP525 For the S5 UniLink Adapter to establish communications with the CP 525 module the following prerequisites must be met Use the PG programmer to load these parameters e TheSTEP 5 user program in the CPU must include the data handling blocks SEND ALL and RECEIVE ALL e ThecCP 525 user program of the CP module must include the RK 512 Interpreter and the 3964R Transfer Procedure NOTE Remember to program the communications parameters 9600 or 19 200 baud 8 bits even parity and 1 stop bit in the CP 525 module No jobs in the CP module job block are required for the connection to the S5 UniLink Adapter For more information on setting up the CP 525 module and the controller CPU refer to the CP 525 Communications Processor manuals 5 UniLink Adapter Installation and Operation Installation and Set up 2 3 2 2 Cabling the Components S5 Interface The S5 UniLink Adapter communicates with a CP 525 Communications Overview Processor module lo
43. off state of the TI 500 TI505 corresponds to the bit specified in the S5 Contents of TI 500 T 505 Packed Inputs Contents of S5 Input Bytes 011 2 3 4 5 6 7 7 6 5 4 3 2 1 0 O First discrete bit accessed First discrete bit accessed J Contents of TI500 TI 505 Unpacked Inputs 00 s 0 Only discrete bit accessed Reading and Reading the CP 525 E memory with the TT types 03 and 06 is supported Writing Writing to the CP 525 E memory with TT types 03 and 06 is not supported due to the functionality of the CP module itself A 6 Simatic S5 Memory Mapping 5 UniLink Adapter Installation and Operation A 6 Output Bytes CP 525 A Type Description The S5 Output Bytes memory as accessed through a CP module refers to memory that is organized in 128 contiguous bytes of memory Because the output image memory area A memory is accessible only if a corresponding I O module is in use the 55 PIM assumes no knowledge of the accessible memory area of the process output image The TT types that map tothis type of S5 memory are Packed Output Discretes TT Type 07 and Unpacked Output Discretes TT Type 04 NOTE If a TIWAY request is out of range the exception returned will be of the form 80DD Address Mapping TI500 TI 505 Output Memory Address S5 Input Bytes Memory Address YYYY hex Byte Address Quotient of YYYY 8
44. ommand Set ha 1 5 S5 Memoty TyDes v Los pedes seres Apan oe La ee tata ati a Sho ee b eap ac taie d 1 5 5 UniLink Adapter Installation and Operation Product Overview 1 1 1 1 Description of the S5 UniLink Adapter Connecting a The S5 UniLink Adapter allows you to connect an S5 Programmable SIMATIC S5 Controller to a TIWAY network as shown in Figure 1 1 The S5 Adapter Controller to a provides the hardware and software that customizes the interface to an S5 TINAY Network PLC through a SIMATIC CP 525 Communications Processor S5 PLC 115U 135U 155U CP CP 525 Module A it RS 232 Jl V S5 UniLink S5 CP 525 Interface Adapter TIWAY I Interface i TIWAY Network V Network Secondaries 1003637 Figure 1 1 S5 UniLink Adapter Interface S5 Unilink Adapter The following components are required for connecting an 55 programmable Components controller to TI WAY e UniLink Adapter includes an RS 232 compatible interface port that supports RK 512 protocol with the 3964R transfer procedure for interface to the CP 525 module via the S5 PIM also includes two TI WAY interface ports see Figure 1 2 e S5 Personality Interface Module PI M a plug in module that contains the software needed to customize the UniLink Adapter as an S5 interface see Figure 1 3 NOTE Theonly way an S5 UniLink Adapter can communicate with an S5 controller is through a CP 525 or a
45. ommunication S5 UniLink Adapter Installation and Operation Local Line Pin The pin assignments for these ports are listed in Table 3 2 Assignments Table 3 2 Local Line Connector Pin Assignments rin Name TU beep O O OO O Reserved Reserved Cable shield and signal common Reserved Reserved Positive biased signal line Reserved Reserved Negative biased signal line O DONA ULI Bp WN H The Local Line interface uses shielded twisted pair cable such as Belden 9860 or Belden 9271 Local Line Bus Figure 3 2 shows the TI WAY bus structure with the network trunkline Structure cable which can extend up to 25 000 feet with droplines up to 100 feet in length RS 232 S5 Interface Cable SIMATIC S5 PLC UniLink 100 ft max TIWAY Main Trunkline 25 000 feet max Series 500 Series 505 PLC PLC 1003647 Figure 3 2 TIMAY I Bus Structure 5 UniLink Adapter Installation and Operation TIWAY Network Communication 3 3 Local Line Interface Ports continued Figure 3 3 is a chart showing the maximum cable distances compared to the number of stations on the TI WAY network 19 2 k bps _ S 38 4 k bps Mor 57 6 k bps 115 2 k bps lt Belden 9860 115 2 k bps or lower O oO o pa Oo o e e e o o c O S E a o a ai O Belden 9271
46. ond Issue 2800120 0002 LISTOF EFFECTIVE PAGES Pages Description Cover Copyright Second Histo ry Effective Pages Second iii x Second 1 1 1 5 Second 2 1 2 8 Second 3 1 3 12 Second A 1 A 11 Second B 1 B 9 Second C 1 C 3 Second Index 1 Index 3 Second Registration Second Pages Description Contents Preface Chapterl Product Overview 1 1 Description of the S5 Unilink Adapter cccccccoccccnnnrnn a Connecting a SIMATIC S5 Controllerto a TIWAY Network cece eee ees S5 UniLink Adapter Components 0 0 cece ett nnn 12 TINAY I System Characteristics cece cere eee eee eee TIWAY NGEWOIK aaa n Re CR UR Gc aon s GR X dcl Bul ioo PUR Do Aah A Pe Adding the S5 Unilink Ada pter to the TIWAY Network 00 cece eee eee ees Primitive Command Set ena SS Memory IyBes ice dera AA RU n d a IR ce Chapter2 Installation and Set up 2 1 Ove MeW ina als The S5 Unilink Adapterasa TIWAY Secondary suussessssesssseseese Setting Up the S5 Unilink Adapter sssssssssseee III Programming the CP 525 cece ccc eee tenet eens eee e nnne 2 2 Cabling the Components 22222 aaa AA AA aaa aaa S5 Interface Overview 2 RR RII 3 hr Basic Cable Connections s sss RR RR urs S5 Interface Pin Assignments sssssssssssees nnn 23 Setting the Dipswitches 222222222 EERE eee eee KA AA nn nnn nnns Dipswitch Locatio
47. p to S5 data types and vice versa Each of the eleven S5 data types supported by the CP 525 module is described in detail as seen through the CP module in relation to each one s TI 500 T1 505 counterpart Quick Reference Table A 1 represents the equivalent memory types that correspond between Memory Chart TI500 TI 505 PLCs and S5 PLCs Because of the significant differences in the internal memory structure and architecture between the two PL Cs these equivalents represent a subset of the total sets of memory types available to each Table A 1 TI500 TI505 vs S5 Memory Types TI500 TI505 S5 CP 525 S5 Description Memory Description Type Memory DX Unpacked Output Discretes A Outputs Unpacked Control Registers Flag Memory F 06 Packed Input Discretes Inputs I Packed Output Discretes Outputs Q 08 Packed Control Registers Flag Memory F Timer Counter Current Timer Memory T Counter Current Counter Memory C FO IEEE Floating point Data Block Memory DB V Memory F1 IEEE Floating point X Extended Data Block K Memory Memory DX A 2 Simatic S5 Memory Mapping S5 UniLink Adapter Installation and Operation A 2 Hoating Point Conversion Description The T1500 T1505 floating point representation is different from the S5 representation therefore the 55 PIM will have to perform a conversion The sign bit of the TI 500 T1 505 floating point is the same as the sign bit of the S5 mantissa You can determi
48. pply equally to the CP 524 module as both of these models are compatible with the S5 UniLink Adapter 55 UniLink Adapter Installation and Operation Preface ix S5 UniLink Models Available Technical Assistance x Preface TheS5 UniLink Adapter is available in four models offering a choice of two physical interfaces for network communications the Local Line or RS 232C interfaces in different voltage versions Table 1 lists the model numbers the type of interface and the supply voltage for each model Table 1 S5 UniLink Models Model Number Network Port Supply Voltage PT1 505 7115 Dual Local Line 120 VAC PT1 505 7116 Dual RS 232C 423 120 VAC PT1 505 7117 Dual Local Line 240 VAC PT1 505 7118 Dual RS 232C 423 240 VAC If you have any questions about this product or need technical assistance contact your Siemens Industrial Automation Inc distributor If you need assistance in contacting your U S distributor call 1 800 964 4114 5 UniLink Adapter Installation and Operation Chapter 1 Product Overview 1 1 Description of the S5 Unilink Adapter ccccccccoccccnnnrr nnn nn nnn 1 2 Connecting a SIMATIC S5 Controllerto a TIWAY Network 00 c cece ees 1 2 S5 UniLink Adapter Components e nnn 1 2 12 TINAY I System Characteristics hh 1 4 TIWAY Netwolk maan an dk BR Eu DE EeRXUETIREX INSERAT ANGKAN 1 4 Adding the S5 UniLink Adapter to the TIWAY Network uueueeeeseeees 1 4 Primitive C
49. primitive write request C 2 S5 Adapter CP 525 Eror Codes 5 UniLink Adapter Installation and Operation C 2 CP 525 Enor Codes Description of CP 525 Enor Codes Example CP 525 Enor Code If the CP 525 module responds with an error code it is returned in the following 80DD word The DD field will contain the CP 525 error code byte In order to determine the meaning of this error code you must refer the value DD tothe appropriate CP 525 manual These errors will havethe same response format as the primitive exception errors Table C 2 CP 525 EnorCode 80DD An exception was generated by the CP 525 module and its byte value is contained in the DD field An example of a CP 525 error would beif you tried to access an undefined data block In this case a value of 80DD would be returned and the value DD contains the value associated with the CP 525 error code saying that the data block requested has not been defined 5 UniLink Adapter Installation and Operation S5 Adapter CP 525 Eror Codes C 3 Adapter components installing 2 242 8 Cable connections CP 525 interface port maximum cable leng jas pin assignments 2 5 d S5 UniLink Adapter port Communications local line 3 243 4 receiving 3964R procedure 3 11 RK 512 computer link 3 9 S5 interface 3 9 transmitting 3964R procedure 3 10 Computer nterface M odule 1 4 CP 525 Communications Processor 1 2 CP 525 memory types A type D
50. te dents eda dine NGA tae Cages A A QUE RO DUE Rh dude A 7 Reading and Writing mh A 7 Hag Bytes CP 525 M Type 2a cece cee eee eee eee eee A 8 Desenpuon toc foils dlrs oie P ichs ee ATO Gree LI EM olaa es A 8 Address Mapping 0 cc cece ccc hh hh A 8 Value Conversion 2 AA mama rn rn n n n nn A 8 Reading and Writing hh A 8 Timer CP 525 T Type eseeseeenh eee eee eee A 9 priest pL E ha TON AD eA DAA ANA A 9 Address Mapping ses eer paba Pan hk NGA Dinaan ba eE eE Mee edd aa A 9 Value Conversion seisis aE eere arn rn nn n A 9 Reading and Writing 4 KK GG A 9 Counter CP 525 Z Type 22 aaa AA AA AA AA AA AA A 10 DescrptioD iine seria ese NAA o bae dur Et edid Y doe Rie tun NANANA AG A 10 Address Mapplng 2 pana a RO Dewees Madan A sot RO secos A 10 Valle CONVE Noi ec benennen eU Re duo ausa t Sar c s dures e e beo es A 10 Reading and Writing lsssssssssssssee ehh A 10 S5 Data Types Not Supported by S5 PIM eeeeeeenn nnn nn nnn A 11 Analog I O Bytes CP 525 P Type ehh A 11 Extended Analog I O Bytes CP 525 Q Type 2a A 11 Absolute Address CP 525 S Type cece ccc ccna A 11 System Address CP 525 B Type e nn A 11 S5 UniLink Adapter Installation and Operation Simatic 55 Memory Mapping A 1 A 1 Memory Type Overview Overview This appendix describes how the TI 505 data types ma
51. ter Installation and Operation Simatic S5 Memory Mapping A 11 Appendix B TIWAY Pnmitives Supported by S5 PIM OMSL VIS Wi ica daa NG ade AnG han aya cabal Ah eh lea ec at ME B 2 Exception AA AA AA cae renis B 2 Native acoso eR Pa 2A ne eate ted a alas a D dre ue a ates ec ne Dr e dac n B 3 StaluS bip Ieri dw ic was i UAR ob Vea wale Fere B 4 Configuration oa id tela B 4 Primitive Format Configuration B 5 Read Blo Ekain A AI A OPES TEE So AGA B 5 Read Random Block ssseeseeee RR Rm ns B 6 Write Bloc K aatren daa Erbe Bentl a cans B 6 Write Random Block ssessee IRR e n B 7 DefineBlo eka ora mem Epsum drei esu aM sen ea e NA free M diate eae Seaman ab B 7 Gather BOCK o dur A Te aD Ros ar a ET I Da c Pr aac t o AG Prid B 8 Write and Gather Block 2 0 RR rn B 9 S5 UniLink Adapter Installation and Operation TIWAY Primitives Sup ported by S5 PIM B1 Overview TIWAY Primitives provide a uniform command level access to industrial devices through the TI WAY I Industrial Local Area Network This section describes the set of primitives supported by the S5 UniLink Adapter Exception The S5 PIM supports the following exception field values Request None Response LLLL 00 PP DDDD Symbol Value Definition KEPT al Request primitive code that contains the exception DDDD 0000 The primitive code is not implemented in the S5 PIM 0001 Thereis no corresponding S5 memory type that maps to the TT typ
52. ting The S5 Extended Data Block memory as accessed through a CP module refers to memory that is organized by 256 blocks of 256 words 16 bits for a total of 64K words of memory Because the extended data block memory is user configurable in the CPU the S5 PIM assumes no knowledge of the accessible memory ranges for each block The TT typethat maps tothis type of 55 memory is constant or K memory TT type 02 NOTE If a TI WAY request is out of range the exception returned will be of the form 80DD S5 TI500 T1 505 K M emory Address Extended Data Block Memory MS Byte XX LS Byte YY 5 8 7 0 1 JN 0 256 0 256 Block Address XX Accesses S5 Accesses S5 Block address Word address Word Address YY 256 words W 256 blocks maximum maximum 55 DB XX hex DW YY in Extended Data Block X memory TI500 TI 505 XXYY hex in constant K memory The value conversion method is identical value meaning the binary value in the S5 memory location corresponds exactly to the value in the TI 500 TI 505 memory location Contents of T1500 TI 505 K M emory Contents of 55 X Memory 15 14 3 2 1 0 15 14 3 2 1 0 215 214 23 22 21 20 215 214 23 22 21 20 The TI 500 TI505 IEEE floating point TT Type F 1 or K K dot is also supported for the 55 Extended Data Block M emory The address mappin
53. tte tet 2 2 Programming the CP 525 2 ccc cece 2 3 Cabling the Components aaa nnnm 2 4 S5 Interface Overview ococcccccccccc n nnn 2 4 Basic Cable Connections ena 2 4 S5 Interface Pin Assignments e n nnn 2 5 Setting the Dipswitc hes 2222222222 EERE AREA REAR AA nnn nnn nnn 2 6 Dipswiteh EoCatlOri nana Pa eee ha Peut Wa de tese ti Dodo dn 2 6 Dipswitch 1 m ex EE IE e METRE m Wu EEG YR en 2 6 DIDSWILC N Zi DU bie TA rede eek ve ge ead A ra 2 6 Installing the S5 Personality Interface Module nanana n n n n n nnn 2 8 Installing the PIM s essere Re re EX Rr as reos e et ole heehee 2 8 Power p aille uaa cue enhn RR kate ER EURO ERREUR RR RR NG CR RR See ee Rd ES 2 8 S5 UniLink Adapter Installation and Operation Installation and Set up 2 1 2 1 Overview The S5 UniLink Adapteras a TINAY Secondary Setting Up the S5 Unilink Adapter This chapter provides an introduction to the operation and set up of the S5 UniLink Adapter During normal operation requests are sent over the TI WAY network to the S5 UniLink Adapter thus it functions in the same manner as any other secondary in the network Appendix B lists the TI WAY primitives supported by the S5 Adapter The majority of requests issued to the S5 Adapter are to obtain memory locations from the S5 PLC Appendix A lists the memory translations from the TI 505 TT types to the 55 memory types To connect and set up the S5 U
54. vices are attempting to perform a send job The device with the lower priority desists and answers with the DLE character The device with the higher priority sends its data as previously described After the link has been terminated the lower priority device can then run its send job The S5 UniLink Adapter will assume higher priority and the CP module should be configured with the lower priority The CP module will act on a request response basis with all requests coming from the S5 UniLink Adapter Thus the S5 PLC should be programmed never to send any requests through the CP module to the UniLink Adapter If such a request occurs the S5 UniLink Adapter will ignore the request causing a timeout to occur 5 UniLink Adapter Installation and Operation TIWAY Network Communication 3 11 Receiving with the 3964R Procedure continued Longitudinal Parity The BCC error check byte is calculated by an exdusive OR of all data bytes BCC Comparison contained in the message Theterminating characters DLE and ETX are also included in the BCC calculation For Additional For more detailed information concerning the RK 512 protocol and 3964R Information transfer procedure as well as available commands please refer to the manuals shipped with your CP 525 module 312 TIWAY Network Communication 5 UniLink Adapter Installation and Operation A1 A 2 A 3 A4 A 5 A 6 A 7 A 8 A 9 A 10 Appendix A SIMATIC S5 Memory
55. witched tothe alternate channel This type of a circuit is illustrated in Figure 3 5 f UniLink Host Adapter EE n N Port 2 Secondary Bus Alternate Trunk TIWAY V Y V Y S5 Adapter S5 Adapter y Secondary adapters y Figure 3 5 Redundant Media Circuit 1003649 NOTE Redundant media is provided to improve a network s mission reliability However the Adapter cannot use the dual media ports to access two independent networks 5 UniLink Adapter Installation and Operation TIWAY I Network Communication 3 7 3 4 TINAY I HDLC Network Protocol The TIWAY network uses the HDLC protocol in the unbalanced normal response mode UN RM for transmission of commands and responses In this mode a single Network Manager primary controls the flow of messages between secondary devices Information flows between the primary and secondaries inside HDLC Frames or information frames The destination of the frame is specified by the address field the nature of the frame by the control field and any data specified by the information field The TI WAY primitive requests and responses are encapsulated inside HDLC I F rames according to the format shown in Figure 3 6 ho hart Primitives Figure 3 6 HDLC Information Fame
56. y of the CP module itself A 10 Simatic S5 Memory Mapping S5 UniLink Adapter Installation and Operation A 10 S5 Data Types Not Supported by S5 PIM Analog I O Bytes CP 525 P Type Extended Analog I O Bytes CP 525 Q Type Absolute Address CP 525 S Type System Address CP 525 B Type Due to significant differences in the internal memory structure and architecture between the TI500 TI505 PLCs and the S5 PLCs no compatible memory translations to these specific 55 data types are available The S5 Analog I O Bytes memory type as accessed through a CP module is not supported by the S5 PIM Access to Analog I O will be through Data Block memory which implies that all analog conversions will be taken care of in the STEP 5 program This was determi ned because of the significant differences in the internal memory representation of analog I O The S5 Extended Analog I O Bytes memory type as accessed through a CP module is not supported by the S5 PIM Access to Extended Analog I O will be through Data Block memory which implies that all analog conversions will betaken care of in the STEP 5 program This was determined because of the significant differences in the internal memory representation of analog I O The S5 Absolute Address memory type as accessed through a CP moduleis not supported by the S5 PIM The S5 System Address memory type as accessed through a CP module is not supported by the S5 PIM S5 UniLink Adap

Download Pdf Manuals

image

Related Search

Related Contents

Tiffen Vista RangerV User's Manual  IBM System x 3100 M4  nüvi® série 705 - GPS City Canada  Guida dell'utente  R8C/3JC Group User`s Manual: Hardware  Télécharger le PDF    External Locator - Bottom View  "user manual"  Essais sur le risque de crédit des obligations: Analyse de la  

Copyright © All rights reserved.
Failed to retrieve file