一、控制目的
用PLC构成舞台灯光控制系统
图1
舞台灯光控制示意图
二、控制要求及IO分配
1.
控制要求
L1、L2、L9→L1、L5、L8→L1、L4、L7→L1、L3、L6→L1→L2、L3、L4、L5→L6、L7、L8、L9→L1、L2、L6→L1、L3、L7→L1、L4、L8→L1、L5、L9→L1→L2、L3、L4、L5→L6、L7、L8、L9→L1、L2、L9→L1、L5、L8……循环下去
2.
I/O分配
三、舞台灯光控制语句表
1 |
LD |
I0.0 |
27 |
O |
M10.5 |
53 |
= |
Q0.4 |
2 |
O |
M0.1 |
28 |
O |
M11.0 |
54 |
LD |
M10.4 |
3 |
A |
I0.1 |
29 |
O |
M11.1 |
55 |
O |
M10.7 |
4 |
= |
M0.1 |
30 |
O |
M11.2 |
56 |
O |
M11.0 |
5 |
LD |
M0.1 |
31 |
O |
M11.3 |
57 |
O |
M11.6 |
6 |
AN |
M0.0 |
32 |
O |
M11.4 |
58 |
= |
Q0.5 |
7 |
TON |
T37,+5 |
33 |
= |
Q0.0 |
59 |
LD |
M10.3 |
8 |
LD |
T37 |
34 |
LD |
M10.1 |
60 |
O |
M10.7 |
9 |
= |
M0.0 |
35 |
O |
M10.6 |
61 |
O |
M11.1 |
10 |
LD |
M0.1 |
36 |
O |
M11.0 |
62 |
O |
M11.6 |
11 |
TON |
T38,+10 |
37 |
O |
M11.5 |
63 |
= |
Q0.6 |
12 |
AN |
T38 |
38 |
= |
Q0.1 |
64 |
LD |
M10.2 |
13 |
= |
M1.0 |
39 |
LD |
M10.4 |
65 |
O |
M10.7 |
14 |
LD |
M1.0 |
40 |
O |
M10.6 |
66 |
O |
M11.2 |
15 |
O |
M0.2 |
41 |
O |
M11.1 |
67 |
O |
M11.6 |
16 |
= |
M10.0 |
42 |
O |
M11.5 |
68 |
= |
Q0.7 |
17 |
LD |
M11.6 |
43 |
= |
Q0.2 |
69 |
LD |
M10.1 |
18 |
TON |
T39,+5 |
44 |
LD |
M10.3 |
70 |
O |
M10.7 |
19 |
AN |
T39 |
45 |
O |
M10.6 |
71 |
O |
M11.3 |
20 |
= |
M0.2 |
46 |
O |
M11.2 |
72 |
O |
M11.6 |
21 |
LD |
M0.0 |
47 |
O |
M11.5 |
73 |
= |
Q1.0 |
22 |
SHRB |
M10.0,M10.1,+14 |
48 |
= |
Q0.3 |
74 |
LDN |
I0.1 |
23 |
LD |
M10.1 |
49 |
LD |
M10.2 |
75 |
R |
M10.1,14 |
24 |
O |
M10.2 |
50 |
O |
M10.6 |
|
|
|
25 |
O |
M10.3 |
51 |
O |
M11.3 |
|
|
|
26 |
O |
M10.4 |
52 |
O |
M11.5 |
|
|
|
四、舞台灯光控制梯形图