Tải bản đầy đủ (.pdf) (9 trang)

Ứng dụng mạng truyền thông Profibus trong điều khiển mô hình dây chuyền tự động tại phòng thí nghiệm cơ điện tử ppt

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (621.66 KB, 9 trang )

T Phn A: Khoa hc T  ng: 26 (2013): 71-79

71

NG DNG MNG TRUYU KHI
N T NG TN T
Nguy
1
, Nguy
2

1
B  i hc C
2
n t i hc 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 GII THIU
   vit tt ca Process
n mng c
n l
      n c 
 
chun quc t 00.
Mt dng c   

T Phn A: Khoa hc T  ng: 26 (2013): 71-79

72
c ng dng rt ph bin trong m
nghing dng
t b ngo
-
       
-
n nhm phc
v cho vi  i t
truyn d liu cao v
th    i d liu gi  
PLC ho     p v 
ngo     c    m
bin, thit b  truyng, thit b chp
 rng


PROFIBUS DP


187,5 kBit/s:

500 kBit/s:

1,5 MBit/s:

3 MBit/s:

6 MBit/s:

12 MBit/s:

m ca mng PROFIBUS DP:
 D liu truy   nh trong cu
i d liu).
 Duy nht mt DP ch  xut d liu v
tr
 H th 

 D li 
i trm.
 Th     c vi 10
trm m r   i trm

     t mng
con (subnet) trong h thng SIMATIC NET

c     c s dng
cho c u khi   v  u
kho      n. Thit
lp mc v cho m
ni mt s ng hn ch tr
trng truy vi tc
 truyn t
    
     
     t lp cu
n cn m 
PLC S7-   c d liu vi nhau,
m mt DP ch .
DP ch qu d liu ca 
DP t qua giao ti liu
trc ting giao tip MPI. Qua
 th
giao di   ng bng phn mm

2 U
2.1 Cn cng
2.1.1 Cn cm PLC
Mng truy m 5 PLC S7-300 s
c lp cn c
bng phn mm SIMATIC Manager. Vic
  u khi   th c thc
hin bng phn m


h 1: Minh ha mng truyi PROFIBUS DP

T Phn A: Khoa hc T  ng: 26 (2013): 71-79

73
 n mm SIMATIC Manager to
mt d m 5 trm PLC S7-300,
   a tr   m ch
(master) qu liu ca bn trm PLC t
i: trm 2, trm 3, trm
 thng t
n t  u
t trm trung gian  v  

 
 to 5 trm PLC S7-300 trong project, t
ca s SIMATIC Manager, ta chn mc
“Insert > Station> SIMATIC 300 Station”


o 5 trm PLC S7-300
Thit la PLC S7-300 (CPU
315-2DP) cm bn tng
tr    Hardwarec
hin vic thit lp cn c

 T       n
SIMATIC 300 > RACK-300 > rail.
 -2DP: chn 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 Phn A: Khoa hc T  ng: 26 (2013): 71-79

74
Khi thit lt
phn c
2.1.2 C
 t lp c   
tng trm t      
Hardware Configuration   a
  p chut ph  DP > Object
Properties p tho Properties-DP-
(R0/S2.1) t hin. Thc hin c 

 Mp
cht hin hp thoi
  PROFIBUS interface DP

 Ma ch
ca CPU kt n

tu cha
ch p rng PROFIBUS).
 Trong m
hp tho   New subnet
t hip tho
ti mc     
     n
 
 M
 M  t l  
i d lim 2 vi trm 1.
 Thit l 
Ch   t hin hp thoi
 DP  (R0/S2.1) Configuration -
p thoi m

a ch tu chn c i
d liu), m     d liu
trai), mc
 d liu).
 Thit l      
Thc hi  

tt thit l 
cho tr

t li d li
Khi thit l      
d-> Save and compile) c
t lp.

Thc hin    thit lp c 

   c Subnet chn
   kt n 
chung mt mc thit lp
 trm 2.
