1. Trang chủ
  2. » Kỹ Thuật - Công Nghệ

PLC thực chiến : Code dự án PLC thực tế kết hợp với Robot trong công nghiệp hóa chất giao tiếp Modbus RTU

94 41 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Nội dung

PLC thực chiến ,code PLC thực tế cho nhà máy hóa chất ,lập trình Robot kết hợp với PLC Siemens trong dự án thực tế ,chương trình được viết theo ngôn ngữ LAD trong các dự án thực tế do chuyên gia hàng đầu trong tự động hóa viết ,code PLC được viết theo các khối để dễ check lỗi ,lối viết khoa học cho những người mới bắt đầu và những người nâng cao chuyên môn

Totally Integrated Automation Portal Program blocks Main [OB1] Main Properties General Name Main Numbering Automatic Information Title "Main Program Sweep (Cy‐ cle)" Version 0.1 Name Input Number Type Author OB Comment Language Family User-defined ID Data type Initial_Call Remanence Temp Bool Bool Forward Backward Constant Bool Bool Default value Comment Initial call of this OB =True, if remanent data are available Network 1: ĐỌC - GHI ANALOG %FC6 "ANALOG DATA" EN ENO Network 2: TỰ ĐỘNG %FC2 "AUTO MODE" EN ENO Network 3: CMD %FC5 "COMMAND" EN ENO Network 4: BẰNG TAY %FC1 "MANUAL MODE" EN ENO Network 5: CHẠY BÁN TỰ ĐỘNG %FC3 "SEMI AUTO MODE" EN ENO Network 6: QUY TRÌNH CHẠY %FC4 "SEQUENCE" EN ENO Network 7: LỌC SENSOR %FC7 "LIMIT FILTER" EN ENO LAD Totally Integrated Automation Portal Network 8: Van nước Network 9: MODBUS %DB29 "FB1_MODBUS RTU_DB" %FB1 "FB1_MODBUS RTU" EN ENO out_running Network 10: %FC9 "INPUT_CPU" EN %I0.0 "Emergency" DI 0.0 %I0.1 "Man/Auto Key 1" DI 0.1 %I0.2 "TRIP- DI CHUYEN Y" DI 0.2 %I0.3 "Start_Motor Phun nước" DI 0.3 %I0.4 "Start_Motor Phun Bọt" DI 0.4 %I0.5 "Start_Robot 1" DI 0.5 %I0.6 "Start_Motor Xoay" DI 0.6 %I0.7 "Start_JOB +" DI 0.7 %I1.0 "Start_JOB -" DI 1.0 %I1.1 "Stop_Motor Phun nước" DI 1.1 %I1.2 "Stop_Motor Phun bọt" DI 1.2 %I1.3 "Stop_Robot 1" DI 1.3 %I1.4 "Stop_Motor Xoay" DI 1.4 %I1.5 "Nút nhấn Auto_X1" Network 11: %FC10 "Limit LIB" EN ENO DI 1.5 ENO OUT 0.0 %DB30.DBX0.0 "DB_INPUT" INPUT_CPU "DI0.0" OUT 0.1 %DB30.DBX0.1 "DB_INPUT" INPUT_CPU "DI0.1" OUT 0.2 %DB30.DBX0.2 "DB_INPUT" INPUT_CPU "DI0.2" OUT 0.3 %DB30.DBX0.3 "DB_INPUT" INPUT_CPU "DI0.3" OUT 0.4 %DB30.DBX0.4 "DB_INPUT" INPUT_CPU "DI0.4" OUT 0.5 %DB30.DBX0.5 "DB_INPUT" INPUT_CPU "DI0.5" OUT 0.6 %DB30.DBX0.6 "DB_INPUT" INPUT_CPU "DI0.6" OUT 0.7 %DB30.DBX0.7 "DB_INPUT" INPUT_CPU "DI0.7" OUT 1.0 %DB30.DBX1.0 "DB_INPUT" INPUT_CPU "DI1.0" OUT 1.1 %DB30.DBX1.1 "DB_INPUT" INPUT_CPU "DI1.1" OUT 1.2 %DB30.DBX1.2 "DB_INPUT" INPUT_CPU "DI1.2" OUT 1.3 %DB30.DBX1.3 "DB_INPUT" INPUT_CPU "DI1.3" OUT 1.4 %DB30.DBX1.4 "DB_INPUT" INPUT_CPU "DI1.4" OUT 1.5 %DB30.DBX1.5 "DB_INPUT" INPUT_CPU "DI1.5" Totally Integrated Automation Portal Program blocks MANUAL MODE [FC1] MANUAL MODE Properties General Name MANUAL MODE Numbering Automatic Information Title Version 0.1 Number Type Author User-defined ID Name Input Output InOut Temp Constant Return FC Language Comment Data type Family Default value Comment Void MANUAL MODE Network 1: Manual di chuyển xe số %I4.1 "Start_Robot 2" %I0.1 "Man/Auto Key 1" %I0.0 "Emergency" %I4.3 "Stop_Robot 2" %I4.5 "Overload_ Robot 2" %M3.3 "Man_Robot 1" %M3.4 "Man_Xoay" %M74.5 "MAN_DI CHUYEN Y" %M3.5 "Man_Robot 2" Network 2: Manual Job+ biến tần %M3.5 "Man_Robot 2" %I4.6 "LS-6 _CTHT Điểm đầu_ Begin Robot 2" %M3.3 "Man_Robot 1" %I2.3 "LS-3_ Posiotion Begin_ Robot 1" %M74.5 "MAN_DI CHUYEN Y" %I5.2 "LS I5.2-Y TRAI" %M3.4 "Man_Xoay" %M161.4 "ROBOT 2_BÁN TỰ ĐỘNG" %M186.5 "OUT_HMI X2 BAN TU DONG" Network 3: Manual Job- biến tần %M74.6 "SENSOR X2" %I0.1 "Man/Auto Key 1" %I0.7 "Start_JOB +" %M7.0 "HMI_JOB+" %M74.7 "SENSOR X1" %M3.6 "Man_Chạy thuận" %M3.5 "Man_Robot 2" LAD Totally Integrated Automation Portal %M3.5 "Man_Robot 2" %I4.7 "LS-7_CTHT Cuối_Home Robot 2" %M3.3 "Man_Robot 1" %I2.1 "LS-1_ Overload Limit Trái" %M74.5 "MAN_DI CHUYEN Y" %I5.3 "LS I5.3 - Y PHAI" %I0.1 "Man/Auto Key 1" %I1.0 "Start_JOB -" %M3.7 "Man_Chạy ngược" %M6.7 "HMI_JOB-" %I4.6 "LS-6 _CTHT Điểm đầu_ Begin Robot 2" %M3.4 "Man_Xoay" %M161.4 "ROBOT 2_BÁN TỰ ĐỘNG" %M186.5 "OUT_HMI X2 BAN TU DONG" Network 4: Manual di chuyển xe số %I0.5 "Start_Robot 1" %I0.1 "Man/Auto Key 1" %I0.0 "Emergency" %I1.3 "Stop_Robot 1" %I2.7 "Overload_ Robot 1" %M3.4 "Man_Xoay" %M74.5 "MAN_DI CHUYEN Y" %M3.5 "Man_Robot 2" %M3.3 "Man_Robot 1" %M3.3 "Man_Robot 1" %M3.3 "Man_Robot 1" Network 5: Manual Phun bọt %I0.4 "Start_Motor Phun Bọt" %I2.6 "Overload_ Motor Phun bọt" %M3.2 "Man_Phun nước 1B" %I0.1 "Man/Auto Key 1" %I0.0 "Emergency" %I1.2 "Stop_Motor Phun bọt" %I0.3 "Start_Motor Phun nước" %I0.1 "Man/Auto Key 1" %I0.0 "Emergency" %I1.1 "Stop_Motor Phun nước" %M187.4 "Man_Phun nước 1A" %I0.0 "Emergency" %I6.1 "Stop_Bơm nước 1B" %I2.0 "Overload_ Motor Phun nước" %M3.1 "Man_Phun bọt" %M3.1 "Man_Phun bọt" %M3.1 "Man_Phun bọt" Network 6: Manual Phun nước 1A %M187.4 "Man_Phun nước 1A" Network 7: Manual Phun nước 1B %I6.0 "Start_Bơm nước 1B" %M3.2 "Man_Phun nước 1B" Network 8: Manual xoay vòi phun %I0.1 "Man/Auto Key 1" %M3.2 "Man_Phun nước 1B" %M75.0 "Man_Phanh di chuyển X1" Totally Integrated Automation Portal %I0.6 "Start_Motor Xoay" %I0.1 "Man/Auto Key 1" %I0.0 "Emergency" %I1.4 "Stop_Motor Xoay" %I3.7 "Overload_ Motor Xoay" %M3.3 "Man_Robot 1" %M3.5 "Man_Robot 2" %M74.5 "MAN_DI CHUYEN Y" %M3.4 "Man_Xoay" %M3.4 "Man_Xoay" %M75.1 "Man_Phanh xoay" Network 9: Manual di chuyển Y %I5.0 "START_DI CHUYEN Y" %I0.1 "Man/Auto Key 1" %I0.0 "Emergency" %I5.1 "STOP_DI CHUYEN Y" %I0.2 "TRIP- DI CHUYEN Y" %I3.7 "Overload_ Motor Xoay" %M3.3 "Man_Robot 1" %M3.5 "Man_Robot 2" %M74.5 "MAN_DI CHUYEN Y" Network 10: Bơm nước bình pha dung dịch %M109.3 "START_BOM NUOC DD" %I0.1 "Man/Auto Key 1" %M109.4 "MAN_BOM NUOC DUNG DICH" %M109.7 "START_SUI BOT" %I0.1 "Man/Auto Key 1" %M112.0 "MAN_SUI BOT" %I0.1 "Man/Auto Key 1" %M109.6 "MAN_BOM DUNG DICH BOT" Network 11: Sủi bọt Network 12: Bơm dung dịch %M109.5 "START_BOM DUNG DICH BOT" %M3.4 "Man_Xoay" %M74.5 "MAN_DI CHUYEN Y" Totally Integrated Automation Portal Program blocks AUTO MODE [FC2] AUTO MODE Properties General Name AUTO MODE Numbering Automatic Information Title Version 0.1 Number Type Author User-defined ID Name Input Output InOut Temp Temp_0 Temp_1 Temp_2 Constant Return AUTO MODE FC Language Comment Data type Default value Family Comment Int Int Int Void Network 1: Auto x1 CYCLE %I1.5 "Nút nhấn Auto_X1" %I0.1 "Man/Auto Key 1" %M161.7 "HMI_AUTO X1" %M186.0 "OUT_HMI AUTO X1" %M6.4 "FINAL" %I0.0 "Emergency" %M161.2 "Auto_x1" %I0.0 "Emergency" %M161.3 "Auto_X2" %M186.0 "OUT_HMI AUTO X1" %M161.2 "Auto_x1" Network 2: CHE ĐỘ TỰ ĐỘNG TRÊN HMI %M186.1 "HMI_SW AUTOX1" %M186.0 "OUT_HMI AUTO X1" %M161.7 "HMI_AUTO X1" SR S Q %M6.4 "FINAL" R1 Network 3: Auto X2 CYCLE %I4.2 "Nút nhấn Auto_X2" %M161.6 "HMI_AUTO X2" %M161.3 "Auto_X2" Network 4: Ciclo Mode %I0.1 "Man/Auto Key 1" %M186.0 "OUT_HMI AUTO X1" %M186.0 "OUT_HMI AUTO X1" %M6.4 "FINAL" LAD Totally Integrated Automation Portal Network 4: Ciclo Mode %I0.1 "Man/Auto Key 1" %M186.0 "OUT_HMI AUTO X1" %M2.1 "Limit 3_Begin_ Robot 1_OK" %M2.7 "Limit 5_Xoay Home Ok" %M2.3 "Limit 7_ Home_Robot 2" %M161.2 "Auto_x1" %M161.3 "Auto_X2" %I0.0 "Emergency" %M186.6 "HMI_EMG" %M6.4 "FINAL" %I2.1 "LS-1_ Overload Limit Trái" %M161.3 "Auto_X2" %M186.0 "OUT_HMI AUTO X1" %M2.5 "Cycle Man/Auto" %I2.2 "LS-2_ Overload Limit Phải" %M2.5 "Cycle Man/Auto" Network 5: Auto Robot DI CHUYỂN Khoảng cách cảm biến phát lớn khoảng cách cài đặt Thì cho chạy robot sang phải Sau 3s cho phép chạy động phun bọt Quá trình chạy sang phải mà gặp phải Robot cơng tắc hành trình số tác động STOP Robot %M161.2 "Auto_x1" %M4.3 "Auto_Robot 1" %M4.6 "Auto_Xoay" %M74.6 "SENSOR X2" %M7.4 "Ngắt tín hiệu cảm biến" %M108.5 "FINAL 2_ NUOC_BOT" "THOI GIAN FINAL DELAY X2".Q %I4.1 "Start_Robot 2" %I4.3 "Stop_Robot 2" %M161.5 "NGẮT X2_BÁN TỰ ĐỘNG" %M6.4 "FINAL" %M161.3 "Auto_X2" %M161.4 "ROBOT 2_BÁN TỰ ĐỘNG" %M161.4 "ROBOT 2_BÁN TỰ ĐỘNG" %I4.3 "Stop_Robot 2" %M161.5 "NGẮT X2_BÁN TỰ ĐỘNG" S %M186.2 "HMI_X2 BAN TU DONG" %M186.5 "OUT_HMI X2 BAN TU DONG" %M161.5 "NGẮT X2_BÁN TỰ ĐỘNG" %M6.4 "FINAL" R %I0.1 "Man/Auto Key 1" %M186.0 "OUT_HMI AUTO X1" %M186.0 "OUT_HMI AUTO X1" Network 6: Biến tần quay thuận - Job+ Sang phải %M2.5 "Cycle Man/Auto" %M4.5 "Auto_Robot 2" %M4.3 "Auto_Robot 1" Network 7: Biến tần quay ngược - Job - Sang trái %M4.4 "Auto_JOB-" %M4.7 "Auto_JOB+" %M4.5 "Auto_Robot 2" Totally Integrated Automation Portal %M2.5 "Cycle Man/Auto" %M4.3 "Auto_Robot 1" %I4.6 "LS-6 _CTHT Điểm đầu_ Begin Robot 2" %M4.7 "Auto_JOB+" %M4.4 "Auto_JOB-" %M4.6 "Auto_Xoay" %M4.5 "Auto_Robot 2" %M2.3 "Limit 7_ Home_Robot 2" %M5.0 "SQE1: LS5=1_ LS3=1_LSI5 2=1" %M4.5 "Auto_Robot 2" Network 8: Chạy tự động phun bọt %M2.5 "Cycle Man/Auto" %DB1.DBX58.0 "HMI WENITEK" "START_LẶP PHUN BỌT" %M4.2 "Auto_Phun bot" %DB20 "T X2 SANG X1" %M96.5 "SQE1: LS6=1_ LSI5.3=1_LS5=2" TON Time %M4.2 "Auto_Phun bot" IN %MD120 "Thời gian cài đặt phun bọt chờ" "T9".Q PT Q ET %MD138 "KẾT QUẢ THỜI GIAN X1 CHỜ PHUN BỌT" %M4.2 "Auto_Phun bot" Network 9: Chu trình Robot chạy Cơng tắc hành trình điểm đầu Xoay vị trí gốc (LS3, LS5=1) đếm lên cho phép chạy tự động Robot Phun bọt chạy 3s cho phép Robot chạy sang trái Robot gặp công tắc hành trình số STOP Robot %M2.5 "Cycle Man/Auto" "T X2 SANG X1".Q "TON_Van nuoc".Q %M5.1 "SQE1: LS6=1_ LS5=1_LSI5 2=1" %M96.6 "SQE1:LS-3=2_ LSI5.3=1_LS5=2" "T5".Q %M96.6 "SQE1:LS-3=2_ LSI5.3=1_LS5=2" "IEC_Timer_0_ DB_5".Q %M5.1 "SQE1: LS6=1_ LS5=1_LSI5 2=1" %M4.5 "Auto_Robot 2" %M97.1 "SQE1:LS3=2_ LSI5.2=2_ LS5=3" "THOI GIAN CHUYEN X1".Q %M4.3 "Auto_Robot 1" %M4.3 "Auto_Robot 1" %M75.5 "Auto_Phanh D Chuyen 1" %DB41 "THOI GIAN CHUYEN X1" %M96.6 "SQE1:LS-3=2_ LSI5.3=1_LS5=2" TON Time T#1S IN Q PT ET Network 10: Chu trình Xoay chạy %M2.5 "Cycle Man/Auto" "T2".Q %M5.2 "SQE1: LS6=1_ LS4=1_LSI5 2=1" "T4".Q %M96.5 "SQE1: LS6=1_ LSI5.3=1_LS5=2" "T6".Q %M96.7 "SQE1:LS3=2_ LSI5.3=1_ LS4=2" "T8".Q %M97.1 "SQE1:LS3=2_ LSI5.2=2_ LS5=3" Network 11: Chu trình chạy sang ngang Di chuyển Y %M4.3 "Auto_Robot 1" %M4.5 "Auto_Robot 2" %M4.6 "Auto_Xoay" %M4.6 "Auto_Xoay" %M75.6 "Auto_Phanh xoay" Totally Integrated Automation Portal %M2.5 "Cycle Man/Auto" "T3".Q %M96.3 "SQE1:LS6=1_ LS4=1_LSI5 3=1" "T7".Q %M97.0 "SQE1: LS3=2_ LSI5.2=2_ LS4=2" %DB1.DBX58.0 "HMI WENITEK" "START_LẶP PHUN BỌT" %DB1.DBX58.1 "HMI WENITEK" "START_LẶP PHUN NƯỚC" %M75.7 "Auto_Di chuyen Y" Network 12: Chạy tự động phun nước %M2.5 "Cycle Man/Auto" %M74.6 "SENSOR X2" %M6.1 "Auto_Phun nước_1" "TON_Van nuoc".Q %M187.6 "Bit_Van_Nuoc" %M7.4 "Ngắt tín hiệu cảm biến" %DB23 "TON_Van nuoc" TON Time %M187.6 "Bit_Van_Nuoc" IN %MD66 "Thời gian chờ bật van nước" Q PT ET %MD130 "KẾT QUẢ THỜI GIAN CHỜ MỞ VAN NƯỚC" %DB18 "IEC_Timer_0_ DB_5" %M6.1 "Auto_Phun nước_1" TON Time IN %MD34 "OUT_TIMER P_ NUOC_ROBOT 1" Q PT ET %MD134 "KẾT QUẢ THỜI GIAN X1 CHỜ PHUN NƯỚC" %DB46 "IEC_Timer_0_DB" %M6.1 "Auto_Phun nước_1" %M187.1 "Auto_Phun nước_2" TON Time T#3s IN Q PT ET Network 13: Cài đặt thời gian chờ bật Van nước MUL Int MOVE EN %DB1.DBW78 "HMI WENITEK" "Cài đặt thời gian chờ van nước" ENO OUT1 EN %MW62 "Temp Timer On Van nước" %MW62 "Temp Timer On Van nước" IN1 1000 IN2 T_CONV Int TO Time ENO OUT EN %MW64 "Kết timer giây" %MW64 "Kết timer giây" ENO IN OUT %MD66 "Thời gian chờ bật van nước" IN Network 14: Cài đặt thời gian chờ phun nước sau van nước bật MUL Int MOVE EN %DB1.DBW80 "HMI WENITEK" "Cài đặt thời gian chờ phun nước" ENO OUT1 EN %MW32 "TIMER_P_ NƯỚC_ROBOT 1" IN %MW32 "TIMER_P_ NƯỚC_ROBOT 1" IN1 1000 IN2 T_CONV Int TO Time ENO OUT EN %MW32 "TIMER_P_ NƯỚC_ROBOT 1" %MW32 "TIMER_P_ NƯỚC_ROBOT 1" ENO IN OUT %MD34 "OUT_TIMER P_ NUOC_ROBOT 1" Network 15: Cài đặt thời gian chờ Phun Bọt khởi động Sau cho chạy X1 MUL Int MOVE EN %DB1.DBW82 "HMI WENITEK" "Cài đặt thời gian chờ phun bọt" ENO OUT1 IN EN %MW116 "Biến tạm thời gian phun bọt" %MW116 "Biến tạm thời gian phun bọt" IN1 1000 IN2 T_CONV Int TO Time ENO OUT EN %MW118 "Kết thời gian biến tạm phun bọt" %MW118 "Kết thời gian biến tạm phun bọt" IN ENO OUT %MD120 "Thời gian cài đặt phun bọt chờ" Totally Integrated Automation Portal Network 16: CHẾ ĐỘ CÀI ĐẶT HMI BỌT NƯỚC %M112.1 "CHE DO 1" %M112.2 "CHẾ ĐỘ 2" %DB1.DBX90.0 "HMI WENITEK" "Chọn chế độ 3" %M112.4 "CHẾ ĐỘ 4" MOVE EN ENO IN OUT1 %DB1.DBW24 "HMI WENITEK" "SETPOINT PV_ PHUN NƯỚC" MOVE EN ENO IN OUT1 %DB1.DBW22 "HMI WENITEK" "SETPOINT PV_ PHUN BỌT" Network 17: CHẾ ĐỘ CÀI ĐẶT HMI NƯỚC BỌT %M112.2 "CHẾ ĐỘ 2" %M112.1 "CHE DO 1" %DB1.DBX90.0 "HMI WENITEK" "Chọn chế độ 3" %M112.4 "CHẾ ĐỘ 4" MOVE EN ENO IN OUT1 %DB1.DBW24 "HMI WENITEK" "SETPOINT PV_ PHUN NƯỚC" MOVE EN ENO IN OUT1 %DB1.DBW22 "HMI WENITEK" "SETPOINT PV_ PHUN BỌT" Network 18: CHẾ ĐỘ CÀI ĐẶT HMI NƯỚC BỌT %DB1.DBX90.0 "HMI WENITEK" "Chọn chế độ 3" %M112.2 "CHẾ ĐỘ 2" %M112.1 "CHE DO 1" %M112.4 "CHẾ ĐỘ 4" MOVE EN ENO IN OUT1 %DB1.DBW24 "HMI WENITEK" "SETPOINT PV_ PHUN NƯỚC" MOVE EN ENO IN OUT1 %DB1.DBW22 "HMI WENITEK" "SETPOINT PV_ PHUN BỌT" Network 19: CHẾ ĐỘ CÀI ĐẶT HMI BỌT NƯỚC %M112.4 "CHẾ ĐỘ 4" %M112.2 "CHẾ ĐỘ 2" %M112.1 "CHE DO 1" %DB1.DBX90.0 "HMI WENITEK" "Chọn chế độ 3" MOVE EN ENO IN OUT1 %DB1.DBW24 "HMI WENITEK" "SETPOINT PV_ PHUN NƯỚC" MOVE EN ENO IN OUT1 Network 20: KẾT QUẢ PHUN BỌT HIỂN THỊ HMI %DB1.DBW22 "HMI WENITEK" "SETPOINT PV_ PHUN BỌT" Totally Integrated Automation Portal Program blocks / System blocks / Program resources THOI GIAN FINAL DELAY X2 [DB40] THOI GIAN FINAL DELAY X2 Properties General Name THOI GIAN FINAL DELAY X2 Number 40 Numbering Automatic Information Title Author Simatic Version 1.0 User-defined ID IEC_TMR Name Type DB Comment Data type Start value Retain Accessible from HMI/OPC UA Writ‐ Visible in Setpoint able HMI engi‐ from neering HMI/ OPC UA Time Time Bool Bool T#0ms T#0ms false false False False False False True True True True True False True False Static PT ET IN Q True True True True False False False False Language DB Family IEC Supervi‐ sion Comment Totally Integrated Automation Portal Program blocks / System blocks / Program resources T_sủi bọt [DB24] T_sủi bọt Properties General Name T_sủi bọt Numbering Automatic Information Title Version 1.0 Name Number 24 Type Author Simatic User-defined ID IEC_TMR DB Comment Data type Start value Retain Accessible from HMI/OPC UA Writ‐ Visible in Setpoint able HMI engi‐ from neering HMI/ OPC UA Time Time Bool Bool T#0ms T#0ms false false False False False False True True True True True False True False Static PT ET IN Q True True True True False False False False Language DB Family IEC Supervi‐ sion Comment Totally Integrated Automation Portal Program blocks / System blocks / Program resources T_bơm nước dung dịch [DB42] T_bơm nước dung dịch Properties General Name T_bơm nước dung dịch Numbering Automatic Information Title Version 1.0 Name Number 42 Type Author Simatic User-defined ID IEC_TMR DB Comment Data type Start value Retain Accessible from HMI/OPC UA Writ‐ Visible in Setpoint able HMI engi‐ from neering HMI/ OPC UA Time Time Bool Bool T#0ms T#0ms false false False False False False True True True True True False True False Static PT ET IN Q True True True True False False False False Language DB Family IEC Supervi‐ sion Comment Totally Integrated Automation Portal Program blocks / System blocks / Program resources T_Bơm dung dịch [DB43] T_Bơm dung dịch Properties General Name T_Bơm dung dịch Numbering Automatic Information Title Version 1.0 Name Number 43 Type Author Simatic User-defined ID IEC_TMR DB Comment Data type Start value Retain Accessible from HMI/OPC UA Writ‐ Visible in Setpoint able HMI engi‐ from neering HMI/ OPC UA Time Time Bool Bool T#0ms T#0ms false false False False False False True True True True True False True False Static PT ET IN Q True True True True False False False False Language DB Family IEC Supervi‐ sion Comment Totally Integrated Automation Portal Program blocks / System blocks / Program resources T_Alarm [DB44] T_Alarm Properties General Name T_Alarm Numbering Automatic Information Title Version 1.0 Name Number 44 Type Author Simatic User-defined ID IEC_TMR DB Comment Data type Start value Retain Accessible from HMI/OPC UA Writ‐ Visible in Setpoint able HMI engi‐ from neering HMI/ OPC UA Time Time Bool Bool T#0ms T#0ms false false False False False False True True True True True False True False Static PT ET IN Q True True True True False False False False Language DB Family IEC Supervi‐ sion Comment Totally Integrated Automation Portal Program blocks / System blocks / Program resources CTU cam bien sieu am_Phun gam [DB45] CTU cam bien sieu am_Phun gam Properties General Name CTU cam bien sieu am_Phun Number 45 gam Numbering Automatic Information Title Author Simatic Version 1.0 User-defined ID CNTR Name Type DB Comment Data type Start value Retain Accessible from HMI/OPC UA Writ‐ Visible in Setpoint able HMI engi‐ from neering HMI/ OPC UA Bool Bool Bool Bool Bool Bool Int Int false false false false false false 0 True True True True True True True True True True True True True True True True True True True True True True True True Static CU CD R LD QU QD PV CV True True True True True True True True False False False False False False False False Language DB Family IEC Supervi‐ sion Comment Totally Integrated Automation Portal Program blocks / System blocks / Program resources IEC_Timer_0_DB [DB46] IEC_Timer_0_DB Properties General Name IEC_Timer_0_DB Numbering Automatic Information Title Version 1.0 Name Number 46 Type Author Simatic User-defined ID IEC_TMR DB Comment Data type Start value Retain Accessible from HMI/OPC UA Writ‐ Visible in Setpoint able HMI engi‐ from neering HMI/ OPC UA Time Time Bool Bool T#0ms T#0ms false false False False False False True True True True True False True False Static PT ET IN Q True True True True False False False False Language DB Family IEC Supervi‐ sion Comment Totally Integrated Automation Portal Program blocks / System blocks / Program resources IEC_Timer_0_DB_1 [DB47] IEC_Timer_0_DB_1 Properties General Name IEC_Timer_0_DB_1 Numbering Automatic Information Title Version 1.0 Name Number 47 Type Author Simatic User-defined ID IEC_TMR DB Comment Data type Start value Retain Accessible from HMI/OPC UA Writ‐ Visible in Setpoint able HMI engi‐ from neering HMI/ OPC UA Time Time Bool Bool T#0ms T#0ms false false False False False False True True True True True False True False Static PT ET IN Q True True True True False False False False Language DB Family IEC Supervi‐ sion Comment Totally Integrated Automation Portal Program blocks / System blocks / Program resources IEC_Timer_0_DB_2 [DB48] IEC_Timer_0_DB_2 Properties General Name IEC_Timer_0_DB_2 Numbering Automatic Information Title Version 1.0 Name Number 48 Type Author Simatic User-defined ID IEC_TMR DB Comment Data type Start value Retain Accessible from HMI/OPC UA Writ‐ Visible in Setpoint able HMI engi‐ from neering HMI/ OPC UA Time Time Bool Bool T#0ms T#0ms false false False False False False True True True True True False True False Static PT ET IN Q True True True True False False False False Language DB Family IEC Supervi‐ sion Comment Totally Integrated Automation Portal Program blocks / System blocks / Program resources IEC_Timer_0_DB_3 [DB49] IEC_Timer_0_DB_3 Properties General Name IEC_Timer_0_DB_3 Numbering Automatic Information Title Version 1.0 Name Number 49 Type Author Simatic User-defined ID IEC_TMR DB Comment Data type Start value Retain Accessible from HMI/OPC UA Writ‐ Visible in Setpoint able HMI engi‐ from neering HMI/ OPC UA Time Time Bool Bool T#0ms T#0ms false false False False False False True True True True True False True False Static PT ET IN Q True True True True False False False False Language DB Family IEC Supervi‐ sion Comment Totally Integrated Automation Portal Program blocks / System blocks / Program resources MB_COMM_LOAD [FB1080] MB_COMM_LOAD Properties General Name MB_COMM_LOAD Numbering Automatic Information Title Version 2.1 Name Number 1080 Type Author SIMATIC User-defined ID MB_CM_LD FB Comment Language LAD Family MODBUS Data type Default value Retain Accessible from HMI/OPC UA Writ‐ Visible in Setpoint able HMI engi‐ from neering HMI/ OPC UA REQ Bool false Non-retain True True True False PORT BAUD PARITY FLOW_CTRL PORT UDInt UInt UInt 16#FFFF 0 Non-retain Non-retain Non-retain Non-retain True True True True True True True True True True True True False False False False RTS_ON_DLY UInt Non-retain True True True False RTS_OFF_DLY UInt Non-retain True True True False RESP_TO UInt 1000 Non-retain True True True False DONE Bool false Non-retain True True True False ERROR Bool false Non-retain True True True False STATUS Word 16#0 Non-retain True True True False False False False False Non-retain Non-retain Non-retain Non-retain False False False False False False False False False False False False False False False False 2 2 Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain True True True True True False True True True True True False True True True True True False False False False False False False 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False Supervi‐ sion Comment Input The enable to initiate a Mod‐ bus configuration operation The PtP hardware address The baud rate of the PtP port The parity of the PtP port Transmit and receive flow control The enable time of RTS be‐ fore sending the first charac‐ ter The enable time of RTS after sending the last character The time to wait for the Modbus slave to respond Output Boolean indicating comple‐ tion without error Boolean indicating comple‐ tion with error Status of the current opera‐ tion InOut MB_DB MB_BASE Input Output InOut Static S_PORT S_RESP_TO S_ICHAR_GAP S_RETRIES UInt UInt UInt UInt Static ICHAR_GAP RETRIES WRREC_STATUS RDREC_STATUS SFC_STATUS Port_CFG_SFB Port_CFG_SFB[0] Port_CFG_SFB[1] Port_CFG_SFB[2] Port_CFG_SFB[3] Port_CFG_SFB[4] Port_CFG_SFB[5] Port_CFG_SFB[6] Port_CFG_SFB[7] Port_CFG_SFB[8] Port_CFG_SFB[9] Port_CFG_SFB[10] Port_CFG_SFB[11] Port_CFG_SFB[12] Port_CFG_SFB[13] Port_CFG_SFB[14] Port_CFG_SFB[15] Port_CFG_SFB[16] Port_CFG_SFB[17] Port_CFG_SFB[18] Port_CFG_SFB[19] Port_CFG_SFB[20] Port_CFG_SFB[21] Port_CFG_SFB[22] UInt UInt Word Word Word Array[0 25] of Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte The instance DB of the Mod‐ bus master or slave Totally Integrated Automation Portal Name Port_CFG_SFB[23] Port_CFG_SFB[24] Port_CFG_SFB[25] Send_CFG_SFB Send_CFG_SFB[0] Send_CFG_SFB[1] Send_CFG_SFB[2] Send_CFG_SFB[3] Send_CFG_SFB[4] Send_CFG_SFB[5] Send_CFG_SFB[6] Send_CFG_SFB[7] Send_CFG_SFB[8] Send_CFG_SFB[9] Send_CFG_SFB[10] Send_CFG_SFB[11] Send_CFG_SFB[12] Send_CFG_SFB[13] Send_CFG_SFB[14] Send_CFG_SFB[15] Send_CFG_SFB[16] Rcv_CFG_SFB Rcv_CFG_SFB[0] Rcv_CFG_SFB[1] Rcv_CFG_SFB[2] Rcv_CFG_SFB[3] Rcv_CFG_SFB[4] Rcv_CFG_SFB[5] Rcv_CFG_SFB[6] Rcv_CFG_SFB[7] Rcv_CFG_SFB[8] Rcv_CFG_SFB[9] Rcv_CFG_SFB[10] Rcv_CFG_SFB[11] Rcv_CFG_SFB[12] Rcv_CFG_SFB[13] Rcv_CFG_SFB[14] Rcv_CFG_SFB[15] Rcv_CFG_SFB[16] Rcv_CFG_SFB[17] Rcv_CFG_SFB[18] Rcv_CFG_SFB[19] Rcv_CFG_SFB[20] Rcv_CFG_SFB[21] Rcv_CFG_SFB[22] Rcv_CFG_SFB[23] Rcv_CFG_SFB[24] Rcv_CFG_SFB[25] Rcv_CFG_SFB[26] Rcv_CFG_SFB[27] Rcv_CFG_SFB[28] Rcv_CFG_SFB[29] Rcv_CFG_SFB[30] Rcv_CFG_SFB[31] Rcv_CFG_SFB[32] Rcv_CFG_SFB[33] Rcv_CFG_SFB[34] Rcv_CFG_SFB[35] Rcv_CFG_SFB[36] Rcv_CFG_SFB[37] Rcv_CFG_SFB[38] Rcv_CFG_SFB[39] Rcv_CFG_SFB[40] Rcv_CFG_SFB[41] Rcv_CFG_SFB[42] Rcv_CFG_SFB[43] Rcv_CFG_SFB[44] Rcv_CFG_SFB[45] Rcv_CFG_SFB[46] Rcv_CFG_SFB[47] Rcv_CFG_SFB[48] Rcv_CFG_SFB[49] Rcv_CFG_SFB[50] Data type Default value Retain Accessible from HMI/OPC UA Visible in Setpoint HMI engi‐ neering False False False False Writ‐ able from HMI/ OPC UA False False False False Byte Byte Byte Array[0 16] of Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Array[0 60] of Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte 16#0 16#0 16#0 Non-retain Non-retain Non-retain Non-retain False False False False False False False False 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False Supervi‐ sion Comment Totally Integrated Automation Portal Name Rcv_CFG_SFB[51] Rcv_CFG_SFB[52] Rcv_CFG_SFB[53] Rcv_CFG_SFB[54] Rcv_CFG_SFB[55] Rcv_CFG_SFB[56] Rcv_CFG_SFB[57] Rcv_CFG_SFB[58] Rcv_CFG_SFB[59] Rcv_CFG_SFB[60] STOP_BITS Data type Default value Retain Accessible from HMI/OPC UA Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte USInt 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain False False False False False False False False False False True Writ‐ able from HMI/ OPC UA False False False False False False False False False False True Visible in Setpoint HMI engi‐ neering False False False False False False False False False False True False False False False False False False False False False False Supervi‐ sion Comment Totally Integrated Automation Portal Program blocks / System blocks / Program resources MB_MASTER [FB1081] MB_MASTER Properties General Name MB_MASTER Numbering Automatic Information Title Version 2.2 Name Number 1081 Type Author SIMATIC User-defined ID MB_MASTR Data type Default value Comment Retain MB_BASE Base FB Accessible from HMI/OPC UA Language LAD Family MODBUS Visible in Setpoint HMI engi‐ neering True Writ‐ able from HMI/ OPC UA True True False Supervi‐ sion Comment Input Output InOut Static UInt UInt UInt UInt 16#FFFF 1000 28 Non-retain Non-retain Non-retain Non-retain False False False False False False False False False False False False False False False False REQ Bool false Non-retain True True True False MB_ADDR UInt Non-retain True True True False MODE USInt Non-retain True True True False UDInt UInt 0 Non-retain Non-retain True True True True True True False False DONE Bool false Non-retain True True True False BUSY Bool false Non-retain True True True False ERROR Bool false Non-retain True True True False STATUS Word 16#0 Non-retain True True True False False False False False Non-retain False False False False 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 16#0 Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False 16#0 16#0 16#0 Non-retain Non-retain Non-retain False False False False False False False False False False False False S_PORT S_RESP_TO S_ICHAR_GAP S_RETRIES Input DATA_ADDR DATA_LEN Output The enable to initiate a Mod‐ bus master request The station address of the Modbus slave Specifies a read, write, or di‐ agnostic operation The Modbus data address The Modbus data length Boolean indicating comple‐ tion without error Boolean indicating opera‐ tion in progress Boolean indicating comple‐ tion with error Status or error code of the completed operation InOut DATA_PTR Variant Static SEND_PTP_SFB SEND_PTP_SFB[0] SEND_PTP_SFB[1] SEND_PTP_SFB[2] SEND_PTP_SFB[3] SEND_PTP_SFB[4] SEND_PTP_SFB[5] SEND_PTP_SFB[6] SEND_PTP_SFB[7] SEND_PTP_SFB[8] SEND_PTP_SFB[9] SEND_PTP_SFB[10] SEND_PTP_SFB[11] RCV_PTP_SFB RCV_PTP_SFB[0] RCV_PTP_SFB[1] RCV_PTP_SFB[2] RCV_PTP_SFB[3] RCV_PTP_SFB[4] RCV_PTP_SFB[5] RCV_PTP_SFB[6] RCV_PTP_SFB[7] RCV_PTP_SFB[8] RCV_PTP_SFB[9] RCV_PTP_SFB[10] RCV_PTP_SFB[11] RCV_RST_SFB RCV_RST_SFB[0] RCV_RST_SFB[1] RCV_RST_SFB[2] Array[0 11] of Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Array[0 11] of Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Byte Array[0 9] of Byte Byte Byte Byte Data area used to communi‐ cate with the Modbus slave Totally Integrated Automation Portal Name RCV_RST_SFB[3] RCV_RST_SFB[4] RCV_RST_SFB[5] RCV_RST_SFB[6] RCV_RST_SFB[7] RCV_RST_SFB[8] RCV_RST_SFB[9] PF_FREQUENCY BLOCKED_PROC_TIMEOUT CURRENT_TIME_VALUE SAVED_TIME_VALUE SAVED_SLAVE_ADDR SAVED_MODE SAVED_DATA_ADDR SAVED_DATA_LEN MB_STATE COMM_SENT_COUNT BYTE_COUNT INIT_OK ACTIVE BROADCAST_FLAG EXTENDED_ADDRESSING SAVED_START_ADDR TXBuf_Function_Offset TXBuf_Address_Offset TXBuf_Quantity_Offset Data type Default value Retain Accessible from HMI/OPC UA Byte Byte Byte Byte Byte Byte Byte Real Real UDInt UDInt Word Word DWord UInt UInt UInt USInt Bool Bool Bool Bool UInt UDInt UDInt UDInt 16#0 16#0 16#0 16#0 16#0 16#0 16#0 0.0 3.0 0 0 0 0 false false false false 0 0 Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain Non-retain False False False False False False False False True False False False False False False False False False False False False True False False False False Writ‐ able from HMI/ OPC UA False False False False False False False False True False False False False False False False False False False False False True False False False False Visible in Setpoint HMI engi‐ neering False False False False False False False False True False False False False False False False False False False False False True False False False False False False False False False False False False False False False False False False False False False False False False False False False False False False Supervi‐ sion Comment ... "Man _Robot 1" %Q0.2 "R3_KM4 _Robot 1" %M4.3 "Auto _Robot 1" Network 1 0: DI CHUYEN %M3.5 "Man _Robot 2" %M4.5 "Auto _Robot 2" %M161.4 "ROBOT 2_BÁN TỰ ĐỘNG" %M186.5 "OUT_HMI X2 BAN TU DONG" Network 1 1:. .. %I4.3 "Stop _Robot 2" %M161.5 "NGẮT X2_BÁN TỰ ĐỘNG" %M6.4 "FINAL" %M161.3 "Auto_X2" %M161.4 "ROBOT 2_BÁN TỰ ĐỘNG" %M161.4 "ROBOT 2_BÁN TỰ ĐỘNG" %I4.3 "Stop _Robot 2" %M161.5 "NGẮT X2_BÁN TỰ ĐỘNG"... NƯỚC KẾT QUẢ SỐ LẦN PHUN BỌT KẾT QUẢ SỐ LẦN PHUN NƯỚC KẾT QUẢ ĐẾM LÊN CỦA CTHT ĐIỂM ĐẦU ROBOT KẾT QUẢ ĐẾM LÊN CỦA CTHT 180 XOAY KẾT QUẢ ĐẾM LÊN CỦA CTHT GỐC XOAY KẾT QUẢ ĐẾM LÊN CỦA CTHT ĐẦU XE ROBOT

Ngày đăng: 08/02/2022, 19:41

w