下一辆车
本课属于 Coddy PLC Programming 学习旅程的“模拟量与顺序控制”单元。第 16 课,共 17 课。
汽车已经清洗干净。在第 5 步,ExitLamp 会亮起,提示司机开车离开。只要所有清洗输出都已关闭,指示灯亮起一秒后,汽车就会驶离。
顺序不应该猜测司机需要多长时间。它会等待传感器信号:当 CarIn 变为 FALSE 时,清洗位为空,清洗流程会返回到第 0 步,等待下一辆车。
挑战
中等- 在步骤 5 中,点亮
ExitLamp - 当
CarIn变为 FALSE 时,将 0 移入Step
然后连续清洗两辆车。
亲手试试
{"v":1,"lang":"ld","tags":[{"name":"Step","type":"INT"},{"name":"T1","type":"TON"},{"name":"T2","type":"TON"},{"name":"T3","type":"TON"},{"name":"T4","type":"TON"}],"rungs":[{"els":[{"t":"cmp","op":"EQ","a":"Step","b":0},{"t":"no","tag":"Start"},{"t":"no","tag":"CarIn"},{"t":"move","src":1,"dst":"Step"}]},{"els":[{"t":"cmp","op":"EQ","a":"Step","b":1},{"t":"TON","inst":"T1","pt":"T#2s"},{"t":"move","src":2,"dst":"Step"}]},{"els":[{"t":"cmp","op":"EQ","a":"Step","b":2},{"t":"TON","inst":"T2","pt":"T#2s"},{"t":"move","src":3,"dst":"Step"}]},{"els":[{"t":"cmp","op":"EQ","a":"Step","b":3},{"t":"TON","inst":"T3","pt":"T#2s"},{"t":"move","src":4,"dst":"Step"}]},{"els":[{"t":"cmp","op":"EQ","a":"Step","b":4},{"t":"TON","inst":"T4","pt":"T#2s"},{"t":"move","src":5,"dst":"Step"}]},{"els":[{"t":"cmp","op":"EQ","a":"Step","b":1},{"t":"coil","tag":"Soap"}]},{"els":[{"t":"cmp","op":"EQ","a":"Step","b":2},{"t":"coil","tag":"Brush"}]},{"els":[{"t":"cmp","op":"EQ","a":"Step","b":3},{"t":"coil","tag":"Rinse"}]},{"els":[{"t":"cmp","op":"EQ","a":"Step","b":4},{"t":"coil","tag":"Dryer"}]}]}模拟量与顺序控制中的所有课
自己练习: PLC 在线编辑器