T Phn A: Khoa hc T ng: 26 (2013): 71-79 71 NG DNG MNG TRUYU KHI N T NG TN T Nguy 1 , Nguy 2 1 B i hc C 2 n t i hc C Thông tin chung: 08/01/2013 19/06/2013 Title: Applying PROFIBUS network for controlling the existing model of flexible manufacturing system at Mechatronic Lab College of Engineering Technology Từ khóa: PROFIBUS, PROFIBUS DP, Keywords: PROFIBUS Network, PROFIBUS DP, Programmable logic controller ABSTRACT With the continuous development of science and technology on the world today, the application of advanced techniques to impulse the industrialization and modernization of our country is the most essential thing to do. In this paper, we would like to introduce to readers an application of communication network - Profibus to controlling a flexible manufacturing system using PLC S7-300 (CPU 315-2DP) of Siemens. This is a model of flexible manufacturing system working as a chain of assembling and sorting products in diferrent colors to appropriate storages from FESTO (Germany). The system consists of five stations using PLC S7-300 and one station of Robot doing assembly for completing product. All PLC stations are completely controlled and supervised on computer with SCADA software connecting to PLC master using MPI device; and using PROFIBUS network in order to communicate with other PLCs. T - -300 (CPU 315- - 1 GII THIU vit tt ca Process n mng c n l n c chun quc t 00. Mt dng c T Phn A: Khoa hc T ng: 26 (2013): 71-79 72 c ng dng rt ph bin trong m nghing dng t b ngo - - n nhm phc v cho vi i t truyn d liu cao v th i d liu gi PLC ho p v ngo c m bin, thit b truyng, thit b chp rng PROFIBUS DP 187,5 kBit/s: 500 kBit/s: 1,5 MBit/s: 3 MBit/s: 6 MBit/s: 12 MBit/s: m ca mng PROFIBUS DP: D liu truy nh trong cu i d liu). Duy nht mt DP ch xut d liu v tr H th D li i trm. Th c vi 10 trm m r i trm t mng con (subnet) trong h thng SIMATIC NET c c s dng cho c u khi v u kho n. Thit lp mc v cho m ni mt s ng hn ch tr trng truy vi tc truyn t t lp cu n cn m PLC S7- c d liu vi nhau, m mt DP ch . DP ch qu d liu ca DP t qua giao ti liu trc ting giao tip MPI. Qua th giao di ng bng phn mm 2 U 2.1 Cn cng 2.1.1 Cn cm PLC Mng truy m 5 PLC S7-300 s c lp cn c bng phn mm SIMATIC Manager. Vic u khi th c thc hin bng phn m h 1: Minh ha mng truyi PROFIBUS DP T Phn A: Khoa hc T ng: 26 (2013): 71-79 73 n mm SIMATIC Manager to mt d m 5 trm PLC S7-300, a tr m ch (master) qu liu ca bn trm PLC t i: trm 2, trm 3, trm thng t n t u t trm trung gian v to 5 trm PLC S7-300 trong project, t ca s SIMATIC Manager, ta chn mc “Insert > Station> SIMATIC 300 Station” o 5 trm PLC S7-300 Thit la PLC S7-300 (CPU 315-2DP) cm bn tng tr Hardwarec hin vic thit lp cn c T n SIMATIC 300 > RACK-300 > rail. -2DP: chn SIMATIC300 > CPU-300 > CPU 315-2DP > 6ES7315- 2AG10-0AB0 > V2.0 > ch rail (v n: SIMATIC 300 > PS- 300 > PS 307 2A > ch - 300 > DI/DO-300 > SM 232 DI16/DO16x24V/0.5A > ch C -300 CPU 315- n c-2DP T Phn A: Khoa hc T ng: 26 (2013): 71-79 74 Khi thit lt phn c 2.1.2 C t lp c tng trm t Hardware Configuration a p chut ph DP > Object Properties p tho Properties-DP- (R0/S2.1) t hin. Thc hin c Mp cht hin hp thoi PROFIBUS interface DP Ma ch ca CPU kt n tu cha ch p rng PROFIBUS). Trong m hp tho New subnet t hip tho ti mc n M M t l i d lim 2 vi trm 1. Thit l Ch t hin hp thoi DP (R0/S2.1) Configuration - p thoi m a ch tu chn c i d liu), m d liu trai), mc d liu). Thit l Thc hi tt thit l cho tr t li d li Khi thit l d-> Save and compile) c t lp. Thc hin thit lp c c Subnet chn kt n chung mt mc thit lp trm 2. 2.1.3 Thit lp cm ch thit lp c PROFIBUS cho Tr c hi trm t t s M Trong m t n thit lp m t. Thit lp i d li Trm 1: i giao di a trm 1, m ch c DP master Hp thot hi i d lio t m t n i vi tr T Phn A: Khoa hc T ng: 26 (2013): 71-79 75 Chuyn qua m to i d lia trm 1 vi m 2 va kt n Thc hi thit li d liu trm 1 vi tr m ch i vi tng trm t ph u ging t ng to m n liu c m t s b t nng PROFIBUS i d liu cm t i d lim t Nhut T Phn A: Khoa hc T ng: 26 (2013): 71-79 76 t qu i d liu gi Sau khi thit l n a trm 1 s PLC t n cc thit lt Khi thit l 2.2 Li d liu gi nh truy p ng lnh truyc s d n. Vic s d h i CPU, loi d liu truyn, s ng d liu truyn, t truyn. i vi CPU 315 2- s dng lnh truy lp s d c d li truyn d liu. Mi trm t muc d liu c c d liu t tr truyn d li m ch m v qu 4 trm tvy trm 1 cn 4 c thc hii vm t 2, 3, 5, 6. L i d li c thc hin i OB1 ca tng tr l khi OB1. T giao din l a khi OB1 chn Li > ch c d lin d li p sau: a ch i. RET_VAL: Tr v chu i. RECORD: D liu cc cha ti a ch i. sau: ịa chỉ ớ ổi. RECORD: D liu cn truyn cha ta ch i. RET_VAL: Tr v chu i. Vii d liu php vi i d liu gi c n cng. L i d liu n tr c l i d lin tr T Phn A: Khoa hc T ng: 26 (2013): 71-79 77 y, thc hi p i d liu gia trm 1 v li: tr (a) “Trạm chủ” với “Trạm tớ” (b) “Trạm tớ” với “Trạm chủ” i d li T Phn A: Khoa hc T ng: 26 (2013): 71-79 78 t vic l t c xung tng trt ni MPI gi i PLC ch, b n bi ng n ca SIMATIC download cn c phn l ng PLC. 3 KT QU O LUN t vic thit lp c phn c i d liu gia tr t qu cho thy tri d liu v kim tra d li i, chn i ch liu quc th hi (DW = Double Word). lic qu c t h thn t n sn xut linh hot) 4 KT LUN t lp mng truyng dng m PLC S7-300 (CPU 315-DP) trong h FMS c ng thi thc hin viu khi T Phn A: Khoa hc T ng: 26 (2013): 71-79 79 thng phn m tr liu hin ti cng trm. Kt qu m PLC trong h thng d lic vi d liu gia PLC ch vi c thit l lit p truy thng c qu p cho ng dng rng truyp n xuc bi dng n t ng ho thng sn xut linh ho LI CM T m i hc Cn u kin thun l V tr t c hi m p thit b, v phc v cu khoa hc. Xin c c nhi Ngh t c c bi ng , cung c i xin c n: Phm Qu Nguyn Tr n t n h thng ho ng t c s c gi ni n t U THAM KHO 1. Supporting Real-Time Communications with Standard Factory-Floor Networks. Universidade do Porto. 2. Hans Berger, 2003. Automating with simatic. Publicis Coporate Publishing, Erlangen. 3. Josef Weigmann, Gerhard Kilian, 2003. Decentralization with PROFIBUS DP/DPV1. Publicis Coporate Publishing, Erlangen. 4. N.Dreilich, 2001. Product manual Profibus DP 07-05-04-02-E-V0801. Eurotherm Drives Limited. 5. Nguyn M2007. - Mng truyp. i hng. 6. 2012. ng . 7. Trm Quang Huy, 2011. T . Technology Từ khóa: PROFIBUS, PROFIBUS DP, Keywords: PROFIBUS Network, PROFIBUS DP, Programmable logic. i hc C Thông tin chung: 08/01/2013 19/06/2013 Title: Applying PROFIBUS network for controlling