You are on page 1of 28

TRNG CAO NG NGH TP.

HCM
38 Trn Khnh D P.Tn nh Q1 HCM

LI NI U
- gip cho sinh vin cc khi k thut am m v lnh vc t ng ha, c bit l lp trnh PLC cho cc h thng thit b ca hng Siemen, tc gi bin son chn lc nhng phn c bn v nng cao nhm gip sinh vin d thc hnh, nghin cu. - y l ti liu lu hnh ni b trong trng Cao ng Ngh Tp.HCM, a ch 38 Trn Khnh D, Phng Tn nh, Q.1, Tp.HCM. - Ti liu ny c bin son chi tit, c th nhm gip sinh vin trong nhng gi thc hnh. Tt c cc phn trong ti liu c tc gi th nghim trn thit b phn cng ca hng Siemen trong nh trng. - Mi thc mc hoc gp xin lin h: + Ging vin Phan Thanh Tun khoa in-in Lnh trng Cao ng Ngh Tp.HCM. in thoi: 0906.60.33.72 hoc Email: thanhnientnt@gmail.com + Khoa in-in Lnh trng Cao ng Ngh Tp.HCM, a ch 38 Trn Khnh D, P.Tn nh, Q.1, Tp.HCM. (Trong ni dung c tham kho 1 s ti liu chuyn ngnh c lin quan)

Bin son: Ging vin Phan Thanh Tun


1

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM

CHNG 2:
CH N

N I 200 N H NG

I C C HI

IC C

I 1: MNG TRUYN THNG CNG NGHIP SIMATIC NET(Tham kho ti liu)


SIMATIC NET l mng truyn thng cho php kt ni vi cc b iu khin ca SIEMENS,cc my tnh ch, cc trm lm vic. SIMATIC NET bao gm cc mng truyn thng, cc thit b truyn d liu, cc phng php truyn thng d liu, cc giao thc v dch v truyn d liu gia cc thit b, cc module cho php kt ni mng LAN (CP Communication Processor hoc IM Interface Module). Vi h thng SIMATIC NET, SIEMENS cung cp h thng truyn thng m cho nhiu cp khc nhau ca cc qu trnh t ng ho trong mi trng cng nghip. H truyn thng SIMATIC NET da trn nhiu tiu chun quc t ISO/OSI (International Standardization Organisation / Open System Interconnection). C s ca cc h thng truyn thng ny l cc mng cc b (LANs), c th thc hin theo nhiu cch khc nhau: in hc, quang hc, khng dy hoc kt hp c ba cch trn. Theo cc yu cu v chc nng cc lp trong t chc iu hnh, qun l sn xut th mng cng nghip c chia thnh nhiu cp bao gm: cp iu hnh qun l, cp phn xng, cp trng v cp c cu chp hnh cm bin - i tng. Theo phng php t chc h thng nh trn SIMATIC cung cp cc loi sub-net nh: - Mng PPI. - Mng MPI. - Mng AS-i. - Mng PROFIBUS. - Mng ETHERNET cng nghip. Chun 0-20, 4mA - 20mA. So snh l i t dy. I M n PPI PPI (Point to Point Interface) thc hin truyn thng ni tip im ti im. Ghp ni im ti im c th l ghp ni gia hai thit b t ng ho vi nhau, hay ghp ni gia thit b vi my tnh hoc vi thit b truyn thng khc. PPI c nhng tnh cht c trng sau y: - Ghp ni gia hai thit b truyn thng mt cch trc tip hay thng qua driver c bit.

Bin son: Ging vin Phan Thanh Tun


2

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM

- C th s dng cc th tc ring c nh ngha truyn kiu ASCII. hng s k thut ca PPI -S lng trm 2 -Cng vt l RS 232C (V24)20mA (TTY)RS 422/485 -Tc truyn 300 bit/s 76,8 Kbit/s cho cng RS 232C ;300 bit/s 19,2 Kbit/s cho cng RS 422/485 -Khong cch truyn 10 m cho cng RS 232 ; 1000 m cho cng RS422/485 -Dch v truyn thng ASCII-Driver3964 (R), RK 512, Printdriver v cc loi Driver c bit khc

