Product sorting methods and systems
By working together with the controller and sorting equipment, the problems of low efficiency and difficulty in data traceability in air conditioner production have been solved, realizing automated sorting and closed-loop data management, improving production efficiency and reducing costs.
Patent Information
- Application Number
- CN202311527305.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-15
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2043-11-15
AI Technical Summary
The existing manual sorting methods in air conditioner production are inefficient, costly, and difficult to trace product data, resulting in a lack of information loop and a low level of digitalization.
The first controller acquires the barcode information and product information of the products to be sorted, sends a signal switching command to the second controller, controls the sorting equipment to perform sorting actions, realizes automatic product sorting, improves production efficiency and reduces labor costs.
It enables automated sorting of air conditioning products, improves production efficiency, reduces labor costs, and achieves closed-loop management of product data and traceability of quality data.
Smart Images

Figure CN117299607B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent sorting technology, specifically to product sorting methods and systems. Background Technology
[0002] With the development of automation and intelligence in enterprises, higher requirements are being placed on the production line process of products. One of the important processes in air conditioner production is sorting and palletizing air conditioners based on their quality, which is currently mainly done manually.
[0003] However, this manual sorting method is not only inefficient and costly, but also relies on manual recording of product data during the sorting process, which makes it difficult to trace product quality data, prevents information from being closed-loop, and results in a low level of digitalization. Summary of the Invention
[0004] In view of this, the present invention provides a product sorting method and system to solve the problems of low efficiency and high cost of manual sorting methods.
[0005] In a first aspect, the present invention provides a product sorting method, applied to the first controller of a product sorting system comprising a first controller, a second controller, and sorting equipment, the method comprising:
[0006] Obtain the barcode information of the products to be sorted, and obtain the corresponding product information based on the barcode information;
[0007] Based on the product information corresponding to the product to be sorted, a signal switching command is sent to the second controller, and the product information of the product to be sorted is also sent to the second controller, so that the second controller determines the sorting action based on the received signal switching command and product information, and controls the sorting equipment to perform the sorting action.
[0008] Therefore, by using the first controller to obtain the barcode information and product information of the products to be sorted, and sending the product information and the generated signal switching instructions to the second controller, the second controller can determine the sorting action based on the received signal switching instructions and product information, and control the sorting equipment to perform the sorting action, thereby realizing product sorting when palletizing different products, improving product production efficiency and reducing labor costs.
[0009] In one optional implementation, the product information includes an order number, a program number, and a result status; based on the product information corresponding to the product to be sorted, a signal switching command is sent to the second controller, and the product information of the product to be sorted is sent to the second controller, including:
[0010] When the order number corresponding to the product to be sorted is detected to be new order data, an order signal switching instruction is sent to the second controller;
[0011] Obtain the current program number of the second controller. When the program number corresponding to the product to be sorted is inconsistent with the current program number, send a program signal switching instruction to the second controller.
[0012] The result status of the product to be sorted is sent to the second controller, so that the second controller can determine the sorting action based on the result status and control the sorting equipment to perform the sorting action.
[0013] Therefore, by sending order signal switching instructions and program signal switching instructions to the second controller, the second controller can adjust the current order number and program number, thereby sorting different products.
[0014] In one optional implementation, after sending the result status corresponding to the product to be sorted to the second controller, the method further includes:
[0015] Receive address data sent in real time by the second controller, and detect whether the current pallet corresponding to the second controller is full based on the address data;
[0016] When it is detected that the current pallet corresponding to the second controller is full, the pallet number corresponding to the product to be sorted is assigned based on the barcode information;
[0017] Send a pallet replacement instruction and the pallet number corresponding to the product to be sorted to the second controller, so that when the second controller determines that the sorting action is palletizing based on the result status, it controls the sorting equipment to move the product to be sorted to the pallet corresponding to the pallet number.
[0018] Therefore, when the current pallet corresponding to the second controller is full, the pallet number corresponding to the product to be sorted is assigned based on the barcode information, and the corresponding pallet replacement instruction is generated so that the second controller controls the sorting equipment to palletize on different pallets.
[0019] In one alternative implementation, the method further includes:
[0020] Receive the result information sent by the second controller after the sorting equipment has performed the sorting action;
[0021] Sorting records are generated based on the results information.
[0022] Therefore, after generating sorting records based on the result information, the first controller can upload the sorting records to the computer center, thereby recording and managing the production data of the products.
[0023] In one alternative implementation, the method further includes:
[0024] The system acquires the operating status of the sorting equipment and uploads it to a pre-set computer center according to a preset time cycle.
[0025] Therefore, the sorting equipment can be monitored in real time by uploading the equipment's operating status to the computer center.
[0026] In a second aspect, the present invention provides a product sorting method, applied to the second controller of a product sorting system consisting of a first controller, a second controller, and sorting equipment, the method comprising:
[0027] Receive signal switching instructions and product information corresponding to the products to be sorted from the first controller;
[0028] Based on signal switching instructions and product information, determine the sorting action;
[0029] Control the sorting equipment to perform sorting actions.
[0030] Therefore, by determining the sorting action based on the received signal switching instructions and product information, the sorting equipment is controlled to perform the sorting action, thereby realizing product sorting when palletizing different products, improving product production efficiency and reducing labor costs.
[0031] In one alternative implementation, the method further includes:
[0032] The result information after the sorting action is performed is sent to the first controller.
[0033] Therefore, after receiving the result information after the sorting action is performed, the first controller uploads the result information to the computer center for subsequent production data management.
[0034] In one optional implementation, the signal switching instructions include order signal switching instructions and program signal switching instructions, and the product information includes order number, program number, and result status;
[0035] Based on signal switching instructions and product information, determine the sorting actions, including:
[0036] Upon receiving an order signal switching instruction, it adjusts its current order number to the order number corresponding to the product to be sorted.
[0037] Upon receiving a program signal switching instruction, it switches its current program number to the program number corresponding to the product to be sorted.
[0038] The sorting action is determined based on the result status of the product to be sorted; when the result status of the product to be sorted is qualified, unqualified and tested, the corresponding sorting actions are palletizing, defective product detection and re-inspection, respectively.
[0039] Therefore, the second controller receives order signal switching instructions and program signal switching instructions to adjust the current order number and program number, thereby sorting different products.
[0040] In one optional implementation, after determining the sorting action based on the result status corresponding to the product to be sorted, the method further includes:
[0041] Address data is sent to the first controller in real time. The address data is used to record the number of products currently being palletized on the pallet.
[0042] The system receives a pallet replacement instruction and the pallet number corresponding to the product to be sorted from the first controller. The pallet replacement instruction and the pallet number are generated when the first controller detects that the current pallet corresponding to the second controller is full based on the address data, assigns the pallet number corresponding to the product to be sorted based on the barcode information, and generates the corresponding pallet replacement instruction.
[0043] When the sorting action determined based on the result status is palletizing, the sorting equipment is controlled to move the products to be sorted to the pallet corresponding to the pallet number.
[0044] Therefore, when the current pallet corresponding to the second controller is full, based on the received pallet replacement instruction and pallet number, the sorting equipment is controlled to stack on different pallets, thereby realizing the sorting of different products.
[0045] Thirdly, the present invention provides a product sorting system, the system comprising: a first controller, a second controller, and sorting equipment;
[0046] The first controller acquires the barcode information of the product to be sorted, and obtains the corresponding product information based on the barcode information; based on the corresponding product information, it sends a signal switching command to the second controller, and sends the product information of the product to be sorted to the second controller.
[0047] The second controller receives the signal switching command and product information corresponding to the product to be sorted from the first controller; based on the signal switching command and product information, it determines the sorting action; and controls the sorting equipment to perform the sorting action.
[0048] In one alternative implementation, the first controller is a host computer, the second controller is a PLC controller, and the sorting device is a robot.
[0049] In one alternative implementation, the product to be sorted is an air conditioner. Attached Figure Description
[0050] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0051] Figure 1 This is a structural block diagram of a product sorting system according to an embodiment of the present invention;
[0052] Figure 2 This is a schematic diagram of the structure of a product sorting system according to an embodiment of the present invention;
[0053] Figure 3 This is a software architecture diagram of a product sorting system according to an embodiment of the present invention;
[0054] Figure 4A This is a schematic diagram of a client side of a product sorting system according to an embodiment of the present invention;
[0055] Figure 4B This is a client-side schematic diagram of another product sorting system according to an embodiment of the present invention;
[0056] Figure 4C This is a client-side schematic diagram of another product sorting system according to an embodiment of the present invention;
[0057] Figure 5 This is a flowchart illustrating a product sorting method according to an embodiment of the present invention;
[0058] Figure 6 This is a schematic diagram of the design of the first preset interface according to an embodiment of the present invention;
[0059] Figure 7 This is a flowchart illustrating another product sorting method according to an embodiment of the present invention;
[0060] Figure 8 This is a schematic diagram of the design of the second preset interface according to an embodiment of the present invention;
[0061] Figure 9 This is a flowchart illustrating another product sorting method according to an embodiment of the present invention;
[0062] Figure 10 This is a schematic diagram of the design of the third preset interface according to an embodiment of the present invention;
[0063] Figure 11 This is an application flowchart of the product sorting method according to an embodiment of the present invention. Detailed Implementation
[0064] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0065] With the development of automation and intelligence in air conditioner production, higher requirements are being placed on the production line process. One of the important processes in air conditioner production is sorting and palletizing air conditioner products based on their quality. Traditional manual sorting methods have the following bottlenecks: low efficiency and heavy workload for workers; product data cannot be saved, quality data cannot be traced, and information cannot be closed-loop; production and quality data rely on manual judgment and recording; order and program switching and setup take a long time and are complex.
[0066] Therefore, this embodiment of the invention provides a product sorting solution. By using a first controller to obtain the barcode information and product information of the products to be sorted, and based on the product information corresponding to the products to be sorted, a signal switching instruction is sent to a second controller, and the product information of the products to be sorted is also sent to the second controller. This allows the second controller to determine the sorting action based on the received signal switching instruction and the product information corresponding to the products to be sorted, and to control the sorting equipment to perform the sorting action, thereby realizing the automatic sorting of different products, improving product production efficiency, and reducing labor costs.
[0067] According to embodiments of the present invention, a product sorting system is provided, such as... Figure 1 As shown, the product sorting system includes: a first controller 101, a second controller 102, and a sorting device 103.
[0068] The first controller 101 acquires the barcode information of the product to be sorted, and obtains the product information corresponding to the product to be sorted based on the barcode information; based on the product information corresponding to the product to be sorted, it sends a signal switching instruction to the second controller 102, and sends the product information of the product to be sorted to the second controller 102.
[0069] The second controller 102 receives the signal switching instruction and product information corresponding to the product to be sorted sent by the first controller 101; based on the signal switching instruction and product information, it determines the sorting action; and controls the sorting equipment 103 to perform the sorting action.
[0070] The product sorting system provided in this embodiment of the invention obtains the barcode information and product information of the products to be sorted by the first controller 101, sends a signal switching command to the second controller 102 based on the product information corresponding to the products to be sorted, and sends the product information of the products to be sorted to the second controller 102. The second controller 102 determines the sorting action based on the received signal switching command and the product information corresponding to the products to be sorted, and controls the sorting equipment 103 to perform the sorting action, thereby realizing automatic product sorting, improving product production efficiency and reducing labor costs.
[0071] For details on the working principles and processes of the first controller 101 and the second controller 102, please refer to the relevant descriptions in the method embodiments below, which will not be repeated here.
[0072] In some alternative implementations, such as Figure 2 As shown, the first controller 101 can be a host computer, the second controller 102 can be a PLC controller, and the sorting device 103 is a robot. Furthermore, this product sorting system may also include a barcode scanner, a computer center, and a database. The barcode scanner is used to scan the barcodes on the products and send the barcode information to the host computer; the computer center is used to respond to data requests from the host computer and provide the host computer with product information such as the product to be sorted (the current product) and pallet number; the database is used to store order data information during the production process.
[0073] Specifically, the software architecture corresponding to the above product sorting system is as follows: Figure 3 As shown, the software architecture of this product sorting system is divided into a device layer, an application layer, a processing layer, a data acquisition layer, and an interface layer. The device layer mainly includes a PLC controller, barcode scanners, and a palletizing robot. The processing layer's main functions include data cleaning, data interface, data caching, distribution scheduling, streaming computing, time-series insights, and message push. The data acquisition layer primarily uses protocols such as the Message Carrying Protocol (MC), Socekt, and ModBus.
[0074] This invention integrates a palletizing information platform client based on the application layer, processing layer, and data acquisition layer of the above software architecture (see...). Figure 4A , Figure 4B and Figure 4C For example, this embodiment of the invention uses an air conditioner as an example of the product to be sorted. In practical applications, the product to be sorted can also be other products produced by an assembly line, such as fans, refrigerators, etc. The invention is not limited thereto.
[0075] like Figure 4AAs shown, the palletizing information platform client of this embodiment can monitor the robot's equipment operating status in real time and display the air conditioner's barcode information and result status, as well as the production data of the production line. This production data mainly includes order number, machine model, target output, current output, pallet number, and program number, etc., and also displays the action log information generated during the production process (see...). Figure 4B (as shown) and traceability information (see) Figure 4C (As shown) Records are kept to improve the production and management efficiency of air conditioners.
[0076] According to an embodiment of the present invention, a product sorting method embodiment is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0077] This embodiment provides a product sorting method, which can be used for, for example Figure 1 The first controller 101 and the second controller 102 shown are, for example, MCUs, microcontrollers, etc. Figure 5 This is a schematic diagram of the interaction process of a product sorting system according to an embodiment of the present invention. The first controller 101 is used to execute steps S101 to S102, and the second controller 102 is used to execute steps S201 to S203. The specific interaction process between the first controller 101 and the second controller 102 is as follows:
[0078] Step S101: Obtain the barcode information of the product to be sorted, and obtain the product information corresponding to the product to be sorted based on the barcode information.
[0079] Specifically, the barcode can be scanned by a barcode scanner after the product to be sorted arrives at the designated scanning position or at regular intervals. If the initial scan fails, the barcode can be scanned twice more. If the barcode information of the product to be sorted is still not obtained after the two scans, an abnormal alarm is written to the second controller for manual handling.
[0080] Specifically, product information can be obtained by accessing the first preset interface of the computer center. This product information mainly includes order number, product model, program number, program version number, equipment parameters, and result status. The program number represents the G-code program name corresponding to the sorting equipment (robot), and the result status mainly includes qualified products, unqualified products, and products submitted for testing. For example, the design of this first preset interface is as follows: Figure 6 As shown, the interface type of the first preset interface can be RestfulAPI, and the request method can be Post.
[0081] In addition, after the initial request to access the first preset interface, the correctness of the returned data from the computer center can be verified. If the verification fails, the request is made twice again. If the verification still fails after two requests, an exception alarm is written to the second controller for manual handling.
[0082] Step S102: Based on the product information corresponding to the product to be sorted, a signal switching command is sent to the second controller, and the product information of the product to be sorted is sent to the second controller.
[0083] Specifically, the first controller generates corresponding signal switching instructions (order signal switching instructions and program signal switching instructions) based on the product information corresponding to the products to be sorted and sends them to the second controller so that the second controller can adjust data such as order number and program number to achieve non-stop switching when palletizing different products.
[0084] Step S201: Receive the signal switching command and product information corresponding to the product to be sorted sent by the first controller.
[0085] Step S202: Based on the signal switching instruction and product information, determine the sorting action.
[0086] Specifically, the second controller determines whether the sorting equipment should perform actions such as palletizing, defective product detection, and re-inspection based on the data sent by the first controller.
[0087] Step S203: Control the sorting equipment to perform sorting actions.
[0088] Specifically, the second controller executes the corresponding sorting action by controlling the sorting equipment corresponding to its current program number, thus completing the product sorting when palletizing different products.
[0089] The product sorting method provided in this embodiment obtains the barcode information and product information of the products to be sorted by a first controller, and sends the product information and the generated signal switching instruction to a second controller. The second controller determines the sorting action based on the received signal switching instruction and product information, and controls the sorting equipment to perform the sorting action, thereby realizing product sorting when different products are palletized, improving product production efficiency and reducing labor costs.
[0090] This embodiment provides a product sorting method, which can be used for, for example Figure 1 The first controller 101 and the second controller 102 shown are, for example, MCUs, microcontrollers, etc. Figure 7This is a schematic diagram of the interaction process of a product sorting system according to an embodiment of the present invention. The first controller 101 is used to execute steps S301 to S307, and the second controller 102 is used to execute steps S401 to S407. The specific interaction process between the first controller 101 and the second controller 102 is as follows:
[0091] Step S301: Obtain the barcode information of the product to be sorted, and obtain the corresponding product information based on the barcode information. For details, please refer to [link to relevant documentation]. Figure 5 Step S101 of the illustrated embodiment will not be described again here.
[0092] Step S302: When it is detected that the order number corresponding to the product to be sorted is new order data, an order signal switching instruction is sent to the second controller.
[0093] Specifically, the first controller obtains the order number of the product to be sorted by accessing the first preset interface of the computer center, compares the order number with the order table in the database, and if the order number is not found in the order table in the database, it sends an order signal switching instruction to the second controller and saves the order number to the database.
[0094] Step S303: Obtain the current program number of the second controller. When the program number corresponding to the product to be sorted is inconsistent with the current program number, send a program signal switching instruction to the second controller.
[0095] Specifically, if the program number corresponding to the product to be sorted is inconsistent with the current program number, it means that the sorting equipment currently controlled by the second controller cannot be used for operation. A program signal switching instruction needs to be sent to the second controller so that the second controller can adjust the current program number, thereby adjusting the sorting equipment to achieve sorting of different products.
[0096] Step S304: Send the result status corresponding to the product to be sorted to the second controller.
[0097] Specifically, information about whether the product to be sorted is a qualified product, a non-qualified product, or a product submitted for testing is sent to the second controller, so that the second controller can determine the sorting action based on the result status of the product to be sorted and control the sorting equipment to perform the sorting action.
[0098] Step S401: Receive the signal switching command and product information corresponding to the product to be sorted from the first controller. For details, please refer to [link to relevant documentation]. Figure 5 Step S201 of the illustrated embodiment will not be described again here.
[0099] Step S402: After receiving the order signal switching instruction, adjust its current order number to the order number corresponding to the product to be sorted.
[0100] Step S403: After receiving the program signal switching instruction, switch its current program number to the program number corresponding to the product to be sorted.
[0101] Specifically, by determining whether the product to be sorted has the same program number as the previous product, if so, the palletizing continues; otherwise, a program number is sent to the sorting equipment, which then automatically repositions and calibrates its posture to palletize different products.
[0102] Specifically, the program signal switching instruction can include a series of program parameters. For example, the program parameters can be: Length'800', Width'380', Height'350', HolePosition'(20,30,30)', StackShape'6*3'.
[0103] Step S404: Determine the sorting action based on the result status of the product to be sorted.
[0104] When the result status of the products to be sorted are qualified, unqualified and tested, the corresponding sorting actions are palletizing, defective product detection and resubmission for inspection, respectively.
[0105] Specifically, if the previous process of the product to be sorted is qualified, the robot will continue to palletize it; if it is not qualified, the robot will pick it up and take it away. If the product to be sorted is marked as a test product (required for experimental data collection), the robot will pick it up and send it to the test line; otherwise, the robot will continue to palletize it.
[0106] Step S405: Send address data to the first controller in real time.
[0107] Specifically, the address data is used to record the number of products currently palletized on the pallet.
[0108] Step S305: Receive address data sent in real time by the second controller, and detect whether the current pallet corresponding to the second controller is full based on the address data.
[0109] Step S306: When it is detected that the current pallet corresponding to the second controller is full, the pallet number corresponding to the product to be sorted is assigned based on the barcode information.
[0110] Step S307: Send a pallet replacement instruction and the pallet number corresponding to the product to be sorted to the second controller.
[0111] It should be noted that the pallet replacement instruction and pallet number are generated by the first controller when it detects that the current pallet corresponding to the second controller is full based on address data. The first controller then assigns the pallet number corresponding to the product to be sorted based on barcode information and generates the corresponding pallet replacement instruction. Furthermore, the pallet will be switched when the pallet is full, and it will also be switched when the order is changed even if the pallet is not full.
[0112] Specifically, the first controller reads the address data fed back by the second controller and calculates whether the current pallet is full. If it is full, the first controller accesses the second preset interface in the computer center to obtain the pallet number assigned to the current product to be sorted, and then continues palletizing until the order is completed. For example, the design of this second preset interface is as follows: Figure 8 As shown, the interface type of the second preset interface can be RestfulAPI, and the request method can be Post.
[0113] In addition, if the initial request to access the second preset interface fails, the request will be made twice more. If the stack number still cannot be obtained after two more requests, an exception alarm will be written to the second controller for manual handling.
[0114] Step S406: Receive the pallet replacement instruction and the pallet number corresponding to the product to be sorted from the first controller.
[0115] In step S407, when the sorting action determined based on the result status is palletizing, the sorting equipment is controlled to move the product to be sorted to the pallet corresponding to the pallet number.
[0116] This allows the second controller to control the sorting equipment to move the products to be sorted to the pallet corresponding to the pallet number when the sorting action determined by the result status is palletizing.
[0117] The product sorting method provided in this embodiment uses a first controller to obtain the order number, program number, and result status of the product to be sorted, determines whether the second controller needs to adjust the current order number and program number, and generates a corresponding signal switching instruction to the second controller so that the second controller adjusts the order number and program number, so that the corresponding sorting equipment automatically repositions and calibrates its posture, and palletizes different products, thereby realizing the sorting of different products, improving product production efficiency, and reducing labor costs.
[0118] This embodiment provides a product sorting method, which can be used for, for example Figure 1 The first controller 101 and the second controller 102 shown are, for example, MCUs, microcontrollers, etc. Figure 9 This is a schematic diagram of the interaction process of a product sorting system according to an embodiment of the present invention. The first controller 101 is used to execute steps S501 to S508, and the second controller 102 is used to execute steps S601 to S606. The specific interaction process between the first controller 101 and the second controller 102 is as follows:
[0119] Step S501: Obtain the barcode information of the product to be sorted, and obtain the corresponding product information based on the barcode information. For details, please refer to [link to relevant documentation]. Figure 7Step S301 of the illustrated embodiment will not be described again here.
[0120] Step S502: Based on the product information corresponding to the product to be sorted, a signal switching command is sent to the second controller, and the product information of the product to be sorted is sent to the second controller. For details, please refer to [link to relevant documentation]. Figure 7 Steps S302 to S304 of the illustrated embodiment will not be described again here.
[0121] Step S601: Receive the signal switching command and product information corresponding to the product to be sorted from the first controller. For details, please refer to [link to relevant documentation]. Figure 7 Step S401 of the illustrated embodiment will not be described again here.
[0122] Step S602: Based on the signal switching command and product information, determine the sorting action. For details, please refer to [link to relevant documentation]. Figure 7 Steps S402 to S404 of the illustrated embodiment will not be described again here.
[0123] Step S603: Send address data to the first controller in real time. See details below. Figure 7 Step S405 of the illustrated embodiment will not be described again here.
[0124] Step S503: Receive address data sent in real time by the second controller, and detect whether the current pallet corresponding to the second controller is full based on the address data. For details, please refer to [link to relevant documentation]. Figure 7 Step S305 of the illustrated embodiment will not be described again here.
[0125] Step S504: When it is detected that the current pallet corresponding to the second controller is full, the pallet number corresponding to the product to be sorted is assigned based on the barcode information. For details, please refer to [link to relevant documentation]. Figure 7 Step S306 of the illustrated embodiment will not be described again here.
[0126] Step S505: Send a pallet replacement command and the pallet number corresponding to the product to be sorted to the second controller. For details, please refer to [link to relevant documentation]. Figure 7 Step S307 of the illustrated embodiment will not be described again here.
[0127] Step S604: Receive the pallet replacement instruction and the pallet number corresponding to the product to be sorted from the first controller. For details, please refer to [link to relevant documentation]. Figure 7 Step S406 of the illustrated embodiment will not be described again here.
[0128] Step S605: When the sorting action determined based on the result status is palletizing, control the sorting equipment to move the product to be sorted to the pallet corresponding to the pallet number. For details, please refer to [link to details]. Figure 7 Step S407 of the illustrated embodiment will not be described again here.
[0129] Step S606: Send the result information after performing the sorting action to the first controller.
[0130] Specifically, the result information may include whether the program (product type) has been switched, program number, whether the order has been switched, product barcode, product result status, barcode of the product to be palletized, result status of the palletizing machine to be palletized, program number, number of palletizers on the pallet, pallet palletizing status, working status, product count, processing cycle, alarm number, current order count reset when it reaches 65535, gripping position status (palletizing completion signal), whether the pallet has been replaced (virtual), arrival signal (can be scanned), reason for pallet switching, and information such as barcode reset.
[0131] Step S506: Receive the result information sent by the second controller after controlling the sorting equipment to perform the sorting action.
[0132] Specifically, after receiving the result information, the first controller can send the result information to the computer center through a third preset interface for subsequent review. For example, the message body of this third preset interface is designed as follows: Figure 10 As shown, the interface type of the third preset interface can be MQTT (Message Queuing Telemetry Transport).
[0133] Step S507: Generate a sorting record based on the result information.
[0134] Specifically, after generating sorting records based on the result information, the first controller can upload the sorting records to the computer center, thereby recording and managing the production data of the products.
[0135] Step S508: Obtain the equipment operating status of the sorting equipment and upload the equipment operating status to the preset computer center according to the preset time cycle.
[0136] Specifically, the equipment operating status mainly includes the status of the three-color indicator lights, output, operating process data, and equipment alarm data, thereby enabling real-time monitoring of the sorting equipment. For example, the equipment operating status is uploaded to the computer center every minute via a second preset interface.
[0137] The product sorting method provided in this embodiment of the invention will be described in detail below with specific application examples. Taking a product sorting system including a host computer, PLC controller, robot, computer center, barcode scanner, and database as an example, the product sorting method will be described in detail.
[0138] like Figure 11As shown, the host computer uploads the robot's operating status every minute via the MQTT protocol for real-time monitoring and displays the collected robot data to the client. After the current product arrives (or is scanned successfully at a set time), the host computer requests interface data from the API based on the obtained barcode and verifies the correctness of the data returned by the API. After passing the verification, it determines whether the current product is a new order. If so, the order data is saved to the database, and an order switching signal is sent to the PLC controller. Next, it checks whether the program number of the current product matches the current program number of the PLC controller. If they do not match, the latest program number is written to the PLC controller, and the scanned product barcode is written to both the PLC controller and the database.
[0139] Then, the PLC controller controls the robot to perform corresponding sorting actions based on the current product status. During this process, the PLC controller sends the current pallet number to the host computer in real time so that the host computer can determine whether to replace the pallet. If the pallet needs to be replaced, it requests the pallet number from the API interface and sends the requested pallet number to the PLC controller. The PLC controller completes the gripping based on the pallet number and sends the pallet barcode, status, pallet number, and other information to the host computer so that the host computer can upload this information to the computer center.
[0140] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A product sorting method, applied to the first controller of a product sorting system consisting of a first controller, a second controller, and sorting equipment, characterized in that, The method includes: Obtain the barcode information of the product to be sorted, and obtain the product information corresponding to the product to be sorted based on the barcode information; Based on the product information corresponding to the product to be sorted, a signal switching command is sent to the second controller, and the product information of the product to be sorted is sent to the second controller, so that the second controller determines the sorting action based on the received signal switching command and product information, and controls the sorting equipment to perform the sorting action; The product information includes order number, program number, and result status; the step of sending a signal switching command to the second controller based on the product information corresponding to the product to be sorted, and sending the product information of the product to be sorted to the second controller, includes: When the order number corresponding to the product to be sorted is detected to be new order data, an order signal switching instruction is sent to the second controller; after receiving the order signal switching instruction, the second controller adjusts its current order number to the order number corresponding to the product to be sorted. The system obtains the current program number of the second controller. When it detects that the program number corresponding to the product to be sorted is inconsistent with the current program number, it sends a program signal switching instruction to the second controller. After receiving the program signal switching instruction, the second controller switches its current program number to the program number corresponding to the product to be sorted. It determines whether the product to be sorted has the same program number as the previous product. If so, it continues palletizing. Otherwise, it sends a program number to the sorting equipment, so that the sorting equipment can automatically reposition and calibrate its posture to palletize different products. The result status corresponding to the product to be sorted is sent to the second controller, so that the second controller determines the sorting action based on the result status and controls the sorting equipment to perform the sorting action; wherein, when the result status corresponding to the product to be sorted is qualified product, unqualified product and test product, the corresponding sorting actions are palletizing, defective product detection and re-inspection, respectively.
2. The method according to claim 1, characterized in that, After sending the result status corresponding to the product to be sorted to the second controller, the method further includes: Receive address data sent in real time by the second controller, and detect whether the current pallet corresponding to the second controller is full based on the address data; When it is detected that the current pallet corresponding to the second controller is full, the pallet number corresponding to the product to be sorted is assigned based on the barcode information; Send a pallet replacement command and the pallet number corresponding to the product to be sorted to the second controller, so that when the sorting action determined by the second controller based on the result status is palletizing, control the sorting equipment to move the product to be sorted to the pallet corresponding to the pallet number.
3. The method according to any one of claims 1-2, characterized in that, The method further includes: Receive the result information sent by the second controller after controlling the sorting device to perform the sorting action; A sorting record is generated based on the results.
4. The method according to any one of claims 1-2, characterized in that, The method further includes: The system acquires the operating status of the sorting equipment and uploads the operating status to a preset computer center according to a preset time period.
5. A product sorting method, applied to the second controller in a product sorting system consisting of a first controller, a second controller, and sorting equipment, characterized in that, The method includes: The system receives a signal switching command and product information corresponding to the product to be sorted from the first controller; wherein the product information is obtained by the first controller by acquiring the barcode information of the product to be sorted and based on the barcode information. Based on the signal switching command and the product information, the sorting action is determined; Control the sorting equipment to perform the sorting action; The signal switching instructions include order signal switching instructions and program signal switching instructions; the product information includes order number, program number, and result status; determining the sorting action based on the signal switching instructions and the product information includes: Upon receiving the order signal switching instruction, the system adjusts its current order number to the order number corresponding to the product to be sorted; wherein, the order signal switching instruction is sent by the first controller to the second controller when it detects that the order number corresponding to the product to be sorted is new order data; Upon receiving the program signal switching instruction, the system switches its current program number to the program number corresponding to the product to be sorted. It then determines whether the product to be sorted shares the same program number as the previous product. If so, palletizing continues; otherwise, it sends a program number to the sorting equipment, causing the equipment to automatically reposition and calibrate its posture for palletizing different products. The program signal switching instruction is sent by the first controller to the second controller when it detects a discrepancy between the program number corresponding to the product to be sorted and the current program number. Based on the result status of the products to be sorted, the sorting action is determined; wherein, when the result status of the products to be sorted is qualified, unqualified and tested, the corresponding sorting actions are palletizing, defective product detection and re-inspection, respectively.
6. The method according to claim 5, characterized in that, The method further includes sending the result information after performing the sorting action to the first controller.
7. The method according to claim 5, characterized in that, After determining the sorting action based on the result status corresponding to the product to be sorted, the method further includes: Address data is sent to the first controller in real time, and the address data is used to record the number of products currently palletized on the pallet. The system receives a pallet replacement instruction and a pallet number corresponding to the product to be sorted from the first controller. The pallet replacement instruction and the pallet number are generated when the first controller detects that the current pallet corresponding to the second controller is full based on the address data, and assigns a pallet number corresponding to the product to be sorted based on the barcode information, and generates a corresponding pallet replacement instruction. When the sorting action determined based on the result status is palletizing, the sorting equipment is controlled to move the product to be sorted to the pallet corresponding to the pallet number.
8. A product sorting system, characterized in that, The system includes: a first controller, a second controller, and sorting equipment; The first controller acquires the barcode information of the product to be sorted, and obtains the product information corresponding to the product to be sorted based on the barcode information; based on the product information corresponding to the product to be sorted, it sends a signal switching command to the second controller, and sends the product information of the product to be sorted to the second controller; The second controller receives a signal switching command and product information corresponding to the product to be sorted from the first controller; determines a sorting action based on the signal switching command and the product information; and controls the sorting equipment to execute the sorting action. The product information includes the order number, program number, and result status; When the first controller detects that the order number corresponding to the product to be sorted is new order data, it sends an order signal switching instruction to the second controller; after receiving the order signal switching instruction, the second controller adjusts its current order number to the order number corresponding to the product to be sorted. The first controller obtains the current program number of the second controller. When it detects that the program number corresponding to the product to be sorted is inconsistent with the current program number, it sends a program signal switching instruction to the second controller. After receiving the program signal switching instruction, the second controller switches its current program number to the program number corresponding to the product to be sorted. It determines whether the product to be sorted has the same program number as the previous product. If so, it continues palletizing. Otherwise, it sends a program number to the sorting equipment, so that the sorting equipment can automatically reposition and calibrate its posture to palletize different products. The first controller sends the result status corresponding to the product to be sorted to the second controller, so that the second controller determines the sorting action based on the result status and controls the sorting equipment to perform the sorting action; wherein, when the result status corresponding to the product to be sorted is qualified product, unqualified product and test product, the corresponding sorting actions are palletizing, defective product detection and re-inspection, respectively.
9. The system according to claim 8, characterized in that, The first controller is a host computer, the second controller is a PLC controller, and the sorting equipment is a robot.
10. The system according to claim 8, characterized in that, The product to be sorted is an air conditioner.
Citation Information
Patent Citations
Logistics method and device, storage medium, electronic equipment and logistics system
CN112949795A
