L5352 Ethernet Communications Interface

Size: px
Start display at page:

Download "L5352 Ethernet Communications Interface"

Transcription

1 L5352 Etheret Commuicatios Iterface Techical Maual HA Issue 2 Copyright SSD Drives Ic 2005 All rights strictly reserved. No part of this documet may be stored i a retrieval system, or trasmitted i ay form or by ay meas to persos ot employed by a SSD Drives group compay without writte permissio from SSD Drives Ic. Although every effort has bee take to esure the accuracy of this documet it may be ecessary, without otice, to make amedmets or correct omissios. SSD Drives caot accept resposibility for damage, ijury, or expeses resultig therefrom. HA Etheret LikCard Issue 2.doc

2 Safety Iformatio! Please read this iformatio BEFORE istallig the equipmet. Iteded Users This maual is to be made available to all persos who are required to istall, cofigure or service equipmet described herei, or ay other associated operatio. The iformatio give is iteded to highlight safety issues, ad to eable the user to obtai maximum beefit from the equipmet. Applicatio Area The equipmet described is iteded for idustrial motor speed cotrol usig DC or AC motor cotrollers, with DC motors AC iductio or AC sychroous machies. Persoel Qualified persoel should carry out istallatio, operatio ad maiteace of the equipmet. A qualified perso is someoe who is techically competet ad familiar with all safety iformatio ad established safety practices; with the istallatio process, operatio ad maiteace of this equipmet; ad with all the hazards ivolved. REFER TO YOUR MAIN PRODUCT MANUAL FOR SPECIFIC SAFETY INFORMATION ABOUT THE DEVICE YOU ARE CONTROLLING IMPORTANT It is required that the users have DSD, RSLogix 5000 or other iterface programs istalled o a computer ad have a workig kowledge of these software packages. ACKNOWLEDGEMENTS Drive System Desiger, DSD is a registered trademark of SSD Drives Ic. RSLogix 5000, ad CotrolLogix500 are registered trademarks of Alle-Bradley Ic. Modbus, Cocept ad Proworx are registered trademarks of Modico, Divisio of Scheider Electric Ic. HA Etheret LikCard Issue 2.doc

3 Table of Cotets Table of Cotets... Chapter 1 System Overview... 1 Product Features...1 Product Code...1 DSD Requiremets...1 Wirig the System...1 Chapter 2 Hardware Istallatio... 2 Istallig the Etheret LikCard...2 Chapter 3 Cofigurig the LikRack... 3 Chapter 4 Cofigurig the PLC Supervisor... 5 Modico Mometum...5 Alle Bradley Cotrologix...6 Alle Bradley Cotrologix...7 Appedix A Troubleshootig Appedix A Troubleshootig L5352 Module Status LED L5352 Network Status LED Appedix B Error Codes Techical Specificatios... 15

4

5 1 Chapter 1 System Overview Product Features Suitable for use with Lik modules: L5392 LikStatio L5300 LikRack Coectio usig RJ 45 coectors ad Category 5 cable LED s to idicate board ad commuicatios status Cofigured usig Fuctio Block iputs ad outputs Diagostics usig Fuctio Block outputs 10/100 MBaud Software-selectable Slave Address The Etheret LikCard is provided as a plug-i LikCard. Modbus TCP/IP or Etheret IP protocols supported 256 Words I ad 256 Words Out Product Code Part Number: L5352 Etheret LikCard DSD Requiremets Software versio: 1.16 or higher. Database level: 1173 or higher. Wirig the System Warig! Before istallig, esure that the LikRack wirig is electrically isolated ad caot be made live uitetioally by other persoel. Wait 5 miutes after discoectig power before workig o ay part of the system or removig the covers from the drives. HA Etheret LikCard Issue 2.doc

6 NETWORK STATUS MODULE STATUS 2 Chapter 2 Hardware Istallatio Istallig ad Coectig the Etheret LikCard -L5352- NETWORK STATUS MODULE STATUS -L5352- ETHERNET ETHERNET Figure 1. L5392 LikStatio with L5352 Etheret LikCard WARNING! Prior to startig work o the LikRack or LikStatio esure all sources of power are isolated. Istallig the Etheret LikCard The Etheret LikCard plugs ito a LikRack or a LikStatio. It ca be istalled ito ay site (J1, J2, J3, ad J4) of the LikRack. Remove the back cover of the LikRack. Isert the Etheret card ito a slot i the LikRack. Re-fit the back cover to the LikRack. Make all user-wirig coectios. HA Etheret LikCard Issue 2.doc

