Hướng dẫn lập trình điều khiển PLC S71200 ĐIỀU KHIỂN HỆ THỐNG LƯU KHO TỰ ĐỘNG. Code đầy đủ và chi tiết nhất về hệ thống lưu kho tự động. Hướng dẫn đầy đủ và chi tiết về cách lập trình hệ thống lưu kho tự động sử dụng 3 trục tự do tịnh tiến X,Y,Z
Totally Integrated Automation Portal Project18 / PLC_1 [CPU 1214C DC/DC/DC] / Program blocks Main [OB1] Main Properties General Name Main Numbering Automatic Information Title "Main Program Sweep (Cy‐ cle)" Version 0.1 Main Name Input Initial_Call Remanence Temp Constant Number Type Author Language OB Comment Family User-defined ID Data type Default value Bool Bool Comment Initial call of this OB =True, if remanent data are available Network 1: %M0.0 "START" %M1.0 "RUNNING" Network 2: %M0.1 "STOP" %M1.0 "RUNNING" LAD Totally Integrated Automation Portal %DB3 "MC_Power_DB" MC_Power EN %DB1 "Truc Ngang" ENO Axis Status false Error false %M1.0 "RUNNING" Enable StartMode StopMode Network 3: %DB4 "MC_Power_DB_1" MC_Power EN %DB2 "Truc Dung" Axis %M1.0 "RUNNING" Enable Network 4: StartMode StopMode ENO Status false Error false Totally Integrated Automation Portal %DB5 "MC_Home_DB" MC_Home EN %DB1 "Truc Ngang" ENO Axis Done false Error false %M0.2 "SET_HOME" Execute 0.0 Position Mode Network 5: %DB6 "MC_Home_DB_1" MC_Home EN %DB2 "Truc Dung" Axis %M0.2 "SET_HOME" Execute 0.0 Network 6: Position Mode ENO Done false Error false Totally Integrated Automation Portal %DB7 "MC_MoveJog_ DB" MC_MoveJog EN %DB1 "Truc Ngang" ENO Axis InVelocity false Error false %M0.3 "JOG_FOR" JogForward %M0.4 "JOG_BACK" JogBackward "MC_MoveJog_ DB".Velocity Velocity Network 7: %DB8 "MC_MoveJog_ DB_1" MC_MoveJog EN %DB2 "Truc Dung" Axis %M0.5 "JOG_FOR_2" JogForward %M0.6 "JOG_BACK 2" JogBackward "MC_MoveJog_ DB_1".Velocity Velocity ENO InVelocity false Error false Totally Integrated Automation Portal Network 8: %DB9 "MC_ MoveAbsolute_ DB" MC_MoveAbsolute EN %DB1 "Truc Ngang" Axis %M1.1 "DI CHUYEN DEN VI TRI DUOC CHON" Execute Network 9: %MD10 "POS_1" Position "MC_ MoveAbsolute_ DB".Velocity Velocity ENO Done false Error false Totally Integrated Automation Portal %DB10 "MC_ MoveAbsolute_ DB_1" MC_MoveAbsolute EN %DB2 "Truc Dung" ENO Axis Done false Error false %M1.1 "DI CHUYEN DEN VI TRI DUOC CHON" Execute %MD20 "POS_2" Position "MC_ MoveAbsolute_ DB_1".Velocity Velocity Network 10: %DB12 "MC_ MoveRelative_ DB" MC_MoveRelative EN %DB2 "Truc Dung" Axis %M1000.0 "TRUNG GIAN" Execute %MD200 "Tag_7" "MC_ MoveRelative_ DB".Velocity Distance Velocity ENO Done false Error false Totally Integrated Automation Portal Network 11: %M2.0 "SET_STEP_1_ POS_1" MOVE EN "Truc Ngang" Position ENO IN OUT1 %MD100 "VUNG NHO STEP_1_POS_ 1" Network 12: %M2.1 "SET_STEP_1_ POS_2" MOVE EN "Truc Ngang" Position ENO IN OUT1 %MD110 "VUNG NHO STEP_1_POS_ 2" Network 13: %M2.2 "SET_STEP_1_ POS_3" MOVE EN "Truc Ngang" Position ENO IN OUT1 %MD120 "VUNG NHO STEP_1_POS_ 3" Totally Integrated Automation Portal Network 14: %M2.6 "SET_STEP_1_ POS_0" MOVE EN "Truc Ngang" Position ENO IN OUT1 %MD130 "VUNG NHO STEP_1_POS_ 0" Network 15: %M2.3 "SET_STEP_2_ POS_1" MOVE EN "Truc Dung" Position ENO IN OUT1 %MD90 "VUNG NHO STEP_2_POS_ 1" Network 16: %M2.4 "SET_STEP_2_ POS_2" MOVE EN "Truc Dung" Position ENO IN OUT1 %MD80 "VUNG NHO STEP_2_POS_ 2" Totally Integrated Automation Portal Network 17: %M2.5 "SET_STEP_2_ POS_3" MOVE EN "Truc Dung" Position ENO IN OUT1 %MD70 "VUNG NHO STEP_2_POS_ 3" Network 18: %M2.7 "SET_STEP_2_ POS_0" MOVE EN "Truc Dung" Position ENO IN OUT1 %MD60 "VUNG NHO STEP_2_POS_ 0" Network 19: %M51.1 "SET_STEP_2_ LAY_HANG" MOVE EN "Truc Dung" Position ENO IN OUT1 %MD50 "VUNG NHO STEP_2_LAY HANG" Totally Integrated Automation Portal Network 20: %M3.0 "GAN GIA TRI VI TRI STEP_1_ POS_1" MOVE EN %MD100 "VUNG NHO STEP_1_POS_ 1" ENO OUT1 %MD10 "POS_1" IN Network 21: %M3.1 "GAN GIA TRI VI TRI STEP_1_ POS_2" MOVE EN %MD110 "VUNG NHO STEP_1_POS_ 2" Network 22: ENO OUT1 IN %MD10 "POS_1" Totally Integrated Automation Portal %M3.2 "GAN GIA TRI VI TRI STEP_1_ POS_3" MOVE EN %MD120 "VUNG NHO STEP_1_POS_ 3" ENO OUT1 %MD10 "POS_1" IN Network 23: %M3.6 "GAN GIA TRI VI TRI STEP_1_ POS_0" MOVE EN %MD130 "VUNG NHO STEP_1_POS_ 0" ENO OUT1 %MD10 "POS_1" IN Network 24: %M3.3 "GAN GIA TRI VI TRI STEP_2_ POS_1" MOVE EN %MD90 "VUNG NHO STEP_2_POS_ 1" ENO OUT1 IN %MD20 "POS_2" Totally Integrated Automation Portal Network 25: %M3.4 "GAN GIA TRI VI TRI STEP_2_ POS_2" MOVE EN %MD80 "VUNG NHO STEP_2_POS_ 2" ENO OUT1 %MD20 "POS_2" IN Network 26: %M3.5 "GAN GIA TRI VI TRI STEP_2_ POS_3" MOVE EN %MD70 "VUNG NHO STEP_2_POS_ 3" Network 27: ENO OUT1 IN %MD20 "POS_2" Totally Integrated Automation Portal %M3.7 "GAN GIA TRI VI TRI STEP_2_ POS_0" MOVE EN %MD60 "VUNG NHO STEP_2_POS_ 0" ENO OUT1 %MD20 "POS_2" IN Network 28: %M6.1 "GAN GIA TRI VI TRI STEP_2_ LAY HANG" MOVE EN %MD50 "VUNG NHO STEP_2_LAY HANG" Network 29: ENO OUT1 IN %MD20 "POS_2" Totally Integrated Automation Portal %M3.6 "GAN GIA TRI VI TRI STEP_1_ POS_0" %M4.7 "VI TRI HOME" %M3.7 "GAN GIA TRI VI TRI STEP_2_ POS_0" Network 30: %M66.1 "Tag_12" %M4.1 "GIÁN GIÁ TRỊ Ô A2" %M4.2 "GÁN GIÁ TRỊ Ô A3" %M4.7 "VI TRI HOME" %M3.6 "GAN GIA TRI VI TRI STEP_1_ POS_0" %M6.1 "GAN GIA TRI VI TRI STEP_2_ LAY HANG" Network 31: Totally Integrated Automation Portal %M4.1 "GIÁN GIÁ TRỊ Ô A2" %M3.1 "GAN GIA TRI VI TRI STEP_1_ POS_2" %M3.4 "GAN GIA TRI VI TRI STEP_2_ POS_2" Network 32: %M4.2 "GÁN GIÁ TRỊ Ô A3" %M3.0 "GAN GIA TRI VI TRI STEP_1_ POS_1" %M3.5 "GAN GIA TRI VI TRI STEP_2_ POS_3" Network 33: Totally Integrated Automation Portal %M4.6 "Tag_13" %M3.6 "GAN GIA TRI VI TRI STEP_1_ POS_0" %M3.4 "GAN GIA TRI VI TRI STEP_2_ POS_2" Network 34: %M4.6 "Tag_13" %M4.1 "GIÁN GIÁ TRỊ Ô A2" %M4.2 "GÁN GIÁ TRỊ Ô A3" %M4.7 "VI TRI HOME" %M4.5 "LAY HANG" %M1.1 "DI CHUYEN DEN VI TRI DUOC CHON" Totally Integrated Automation Portal Network 36: BANG TAI %M1.0 "RUNNING" %M300.0 "Tag_3" %M400.0 "Tag_5" %I1.1 "Tag_4" %Q0.5 "BANG TAI_BACK" %M400.0 "Tag_5" Network 37: BANG TAI %M1.0 "RUNNING" %M300.0 "Tag_3" %I1.2 "Tag_9" %M401.0 "SENSOR_3" %Q0.6 "BANG TAI_FOR" %M401.0 "SENSOR_3" Network 38: CYLINDER %M1.0 "RUNNING" Network 39: %M500.0 "Tag_8" %Q0.4 "CYLINDER" Totally Integrated Automation Portal %M1.1 "DI CHUYEN DEN VI TRI DUOC CHON" T#17S %DB11 "IEC_Timer_0_DB" TON Time %M1000.0 "TRUNG GIAN" IN Q PT ET T#0ms