2.1.3 Thit lp cm
ch
 thit lp c PROFIBUS cho Tr
     c hi    
trm t t s 
 M
 Trong m
  t n    
thit lp  m t.
 Thit lp    i d li 
Trm 1:
  i giao di 
 a trm 1, m 
ch      
c     
 
    DP master

 Hp thot
hi        
i d lio t m t n
i vi tr

T Phn A: Khoa hc T  ng: 26 (2013): 71-79


75
 Chuyn qua m
to i d lia trm 1 vi
m 2 va kt n
Thc hi thit li
d liu trm 1 vi tr
 m ch i
vi tng trm t ph   u ging
   t ng to m   
n    liu c  m t s b


t nng PROFIBUS

 i d liu cm t

 i d lim t
Nhut
T Phn A: Khoa hc T  ng: 26 (2013): 71-79

76

t qu  i d liu gi
Sau khi thit l     n
a trm 1 s 
PLC t 


n cc thit lt

Khi thit l

2.2 Li d liu gi

  nh truy p
ng lnh truyc s d
n. Vic s d
h  i CPU, loi d liu
truyn, s ng d liu truyn, t truyn.
i vi CPU 315 2- s dng lnh
truy       lp
 s d c
d li truyn d liu.
Mi trm t muc d liu c
 c d liu t tr
 truyn d li
m ch m v qu
4 trm tvy trm 1 cn 4 c
 thc hii vm
t 2, 3, 5, 6.
L   i d li c thc hin
i OB1 ca tng tr l
     khi OB1. T giao
din l  a khi OB1 chn
Li  
  > ch   c d
lin d li p

  sau:
 a ch  i.

 RET_VAL: Tr v chu 
i.
 RECORD: D liu cc cha ti
a ch  i.
  sau:
 ịa chỉ ớ ổi.
 RECORD: D liu cn truyn cha
ta ch  i.
 RET_VAL: Tr v chu 
i.
Vii d liu php vi
  i d liu gi    c
n cng.
L i d liu
n tr c
l i d lin
tr
T Phn A: Khoa hc T  ng: 26 (2013): 71-79

77
   y, thc hi   p
i d liu gia trm 1 v
li: tr




(a) “Trạm chủ” với “Trạm tớ” (b) “Trạm tớ” với “Trạm chủ”
i d li
T Phn A: Khoa hc T  ng: 26 (2013): 71-79


78
   t vic l   
   t c   
xung tng trt ni MPI
gi   i PLC ch, b  n
bi ng  n ca SIMATIC
 download cn c
phn l ng PLC.
3 KT QU O LUN
   t vic thit lp c 
phn c     i d liu gia
tr      t qu cho thy
tri d liu v
    kim tra d li  i, chn
i ch
 liu quc th
hi


  
       

(DW = Double Word).


   
       



 lic qu

c t h thn t n sn xut linh hot)
4 KT LUN
       t lp
mng truyng dng
m PLC S7-300 (CPU 315-DP) trong
h FMS c    ng thi
thc hin viu khi
T Phn A: Khoa hc T  ng: 26 (2013): 71-79

79
thng phn m
 
tr liu hin ti cng trm.
Kt qu m PLC trong h thng d
lic vi d liu
gia PLC ch vi c
thit l lit  p
truy    thng c qu 
    p cho ng dng
rng truyp
  n xuc bi  dng
n t ng ho thng sn xut
linh ho
LI CM T
m
      i hc Cn
 u kin thun l  
V  tr  t

 c hi    m
      p thit b, v 
phc v    cu khoa hc. Xin
c c    nhi  
Ngh   t c    
 c bi    ng
       
  , cung c   i
  
xin c    n: Phm Qu 
Nguyn Tr
n t n h
thng ho ng t    c s
       c gi  ni
     n t  

U THAM KHO
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. Nguyn M2007.

- Mng truyp.
i hng.
6. 
2012. 
ng
.
7. Trm Quang Huy, 2011. T


×