7 Chapter 3 Cofigurig the LikRack 3 This chapter cotais examples for cofigurig the L5352 LikCard usig DSD. 1. Create a LINK cofiguratio with Etheret reader ad Etheret writer blocks that are required for the project. Isert the Etheret reader blocks ito the hadler before isertig the Etheret writer blocks. The LikCard receives ad trasmits the data i the order the blocks are iserted ito the hadler. The LINK Etheret hadler block idetifies the slot locatio i the LikRack/LikStatio ad the Etheret IP address o your Etheret etwork. Refer to Figure Double-click o the Etheret hadler block to eter the L5352 site address, IP address, Byte Swap, ad the Etheret registers. Etheret IP protocol requires the use of the Byte Swap feature. Modbus TCP protocol does ot use the Byte Swap feature. The Etheret reader ad Etheret writer registers are listed i the order i which the PLC/PC will commuicate to the LikRack. Refer to Figure Load the LINK cofiguratio prior to coectig to the PLC or PC. The PLC or PC will coect oce it is cofigured. The quatity of words beig trasferred i ad out of the LINK module eeds to agree with the quatity of words beig trasferred i ad out of the PLC or PC for the IP address associated with the LINK cofiguratio. Figure 2. Basic LINK Setup Note: The above LINK cofiguratio is sedig a value sigal (16 bit) to the PLC. 1% = 328-1% = % = % = % = % = HA Etheret LikCard Issue 2.doc

8 4 Figure 3. L5352 Etheret Hadler Block HA Etheret LikCard Issue 2.doc

9 Chapter 4 Cofigurig the PLC Supervisor 5 This chapter cotais examples for cofigurig a Modico ad a Alle-Bradley CotroLogix PLC. The Etheret LikCard supports the ModBus/TCP protocol ad the Etheret/IP protocol. Etheret commuicatio with the Alle-Bradley PLC 5 series ad SLC 500 series is ot available. Each example cofigures eight registers i each directio. Refer to Figures 4, 5, ad 6. Modico Mometum 1. Start a ew program ad select the PLC processor ad chassis type that is used i your project. Our example uses a M Mometum PLC. Remai Offlie util you are ready to dowload the program. 2. Place MSTR block i the ladder logic. MSTR blocks move data from the PLC data table to the LikCard or from the LikCard to the PLC data table. Two MSTR blocks will be ecessary for a Read ad Write operatio. Figure 4 Istructio Edit Figure 5 PLC Ladder Logic Showig MSTR Blocks 3. Double click o the MSTR blocks to idetify the register locatios i the PLC. The cotrol data will appear i the top register. The middle register is the locatio of the usable data beig trasferred betwee the L5352 ad the Etheret Master. The bottom value is the total words beig trasferred. 4. Right click over the MSTR block; this will allow access to select the Register Editor. Use the Register Editor to cofigure the block. The MSTR block has four possible commuicatio protocols. The protocol beig used with the L5352 LikCard is TCP/IP. The lower right had corer has two buttos (PREV ad NEXT); use the NEXT or PREV buttos to select to TCP/IP (page 2 of 4). 5. There are two types of operatios Read or Write. The MSTR Operatio Code register defies the type of operatio. A value of 1 i the data colum defies a write operatio, ad a value of 2 i the data colum defies a read operatio. 6. The Error Status register cotais error codes. Refer to Appedix B for a list of the error codes. The PLC software also has help files that cotai a list of error codes. 7. The # of Registers register defies the quatity of words to be trasfered. The value i the data colum depeds o the umber of registers i the Lik cofiguratio. This value ca be smaller tha or equal to the selected parameter set. HA Etheret LikCard Issue 2.doc

