lập trình PLC cho khóa điện tử bằng S7 _200 ĐÂY LÀ FILE MINH IN RA WORD..... CHƯƠNG TRÌNH MÌNH CÓ KÈM THEO CHO CÁC BẠN FILE.RAR ,.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Trang 11 / 18
Block: MAIN
Author:
Created: 10/08/2014 03:41:01 pm
Last Modified: 10/11/2014 01:51:43 pm
Symbol Var Type Data Type Comment
TEMP TEMP TEMP TEMP
PROGRAM COMMENTS
Network 1 Network Title
Network Comment
SM0.1
P
MOV_W
MOV_W
Network 2
SO_O:I0.0
P
MOV_W
2.A
T37
PT 100 ms
Trang 2P
MOV_W
3.A
T37
PT 100 ms
Network 4
S0_2:I0.2
P
MOV_W
4.A
T37
PT 100 ms
Trang 3P
MOV_W
5.A
T37
PT 100 ms
Network 6
SO_4:I0.4
P
MOV_W
6.A
T37
PT 100 ms
Trang 4P
MOV_W
7.A
T37
PT 100 ms
Network 8
SO_6:I0.6
P
MOV_W
8.A
T37
PT 100 ms
Trang 5P
MOV_W
9.A
T37
PT 100 ms
Network 10
SO_8:I1.0
P
MOV_W
10.A
T37
PT 100 ms
Trang 6P
MOV_W
11.A
T37
PT 100 ms
Network 12
SO_O:I0.0
P
MUL_I
10 VW4
IN1 IN2
VW4
12.A
ADD_I
IN1 IN2
OUT VW4
Trang 7P
MUL_I
10 VW4
IN1 IN2
VW4
13.A
ADD_I
IN1 IN2
OUT VW4
Network 14
S0_2:I0.2
P
MUL_I
10 VW4
IN1 IN2
VW4
14.A
ADD_I
IN1 IN2
OUT VW4
Trang 8P
MUL_I
10 VW4 IN1 IN2
VW4
15.A
ADD_I
IN1 IN2
OUT VW4
Network 16
SO_4:I0.4
P
MUL_I
10 VW4
IN1 IN2
VW4
16.A
ADD_I
IN1 IN2
OUT VW4
Trang 9P
MUL_I
10 VW4 IN1 IN2
VW4
17.A
ADD_I
IN1 IN2
OUT VW4
Network 18
SO_6:I0.6
P
MUL_I
10 VW4
IN1 IN2
VW4
18.A
ADD_I
IN1 IN2
OUT VW4
Trang 10P
MUL_I
10 VW4 IN1 IN2
VW4
19.A
ADD_I
IN1 IN2
OUT VW4
Network 20
SO_8:I1.0
P
MUL_I
10 VW4
IN1 IN2
VW4
20.A
ADD_I
IN1 IN2
OUT VW4
Trang 11P
MUL_I
10 VW4 IN1 IN2
VW4
21.A
ADD_I
IN1 IN2
OUT VW4
Network 22
nut_doi_pass:I1.4 VW0
==I VW4
PASS_MOI:Q0.4
MOV_W
nut_doi_pass I1.4 nut nhan de doi password
Network 23
VW4 IN OUT VW0
Trang 12SAVE_PASS:I1.6 MOV_W
Network 25
R 1 VW0 NHAP_LAI_P~:Q0.1
CUA_MO:Q0.0 R 1
MOV_W
CUA_MO
ENTER
Q0.0 I1.2
CUA MO ENTER
Trang 13ENTER:I1.2 VW0
<>I VW4
C0
VW4
3 PV
Network 27
C0 CHUONG_BA~:Q0.2
Network 28
cam_bien:I1.7 DONG_CO_D~:Q0.5
MOV_W
NHAP_LAI_P~:Q0.1 R 1
DONG_CO_DONG_CUA Q0.5 DONG CO DONG CUA
Trang 14Block: SBR_0
Author:
Created: 10/08/2014 03:41:01 pm
Last Modified: 10/11/2014 01:43:40 pm
IN_OUT OUT TEMP
Trang 15SUBROUTINE COMMENTS
Network 1
VW4
CUA_MO:Q0.0
IN
T37 TON
VW0
<>I VW4
NHAP_LAI_P~:Q0.1
0
MOV_W EN
IN
ENO
OUT VW4
1.A
VW4
Trang 16ENTER I1.2 ENTER
Network 2 Network Title
Network Comment
Trang 17Block: INT_0
Author:
Created: 10/08/2014 03:41:01 pm
Last Modified: 10/11/2014 01:43:40 pm
TEMP TEMP TEMP TEMP
Trang 18INTERRUPT ROUTINE COMMENTS
Network 1 Network Title
Network Comment
ADD_I
VW0
IN1 IN2
OUT
T37
VW0
VW2
1.A
ADD_I
IN1 IN2
OUT VW2