急求用MCGS做的四层电梯的脚本程序!不要用PLC的!!不用考虑太多问题最基本的就行!!!
已发!!
那个电梯的实在是搞不明白!谢谢!!
改完了发回来以后,正常运行的话,立刻采纳!!感谢!!
'*********轿内指示灯***********
inlamp1=(inbutton1 or inlamp1) and not left1
inlamp2=(inbutton2 or inlamp2) and not left2
inlamp3=(inbutton3 or inlamp3) and not left3
inlamp4=(inbutton4 or inlamp4) and not left4
'*********轿外指示灯***********
outlamp1=((outbutton1 or outlamp1) and not left1)
outlamp2=(outbutton2 or outlamp2) and (not left2 or (leftup and not leftdown))
outlamp3=(outbutton3 or outlamp3) and (not left2 or (leftup and not leftdown))
outlamp4=(outbutton4 or outlamp4) and (not left3 or (leftup and not leftdown))
outlamp5=(outbutton5 or outlamp5) and (not left3 or (leftup and not leftdown))
outlamp6=((outbutton6 or outlamp6) and not left4)