10 6 8. The Fuc. Depedet Ifo registers defie the read ad write locatios of the data i the PLC. A value of 1 is used for the read fuctio, ad a value of 1025 is used for the write fuctio. 9. The Head # ad Map Idex register idetifys the locatio of the Etheret port i the PLC. 10. IP Routig Bytes 1 through 4 defies the IP address o the Etheret etwork. 11. Whe usig the ModBus/TCP protocol, the LikCard eeds to be programmed with the BYTE SWAP FALSE. This applies to Modico products ad other maufacturers usig the ModBus/TCP protocol. Figure 6 Read Registers Figure 7 Write Registers HA Etheret LikCard Issue 2.doc

11 Alle Bradley Cotrologix 1. Start a ew program ad select the PLC processor ad chassis type that will be used i your project. Our example uses a 1756-L55 processor ad 1756-A7 chassis. Remai Offlie util you are ready to dowload the program. 2. I the I/O cofiguratio, select the Etheret scaer. Right click o the I/O Cofiguratio folder to select a New Module. Select the type of scaer module that will be used i the PLC. Refer to Figures 8 ad 9 7 Figure 8. Selectig New Scaer Module HA Etheret LikCard Issue 2.doc

12 8 Figure 9. Scaer IP Address Figure 10. Module Selectio 3. Uder the scaer card, add a ew module. Right click o the scaer module ad select New Module. Select Geeric Etheret module. Refer to Figure 10 HA Etheret LikCard Issue 2.doc

13 9 Figure 11. Module Addressig 4. This widow allows you to ame the module ad to set etwork address, set data type (data-it), ad set data size. The iput Assembly Istace is 100 ad the Size, 8, is the umber of words cofigured i the Assembly Istace set from the Lik.. The output Assembly Istace is 150 ad the Size, 8, is the umber of words you are sedig to LINK. The HMS Aybus Cofiguratio assembly istace is 1 ad the size is 0. The Comms Format is set for DATA-INT to allow trasferrig 16 bit words. Refer to Figure Click the NEXT butto to the set the Requested Packet Iterval time. The default settig should be sufficet for most applicatios. Whe fiished with the Requested Packet Iterval scree, click the FINISH butto to exit. Refer to Figure 12. Figure 12. Requested Packet Settig HA Etheret LikCard Issue 2.doc

14 10 6. The RSLogix 5000 program cofigures your data types ad I/O data poits automatically. 7. Oce the PLC programmig is doe for the LikCard, the program ca be dowloaded to the PLC. 8. The PLC automatically creates a cofiguratio data block. The block is always eds a C. This block is part of every cofiguratio. L5352_LikRack C: 0 was created for this module. The type ad size of the data is fixed, (Type: SINT, Size: 400 bytes). This cofiguratio data block is created regardless of the cofiguratio size. Figures 13 ad 14 are examples of the data, iput ad output allocatios ad moitorig of the iputs ad outputs. Figure 13. Etheret Data allocatios for the PLC Figure 14. Moitorig PLC Iputs ad Outputs HA Etheret LikCard Issue 2.doc

15 Appedix A Troubleshootig 11 L5352 Module Status LED This bi-color (gree - red) LED provides device status. It idicates whether or ot the device is powered ad operatig properly. Table 1 defies the differet states of the Module Status LED. Table 1 LED State Status Off Disabled No power applied to the device Flashig Gree Device i stadby or Card Iitializig Reaso Host LINK2 module is ot ruig its cofiguratio Hardware Fault Not Programmed i Lik Cofiguratio Device eeds commissioig due to missig, icomplete or icorrect cofiguratio Flashig Red Cofiguratio Error Wrog Commuicatio Optio Selected Cofiguratio ot complete Blik Red Alive Aoucemet Iitiatig Commuicatios with the etwork Gree Device operatioal The device is operatig i a ormal coditio Red Hardware fault After cofiguratio attempt the module faults L5352 Network Status LED This bi-color (gree - red) LED idicates the status of the commuicatios lik. Table 2 defies the differet states of the Network Status LED. Table 2 LED State Status Reaso Off Disabled The device may ot have power applied to it. Look at Module Status LED Not cofigured i the Lik 2 Rack or Touch scree Flashig Gree Gree O-Lie No Coectio Device is active o the etwork, but is ot owed by a PLC Data Size Icorrect Lik OK, O-lie, Coected Commuicatio with the Etheret Master, correct L5352 cofiguratio HA Etheret LikCard Issue 2.doc

