0
00:00:00,760 --> 00:00:03,550
那这里我们要说一下
1
00:00:04,050 --> 00:00:06,163
你看,刚才我们这里
2
00:00:06,163 --> 00:00:06,740
3
00:00:07,440 --> 00:00:13,460
这个我们把它说成,打开这个,关闭这个
4
00:00:14,660 --> 00:00:17,810
但实际上这个do活动应该是一个什么
5
00:00:18,790 --> 00:00:20,360
持续的活动
6
00:00:21,170 --> 00:00:24,370
按道理应该是写着保持这个
7
00:00:24,650 --> 00:00:26,320
加热器的
8
00:00:26,720 --> 00:00:29,550
保持加热器打开
9
00:00:29,830 --> 00:00:33,400
这个应该写保持电源灯打开
10
00:00:34,160 --> 00:00:36,090
它不是一个瞬间的
11
00:00:37,690 --> 00:00:40,410
但如果说我们把这个改成
12
00:00:40,690 --> 00:00:42,433
比如说,保持电源灯打开
13
00:00:42,433 --> 00:00:43,305
这个不对了
14
00:00:43,305 --> 00:00:44,700
这瞬间的,这个是
15
00:00:44,980 --> 00:00:46,226
这不是瞬间的
16
00:00:46,226 --> 00:00:47,888
而且更麻烦的是什么
17
00:00:47,888 --> 00:00:48,720
你看,这里
18
00:00:50,410 --> 00:00:52,670
如果你说,这个
19
00:00:52,670 --> 00:00:53,800
它的意思是
20
00:00:54,520 --> 00:00:58,680
如果把这个理解成保持bx1加热器关闭
21
00:00:59,230 --> 00:01:00,470
那你看它这个
22
00:01:00,750 --> 00:01:02,360
它又放在入口这里
23
00:01:02,900 --> 00:01:03,890
又不对了
24
00:01:03,890 --> 00:01:08,642
所以呢,这个图本身,后面可能作者就已经乱掉了
25
00:01:08,642 --> 00:01:09,633
但没关系
26
00:01:09,633 --> 00:01:11,415
我们就按照这个来
27
00:01:11,415 --> 00:01:12,603
这个图内容不管
28
00:01:12,603 --> 00:01:14,980
我们就学习这个操作
0
00:00:01,310 --> 00:00:01,657
好
1
00:00:01,657 --> 00:00:02,700
接下来
2
00:00:03,690 --> 00:00:04,032
3
00:00:04,032 --> 00:00:07,110
这个有了,下面这个
4
00:00:07,390 --> 00:00:08,846
打开这个阀门
5
00:00:08,846 --> 00:00:11,030
打开这个阀门,一样的
6
00:00:34,520 --> 00:00:35,400
好
7
00:00:36,520 --> 00:00:39,150
这个是关闭所有阀门
8
00:00:47,810 --> 00:00:48,136
好
9
00:00:48,136 --> 00:00:49,440
这是这个
10
00:00:49,950 --> 00:00:52,790
然后下面是这个
11
00:00:53,090 --> 00:00:54,816
关闭排空阀门
12
00:00:54,816 --> 00:00:56,050
打开排空阀门
13
00:01:09,200 --> 00:01:11,011
阀门是它的类
14
00:01:11,011 --> 00:01:12,305
是它的类型
15
00:01:12,305 --> 00:01:15,410
排空是那个阀门扮演的角色
16
00:01:15,760 --> 00:01:18,660
就是我们前面画其他的图
17
00:01:19,750 --> 00:01:21,160
说到的
18
00:01:25,230 --> 00:01:26,030
好
19
00:01:26,950 --> 00:01:28,556
这些都有了吗
20
00:01:28,556 --> 00:01:29,360
都有了
21
00:01:29,800 --> 00:01:31,470
接下来我们来画
22
00:01:31,780 --> 00:01:34,070
它们之间的迁移了
23
00:01:34,350 --> 00:01:34,695
24
00:01:34,695 --> 00:01:38,150
你看,迁移,这个是过来
25
00:01:38,480 --> 00:01:40,470
没有事件的
26
00:01:40,470 --> 00:01:41,354
只有条件
27
00:01:41,354 --> 00:01:42,681
没有触发器
28
00:01:42,681 --> 00:01:43,786
只有条件
29
00:01:43,786 --> 00:01:44,450
那我们
30
00:01:45,310 --> 00:01:46,970
首先第一个迁移
31
00:01:48,790 --> 00:01:50,920
关 到 注入中
32
00:01:58,600 --> 00:01:59,280
33
00:02:01,320 --> 00:02:04,390
迁移我们看
34
00:02:05,370 --> 00:02:07,280
画它的那个
35
00:02:07,560 --> 00:02:08,870
条件是什么
36
00:02:11,870 --> 00:02:13,750
开关是开的
37
00:02:14,860 --> 00:02:15,326
38
00:02:15,326 --> 00:02:16,260
开关
39
00:02:16,630 --> 00:02:17,890
为开
40
00:02:24,470 --> 00:02:25,120
41
00:02:25,980 --> 00:02:27,070
这里
42
00:02:29,120 --> 00:02:29,283
43
00:02:29,283 --> 00:02:30,920
我们可以把它那个角
44
00:02:33,280 --> 00:02:35,240
变成圆一点
45
00:02:36,940 --> 00:02:38,110
圆一点
46
00:02:43,740 --> 00:02:44,950
过来
47
00:02:45,710 --> 00:02:46,624
是这样
48
00:02:46,624 --> 00:02:48,225
我们先画这边
49
00:02:48,225 --> 00:02:50,970
然后这边过来也是一个条件
50
00:02:52,900 --> 00:02:55,660
NOT bx1水位低
51
00:02:55,660 --> 00:02:56,580
那我们
52
00:02:56,940 --> 00:02:58,110
照抄
53
00:03:19,070 --> 00:03:22,240
再往下,bx1温度
54
00:03:23,170 --> 00:03:24,300
等于100
55
00:03:30,260 --> 00:03:31,070
56
00:03:49,170 --> 00:03:50,030
好
57
00:03:50,030 --> 00:03:51,320
看下一个
58
00:03:53,680 --> 00:03:56,120
先画这个外面的
59
00:03:56,890 --> 00:03:58,426
这是关闭命令
60
00:03:58,426 --> 00:03:59,743
这应该是什么
61
00:03:59,743 --> 00:04:03,474
应该是放在那个触发器这里的
62
00:04:03,474 --> 00:04:06,985
结果它放在警戒条件,已经不对了
63
00:04:06,985 --> 00:04:09,400
我们按照正确的来画
64
00:04:10,320 --> 00:04:12,690
应该是
65
00:04:16,690 --> 00:04:18,280
应该是在这里
66
00:04:18,900 --> 00:04:20,270
关闭
67
00:04:21,100 --> 00:04:22,160
命令
68
00:04:23,410 --> 00:04:27,900
命令这个词都是冗余了
69
00:04:28,660 --> 00:04:29,880
70
00:04:30,720 --> 00:04:31,711
关闭就行了
71
00:04:31,711 --> 00:04:33,100
还加一个命令
72
00:04:34,100 --> 00:04:34,900
好
73
00:04:36,550 --> 00:04:37,630
再往上
74
00:04:37,630 --> 00:04:39,520
这个等于30
75
00:04:39,520 --> 00:04:40,600
一样的
76
00:05:07,660 --> 00:05:08,410
好
77
00:05:09,080 --> 00:05:11,350
过来,bx水位低
78
00:05:29,590 --> 00:05:29,885
79
00:05:29,885 --> 00:05:31,660
改成圆角
80
00:05:36,060 --> 00:05:36,313
好
81
00:05:36,313 --> 00:05:41,120
这是这个,那我们看下面这个地方
82
00:05:44,180 --> 00:05:46,887
这个,水位低,水位不低
83
00:05:46,887 --> 00:05:48,692
水位高,水位不高
84
00:05:48,692 --> 00:05:50,948
就是这个搞来搞去
85
00:05:50,948 --> 00:05:53,430
我们把这个上面复制一下
86
00:05:58,930 --> 00:05:59,305
87
00:05:59,305 --> 00:06:00,430
水位低
88
00:06:18,080 --> 00:06:19,020
再拉一点
89
00:06:24,170 --> 00:06:25,080
好
90
00:06:25,360 --> 00:06:26,890
这个是
91
00:06:31,190 --> 00:06:33,930
bx1水位低
92
00:06:37,990 --> 00:06:38,926
然后呢
93
00:06:38,926 --> 00:06:41,110
下面这个就是
94
00:06:43,200 --> 00:06:44,580
加一个NOT
95
00:06:50,970 --> 00:06:52,630
按住Ctrl
96
00:06:53,380 --> 00:06:54,730
97
00:07:24,290 --> 00:07:24,608
好
98
00:07:24,608 --> 00:07:25,884
同样
99
00:07:25,884 --> 00:07:27,160
改成圆角
100
00:08:51,760 --> 00:08:51,935
好
101
00:08:51,935 --> 00:08:54,923
轮到下面这个,是一个定时器
102
00:08:54,923 --> 00:08:56,330
这个是
103
00:08:58,290 --> 00:08:59,643
残渣定时器
104
00:08:59,643 --> 00:09:02,080
这个是排空定时器
105
00:09:05,660 --> 00:09:08,030
应该是那个
106
00:09:08,390 --> 00:09:10,510
定时器是一个触发器
107
00:09:10,820 --> 00:09:11,106
108
00:09:11,106 --> 00:09:12,537
然后
109
00:09:12,537 --> 00:09:13,110
这个
110
00:09:13,500 --> 00:09:18,097
里面的条件是超时什么之类的
111
00:09:18,097 --> 00:09:18,960
但这个
112
00:09:19,260 --> 00:09:21,092
这个图我们不管了
113
00:09:21,092 --> 00:09:22,110
照着画
114
00:09:22,110 --> 00:09:24,350
它这个画得乱七八糟的
115
00:09:27,600 --> 00:09:27,777
116
00:09:27,777 --> 00:09:29,020
就画在这里
117
00:09:29,890 --> 00:09:31,270
残渣
118
00:09:32,150 --> 00:09:33,480
定时器
119
00:09:49,000 --> 00:09:50,050
排空定时器
120
00:09:51,750 --> 00:09:52,710
齐了吗
121
00:09:56,950 --> 00:09:57,155
122
00:09:57,155 --> 00:09:58,180
应该齐了
123
00:09:58,460 --> 00:09:59,960
就这样
124
00:10:00,590 --> 00:10:02,144
我们可以把它对齐一下
125
00:10:02,144 --> 00:10:02,300
126
00:10:02,600 --> 00:10:03,519
你要是愿意
127
00:10:03,519 --> 00:10:04,990
可以把它对齐一下
128
00:10:35,600 --> 00:10:35,820
好
129
00:10:35,820 --> 00:10:38,030
这边可以过来一点
130
00:10:58,500 --> 00:10:59,220
131
00:11:19,440 --> 00:11:19,754
132
00:11:19,754 --> 00:11:21,010
就这样
133
00:11:21,330 --> 00:11:22,680
状态机
134
00:11:23,030 --> 00:11:24,600
我们就画完了