Oe CU'6'ng buc bien trong Status Chart v&i 1 gia trj xac djnh, thl.)'C hi$n cac bU'&c sau:
BlP&c 1: ChQn mot o trong cot Address, vao dja chi hay ten cua bien c§n CU'6'ng buc.
BlP&c 2: Neu bien la mot bit (vi dt,J: 10.0, Q0.1), th1 kieu bien 6' cot Format luon luon la bit. Neu bien la mot Byte, Word hay Double Word th1 chQn 6' c¢t Format va nhap dup chu¢t de t1m lieu bien mong mu6n.
BlP6'c 3: Oe cU'cmg buc bien v&i gia trj hi$n hanh, tm&c tien hay dQc gia trj hi$n hanh
trong PLC bang each nhap dup chu¢t vao bieu tU'Q'ng &rf'
Nhap hoi;ic cu¢n 6 chua gia tri hi$n hanh ma bc;rn mu6n CU'6'ng buc. Nhap chu¢t vao bieu tU'qng 6' tren vj tri gia tri hi$n hanh de CU'O'ng buc bien gia trj d6.
8lP6'c 4: De CU'6'ng buc mot gia tri m&i cho mot bien, nh~p gia tri vao c¢t "New Value" va
nhap chu¢t vao bieu tU'qng
BlP&c 5: Oe xem gia trj hi$n hanh cua tat ca cac bien bi CU'6'ng buc, kich chu¢t vao bieu tU'Q'ng Read Force
BlP&c 6: De cho tat ca cac bien tr& I9i tr9ng thai b1nh thU'ang, hay kf ch chu¢t vao bieu 5j
tU'qng Unforce All
3.3 Cai d~t va sfr dl,mg phan m~m STEP 7 - Micro/win 32
+ Nhll'ng yeu cau doi v6'i may tinh PC"
May ti nh ca nhan PC, mu6n cai di;it dU'Q'C ph§n mem STEP 7-Micro/Win phai thoa man nhCrng yeu c§u sau day:
- 640 Kbyte RAM (it nhat phai c6 500 Kbyte be) nh& con tr6ng). - Man h1nh 24 dong , 80 cot 6' che de) van ban.
- Con khoang 2 Mbyte tr6ng trong 6 dTa cung. - C6 h$ dieu hanh MS-DOS ver. 5.0 hoi;ic cao hO'n.
- B¢ chuyen d6i RS232-RS485 phvc vv ghep n6i truyen ht6ng trl.)'c tiep giCra may tfnh va PLC. (truyen thong online)
Truyen thong giCra STEP 7-Micro/Win v&i S7-200 CPU qua cong truyen thong 6' phfa day cua PLC. SU' dvng cap c6 bQ chuyen doi RS232-RS485, dU'Q'C gQi la cap PC/PPI, de n6i may tinh v&i PLC t9o thanh m9ch truyen thong tn,rc tiep.
Cam 1 d§u cua cap PC/PPI v&i c6ng truyen thong 9 chan cua PLC, con d§u kia v&i c6ng truyen thong n6i tiep RS-232C cua may PC. Neu may PC c6 c6ng truyen thong n6i tiep
RS232 v&i 25 chan, th1 phai ghep n6i qua bQ chuyen d6i 25 chan/9 chan de c6 the ghep n6i v&i cap truy€m thong PC/PPI.
+ Cai d~t phan mem l~p trinh STEP 7-Micro/Win 32.
Sau khi kiem tra be) nh&, 6 dTa c(rng hoan toan c6 du kha nang de cai phan mem STEP ?- Micro/Win vao 6 c(rng, th1 Ian ILI'Q't ti§n hanh cac bU'&c:
1/ Chen dTa CD vao 6 CD may tfnh.
2/ Kfch chuot vao nut " Start " de m& menu Window.
3/ Kfch· chuot vao m1,.1c Run cua menu.
4/ N§u cai dc;1t tu:
Disk A: Trong h<)p tho9i Run, go a:\setup va kfch OK ho$c ENTER.
CD: Trong h<)p tho9i Run, go e:\setup va kfch OK hoc;1c ENTER.
5/ Sau d6 se nh~n dU'Q'C dan dan tung bU'&c cac chf dan thao tac ti§p theo tren man h1nh va hoan thanh cong Vi$C cai dc;1t.
6/ Khi k§t thuc Vi$C cai dc;1t, hop tho9i setup PG/PC Interface tl,.I' dong xuat hi$n.
Kfch "Cancel" de tr& ve cLI'a s6 chfnh cua STEP ?-Micro/Win 32.
Sau khi da cai dc;1t xong c6 the bat dau so9n thao chLI'O'ng tr1nh nha phan mem STEP ?- Micro/Win 32 bang each nhap dup chu<)t vao bieu tLI'Q'ng STEP ?-Micro/Win 32 tren man h1rih.
Bai 4: cAc PHEP TOAN NH! PHAN CUA PLC 4.1 Cac lien ket logic
4.1.1 Cac l~nh vao/ra va cac l~nh tiep di~m d~c bi~t a/ L~nh vao/ra a/ L~nh vao/ra
Load (LD):
U~nh LO nc;ip gia tri logic cua mot tiep diem vao trong bit dau tien cua ngan xep. Cac gia tri cO con lc;ii trong ngan xep bi day lui xu6ng mot bit.
Load Not (LDN):
L$nh LON nc;ip gia tri mot logic nghich dao cua mot tiep diem vao trong bit dau tien cua ngan xep. Cac gia tri co con lc;ii trong ngan xep bi day lui xu6ng mot bit.
OUTPUT(=):
L$nh sao chep noi dung cua bit dau tien trong ngan xep vao bit duqc chi dinh trong 1$nh. Noi dung cua ngan xep khong bi thay d6i.