II M n MPI: MPI (Multi Point Interface) l mt subnet ca SIMATIC. Mng MPI c s dng cho cp trng hay cp phn xng vi yu cu v khong cch gia cc trm khng ln. Mng ch cho php lin kt vi mt s thit b ca SIMATIC nh S7/M7 v C7. Thit lp mng MPI phc v cho mc ch ghp ni mt s lng hn ch cc trm (khng qu 32 trm) v dung lng truyn thng nh vi tc truyn ti a l 187,5 Kbps. Phng php thm nhp ng dn c chn cho mng MPI l Token Passing. ng PI c nhng c im c bn sau: - Cc thit b trong mng thuc SIMATIC S7/M7 v C7 v vy cho php thit lp mng n gin. - Mng c thit lp vi s lng hn ch cc thnh vin v ch c kh nng trao i mt dung lng thng tin nh. - Truyn thng thng qua bng d liu ton cc gi tt l GD (Global Data). Bng phng php ny cho php thit lp bng truyn thng gia cc trm trong mng trc khi thc hin truyn thng. - C kh nng lin kt nhiu CPU v PG/OP vi nhau. Cc thng s k thut ca mng PI:

-Chun SIEMENS -S trm cho php Max 32 -Phng php thm nhp ng dn Token Passing -Tc truyn thng Max 187,5 Kbit/s -Mi trng truyn dn i dy kp c bc kim chng nhiu, cp quang (thu tinh hoc cht do) -Chiu di ln nht ca mng 50 m, vi Repeater 1100 m,vi cp quang qua OLM>100 km -Cu trc mng (Topology) ng thng, cy, hnh sao v vng trn -Dch v truyn thng Cc hm chc nng ca S7.Bng d liu truyn thng ton cc (GD)

Bin son: Ging vin Phan Thanh Tun


3

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM

III M n

-i:

AS-i (Actuator Sensor Interface) giao din cm bin c cu chp hnh, mng ch c mt ch duy nht. Phng php thm nhp ng dn l phng php Master Slave, mt phng php hon ton ti u cho nhng mng ch c duy nht mt thit b l ch. AS-i s c cu trc tht l n gin nu nh cc c cu chp hnh v cc cm bin u l cc thit b kiu s (Digital Input/Digital Output DI/DO), khi thit b kiu analog phi s dng cc b chuyn i tn hiu chun ca SIEMENS. Trong mng ch c trm ch c quyn iu khin qu trnh trao i thng tin. Trm ch (Master) gi tun t tng trm t (Slave) ti mt v i hi cc trm ny gi d liu ln trn trm ch hoc nhn d liu t trm ch. Nhng tnh cht c trng ca A -i: - AS-i l mng ti u cho cc thit b chp hnh v cm bin s. Qu trnh trao i d liu c thc hin thng qua ng dn t c cu chp hnh/cm bin vi trm ch, ng dn ny ng thi l ng cung cp ngun cho cc cm bin. - AS-i c th ghp ni vi cc c cu chp hnh c kch thc 1 bit n 8 bit theo tiu chun IP 65 v lin kt trc tip vi qu trnh. - Hot ng ca AS-i khng cn thit lp cu hnh trc. Cc thng s k thut ca A -i: -Chun : AS-i theo chun IEC TG 178 -S lng trm cho php: 1 Master v max 31 Slave -Phng php thm nhp ng dn : Master Slave -Tc truyn: 167 Kbit/s -Mi trng truyn thng: Dy dn thng khng bc -Khong cch gia cc thit b trong mng : 300 m vi Repeater

Bin son: Ging vin Phan Thanh Tun


4

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM

-Kiu ni : ng thng, cy, sao -Dch v truyn thng : AS-i Function