16 12 Appedix B Error Codes Error Codes (Modbus Plus & SY/MAX Etheret) Error Status Register: 4xxxx + 1 (HEX) Error Codig: Mmss where M = major code, m = mior code, ss = sub code 16#1001: User iitiated abort. 16#20ss: Ivalid commad errors. 16#30ss: Modbus slave exceptio respose. 16#4001: Icosistet Modbus slave respose. 16#5001: Icosistet etwork respose. 16#6mss: Routig failure. 16#F001: Selected S985 optio is ot preset. Ivalid Commad Errors Error Status Register: 4xxxx+1 (HEX) Error Codig: Mmss where M = major code, m = mior code, ss = sub code 2001: Ivalid operatio type. 2002: User parameter chaged. 2003: Ivalid legth. 2004: Ivalid offset. 2005: Ivalid legth + offset. 2006: Ivalid SDDA (Slave Device Data Area). 2007: Ivalid SDNA (Slave Device Network Address). 2008: Ivalid SDNR (Slave Device Network Routig). 2009: Ivalid route ( = ow address). 200A: Global read request > available. 200B: Peer Cop coflict o write/read global data. 200C: Bad patter for chage address request. 200D: Bad address for chage address request. HA Etheret LikCard Issue 2.doc

17 Modbus Slave Exceptio Respose Error Status Register: 4xxxx+1 (HEX) Error Codig: Mmss where M = major code, m = mior code, ss = sub code : Illegal fuctio request (ot available i slave). 3002: Illegal data address (ot cofigured i slave). 3003: Illegal data value (Read/Write data ot valid). 3004: Not used (ukow error). 3005: Slave accepted log duratio program commad. 3006: Requested fuctio caot be performed due to log commad i progress. 3007: Slave rejected log program commad. Routig Failures Error Status Register: 4xxxx + 1 (HEX) Error Codig: Mmss where M = major code, m = mior code, ss = sub code Routig failure error code: 6mjj 6m01: No respose. 6m02: Program access deied. 6m03: Node is offlie ad uable to commuicate. 6m04: Exceptio respose received. 6m05: Route ode data paths busy. 6m06: Slave device dow. 6m07: Bad destiatio address. 6m08: Ivalid ode type i routig. 6m10: Slave rejected the Modbus commad. 6m20: Slave forgot iitiated traslatio. 6m40: Uexpected master output path received. 6m80: Uexpected respose received. Note: m = idex to locatio i the routig iformatio where routig problem was discovered. 0 = local etwork statio 1 = first device i route 2 = secod device i route, etc. HA Etheret LikCard Issue 2.doc

18 14 Modbus Slave Exceptio Respose Error Status Register: 4xxxx+1 (HEX) Error Codig: Mmss where M = major code, m = mior code, ss = sub code 3001: Illegal fuctio request (ot available i slave). 3002: Illegal data address (ot cofigured i slave). 3003: Illegal data value (Read/Write data ot valid). 3004: Not used (ukow error). 3005: Slave accepted log duratio program commad. 3006: Requested fuctio caot be performed due to log commad i progress. 3007: Slave rejected log program commad. HA Etheret LikCard Issue 2.doc

19 Techical Specificatios 15 Evirometal Operatig temperature 0º C to 50º C (32º to 122º F) Storage temperature -10º C to +70º C (14º to 158º F) Humidity Eclosure Ratig 85% RAH. i a dry, o-codesig eviromet Touchsafe IP20. To be mouted iside a Ssd L5300, or L5392 series eclosure Supply Voltage Supply Voltage Curret Cosumptio Power Dissipatio 5VDC, supplied by backplae 500 5VDC 2.5 W Etheret Coectio Types Baud Rate Data Types Maximum Words Idicators supported Cofigurability Coector type MODBUS TCP ad ETHERNET IP protocols supported. 10/100 Mbaud Usiged Itegers (LINK Ordials) bit Words I / Out Network status bi-color LED, Module status bi-color LED LikCard cofiguratio performed usig DSD. Etheret etwork ad PLC programmed idepedetly RJ 45 Category 5 Twisted Pair Cable. Physical Height Width Depth Weight 120mm (4.72 i) 32mm (1.25 i) 90mm (3.54i) 0.16 kg (0.35 lbs) HA Etheret LikCard Issue 2.doc

20 16 HA Etheret LikCard Issue 2.doc