File code PLC Siemens S71200 mô hình phân loại màu sử dụng FactoryIO Trong mô hình đã thiết kế sẵn mọi người chỉ việc tải về cài đặt và chạy Sử dụng 3 cảm biến màu Visson để nhận biết sau khi nhận biết được sẽ có 3 cây Cyl Push ra để đưa phôi vào rail dẫn hướng ra ngoài
Totally Integrated Automation Portal FactoryIO_Template_S7-1200_V16 / PLC_1 [CPU 1211C DC/DC/DC] / Program blocks Main [OB1] Main Properties General Name Main Numbering Automatic Information Title "Main Program Sweep (Cy‐ c le)" 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 Comment Bool Bool Initial call of this OB =True, if remanent data are available Network 1: %FC9000 "MHJ-PLC-Lab-Function-S71200" EN ENO Network 2: %I1.0 "AUTO/MANU" %M10.0 "MANUAL" %M10.1 "AUTO" NOT %M10.1 "AUTO" %I1.1 "Start button" %I1.2 "Stop button" %I2.3 "RESET FACTORY" %I1.3 "Reset after repair error" %M10.2 "START MODE" %M10.2 "START MODE" Network 3: %M10.2 "START MODE" %I1.4 "Sensor S1" %M0.0 "BELT RUN IN" %M0.0 "BELT RUN IN" %M10.2 "START MODE" %Q1.1 "Belt 2" Network 4: %M10.2 "START MODE" %I1.4 "Sensor S1" "T0".Q %M0.1 "BELT RUN OUT" %DB1 "T0" TON Time %I1.4 "Sensor S1" T#1S Network 5: IN Q PT ET T#0ms %M0.1 "BELT RUN OUT" LAD Totally Integrated Automation Portal %M10.2 "START MODE" %M0.4 "STOPER UP" "T0".Q S %M10.2 "START MODE" %M0.1 "BELT RUN OUT" %M0.4 "STOPER UP" R Network 6: %DB2 "T1" %M10.2 "START MODE" %IW30 "Sensor Visson 1" TON Time == Word T#200ms %M10.2 "START MODE" %M0.2 "CYL FWD" %I1.5 "Sensor CYL Rev" %M0.2 "CYL FWD" IN Q PT ET %I1.6 "Sensor CYL Fwd" T#0ms %I2.3 "RESET FACTORY" %M0.3 "CYL FWD(1)" %M0.3 "CYL FWD(1)" Network 7: %DB3 "IEC_Timer_0_DB" %M10.2 "START MODE" %IW34 "Sensor Visson 2" TON Time == Word T#200ms %M10.2 "START MODE" %M1.2 "CYL FWD(1)" %I1.7 "Sensor CYL Rev" %M1.2 "CYL FWD(1)" IN Q PT ET %I2.0 "Sensor CYL Fwd" T#0ms %I2.3 "RESET FACTORY" %M1.3 "CYL FWD(2)" %M1.3 "CYL FWD(2)" Network 8: %DB4 "IEC_Timer_0_ DB_1" %M10.2 "START MODE" %M10.2 "START MODE" %IW36 "Sensor Visson 3" == Word %M2.2 "CYL FWD" TON Time T#200ms %I2.1 "Sensor CYL Rev" %M2.2 "CYL FWD" IN Q PT ET %I2.2 "Sensor CYL Fwd" T#0ms %I2.3 "RESET FACTORY" %M2.3 "CYL FWD(1)" %M2.3 "CYL FWD(1)" Network 9: %M0.0 "BELT RUN IN" %M0.1 "BELT RUN OUT" Network 10: %M10.2 "START MODE" %Q1.0 "Belt 1" Totally Integrated Automation Portal %M0.3 "CYL FWD(1)" %M10.2 "START MODE" %Q1.2 "PUSHER 1" %M1.3 "CYL FWD(2)" %M10.2 "START MODE" %Q1.3 "PUSHER 2" %M2.3 "CYL FWD(1)" %M10.2 "START MODE" %Q1.4 "PUSHER 3" %M0.4 "STOPER UP" %M10.2 "START MODE" %Q1.5 "STOPER" Network 11: Network 12: Network 13: