欢迎来到天天文库
浏览记录
ID:48437383
大小:389.50 KB
页数:8页
时间:2020-01-26
《基于MCGS组态软件设计的四层电梯程序文件.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、.word格式..专业.专注..word格式..专业.专注..word格式..专业.专注..word格式..专业.专注..word格式..专业.专注..word格式.'*********轿内指示灯***********inlamp1=(inbutton1orinlamp1)andnotleft1inlamp2=(inbutton2orinlamp2)andnotleft2inlamp3=(inbutton3orinlamp3)andnotleft3inlamp4=(inbutton4orinlamp4)a
2、ndnotleft4'*********轿外指示灯***********outlamp1=((outbutton1oroutlamp1)andnotleft1)outlamp2=(outbutton2oroutlamp2)and(notleft2or(leftupandnotleftdown))outlamp3=(outbutton3oroutlamp3)and(notleft2or(leftupandnotleftdown))outlamp4=(outbutton4oroutlamp4)and(notl
3、eft3or(leftupandnotleftdown))outlamp5=(outbutton5oroutlamp5)and(notleft3or(leftupandnotleftdown))outlamp6=((outbutton6oroutlamp6)andnotleft4)'*********定向程序上行***********leftup=((((outlamp2oroutlamp3orinlamp2)andnotleft2)or(outlamp4oroutlamp5orinlamp3)andno
4、tleft3)or(outlamp6orinlamp4))andnotleft4andnotleftdown'*********定向程序下行***********.专业.专注..word格式.leftdown=((((outlamp4oroutlamp5orinlamp3)andnotleft3)or(outlamp2oroutlamp3orinlamp2)andnotleft2)or(outlamp1orinlamp1))andnotleft1andnotleftup'*********平层自动开门设置
5、***********策略1'*********开关门控制;手动开门***********ifopenbuttonandnotclosebuttonandnotupmotorandnotdownmotorandnotstateopenthendooropen=1if(outbutton1orinbutton1)andleft1andnotclosebuttonandnotupmotorandnotdownmotorandnotstateopenthendooropen=1if(outbutton2orou
6、tbutton3orinbutton2)andleft2andnotclosebuttonandnotupmotorandnotdownmotorandnotstateopenthendooropen=1if(outbutton4oroutbutton5orinbutton3)andleft3andnotclosebuttonandnotupmotorandnotdownmotorandnotstateopenthendooropen=1if(outbutton6orinbutton4)andleft4a
7、ndnotclosebuttonandnotupmotorandnotdownmotorandnotstateopenthendooropen=1ifdoorcloseorstateopenthendooropen=0if(closebuttonorclosedoordelay)andnotopenbuttonandnotdooropenandnotstateclosethendoorclose=1ifopenbuttonorstateclosethendoorclose=0:closedoordelay
8、=0endif'*********行吊电机正反转***********upmotor=leftupandnotdooropenandstateclosedownmotor=leftdownandnotdooropenandstatecloseifupmotorthen高度=高度-1ifdownmotorthen高度=高度+1left1=(高度=30):left2=(高度=20):left3=(高度=10):left4=(高度=
此文档下载收益归作者所有