IV/M ng Ethernet cng nghip: IE (Industrial Ethernet) mng Ethernet cng nghip l mng phc v cho cp qun l v cp phn xng thc hin truyn thng gia my tnh v cc h thng t ng ho. N phc v cho vic trao i mt lng thng tin ln, truyn thng trn mt phm vi rng. Cc b x l truyn thng dng trong mng lun kim tra xem ng dn c b chim dng khng. Nu khng th mt trm no trong mng c th gi in tn i, khi xy ra xung t trn mng v c hai trm gi th ngng ngay li v qu trnh gi in tn c thc hin li sau mt thi gian nht nh, thi gian ny c xc nh theo lut ton hc ngu nhin. ng thernet cng nghip c nhng tnh cht c trng sau: - Mng Ethernet cng nghip s dng th tc truyn thng ISO v TCP/IP (Transmission Control Protocol / Internet Protocol). - Theo phng php thm nhp ng dn chn (CSMA/CD Carrier Sense Multiple Access with Collision Detecion) th cc thnh vin trong mng Ethernet cng nghip u bnh ng vi nhau. - Theo tiu chun truyn thng ISO v ISO on TCP th cc trm khng phi ca SIEMENS cng c kh nng tch hp vo mng, ni mt cch khc Ethernet cng nghip l mng truyn thng m. Cc thng s ca mng thernet cng nghip: -Chun truyn thng : IEEE 802.3 -S lng trm : Max 1024 trm

Bin son: Ging vin Phan Thanh Tun


5

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM

-Phng php thm nhp ng dn : CSMA /CD (Carrier Sense Multiple Access with Collision Detection) -Mi trng truyn thng : - Dy dn : + Cp ng + Cp i dy xon - Cp quang : Cp thu tinh hoc cht do -Kiu ni : ng thng, cy, hnh sao v vng trn -Dch v truyn thng : S7-FunctionISO-TransportISO-on-TCP

VM n P oi u : PROFIBUS - Process Field Bus. y l mt chun truyn thng c SIEMENS pht trin t nm 1987 trong DIN 19245. PROFIBUS c thit lp theo phng php h truyn thng m, khng ph thuc vo nh ch to (Open Communication Network) phc v cho cc cp phn xng v cp trng. Mng PROFIBUS tun theo chun EN 50170 cho php kt ni cc b iu khin PLC, cc thit b vo/ra phn tn, cc b lp trnh PC/PG, cc c cu chp hnh, cc thit b hng khc. ng P OFI c cung cp theo ba chng loi tng thch nhau:

PROFIBUS DP (Distributed Peripheral) phc v cho vic trao i thng tin nh nhng i hi tc truyn nhanh. PROFIBUS DP c xy dng ti u cho vic kt ni cc thit b trng vi my tnh iu khin. PROFIBUS DP pht trin nhm p ng yu cu cao v tnh nng thi gian trong trao i d liu, gia cp iu khin cng nh cc b PLC hoc cc my tnh cng nghip vi cc ngoi vi phn tn cp trng nh cc thit b o, truyn ng v van. Vic trao i ch yu c thc hin tun hon theo c ch Master/Slave. Vi s trm ti a trong mt mng l 126, PROFIBUS DP cho php s dng cu hnh mt trm ch (Mono Master) hoc nhiu trm ch (Multi Master). Mt c trng na ca PROFIBUS DP l tc truyn cao, c th ln ti 12 Mbit/s.

Bin son: Ging vin Phan Thanh Tun


6

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM

PROFIBUS FMS (Fieldbus Message Specification) trao i lng thng tin trung bnh gia cc thnh vin bnh ng vi nhau trong mng. PROFIBUS FMS c dng ch yu cho vic ni mng cc my tnh iu khin v gim st. Mng ny ch thc hin cc lp 1, 2, 7 theo m hnh quy chiu OSI. Do c im ca cc ng dng trn cp iu khin v iu khin gim st, d liu ch yu c trao i vi tnh cht khng nh k. PROFIBUS PA (Process Automation) c thit k ring cho nhng khu vc nguy him. PROFIBUS PA l s m rng ca PROFIBUS DP v phng php truyn dn an ton trong mi trng d chy n theo chun IEC 61158-2. PROFIBUS PA l loi bus trng thch hp cho cc h thng iu khin phn tn trong cc ngnh cng nghip ho cht v ho du. Thit b chuyn i (DP/PA-Link) c s dng tch hp ng mng PA vi mng PROFIBUS DP. iu ny m bo cho ton b thng tin c th c truyn lin tc trn h thng mng PROFIBUS bao gm c DP v PA

Bin son: Ging vin Phan Thanh Tun


7

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM

I 2: TN IP CV IP C NETR/NETW) C khai o v n
Vo Instruction Tree chn: NETR/NETW

