Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 759 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
759
Dung lượng
12,87 MB
Nội dung
DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Industrial Automation Headquarters Delta Electronics, Inc Taoyuan Technology Center No.18, Xinglong Rd., Taoyuan City, Taoyuan County 33068, Taiwan TEL: 886-3-362-6301 / FAX: 886-3-371-6301 Asia Delta Electronics (Jiangsu) Ltd Wujiang Plant 1688 Jiangxing East Road, Wujiang Economic Development Zone Wujiang City, Jiang Su Province, P.R.C 215200 TEL: 86-512-6340-3008 / FAX: 86-769-6340-7290 Delta Greentech (China) Co., Ltd 238 Min-Xia Road, Pudong District, ShangHai, P.R.C 201209 TEL: 86-21-58635678 / FAX: 86-21-58630003 Delta Electronics (Japan), Inc Tokyo Office 2-1-14 Minato-ku Shibadaimon, Tokyo 105-0012, Japan TEL: 81-3-5733-1111 / FAX: 81-3-5733-1211 Delta Electronics (Korea), Inc 1511, Byucksan Digital Valley 6-cha, Gasan-dong, Geumcheon-gu, Seoul, Korea, 153-704 TEL: 82-2-515-5303 / FAX: 82-2-515-5302 Delta Electronics Int’l (S) Pte Ltd Kaki Bukit Ave 1, #05-05, Singapore 417939 TEL: 65-6747-5155 / FAX: 65-6744-9228 Americas Delta Products Corporation (USA) Raleigh Office P.O Box 12173,5101 Davis Drive, Research Triangle Park, NC 27709, U.S.A TEL: 1-919-767-3800 / FAX: 1-919-767-8080 Delta Greentech (Brasil) S.A Sao Paulo Office Rua Itapeva, 26 - 3° andar Edificio Itapeva One-Bela Vista 01332-000-São Paulo-SP-Brazil TEL: 55 11 3568-3855 / FAX: 55 11 3568-3865 Europe Deltronics (The Netherlands) B.V Eindhoven Office De Witbogt 20, 5652 AG Eindhoven, The Netherlands TEL : +31-40-2592850 / FAX : +31-40-2592851 VOIP : 170 DVP-0139720-08 *We reserve the right to change the information in this manual without prior notice 2014-08-29 Operation Manual - Programming Delta Electronics (India) Pvt Ltd Plot No 43 Sector 35, HSIIDC Gurgaon, PIN 122001, Haryana, India TEL : 91-124-4874900 / FAX : 91-124-4874945 DVP-ES2/EX2/SS2/ SA2/SX2/SE&TP Operation Manual - Programming www.deltaww.com DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual Programming Revision History Issue First version Second version Description of Changes Date The first edition is issued 2010/02/26 The second edition is issued 11 / / C h a p t e r M R e l a y : A d d M , M 111 , M 11 , M , M , a n d M , a n d u p d a t e the description of the functions of M 5 ~ M a n d M 11 C h a p t e r Sp e c i a l D a ta R e g i s t e r : A d d D , D1312, D1354, and D1900~D1931, and modify the attributes of the latched functions of D1062, D 111 , D 111 , a n d D 111 C h a p t e r A p p l i c a t i o n s o f Sp e c i a l M R e l a y s and D Registers: Update the description of the f u n c t i o n s o f RT C s ; a d d M , D ( E n a b l e Third S P D f u n c t i o n ) , M 111 ( E n a b l e - s p e e d o u t p u t version f u n c t i o n o f D D RV I i n s t r u c t i o n ) , M , D ( Output specified pulses or seek Z phase s i g n a l w h e n z e r o p o i n t i s a c h i e v e d ), a n d M ( O u t p u t c l e a r s i g n a l s w h e n Z R N i s c o m p l e t e d ); Easy PLC Link is changed to PLC Link, and the description is added Chapter 3.1 Basic Instructions (without API numbers) and Chapter 3.2 Explanations to Basic Instructions: Add NP and PN instructions, and add Chapter 3.7 Numerical List of Instructions (in alphabetic order) 11 / / Issue Description of Changes Date Chapter 3.6 Numerical List of Instructions and C h a p t e r D e ta i l e d I n s t r u c t i o n E x p l a n a t i o n : I n c r e a s e e x p l a n a t i o n s o f D S PA i n s t r u c t i o n , a n d a d d f l o a t i n g - p o i n t c o n ta c t t y p e c o m pa r i s o n instructions FLD=, FLD>, FLD , FA N D < , FA N D < > , FA N D < = , FA N D > = , F O R = , F O R > , F O R < , F O R < > , F O R < = , F O R > = ; a d d t h e s u p p l e m e n ta r y description of PLSR instruction and the d e s c r i p t i o n o f K 11 ~ K i n D T M i n s t r u c t i o n mode; update the description of API166 instruction SE is added in the title of the manual Chapter 2.16: The default value in D1062 is K10 A P I i n C h a p t e r : T h e c o n t e n ts a b o u t S < D a r e deleted in program example Fourth API 148 and API 149 are added in Chapter version The information related to DVP-SE is added 2012/07/01 The information related to DVP32ES-C is added The descriptions of the models are added in the c o n t e n ts Appendix A is added F i ft h version A P I 11 i s a d d e d API150 is updated 2012/09/01 Chapter is updated M 11 , M , M , M , M , M 11 , a n d M 11 a r e a d d e d t o C h a p t e r Chapter is updated API53, API 156, API 159, API69, API88, API143, API150, API155, API258, Sixth version and API296-313 are added The description of API 178 is updated The description of the input/output mapping a r e a s f o r D V P - E S - C a s a s l a v e s ta t i o n i s a d d e d to section 7.1.2 C232, C249, and C250 are deleted from the description of the SE memory Map 2013/02/20 Issue Description of Changes Date Appendix B is added Appendix C is added T h e t i m e r i n t e r r u p ts I ~ I 9 a r e a d d e d t o Chapter2 The special auxiliary relays M1357~M1359, M1590, M1598, and M1599 are a d d e d t o t h e ta b l e o f s p e c i a l a u x i l i a r y r e l a y s T h e d e s c r i p t i o n s o f D a n d D 9 i n t h e ta b l e o f s p e c i a l d a ta r e g i s t e r s a r e u p d a t e d D ~ D , D 11 ~ D 11 , D ~ D , a n d D 9 9 a r e a d d e d t o t h e ta b l e o f s p e c i a l d a ta registers The definitions of the pins in COM1 are added to the description of M1035 The new s p e c i a l a u x i l i a r y r e l a y s i n t h e ta b l e o f s p e c i a l d a ta r e g i s t e r s a n d t h e n e w s p e c i a l d a ta r e g i s t e r s i n t h e ta b l e o f s p e c i a l d a ta r e g i s t e r s a r e Seventh version described in section 2.16 A P I 11 , A P I 11 , A P I , a n d A P I a r e a d d e d 2014/07/04 to Chapter The descriptions of API17, API22, API23, API59, API78, API80, API81, API83, A P I 1 ~ A P I , A P I 11 - A P I 11 , A P I , API166, API179, and API197 are updated The information about M1040 is added to Chapter The description of the error code C450 is added to Chapter In Appendix C, the information about TP04P s e r i e s t e x t pa n e l s i s c h a n g e d t o t h e i n f o r m a t i o n a b o u t T P s e r i e s t e x t pa n e l s Appendix D is added It introduces the current consumption of slim PLCs/extension modules I n s e c t i o n B , t h e n u m b e r o f RT U m o d u l e s o n t o which a DVP-SE series PLC can be mapped is Eighth version updated In section B.2.2, the descriptions of CR#20~CR#86 are updated In section B.2.3, the descriptions of 2014/08/29 Issue Description of Changes CR#17~CR#24 are updated, the description of CR#27 is added, and the descriptions of CR#87~CR103 are updated In section B.2.4, the descriptions of CR#0 and CR#20~CR#26 are updated Section B.6 is added Date DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual Programming Contents PLC Concepts 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 PLC Scan Method…………………………………………………………………………… Current Flow…………………………………………………………………………………… NO Contact, NC Contact……………………………………………………………………… PLC Registers and Relays…………………………………………………………………… Ladder Logic Symbols………………………………………………………………………… 1.5.1 Creating a PLC Ladder Program………………………………………………… 1.5.2 LD / LDI (Load NO contact / Load NC contact)………………………………… 1.5.3 LDP / LDF (Load Rising edge trigger/ Load Falling edge trigger)……………… 1.5.4 AND / ANI (Connect NO contact in series / Connect NC contact in series)… 1.5.5 ANDP / ANDF (Connect Rising edge in series/ Connect Falling edge in series)………………………………………………………………………………… 1.5.6 OR / ORI (Connect NO contact in parallel / Connect NC contact in parallel)… 1.5.7 ORP / ORF (Connect Rising edge in parallel/ Connect Falling edge in parallel)……………………………………………………………………………… 1.5.8 ANB (Connect block in series)…………………………………………………… 1.5.9 ORB (Connect block in parallel)…………………………………………………… 1.5.10 MPS / MRD / MPP (Branch instructions)………………………………………… 1.5.11 STL (Step Ladder Programming)………………………………………………… 1.5.12 RET (Return)………………………………………………………………………… Conversion between Ladder Diagram and Instruction List Mode………………………… Fuzzy Syntax…………………………………………………………………………………… Correcting Ladder Diagram…………………………………………………………………… Basic Program Design Examples…………………………………………………………… 1-2 1-3 1-3 1-3 1-3 1-5 1-6 1-6 1-6 1-6 1-6 1-6 1-6 1-7 1-7 1-7 1-8 1-9 1-10 1-11 1-13 Programming Concepts 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 2.10 2.11 2.12 2.13 2.14 2.15 2.16 ES2/EX2 Memory Map……………………………………………………………………… SS2 Memory Map…………………………………………………………………………… SA2/SX2 Memory Map……………………………………………………………………… SE Memory Map… ………………………………………………………………………… Status and Allocation of Latched Memory………………………………………………… PLC Bits, Nibbles, Bytes, Words, etc……………………………………………………… Binary, Octal, Decimal, BCD, Hex…………………………………………………………… M Relay………………………………………………………………………………………… S Relay………………………………………………………………………………………… T (Timer) ……………………………………………………………………………………… C (Counter) …………………………………………………………………………………… High-speed Counters………………………………………………………………………… Special Data Register………………………………………………………………………… E, F Index Registers………………………………………………………………… ……… Nest Level Pointer[N], Pointer[P], Interrupt Pointer [I] ………………… ……………… Applications of Special M Relays and D Registers…………………… ………………… 2-2 2-4 2-6 2-9 2-11 2-12 2-12 2-13 2-22 2-22 2-23 2-25 2-29 2-38 2-39 2-41 Instruction Set 3.1 Basic Instructions (without API numbers) ……………………… ………………………… 3-2 i 3.2 3.3 3.4 3.5 3.6 3.7 3.8 Explanations to Basic Instructions………………………………………………………… Pointers………………………………………………………………………………………… Interrupt Pointers……………………………………………………………………………… Application Programming Instructions……………………………………………………… Numerical List of Instructions (classified according to the function)…………………… Numerical List of Instructions (in alphabetic order)……………………………………… Detailed Instruction Explanation…………………………………………………………… 3-2 3-13 3-13 3-15 3-24 3-33 3-40 Communications 4.1 4.2 4.3 4.4 4.5 Communication Ports………………………………………………………………………… Communication Protocol ASCII mode……………………………………………………… 4.2.1 ADR (Communication Address) …………………………………………………… 4.2.2 CMD (Command code) and DATA………………………………………………… 4.2.3 LRC CHK (checksum) ……………………………………………………………… Communication Protocol RTU mode………………………………………………………… 4.3.1 Address (Communication Address) ……………………………………………… 4.3.2 CMD (Command code) and DATA………………………………………………… 4.3.3 CRC CHK (check sum) …………………………………………………………… PLC Device Address………………………………………………………………………… Command Code……………………………………………………………………………… 4.5.1 Command Code: 01, Read Status of Contact (Input point X is not included)… 4.5.2 Command Code: 02, Read Status of Contact (Input point X is included)…… 4.5.3 Command Code: 03, Read Content of Register (T, C, D)……………………… 4.5.4 Command Code: 05, Force ON/OFF single contact…………………………… 4.5.5 Command Code: 06, Set content of single register……………………………… 4.5.6 Command Code: 15, Force ON/OFF multiple contacts………………………… 4.5.7 Command Code: 16, Set content of multiple registers………………………… 4-2 4-3 4-3 4-4 4-5 4-7 4-7 4-7 4-8 4-10 4-12 4-12 4-13 4-14 4-15 4-16 4-16 4-17 Sequential Function Chart 5.1 5.2 5.3 5.4 5.5 5.6 Step Ladder Instruction [STL], [RET] ……………………………………………………… Sequential Function Chart (SFC) …………………………………………………………… The Operation of STL Program……………………………………………………………… Points to Note for Designing a Step Ladder Program…………………………………… Types of Sequences………………………………………………………………………… IST Instruction………………………………………………………………………………… 5-2 5-2 5-4 5-10 5-12 5-23 Troubleshooting 6.1 6.2 6.3 Common Problems and Solutions………………………………………………………… Error code Table (Hex) ………………………………………………………… Error Detection Devices………………………………………………………… 6-2 6-4 6-6 CANopen Function and Operation 7.1 7.2 7.3 ii The Introduction of CANopen………………………………………………………… 7.1.1 The Description of the CANopen Functions……………………………………… 7.1.2 The Input/Output Mapping Areas………………………………………………… The Installation and the Network Topology………………………………………………… 7.2.1 The Dimensions………………………………………………………… 7.2.2 The Profile………………………………………………………… 7.2.3 The CAN Interface and the Network Topology…………………………………… The CANopen Protocol………………………………………………………… 7.3.1 The Introduction of the CANopen Protocol……………………………………… 7.3.2 The CANopen Communication Object…………………………………………… 7.3.3 The Predefined Connection Set…………………………………………………… 7-2 7-2 7-3 7-3 7-3 7-4 7-4 7-9 7-9 7-10 7-15 7.4 7.5 7.6 7.7 Sending SDO, NMT and Reading Emergency Message through the Ladder Diagram 7.4.1 Data Structure of SDO Request Message……………………………………… 7.4.2 Data Structure of NMT Message………………………………………………… 7.4.3 Data Structure of EMERGENCY Request Message…………………………… 7.4.4 Example on Sending SDO through the Ladder Diagram……………………… Indicators and Troubleshooting………………………………………………………… 7.5.1 Description of Indicators………………………………………………………… 7.5.2 CANopen Network Node State Display…………………………………………… Application Example………………………………………………………… Object Dictionary………………………………………………………… 7-16 7-16 7-18 7-19 7-21 7-23 7-23 7-24 7-26 7-34 Appendix A A.1 Installing the USB Driver………………………………………………………… A-2 Appendix B B.1 B.2 B.3 B.4 B.5 B.6 Specifications for an Ethernet PLC/Module………………………………………… Ethernet Control Registers………………………… ……………………………………… B.2.1 Station Addresses of Ethernet Modules……………………………… B.2.2 DVP-SE Series PLC (Ethernet PLC) …………… B.2.3 DVPEN01-SL (Left-side Ethernet Communication Module) …………… … B.2.4 DVP-FEN01 (DVP-EH3 Series Ethernet Communication Card) …………… Searching for an Ethernet PLC…………… ……………… ……………… B.3.1 Communication setting…………………….……………………………………… B.3.2 Broadcast Search…………………… …………………………………………… B.3.3 Searching for a Model Specified………………………………………………… B.3.4 Searching by an IP Address……………………………………………………… Data Exchange……………………………………………………………………………… EtherNet/IP List……………… ……………………………………………………… B.5.1 EtherNet/IP Information Supported by DVP-SE series PLCs.……………… B.5.2 EtherNet/IP Objects Supported by DVP-SE series PLCs.……………………… RTU Mapping……………… ……………………………………………………… B.6.1 Setting the RTU Mapping……………… ………………………………………… B.6.2 Application of the RTU Mapping………………………………………………… B-2 B-2 B-2 B-2 B-4 B-6 B-6 B-7 B-8 B-9 B-11 B-12 B-12 B-13 B-14 B-16 B-17 B-18 Appendix C C.1 C.2 C.3 C.4 TP Memory Map……………………… …………………………… …………… … Special Data Register………………………………………………………………………… Special Auxiliary Relay……… …………… ………………………………… Instructions applicable to TP… ……………………………………….……………… … C.4.1 Basic Instructions……………………………………………… ……………… C.4.2 Numerical List of Instructions……………………………….…………………… C.4.3 Additional Remarks on High-speed Instructions………………………………… C-2 C-3 C-12 C-21 C-21 C-22 C-26 Appendix D D.1 Current Consumption of a Slim PLC/an Extension Module……………… …… … D.1.1 Current supply and current consumption of a PLC (+24VDC)………………… D.1.2 Current supply and current consumption of a digital input/output module (+24VDC)…………………………………………………………………………… D.1.3 Current consumption of a special input/output module (+24VDC)…………………………………………………………………………… D.1.4 Current consumption of a left-side high-speed special module (+24VDC) … D.1.5 Calculating the maximum current consumed by a system…………………… D-2 D-2 D-2 D-3 D-3 D-3 iii The DVP-ES2 series PLCs, the DVP-ES2-C series PLCs, the DVP-EX2 series PLCs, the DVP-SS2 series PLCs, the DVP-SA2 series PLCs, the DVP-SX2 s e r i e s P L C s , t h e D V P - S E s e r i e s P L C s , a n d t h e T P s e r i e s t e x t pa n e l s a r e l i s t e d b e l o w Series Model name DVP-ES2 DVP16ES200R, DVP16ES200T, DVP24ES200R, DVP24ES200T, DVP32ES200R, DVP32ES200T, DVP32ES211T, DVP40ES200R, DVP40ES200T, DVP60ES200R, DVP60ES200T, DVP32ES200RC, DVP32ES200TC DVP-ES2-C DVP-EX2 DVP20EX200R, DVP20EX200T, DVP30EX200R, DVP30EX200T DVP-SS2 DVP14SS211R, DVP14SS211T DVP-SA2 DVP12SA211R, DVP12SA211T DVP-SX2 DVP20SX211R, DVP20SX211S, DVP20SX211T DVP-SE TP iv DVP32ES200RC, DVP32ES200TC DVP12SE11R, DVP12SE11T TP04P-16TP1R, TP04P-32TP1R, TP04P-22XA1R, TP04P-21EX1R, TP70P-16TP1R, TP70P-32TP1R, TP70P-22XA1R, TP70P-21EX1R PLC Concepts This chapter introduces basic and advanced concepts of ladder logic, which is the mostly adopted programming language of PLC Users familiar with the PLC concepts can move to the next chapter for further programming concepts However, for users not familiar with the operating principles of PLC, please refer to this chapter to get a full understanding of PLC concepts Chapter Contents 1.1 PLC Scan Method .1-2 1.2 Current Flow 1-3 1.3 NO Contact, NC Contact 1-3 1.4 PLC Registers and Relays 1-3 1.5 Ladder Logic Symbols .1-4 1.5.1 Creating a PLC Ladder Program 1-5 1.5.2 LD / LDI (Load NO contact / Load NC contact) 1-6 1.5.3 LDP / LDF (Load Rising edge trigger/ Load Falling edge trigger) .1-6 1.5.4 AND / ANI (Connect NO contact in series / Connect NC contact in series) 1-6 1.5.5 ANDP / ANDF (Connect Rising edge in series/ Connect Falling edge in series) 1-6 1.5.6 OR / ORI (Connect NO contact in parallel / Connect NC contact in parallel) .1-6 1.5.7 ORP / ORF (Connect Rising edge in parallel/ Connect Falling edge in parallel) 1-6 1.5.8 ANB (Connect block in series) 1-6 1.5.9 ORB (Connect block in parallel) 1-7 1.5.10 MPS / MRD / MPP (Branch instructions) 1-7 1.5.11 STL (Step Ladder Programming) 1-7 1.5.12 RET (Return) 1-8 1.6 Conversion between Ladder Diagram and Instruction List Mode .1-9 1.7 Fuzzy Syntax .1-10 1.8 Correcting Ladder Diagram 1-11 1.9 Basic Program Design Examples 1-13 1-1