E1SB4SB5SB6E2SB7E3SB3SQ1SB1SB2SQ2E4E5E6KM1SQ3E7KM2实验十二三层电梯的模拟控制一.实验目的用PLC构成三层电梯控制系统。二.实验内容1.控制要求把可编程控制器拨向RUN后,按其它按扭都无效,只有按SQ1,才有效E1亮,表示电梯原始层在一层。电梯停留在一层:1.按SB5或SB6(SB2)或SB5,SB6(SB2),电梯上升,按SQ2,E1灭,E2亮,上升停止。2.按SB7(SB3),电梯上升,按SQ3无反应,应先按SQ2,E1灭,E2亮,电梯仍上升,再按SQ3,E2灭,E3亮,电梯停止。3.按SB5,SB7(SB3),电梯上升,按SQ2,E1灭,E2亮,电梯仍上升,按SQ3,E2灭,E3亮,电梯停止2秒后下降,按SQ2,E3灭,E2亮,电梯停止。4.按SB6(SB2),SB7(SB3),电梯上升,按SQ2,E1灭,E2亮,电梯停止2秒后上升,按SQ3,E2灭,E3亮,电梯停止。5.按SB5,SB6(SB2),SB7(SB3),电梯上升,按SQ2,E1灭,E2亮,电梯停止2秒后上升,按SQ3,E2灭,E3亮,电梯停止2秒后下降,按SQ2,E3灭,E2亮,电梯停止。电梯停留在二层:1.按SB7(SB3),电梯上升,反方向呼叫无效,按SQ3,E2灭,E3亮,电梯停止。2.按SB3(SB1),电梯下降,反方向呼叫无效,按SQ1,E2灭,E1亮,电梯停止。电梯停留在三层的情况跟停留在一层的情况类似。2.I/O分配输入输出内呼一层SB1:X1一层指示灯E1:Y1内呼二层SB2:X2二层指示灯E2:Y2内呼三层SB3:X3三层指示灯E3:Y3一层上呼SB4:X4一层呼叫灯E4:Y4图12-1三层电梯控制示意图二层下呼SB5:X5二层向下呼叫灯E5:Y5二层上呼SB6:X6二层向上呼叫灯E6:Y6三层下呼SB7:X7三层呼叫灯E7:Y7一层到位开关SQ1:X11轿厢下降KM1:Y11二层到位开关SQ2:X12轿厢上升KM2:Y12三层到位开关SQ3:X133.按图所示的梯形图输入程序。4.调试并运行程序。三.三层电梯控制语句表0LDX00130ORY00560ANDY00490RSTY0011ORM131ANB61ORB91MRD2ANIY01232ANDM10062ANIY00392ANIM1243ANIY00133OUTY00563ANIM2293RSTY0034OUTM134LDX00664SETY00194MPP5LDX00235ORM665LDY00195ANIY0016ORM236ANIY00266SETM10096ANIY0037ANIY00237OUTM667LDIM10097ANIM1248OUTM238LDY00468FNC4098ANIM1229LDX00339ORM169M199SETY00210ORM340ORIY00270M7100LDX01311ANIY01141LDM671101ANDM312ANIY00342ORY00672102LDX01313OUTM343ANB73LDX011103ANDY00714LDX00444ANDM10074ANDM1104ORB15ORM445OUTY00675LDX011105MPS16ANIY01246LDX00776ANDY004106ANIM2417ANIY00147ORM777ORB107RSTY00218OUTM448ANIY01178ANIM22108MPP19ANDM10049ANIY00379RSTY002109ANIY00120ANIM2450OUTM780LDM2110ANIM2421OUTY00451ANDM10081ORM3111SETY00322LDX00552ANIM2282ORM1112LDT223ORM553OUTY00783ORY004113ORY01224ANIY00254LDX01184ORY007114ANIY00225OUTM555ANIY00285ORY006115ORM226LDY00756LDX01186ORY005116ORM327ORM357ANDM187ANDX012117ORM728ORIY00258ORB88MPS118ORM629LDM559LDX01189ANIM122119ORM5120ANIY003145PLFM21170195LDY001121ANIY011146171RSTY012196ANDM122122ANDM100147LDM21172LDY005197OUTT2123ANIM22148SETM22173ANDY007198SPK20124ANIM122149LDM1174LDY005199125OUTY012150ORY004175ANDM3200LDT0126LDT3151ANDM22176ORB201RSTM22127ORY011152OUTT0177PLFM123202LDT1128ANIY002153SPK20178203RSTM24129ORM2154179LDM123204LDT2130ORM1155RSTY011180SETM124205RSTM122131ORM4156LDM2181LDY003206LDT3132ORM5157ORY006182ANDM124207RSTM124133ORM6158LDM3183OUTT3208END134ANIY001159ORY007184SPK20209135ANIY012160ANB185210136ANDM100161PLFM23186LDY006211137ANIM124162187ANDY004212138ANIM24163LDM23188LDY006213139OUTY011164SETM24189ANDM1214140LDM2165LDM3190ORB215141ORY005166ORY007191PLFM121216142LDM1167ANDM24192217143ORY004168OUTT1193LDM121218144ANB169SPK20194SETM122219四.三层电梯控制梯形图Y002X002Y012X001M1Y001M2M1M2Y001Y012M4Y004M100M24Y2Y2M6Y004M1Y006Y006M100M100M22M100M7Y011Y003X007Y007M7Y004X011Y003M22M100ZRSTM1M7M1Y004Y007Y006Y005RSTY003Y003Y001M124M122SETY002Y007X013X013M3M24RSTY002SETY003Y001M24Y012Y011M100M22M122M6M7M5M6M5M4M1Y002T3M2Y011M24M124M100Y012Y001Y011X012M122M2M22M1X011X011Y004M3M124RSTY002RSTY001Y002X005Y005M3M5M5Y007Y002X006M6M5Y005M6M1X011Y002X011Y001SETY001SETM100M2Y003Y002T2Y012M3M3X003Y011M3Y003M4X004图12-2三层电梯控制梯形图T3K20ENDT3T2T1T0Y001M122M121Y006M1Y006Y004T2K20RSTM124RSTM122RSTM24RSTM22PLFM121SETM122M2M3Y007Y005M3Y003M124M123Y005Y007M23M24M3Y006Y007SETM124PLFM123RSTY012SETM24T1K20PLFM23Y004M1M22M21Y005Y004M2M1RSTY011T0K20SETM22PLFM21图12-2(续)