NG MNG PPI( NH

c 1: Specify the Number of Network Operations You Need(S trm hot ng trong mng)

Bin son: Ging vin Phan Thanh Tun


8

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM

c 2:PLC s dng Port no truyn thng/Tn ca chng trnh con s dng

1.PLC c chng trnh ny s mc nh l master trong mng PPI 2.Wizard s to chng trnh con bao gm cc tham s c/ghi data t cc trm v PLC master.Chng trnh con ny mc nh tn NET EXE,tn ny c th chnh sa li c 3:Cu hnh hot ng cc trm trong mng

Bin son: Ging vin Phan Thanh Tun


9

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM

1.Chn s dng NETR hay NETW. 2.Bao nhiu byte d liu nn c c/ghi t PLC master 3.a ch ca PLC m bn mun kt ni. 4.Thit lp cho lnh NETR: -Ni d liu trong PLC slave s c PLC local c - Ni PLC local lu d liu vo: VB, IB, QB, MB, LB. 5.Thit lp cho lnh NETW: -a ch d liu trong PLC local s c ghi vo PLC salve: VB, IB, QB, MB, LB. - Ni d liu s c ghi vo PLC salve VB, IB, QB, MB, LB. c 4:Thit lp vng nh V s s dng trong chng trnh NETR/NETW.Khi s dng chng ta phi trnh cc vng nh nm trong khong vng nh ny c 5:Hon thnh cu hnh cho lnh NETR/NETW Sau khi hon thnh 5 bc thit lp Step7 Micro s to 1 chng trnh con NET EXE

. Vi tham s Timeout: gi tr t 0-36767(s) Cycle:s o trng thi m i ln lnh NET_EXE hon thnh Error: 0=no error 1=error(kim tra byte trng thi bit chi tit l i)

Bin son: Ging vin Phan Thanh Tun


10

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM

Bin son: Ging vin Phan Thanh Tun


11

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM

I 3: T N I P C V I M N H NH GI O IN NG M Y HMI NG WINCC XI
I/Cc b c khi to 1 Project m i: Chy WinCC Flexible 2008ProjectNew c 1:Chn loi mn hnh HMI:

I-

Sau khi chn ng loi mn hnh click OK vo mn hnh giao din thit k

Bin son: Ging vin Phan Thanh Tun


12

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM

c 2:Chn kiu kt ni(Connection)

c 3:Khai bo nhng Tag s s dng trong giao din iu khin

Bin son: Ging vin Phan Thanh Tun


13

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM

c 4:Sau khi khai bo xong quay tr li mn hnh thit k.Bt u thit k giao din iu khin cho WinCC

1 O je t n n thit k iao in WinCC n: +Button +Text Field +I/O Fields +Cc graphic m t hot ng

Bin son: Ging vin Phan Thanh Tun


14

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM

Thit lp chi tit tng Object:Nhp dupe vo i tngMenu gm

V d thit lp 1 nt nhn(

): hi nhn nt set it 0.0 trong PLC:

Nhp dupe vo nt nhn START trong mn hnh giao din thit k. -Chn EventsPress -Trong Function List chn Function:Edits bitsSetBitWhenKeyPressTag(InOut) chn Tag V0.0

Bin son: Ging vin Phan Thanh Tun


15

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM

c 5: au khi thit k hon thnh giao din. a transfer xung thit b hoc xut file t chy(i v i loi mn hnh c l n PC)

Bin son: Ging vin Phan Thanh Tun


16

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM

II/ t ni H I-PLC dng mng PPI:

+c im: +Cp kt ni: +Tc truyn:

1 mn hnh ch giao tip vi 1 PLC s dng cp chun 485 vi 1 chn truyn v 1 chn nhn mc nh tc truyn ca PLC s7 200 l 9600 baud

+Khai bo connection trong WinCC:

Bin son: Ging vin Phan Thanh Tun


17

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM

III/ t ni H I-PLC dng mng +c im: +Cp kt ni:

PI:

mt mn hnh c th giao tip cng lc nhiu PLC dng cp chun 485 vi 1 chn truyn 1 chn nhn

+Tc truyn: tc truyn nh nht dng trong mng MPI l 19200 baud( S7 200 tc mc nh l 9600 baud) +Khai bo connection trong WinCC:

Bin son: Ging vin Phan Thanh Tun


18

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM

I 4: T N I TRUYN THNG P C V I I N T N I M N NG GI O THC U


I/c im: L phng thc truyn thng gia PLC v bin tn ch ca iemen Cp kt ni:cp chun 485 vi 1 chn truyn 1 chn nhn _Cho php truyn thng trc tip gia PLC v bin tn.Ngha l PLC c th c v ghi trc tip cc tham s t bin tn s dng phi c th vin USS cung cp bi Siemen.Sau khi add USS libraries gm 4 khi chng trnh chnh(USS INIT; USS CTRL; USS RPM X; USS_WPM_X) Port bt k no trn PLC s dng kt ni bng giao thc USS th khng s dng vi bt k mc ch no khc bao gm c kt ni vi Step 7 Micro/Win Cng 1 lc ch c th s dng 1 trong 2 chng trnh con USS RPM;USS WPM.Chng trnh USS_INIT dng thit lp cc tham s truyn thng ch gi trong 1 vng qut u tin ca chng trnh M i chng trnh con USS CTRL ch iu khin 1 a ch bin tn duy nht Cu trc USS s dng 14 chng trnh con v 3 chng trnh ngt Cu trc USS yu cu s dng 400-byte block min nh V v 16-byte m giao tip.V vy khi lp trnh cn trnh s dng li nhng vng nh nm trong khong vng nh quy nh cho USS Sau khi USS INIT c thit lp cho port 0.PLC s thc hin qut tt c cc bin tn ang hot ng vi thi gian ly mu bng bn di.Ta phi set tham s time-out ca m i drive ph hp vi thi gian ny:
Communication Times Baud Rate 1200 2400 4800 9600 19200 38400 57600 240 ms (maximum) x the number of drives 130 ms (maximum) x the number of drives 75 ms (maximum) x the number of drives 50 ms (maximum) x the number of drives 35 ms (maximum) x the number of drives 30 ms (maximum) x the number of drives 25 ms (maximum) x the number of drives

Bin son: Ging vin Phan Thanh Tun


19

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM
115200 25 ms (maximum) x the number of drives

II/Chi tit khai bo cc chng trnh s dng trong giao thc 1/USS_INIT:

L cu trc dng kch hot ,khi to giao thc USS.Trc khi bt k cu trc USS no c s dng cu trc USS INIT phi c hon tt 1 cch hon thin

EN:chn kch hot USS INIT(ch gi USS INIT 1 ln duy nht) MODE: 0 i vi MM3 v bng 1 nu s dng MM4 Baud: tc truyn thng Active: a ch nhng bin tn s c kch hot(m ha di dng thanh ghi bit nh phn) Vd:Active c gi tr 3 th 2 bin tn c a ch 0 v 1 c kch hot Done:Khi USS INIT hon thnh bit Done s c kch ln mc 1 Error:Byte bo l i

Bin son: Ging vin Phan Thanh Tun


20

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM

2/USS_CTRL: Cu trc dng iu khin 1 bin tn c kch hot

EN:Bit phi On trong qu trnh iu khin bin tn Run: 1(On) / 0(Off) OFF2,OFF3:2 bit kch hot 2 ch dng khc nhau(coast to stop v stop quickly) F_ACK:Fault acknowledge:khi c l i xy ra fix l i sau nhn F ACK clear l i Dir:bit xc nh chiu quay ca ng c Drive:a ch ca bin tn(1 cu trc USS CTRL ch iu khin 1 bin tn) Type:loi bin tn(0 nu l MM3 1 nu l MM4) Speed_SP(speed setpoint):l gi tr phn trm da trn tc full khi set trong bin tn(-200% ti 200%) The Resp_R (response received):bit thng bo 1 tn hiu phn hi t bin tn. Error:l byte cha kt qu ca ln truyn thng cui cng Bng l i:
Error code 0 1 M t No error. Drive did not respond.

Bin son: Ging vin Phan Thanh Tun


21

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 A checksum error in the response from the drive was detected. A parity error in the response from the drive was detected. An error was caused by interference from the user program. An illegal command was attempted. An illegal drive address was supplied. The communications port was not set up for USS protocol. The communications port is busy processing an instruction. The drive speed input is out of range. The length of the drive response is incorrect. The first character of the drive response is incorrect. The length character in the drive response is not supported by USS instructions. The wrong drive responded. The DB_Ptr address supplied is incorrect. The parameter number supplied is incorrect. An invalid protocol was selected. USS is active; change is not allowed. An illegal baud rate was specified. No communications: the drive is not ACTIVE. The parameter or value in the drive response is incorrect or contains an error code. A double word value was returned instead of the word value requested A word value was returned instead of the double word value requested.

Status:vng nh word thng bo trng thi bin tn

Bin son: Ging vin Phan Thanh Tun


22

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM

Speed:Tc ng c tnh trn % tc full set Run_EN:bit thng bo trng thi ng c(chy=1,ngng=0) D_Dir:bit thng bo chiu quay ng c Inhibit:bit thng bo trng thi hm ca ng c. xa bit ny bit Fault phi off,cc bit Run OFF2,OFF3 phi off Fault:bit bo l i(1 c l i,0 khng l i) tra bng error code trn bit chi tit l i. xa bit fault: chnh sa nguyn nhn gy ra l i v turn on bit F_ACK bit 3/USS_RPM_X:

+USS_RPM_W +USS_RPM_D +USS_RPM_R Lu :ch 1 trong 2 cu trc USS_WPM_X hoc USS_RPM_X c kch hot trong chng trnh ti 1 thi im Cu trc USS RPM X hon thnh khi bin tn thng bo nhn c lnh hoc khi 1 l i c thng bo EN: phi lun On trong qu trnh truyn thng v On cho n khi bit Done c set Drive: a ch bin tn cn kt ni Param: a ch tham s cn c trong bin tn vd:P2000 Index: gi tr danh mc ca tham s trong bin tn vd P0004 c 5 index: 0,8,10,12,21 XMT_REQ: dng xung trong vng qut yu cu truyn thng gia PLC v bin tn DB_PTR: &VB a ch vng nh m dng lu kt qu Done: bit bo khi hon thnh Error: vng nh dng byte dng thng bo l i ca qu trnh truyn thng

Bin son: Ging vin Phan Thanh Tun


23

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM

Value:

vng nh dng lu gi tr ca tham s cn c 4/USS_WPM_X:

+USS_WPM_W +USS_WPM_D +USS_WPM_R Lu :ch 1 trong 2 cu trc USS_WPM_X hoc USS_RPM_X c kch hot trong chng trnh ti 1 thi im Cu trc USS WPM X hon thnh khi bin tn thng bo nhn c lnh hoc khi 1 l i c thng bo Bit EN phi c set cho php truyn i cc yu cu, v nn gi li trng thi cho n khi bit Done c set ln - tn hiu hon thnh qu trnh ( V d: mt lnh USS-WPM-x truyn n MM m i vng qut khi u vo XMT REQ l on). Do , u vo XMT-REQ nn c kch xung khi nhn c sn xung ln truyn mt yu cu cho m i chuyn tip dng ca u vo EN. Drive l a ch ca MM m lnh USS WPM x c chuyn ti. a ch hp l l 0 n 31. Param l s tham s. Index l bin ch vo gi tr c. Value l gi tr ca thng s cn ghi n b nh RAM trong bin tn. i vi MM3 cng c th ghi gi tr ny vo EEPROM, bng cch ci t tham s P971.

Bin son: Ging vin Phan Thanh Tun


24

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM

DB-Ptr c cung cp bi a ch ca b m 16 byte. Trong lnh USS WPM x, b m ny dng cha kt qu ca lnh a n t MM. Khi lnh USS WPM x hon tt, u ra Done c set ln v u ra Error (kiu byte) cha cc kt qu ca vic thc hin lnh. hi u vo P O c set ln, lnh s ghi vo c b nh RAM v EEPROM ca bin tn. Khi u vo EEPROM khng c set th lnh ny s ch ghi vo b nh RAM 5 t ni v i t Mi oMa te e ie 3 (MM3) C th s dng cp chun PROFIBUS v cc u ni kt ni S7-200 vi MicroMaster Series 3. * Ch : Cc thit b kt ni vi in th khc nhau c th s l nguyn nhn dn ti vic pht sinh dng in khng mong mun trong cp kt ni. Dng in ny l nguyn nhn dn ti cc l i truyn thng hoc lm hng thit b. Cn phi chc chn rng tt c cc thit b c kt ni vo mt cp truyn thng u c cng dng in nh mc hoc c cch ly ngn nga dng in pht sinh khng mong mun. a/Ci t MM3: Trc khi kt ni n S7-200, cn phi chc chn rng c cc thng s ca MM. S dng cc keypad c sn trn bin tn ci t nh sau: 1. Reset bin tn ci t li (tu chn). Nhn phm P: hin th P000. Nhn phm mi tn ln hoc xung cho n khi hin th P944. Nhn P nhp thng s: P944 = 1 2. Cho php truy xut c/ghi tt c cc thng s. Nhn P, nhn phm mi tn ln hoc xung cho n khi hin th P009. Nhn P nhp: P009 = 3 3. Kim tra li vic ci t thng s ng c cho bin tn. Vic ci t ny phi theo loi ng c c s dng. Nhn P, nhn phm mi tn ln hoc xung cho n khi hin th thng s cn ci t. Nhn P nhp: P081 = Tn s nh mc ca ng c (Hz). P082 = Tc nh mc ca ng c (RPM). P083 = Dng in nh mc ca ng c (A). P084 = in p nh mc ca ng c (V). P085 = Cng sut nh mc ca ng c (kW/HP). 4. t ch iu khin ti ch hay t xa ( Local/Remove ). Nhn P, nhn phm mi tn ln hoc xung cho n khi hin th P910. Nhn P nhp: P910 = 1 ( Remove ) 5. nh gi tr tc Baud cho chun RS-485. Nhn P, nhn phm mi tn ln hoc xung cho n khi hin th P092. Nhn P nhp, nhn phm mi tn hin th ng gi tr tc Baud cho chun RS-485: P092 3 ( 1200 baud ) 4 ( 2400 baud ) 5 ( 4800 baud )

Bin son: Ging vin Phan Thanh Tun


25

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM

6 ( 9600 baud - chun ) 7 ( 19200 baud ) 6. Nhp a ch Slave. M i drive (ti a 31) c th vn hnh qua mt bus. Nhn P, nhn phm mi tn ln hoc xung cho n khi hin th P091. Nhn P nhp. Nhn phm mi tn hin th a ch mong mun, nhn P nhp: P091 = 0 31 7. nh thi gian tng tc (tu chn). Vi thi gian t ny tc ng c s tng dn cho n khi t max. Nhn P, nhn phm mi tn ln hoc xung cho n khi hin th P002. Nhn P nhp: P002 = 0 650.00 8. nh thi gian gim tc (tu chn). Sau khong thi gian ny ng c s gim n tc cho n khi dng. Nhn P, nhn phm mi tn ln hoc xung cho n khi hin th P003. Nhn P nhp: P003 = 0 650.00 9. Serial Link Time-out. y l khong thi gian ln nht cho php gia hai ln truy nhp d liu.Thi gian ny c tnh sau khi mt d liu c nhn. Nu mt d liu ca bc in khng c nhn, bin tn s ngt v hin th m l i F008. t gi tr 0 ngng vic iu khin. Nhn P, nhn phm mi tn ln hoc xung cho n khi hin th P093. Nhn P nhp. Nhn phm mi tn nhp gi tr mong mun: P093 = 0 240 (thi gian c tnh bng giy) 10. Serial Link Nominal System Setpoint. Gi tr ny c th thay i, nhng phi tng ng 50Hz hoc 60Hz, c nh ngha tng ng vi gi 100% gi tr cho PV hoc SP. Nhn P, nhn phm mi tn ln hoc xung cho n khi hin th P094. Nhn P nhp. Nhn cc phm mi tn chn gi tr mong mun: P094 = 0 400.00 11. Tng thch USS (tu chn). Nhn P, nhn phm mi tn ln hoc xung cho n khi hin th P095. Nhn P nhp: P095 = 0 phn gii 0,1Hz phn gii 0,01Hz 12. EEPROM iu khin (tu chn). Nhn P, nhn phm mi tn ln hoc xung cho n khi hin th P971. Nhn P nhp: P971 = 0: Thay i cc thng s ci t (bao gm c P971) b mt khi mt ngun. 1: Tham s ci t c lu li trong sut thi gian mt ngun. 13: Hin th vn hnh. Nhn P thot. 7.4.6. Kt ni v ci t MicroMaster Series 4 (MM4): 6 t ni MM4 kt ni vi MM4, ta s dng cp RS-485 (ni trc tip S7-200 vi MM4). Ngoi ra, cn c th dng cp chun PROFIBUS v cc u ni kt ni. * Ch :

Bin son: Ging vin Phan Thanh Tun


26

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM

Cc thit b kt ni vi in th khc nhau c th s l nguyn nhn dn ti vic pht sinh dng in khng mong mun chy trong cp kt ni. Dng in ny l nguyn nhn dn ti cc l i truyn thng hoc lm hng thit b. Cn phi chc chn rng tt c cc thit b c kt ni vo mt cp truyn thng u c cng dng in nh mc hoc c cch ly ngn nga dng in pht sinh khng mong mun. Nu S7-200 l im nt cui trong mng, hoc nu kt ni l im im (point-to-point), cn phi s dng u A1 v B1 (khng phi A2 v B2) ca u cm. a/Ci t MM4: Trc khi kt ni n S7-200, cn phi chc chn rng c cc thng s ca MM. S dng cc keypad c sn trn bin tn ci t nh sau: 1. Reset ci t li cho h thng (tu chn): P0010 = 30 P0970 = 1 Nu b qua bc ny, cc thng s tip theo s c set theo cc gi tr: USS PZD length: P2012 Index0 = 2 USS PKW length: P2013 Index0 = 127 2. Cho php truy nhp c/ghi cc thng s: P0003 = 3 3. Kim tra ci dt thng s ng c cho bin tn: P0304 = in p ng c (V) P0305 = dng in ng c (A) P0307 = cng sut ng c (W) P0310 = tn s ng c (Hz) P0311 = tc ng c (RPM) Cc thng s ci t ny c th thay i tu thuc vo loi ng c c s dng. Trc khi ci t cc thng s P0304, P0305, P0307, P0310, P0311, cn thit phi set thng s P0010 ln 1 trc. Sau khi kt thc vic ci t, t thng s P0010 v 0. Cc thng s P0304, P0305, P0307, P0310, P0311 ch c th thay i trong ch quick commissioning. 4. nh ch iu khin t xa hay ti ch (Local/Remove): P0700 Index0 = 5 5. t la chn tn s setpoint cho USS cng COM P1000 Index0 = 5 6. nh thi gian tng tc (tu chn), l thi gian ng c tng tc n tc max: P1120 = 0 650,00 (s). 7. nh thi gian gim tc (tu chn), l thi gian ng c gim dn tc cho n khi dng: P1121 = 0 650,00 (s). 8. t tn s tham chiu:

Bin son: Ging vin Phan Thanh Tun


27

TRNG CAO NG NGH TP.HCM


38 Trn Khnh D P.Tn nh Q1 HCM

P2000 = 1 n 650 Hz 9. Tiu chun ho USS: P2009 Index0 = 0 10. t gi tr tc baud cho chun RS-485: P2010 Index0 = 4 (2400 baud) 5 (4800 baud) 6 (9600 baud) 7 (19200 baud) 8 (38400 baud) 9 (57600 baud) 10 (115200 baud) 11. Nhp a ch Slave: P2011 Index0 = 0 n 31 12. t thi gian trng gia hai bc in, y l khong thi gian cho php gia hai ln truy nhp d liu bc in. N c s dng ct bin tn trong khong thi gian xy ra l i truyn thng. Thi gian ny tnh t lc sau khi mt d liu hp l ca bc in c nhn. Nu c mt d liu khng c nhn, bin tn s ngt v hin th m l i F0070. t gi tr 0 ngng iu khin.

P2014 Index0 = 0 n 65,535 ms 13. Chuyn d liu t RAM n EEPROM: P0971 = 1 (bt u truyn thng). Lu ci t s thay i cc thng s vo EEPROM.

Bin son: Ging vin Phan Thanh Tun


28

You might also like