资源描述:
《小型模具柔性制造系统立体仓库及巷式起重机的设计plc程序》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、主程序mainTITLE=程序注释Network1LDSMO.OLPSAM5.2=V1038.0LRDMOVDVD2,VD1012LPPAM4.2MOVBVB1000,VB1031Network2LDM2.7EULDM4.2EUOLDRM0.2,46RQ0.0,16RT44,1Network3LD12.6OM4.2LPSANSM0.1AN12.7二M4.2LRDASM0.5=Q1.7LPP=VI030.5Network4LDSMO.OCALLSBR1CALLSBR5Network5LDM4.2EUSMO.l,1R
2、SIO.O,20Network6LDNRRENDM4.2Q0.0,15V1038.1,1Network7//网络标题//网络注释LDNSM0.1AM0.1LPSCALLSBROTONT44,+5AT44EUSMl.l,1LPPAW=T44,+lRM5.2,1RS0.0,100Network8//inputLDVI001.0AM5.2ANM4.1AW<>VW236,+0EUMOVW+0,VW2018MOVWVW236,VW2020SM4.1,1Network9//outputLDV1001」AM5.2ANM4.1A
3、W<>VW250,+0EUMOVWVW250,VW2018MOVW+0,VW2020SM4.1,1Network10//上位机控制移库//上位机控制移库LDB=VB100&1AB>=VB1006,1AB<=VB1006,12AB>=VB1007,1AB<=VB1007,12AM5.2EUBTIVB1006,VW2018BTIVB1007,VW2020SM4.1,1Network11//上位机控制収物//上位机控制取物LDB>=VB240,1AB<=VB241,12AB>VB241,0AM5.2EUBTIVB241
4、,VW2018MOVW0,VW2020SM4」,1Network12//上位机控制移库//上位机控制移库LDW=VW290,1AW>=VW292,1AW<=VW292,12AW>=VW294,1AW<=VW294,12AM5.2EUMOVWVW292,VW2018MOVWVW294,VW2020SM4.1,1MOVW0,VW292MOVW0,VW294MOVW0,VW290Network13LDW=VW292,0OW=VW294,0MOVW0,VW290Network14//触摸屏11!库//触摸屏出库LDM5.
5、2AM5.6AW<+0,VW238AW<=VW23&12EUMOVWVW23&VW2018MOVW0,VW2020MOVW+0,VW238SM4.1,1Network15LDM4.1CALLSBR3,VW2018,VW2020EUSM0.4,1Network16//上位机复位//上位机复位LDB=VB240,2AB=VB241,0OM2.7SM0.1,1Network17LDSMO.OMOVW+0,VW236Network18LDNVI004.3AM5.2LPSANV3.3MOVW+12,VW236LRDANV3
6、.2MOVW+11,VW236LRDANV3.1MOVW+10,VW236LPPANV3.0MOVW+9,VW236Network19LDVI004.3AM5.2LPSANV2.3MOVW+4,VW236LRDANV2.2MOVW+3,VW236LRDANV2.1MOVW+2,VW236LPPANV2.0MOVW+1,VW236Network20LDV2.0AV2.1AV2.2AV2.3二V1030.2Network21LDV3.0AV3.1AV3.2AV3.3二V1030.3Network22LDNV2.4AN
7、V2.5ANV2.6ANdepot_8zzVI030.4Network23LDSMO.OMOVW+0,VW250Network24LDM5.2LPSAV2.7MOVW+&VW250LRDAV2.6MOVW+7,VW250LRDAV2.5MOVW+6,VW250LPPAV2.4MOVW+5,VW250子程序initializeTITLE=子例行程序注释Network1LDN10.4MOVB0,VB2016CALLSBR4Network2LDMl.lSS10.0,1Network3LSCRSI0.0Network4L
8、DSMO.ORMl.l,1SQ0.5,1RQ0.4,1TONT50,5Network5LD10.0ANM2.3AT50A10.4AN10.1MOVD+500,VD2000CALLSBR31,0,+4500CALLSBR30,0,+4500,+400,+800,VD2000,VD2004Network6LD10.2ANM2.3AT50A10.4AN10.3MOVD+1000