MINISTRY OF EDUCATION AND TRAINING HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY AND EDUCATION FACULTY FOR HIGH QUALITY TRAINING GRADUATION THESIS AUTOMATION AND CONTROL ENGINEERING TECHNOLOGY INDUSTRIAL VISION SYSTEM IN CONFIRMING LABEL MEDICINE BOTTLES ADVISOR : MENG. LE HOANG LAM STUDENTS : NGUYEN TRI DUC LAM HOAN TIN SKL011155 Ho Chi Minh City, July 2023 HO CHI MINH CITY UNIVERSITY OF TECHNOLOGY AND EDUCATION FACULTY FOR HIGH QUALITY TRAINING GRADUTATION THESIS Project: INDUSTRIAL VISION SYSTEM IN CONFIRMING LABEL MEDICINE BOTTLES Advisor : MEng. Le Hoang Lam Student’s name : Nguyen Tri Duc Student’s ID : 19142083 Student’s name : Lam Hoan Tin Student’s ID : 19151045 Major : Automation and Control Engineering Technology Class : 19151CLA1 Ho Chi Minh City, July 2023 THE SOCIALIST REPUBLIC OF VIETNAM Independence- Freedom- Happiness ----***---- Ho Chi Minh city, June 1th , 2023 GRADUATION PROJECT ASSIGNMENT Student’s name: Nguyen Tri Duc Student’s ID number: 19142083 Student’s name: Lam Hoan Tin Student’s ID number: 19151045 Major: Automation and Control Technology Class: 19151CLA1 Advisor: MEng. Le Hoang Lam Phone number: 0949253277 Date of assignment: 28/02/2023 Date of submission: 25/06/2023 1.
Project title: Industrial Vision System in confirming label medicine bottle 2. Initial materials provided by the advisor: - http://dl.com/dl/fa/document/manual/ssc/ib0300117/ib03 00117b.com/fa/vn_vi/download/manual/pdf/cnt/plc0 07. Content of project: Design the electrical and mechanical part of the Industrial Vision system to control, monitor and sort medicine bottles into boxes. Synchronous and interpolation position control are used to handle cartesian robot and rotary table and transport medicine bottles, while Cognex camera determines labels of medicine bottles.
The final results: Electrical panel, Mechanical system model and the thesis. CHAIR OF THE PROGRAM ADVISOR (Sign with full name) (Sign with full name) THE SOCIALIST REPUBLIC OF VIETNAM Independence- Freedom- Happiness ----***---- Ho Chi Minh city, July 1th ,2023 ADVISOR’S EVALUATION SHEET Student’s name: Nguyen Tri Duc ID number: 19142083 Student’s name: Lam Hoan Tin ID number: 19151045 Major: Automation and Control Engineering Technology Project title: Industrial Vision System in confirming label medicine bottle Advisor: MEng. Le Hoang Lam EVALUATION: 1. Content of the project:.
Approval for oral defense? (Approved or denied). Ho Chi Minh City, ADVISOR (Sign with full name) THE SOCIALIST REPUBLIC OF VIETNAM Independence- Freedom- Happiness ----***---- Ho Chi Minh city, July 1th ,2023 PRE-DEFENSE EVALUATION SHEET Student’s name: Nguyen Tri Duc ID number: 19142083 Student’s name: Lam Hoan Tin ID number: 19151045 Major: Automation and Control Engineering Technology Project title: Industrial Vision System in confirming label medicine bottle Name of reviewer:. Content and workload of the project:. Approval for oral defense? (Approved or denied).
Ho Chi Minh City, ADVISOR (Sign with full name) THE SOCIALIST REPUBLIC OF VIETNAM Independence- Freedom- Happiness ----***---- Ho Chi Minh city, July …th ,2023 EVALUATION SHEET OF DEFENSE COMMITTEE MEMBER Student’s name: Nguyen Tri Duc ID number: 19142083 Student’s name: Lam Hoan Tin ID number: 19151045 Major: Automation and Control Engineering Technology Name of Defense Committee Member:. Content and workload of the project:. Ho Chi Minh City, COMMITTEE MEMBER (Sign with full name) GRADUATION THESIS ADVISOR:Meng.Le Hoang Lam ACKNOWLEDGEMENTS First of all, I would like to show appreciation for Ho Chi Minh City University of Technology and Education and the Faculty of High Quality for giving conditions and opportunities for us to carry out this graduation thesis. The group's project is mainly the content of theoretical and practical knowledge that we have been introduced and taught from teachers during the time being students here and at the same time in conjunction with the seeking, research, discussion as well as synthesis of knowledge that we grasp in the learning process.
In addition, my group has received a lot of attention and support from teachers, brothers and sisters, and friends both in university and internship duration who have given advices to us to apply what we have obtained in the process of evolving and completing the topic. And we would also like to express our sincere thanks to: Instructor MEng Le Hoang Lam, a passionate teacher, had discussions and suggestions, dedicated to guiding and giving advices to us, supporting us with high-quality electrical and mechanical devices as well as orienting the group so that we are able to accomplish this project at our best. Besides, we gave our regards to Faculty of High-Quality Training Administrators and lecturers, especially our head of department Mrs. Nguyen Tran Minh Nguyet, for inspiring and spreading their enthusiasm, as well as giving feedback and answers to us during project implementation based on their practical experience to be able to bring effective information to group’s project.
Finally, we would like to thank our family and friends who have always encouraged and created the best conditions for us to try our best to complete this graduation thesis. The authors 1 GRADUATION THESIS ADVISOR:Meng.Le Hoang Lam LIST OF CONTENTS ACKNOWLEDGEMENTS. 1 LIST OF CONTENTS. 2 LIST OF FIGURES.
6 LIST OF TABLES. BACKGROUND OF THE RESEARCH:. REASON TO CHOOSE THE PROJECT. THE LIMITATION OF THE PROJECT.
14 CHAPTER 2: THEORETICAL BASIS. GENERAL INTRODUCTION ABOUT PLC. What is PLC. Characteristics and Function of PLC:.
Q-Series Mitsubishi PLC:. SERVO MOTOR AND DRIVER SERVO:. 28 2 GRADUATION THESIS ADVISOR:Meng.Le Hoang Lam 2. AC Servo function :.
Structure of an AC Servo motor:. Driver Servo MR-J3. AC Servo positioning control. Electronic positioning setup.
NPN and PNP Sensors. Barcode Camera Scanner:. Cognex Vision Technology:. CC-Link System.
CC-Link Characteristics. 49 CHAPTER 3: SYSTEM CALCULATION, DESIGN AND CONSTRUCTION. 51 3 GRADUATION THESIS ADVISOR:Meng.Le Hoang Lam 3. System calculation and design.
Mechanical Block Diagram. Model parameters and Design Drawing. Electrical Block Diagram. Choose devices and system design.
Positioning module QD75MH4. Output module QY41P. Input module QX80. CC-Link module QJ61BT11N.
Driver Servo Station. 88 4 GRADUATION THESIS ADVISOR:Meng.Le Hoang Lam 3. 91 CHAPTER 4: ALGORITHMS AND PROGRAMS. SYSTEM OPERATION AND ALGORITHMS.
Algorithm to process information from images of objects:. System program installation software. Insight Explorer Software:. 124 CHAPTER 5: EXPERIMENT RESULTS, COMMENT AND EVALUATION.
COMMENT AND EVALUATION. 138 CHAPTER 6: CONCLUSION AND RECOMMENDATIONS. Error! Bookmark not defined. 5 GRADUATION THESIS ADVISOR:Meng.Le Hoang Lam LIST OF FIGURES Figure 2.
5: Series HF Servo Motor. 6: AC Servo motor. 13: Return Home using Near-point dog method. 14: Movement limit of the structure.
15: Op1cal sensor Omron SX674A. 16: NPN and PNP. 17: NPN 3-wire sensor wiring. 18: PNP 3-wires sensor wiring.
19: Popular barcode symbols. 20: In-sight Vision System 5000. 22: CC-Link Industrial Network. 1: X-Axis THK-KR45H.
2: Lead screw X-Axis parameters. 3: Y-Axis Misumi LX30. 4: Lead Screw Y-Axis parameters. 5: Z-Axis THK-KR20.
6: Lead Screw Z-Axis parameters. 7: Electrical Block Diagram. 8: QY41P Specifica1ons. 9: QY41P Pin-Outs.
10: 2D QY41P Pin-Outs. 11: QX80 Specifica1ons. 12: QX80 Pin-Outs. 14: Module CC-Link QJ61BT11N.
15: QJ61BT11N Specifica1ons. 16: QJ61BT11N Characteris1cs. 19: SSCNET III network. 20: Camera Cognex In-sight 5110.
76 6 GRADUATION THESIS ADVISOR:Meng.Le Hoang Lam Figure 3. 21: 2D Driver Brushless Wiring. 22: Driver Brushless Bled6C-CC. 23: 2D Sensors connec1ng QD75MH4.
24: MR-J3BUS1M cable. 27: Cognex In-sight 5110 Cable\. 28: Ethernet cable Cognex In-Sight I5110 Pin-outs. 29: Breakout cable Cognex In-Sight I5110 Pin-outs.
30: Encoder cable with two connectors. 31: Power supply cable with two connectors. 34: Switching source TDK-Lambda. 35: Relay MY2N-D2 Figure 3.
36: Relay Omron LY2N. 37: SSCNET III Network connec1on. 38: System Ethernet network. 39: X axis construc1on.
40: Y-Axis Construc1on. 41: Conveyor and Motor Base construc1on. 42: Z-Axis construc1on beyond Y-Axis. 43: XYZ-Axes and Rotary table.
44: SoB limit switch for X-Axis. 45: Wiring motors and sensors of all motors and axes. 46: Electromagne1c, Camera Base and Limit Sensor Y-Axis construc1on. 48 AC servo and sensor wiring.
49 PLC modules and domino wiring. 1 Interpola1on algorithms of X,Y,Z, axis. 2 State diagram in main func1on. 3 State diagram of Stop mode.
4 State diagram in manual mode. 5 State diagram in automode. 6 State diagram in sub func1on classify. 7 State diagram in sub func1on Berberin, Vitamin,VITAMIN.
8 State diagram sub func1on error. 9 State diagram sub func1on alarm mode. 10 State diagram sub func1on emergency. 12 Configura1on of Gx works2.
14 Declare to connect CC-link. 15 Choose Sta1on for CC link module. 104 7 GRADUATION THESIS ADVISOR:Meng.Le Hoang Lam Figure 4. 16 Manual terminal name of CC-link.
17 Informa1on default of BLE series. 18 Configura1on parameter. 19 Confit OPR basic parameters. 20 Confit Servo amplifier series.
21 Data Axis1 in project. 22 Posi1oning data in axis 1. 23 The data of the buffer memory. 24 The data of buffer memory for reser error.
26 Introduce task bar in GT Designer3. 27 SeHng lamp in GT Designer 3. 28 Window of Project, Screen, System. 29 Type of screen in GT Designer3.
30 SeHng bit switch in GT Designer3. 31 Confit GOT TYPE. 32 Window of securiity. 33 Confit script in login buIon.
34 Confit scipt in cancel buIon. 35 Creat buIon for switching screen. 36 Firt Screen in HMI project. 37 Confit advance security.
38 Creat passwword and security device. 39 Choose level of security device. 43 Auto mornitor when running. 44 Delare bit set and reset in emergency buIon.
45 Confit alarm screen. 46 SeHng data buffer memory for alarm screen. 47 Contents display in alarm mornitor. 49 Communica1on in Gt soBGOT 2000.
50 In-Sight SoBware. 51 Chossing IP Address for camera. 52 User configured. 53 Configured IP address in insight explorer.
54 Choosing subnet mask. 55 Get connect insight explorer with computer. 56 Set up image. 57 Read barcode in edit tool.
58 Train characters Berberin. 59 Choose segment and modify characters. 131 8 GRADUATION THESIS ADVISOR:Meng.Le Hoang Lam Figure 4. 60 Font of characters.
61 Differnce table of characters. 62 SeHng to configure in onl mode. 63 informa1on to seHng in onl mode. 64 Configure in Gx works2.
65 Test communicate in insight explorer. 66 Configured data memory to transmit to PLC. 67 Device address and value transmit to PLC. 68 The value transmit from insight explorer to PLC.
1 Pick,place and arrange product in to the correct posi1on. 2 Complete arrange boIles in the box. 138 9 GRADUATION THESIS ADVISOR:Meng.Le Hoang Lam LIST OF TABLES Table 2. 1: Q- Series PLC symbols.
2: Q-Series CPU devices. Q-Series CPU Configura1on. Q-Series Power Supply Module. 5: Q-Series Input module.
6: Q-Series Output Modules. 7: Pulse Train Method. 1: Modules in PLC sta1on. 4: CPU Q04UDE parameters.
5: Posi1oning Module QD75MH4. 6: Motors for Driver. 7: Servo Driver MR-J3-10B Parameters. 8: Servo Driver MR-J3-40B Parameters.
10: Camera Cognex I5110 parameters. 11: Brushless DC Driver BLED6C-CC parameters. 14: Circuit Breaker parameters. 86 10 GRADUATION THESIS ADVISOR:Meng.Le Hoang Lam ABSTRACT This graduation thesis presents the design, development, and evaluation of a pharmaceutical automation sorting system aimed at enhancing efficiency and accuracy in the pharmaceutical industry.
As the demand for pharmaceutical products continues to rise, there is a growing need for reliable and efficient systems to handle the sorting and packaging of medications. The thesis begins with an in-depth review of existing sorting systems and their limitations, as well as an examination of the pharmaceutical industry's unique requirements and regulations.