Logistics control method and related device thereof
Through the configuration and communication protocol of the upper computer and board, the output and operation of motor equipment that cannot be monitored by the PLC is realized, solving the problem of single-section wire debugging, reducing the complexity of logistics wiring and implementation difficulty.
Patent Information
- Application Number
- CN202411993856.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-11
AI Technical Summary
The existing technology uses PLC for logistics line control, and it is impossible to actually monitor the output and operation of mechanical equipment such as motors, and it is impossible to realize single-section line debugging.
Through the upper computer configuration board information and communication protocol, a configuration table is generated and sent to the board. The board is electrically connected to the motor, and one board controls a conveyor line. During logistics control, the upper computer receives the card heartbeat message, analyzes and determines the card status, and controls the card operation motor through release and receive signals.
It realizes monitoring of the real output and operation of the motor equipment, supports single-section wire debugging, and reduces the complexity of logistics wiring and difficulty in on-site implementation.
Smart Images

Figure CN119806033A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of logistics control technology, and in particular to a logistics control method and related devices. Background Art
[0002] The existing technology uses a programmable logic controller (PLC) to control the logistics line. When a section of the logistics line is controlled by the PLC, the interaction between the host computer and the PLC remains at the PLC control level, and it is impossible to actually monitor the output and operation of mechanical equipment such as motors. In addition, the use of PLC control has high electrical requirements, and debugging can only begin after the electrical equipment is fully assembled, and single-section line debugging cannot be achieved. Summary of the invention
[0003] The present application provides a logistics control method and related devices, which are used to improve the technical problems of the prior art using PLC to control logistics lines, being unable to actually monitor the output and operation of mechanical equipment such as motors, and being unable to realize single-section line debugging.
[0004] In view of this, the first aspect of the present application provides a logistics control method, comprising:
[0005] S1. The host computer configures the board information and the board communication protocol, generates a configuration table, and sends the configuration table to the board; the board is electrically connected to the motor, and one board controls one section of the conveyor line in the logistics line;
[0006] S2. When performing logistics control, the host computer receives the heartbeat message sent by the board and determines whether the current board is in an idle and material state by parsing the heartbeat message. If so, execute step S3;
[0007] S3, the host computer queries all the flow path information of the current board, and selects a board with high priority that is idle and has no material as the next board;
[0008] S4, the host computer sends a trip signal to the current board, and sends a receiving signal to the next board, so that the current board controls the corresponding motor to release the material, and the next board controls the corresponding motor to receive the material;
[0009] S5. The host computer receives the heartbeat messages uploaded by the current board and the next board, and determines whether the current board is in an idle state with no material and whether the next board is in an idle state with material by parsing the heartbeat messages. If so, the next board is used as the current board and returns to step S3 until the last board ends the logistics control.
[0010] Optionally, the board information configuration process includes:
[0011] Select the device management page in the configuration page, and configure the device information of each board connected. The device information includes device code, device name, device type, plane number, device IP, heartbeat variable, photoelectric signal position, whether there is a barcode scanner, and whether there is weighing;
[0012] Select the flow management page to configure the plane number, device code, device code of the next device, plane number of the next device, board release instruction, board receive instruction and path priority of each device;
[0013] Select the button function page to configure the board device information and access function bits of each type of button. The button types include emergency stop, reset, start and manual automatic. The board device information includes device IP and device code.
[0014] Select the button configuration page to configure the board device information corresponding to each button;
[0015] The configuration page also includes a log data page, which is used to record the log data of the message sent and received between the host computer and the board. The log data page provides the function of filtering log data according to device IP, device name, device type, and date;
[0016] The configuration process of the board communication protocol includes:
[0017] Select the function configuration page in the configuration page to configure the function code, address code, function name, function type, whether to interact, whether to record logs, whether to repeat logging, and function description of the communication protocol.
[0018] Optionally, the method further includes:
[0019] The host computer determines whether the device connected to the current board has a weighing module or a barcode scanner by parsing the heartbeat message. If so, it sends an inquiry message to the current board to obtain weighing information or barcode scanner data.
[0020] Optionally, the method further includes:
[0021] The upper computer polls several times to see whether it receives the response to the release signal and the receive signal; if it receives the response to the release signal and the receive signal, it determines whether the current board is in the material discharge operation state and whether the next board is in the material receiving operation state. If so, it enters the waiting start stage.
[0022] Optionally, the method further includes:
[0023] The host computer receives the alarm signal uploaded by the board, analyzes the alarm signal and obtains the alarm information;
[0024] The host computer stores the alarm information in the current alarm list, and sends a three-color light alarm signal to the board that controls the three-color light, so that the board controls the three-color light to give a red light alarm.
[0025] Optionally, the method further includes:
[0026] The host computer displays alarm information to guide users to solve the alarm problems triggered by the board;
[0027] After the fault is solved, the host computer responds to the operator's reset operation and sends the board card soft reset signal and the three-color light control signal to the corresponding board card, so that the board card controls the motor to rotate, uploads the alarm release signal to the host computer, and controls the three-color light to display green;
[0028] The host computer receives the alarm release signal and parses it to obtain the alarm resolution information, and stores the alarm resolution information in the historical alarm list.
[0029] Optionally, the method further includes:
[0030] The host computer receives the target signal uploaded by the board and analyzes the variable content in the target signal; the target signal can be an emergency stop signal, a reset signal, a manual signal or an automatic signal;
[0031] The host computer queries the button function module table according to the variable content function bit to obtain the function code;
[0032] The host computer queries all boards controlled by the corresponding target buttons in the button function configuration table according to the device IP, device code and function code, and sends target signals to all the queried boards, so that the queried boards control to stop rotating the motor, enter the initialization state, debugging state or running state; the target button is an emergency stop button, reset button, manual button or automatic button.
[0033] The second aspect of the present application provides a logistics control method, comprising:
[0034] The board receives the configuration table sent by the host computer and performs corresponding configuration according to the configuration table; the board is electrically connected to the motor, and one board controls a section of the conveyor line in the logistics line;
[0035] When performing logistics control, the board determines the board status through photoelectric induction and uploads the board status to the host computer through heartbeat messages;
[0036] When the board receives the release signal, it enters the material discharge operation state, uploads the release signal response to the upper computer, and controls the corresponding motor to rotate to release the material; after the material leaves, the board controls the motor to stop rotating, and uploads the heartbeat message to indicate that the board is in an idle state without material;
[0037] When the board receives the receiving signal, it enters the material receiving operation state, uploads the receiving signal response to the host computer, and controls the corresponding motor to rotate to receive the material; after the material is in place, the board controls the motor to stop rotating, and uploads the heartbeat message to indicate that the board is in an idle and material-containing state.
[0038] Optionally, the method further includes:
[0039] After receiving the release signal or the reception signal, the board detects whether the motor has been idling for more than the preset time; if so, the state is switched to the fault state, the motor is controlled to stop rotating, and an alarm signal is uploaded to the host computer. When receiving the three-color light alarm signal sent by the host computer, the three-color light is controlled to alarm red.
[0040] A third aspect of the present application provides a host computer, including:
[0041] The configuration unit is used to configure the board information and the board communication protocol, generate a configuration table, and send the configuration table to the board; the board is electrically connected to the motor, and one board controls a section of the conveyor line in the logistics line;
[0042] The heartbeat parsing unit is used to receive the heartbeat message sent by the board when performing logistics control, and determine whether the current board is in an idle and material state by parsing the heartbeat message. If so, the query unit is triggered;
[0043] A query unit is used to query all the flow path information of the current board, and select a board with high priority that is idle and has no material as the next board;
[0044] A signal sending unit is used to send a travel signal to the current board and send a receiving signal to the next board, so that the current board controls the corresponding motor to release the material and the next board controls the corresponding motor to receive the material;
[0045] The heartbeat parsing unit is also used to receive the heartbeat messages uploaded by the current board and the next board, and to determine whether the current board is in an idle state with no material and whether the next board is in an idle state with material by parsing the heartbeat messages. If so, the next board is used as the current board and the query unit is triggered until the last board ends the logistics control.
[0046] A fourth aspect of the present application provides a board, including:
[0047] The configuration unit is used to receive the configuration table sent by the host computer and perform corresponding configuration according to the configuration table; the board is electrically connected to the motor, and one board controls a section of the conveyor line in the logistics line;
[0048] The heartbeat upload unit is used to determine the board status through photoelectric induction during logistics control, and upload the board status to the host computer through the heartbeat message;
[0049] The control unit is used to enter the material discharge operation state when receiving the release signal, upload the release signal response to the upper computer, and control the corresponding motor to rotate to release the material; after the material leaves, the motor is controlled to stop rotating, and the board is uploaded to the idle state without material through the heartbeat message;
[0050] The control unit is also used to enter the material receiving operation state when receiving the receiving signal, upload the receiving signal response to the upper computer, and control the corresponding motor to rotate to receive the material; after the material is in place, the motor is controlled to stop rotating, and the board is uploaded to the idle and material-containing state through the heartbeat message.
[0051] A fifth aspect of the present application provides an electronic device, the device comprising a processor and a memory;
[0052] The memory is used to store the program code and transmit the program code to the processor;
[0053] The processor is used to execute the logistics control method of either the first aspect or the second aspect according to the instructions in the program code.
[0054] In a sixth aspect, the present application provides a computer-readable storage medium, which is used to store program code. When the program code is executed by a processor, it implements the logistics control method of either the first aspect or the second aspect.
[0055] It can be seen from the above technical solutions that this application has the following advantages:
[0056] A logistics control method provided by the present application adopts a board card to control the logistics line. One board card controls one section of the logistics line. After the board card is connected, the single section of the line can be debugged, and multiple line types are supported. Fixed instructions are sent according to the board card docking protocol to realize the board card control of the line operation, which reduces the complexity of the logistics line wiring and thus reduces the difficulty of on-site implementation. The present application directly controls the motor of the logistics line through the board card, and can judge the current state of the motor by monitoring the high and low levels of each pin on the board card, so as to truly monitor the output and operation of the motor equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0058] Figure 1 A flow chart of a logistics control method provided in an embodiment of the present application;
[0059] Figure 2 A schematic diagram of a device management page provided in an embodiment of the present application;
[0060] Figure 3 A schematic diagram of a flow management page provided in an embodiment of the present application;
[0061] Figure 4 A schematic diagram of a button function page provided in an embodiment of the present application;
[0062] Figure 5 A schematic diagram of a button configuration page provided in an embodiment of the present application;
[0063] Figure 6 A schematic diagram of a log data page provided in an embodiment of the present application;
[0064] Figure 7 A schematic diagram of a function configuration page provided in an embodiment of the present application;
[0065] Figure 8 A schematic diagram of the message format provided in the embodiment of the present application;
[0066] Fig. 9 Another schematic flow chart of a logistics control method provided in an embodiment of the present application;
[0067] Fig.10 A schematic diagram of the structure of a host computer provided in an embodiment of the present application;
[0068] Fig.11 A schematic diagram of the structure of a board provided in an embodiment of the present application. DETAILED DESCRIPTION
[0069] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0070] For easier understanding, please refer to Figure 1 , the embodiment of the present application provides a logistics control method applied to a host computer, including:
[0071] Step 110: The host computer configures the board information and the board communication protocol, generates a configuration table, and sends the configuration table to the board.
[0072] In the embodiment of the present application, a board controls a section of a conveyor line in a logistics line, and the board is electrically connected to a sensor (such as an inductive photoelectric) and a motor, etc. The host computer connects to the configuration page corresponding to the board to configure the board information and the board communication protocol.
[0073] Specifically, the board information configuration process includes:
[0074] Please refer to Figure 2 , select the device management page in the configuration page, and configure the device information of each board connected. The device information includes device code, device name, device type, plane number, device IP, heartbeat variable, photoelectric signal position, whether there is a barcode scanner, whether there is weighing, etc.; you can add, modify, and delete devices by clicking Add, Modify, and Delete.
[0075] Please refer to Figure 3 , select the flow management page to configure the plane number, device code, device code of the next device, plane number of the next device, board release instruction, board receiving instruction and path priority of each device. You can click Add, Modify and Delete to implement the function of adding, deleting and modifying the flow direction, and realize the configuration of the flow board path information.
[0076] Please refer to Figure 4 , Select the button function page to configure the board device information and access function bits of each type of button. The button types include emergency stop, reset, start and manual automatic. The board device information includes device IP and device code;
[0077] Please refer to Figure 5 , select the button configuration page to configure the board device information corresponding to each button. You can click Add, Modify, and Delete to implement the button function / button addition, deletion, and modification functions.
[0078] The configuration page also includes a log data page, which is used to record the log data of the message sent and received between the host computer and the board. The log data page provides the function of filtering log data according to device IP, device name, device type, and date, such as Figure 6 As shown, you can click Query and Refresh to implement the log query function.
[0079] Specifically, the configuration process of the board communication protocol includes:
[0080] like Figure 7As shown, select the function configuration page in the configuration page to configure the function code, address code, function name, function type, whether to interact, whether to record logs, whether to repeat logs and function description of the communication protocol. You can click Add, Modify and Delete to implement the add, delete and modify functions of the function configuration. Among them, the message format of the communication protocol consists of 1Byte frame information, 4Byte frame parameters and 8Byte frame data; the frame parameters include 4bits function code, 7bits slave ID and 21bits spare bits; the frame information records the effective data length of the frame data; the function code is used to distinguish messages with different functions; the slave ID is 1-31, 0 is a broadcast signal, and all slaves (ie boards) are operated; the frame data length is 8 bytes, the effective length is determined by the frame information, and zero is not used. You can refer to Figure 8 , Figure 8 The following is a message diagram showing an emergency message sent by a slave station with an ID of 1 and an error code of 0x02.
[0081] The board information and board communication protocol are configured through the above process. After the configuration is completed, a configuration table is generated. The configuration table is sent to the corresponding board through the configured communication protocol to implement the relevant configuration of the board.
[0082] Step 120 , when performing logistics control, the host computer receives the heartbeat message sent by the board and determines whether the current board is in an idle and material state by parsing the heartbeat message. If so, execute step 130 .
[0083] When performing logistics control, the board will sense whether there is material through photoelectric sensing, and upload the board status to the host computer through heartbeat message. After receiving the heartbeat message, the host computer parses it to determine whether the board on the current conveyor line (i.e., the current board) is in an idle state with material. If so, execute step 130.
[0084] Furthermore, after receiving the heartbeat message, the host computer will also parse the heartbeat message to determine whether the device connected to the current board has a weighing module or a barcode scanner. If so, it will send an inquiry message to the current board to obtain weighing information or barcode scanner data (such as the barcode scan value of the barcode scanner).
[0085] Step 130: The host computer queries all the flow path information of the current board, and selects a board with high priority that is idle and has no material as the next board.
[0086] When the current board is in an idle state with material, the host computer queries all the flow board path information of the current board, and selects a board that is idle and has no material and has a high priority as the next board (the board of the next conveyor line).
[0087] Step 140: The host computer sends a travel signal to the current board and sends a receive signal to the next board, so that the current board controls the corresponding motor to release the material and the next board controls the corresponding motor to receive the material.
[0088] The upper computer sends a trip signal to the current board and sends a receiving signal to the lower board. After receiving the release signal, the current board enters the material discharge operation state, uploads the release signal response to the upper computer, and controls the corresponding motor to rotate to release the material; after the material leaves, the board controls the motor to stop rotating, and uploads the board to the idle state without material through the heartbeat message. After receiving the receiving signal, the lower board enters the material receiving operation state, uploads the receiving signal response to the upper computer, and controls the corresponding motor to rotate to receive the material; after the material is in place, the board controls the motor to stop rotating, and uploads the board to the idle state with material through the heartbeat message.
[0089] Furthermore, after sending out the travel signal and receiving signal, the upper computer will poll several times (such as three times) to see whether it receives the response to the release signal and the receiving signal; if it receives the response to the release signal and the receiving signal, it will determine whether the current board is in the material discharging operation state and whether the next board is in the material receiving operation state. If so, it will enter the waiting start stage to determine the board status; if not, the upper computer will enter the signal sending stage and re-send the travel signal and the receiving signal.
[0090] Furthermore, after receiving the release signal or the reception signal, the board will perform a motor rotation timeout judgment to determine whether the corresponding controlled motor has been idling for more than a preset time (such as 20 seconds). If the board determines that the motor has been idling for more than the preset time, it will switch the state to a fault state, control the motor to stop rotating, and send an alarm signal to the host computer. The host computer receives the alarm signal uploaded by the board, analyzes the alarm signal to obtain the alarm information; the host computer stores the alarm information in the current alarm list, and sends a three-color light alarm signal to the board that controls the three-color light, so that the board controls the three-color light to alarm with a red light.
[0091] Furthermore, the host computer displays the alarm information to guide the user to solve the alarm problem triggered by the board card; after the fault is solved, the host computer responds to the operator's reset operation (the reset operation can be triggered by the reset button), sends the board card soft reset signal to the board card on the alarm transmission line, and sends the three-color light control signal to the board card that controls the three-color light, so that the board card on the alarm transmission line controls the motor to rotate, uploads the alarm release signal, and the board card that controls the three-color light controls the three-color light to display green; the host computer receives the alarm release signal and parses it to obtain the alarm solution information, and stores the alarm solution information in the historical alarm list. It should be noted that after controlling the motor to rotate, the board card continues to determine whether the motor has been idling for more than the preset time. If so, the alarm signal is re-reported, and if not, the subsequent process is executed.
[0092] Step 150, the host computer receives the heartbeat messages uploaded by the current board and the next board, and determines whether the current board is in an idle state with no material and whether the next board is in an idle state with material by parsing the heartbeat messages. If so, the next board is used as the current board and returns to step 130 until the last board ends the logistics control.
[0093] The upper computer receives the heartbeat messages uploaded by the current board and the next board and determines whether the current board is in an idle state with no material and whether the next board is in an idle state with material by parsing the heartbeat messages. If the current board is in an idle state with no material and the next board is in an idle state with material, the next board is used as the current board to determine whether the conveyor line where the current board is located is the last conveyor line. If not, return to step 130. If so, end the logistics control.
[0094] Furthermore, during the logistics control process, the host computer receives the target signal uploaded by the board and analyzes the variable content in the target signal; the target signal is an emergency stop signal, a reset signal, a manual signal or an automatic signal;
[0095] The host computer queries the button function module table according to the variable content function bit to obtain the function code;
[0096] The host computer queries all boards controlled by the corresponding target buttons in the button function configuration table according to the device IP, device code and function code, and sends target signals to all the queried boards, so that the queried boards control to stop rotating the motor, enter the initialization state, debugging state or running state; the target button is an emergency stop button, reset button, manual button or automatic button.
[0097] Specifically, in the logistics control process, when the emergency stop button of the current conveyor line is triggered, if the motor on the current conveyor line is running, the current board controls the motor to stop running and uploads the emergency stop signal (sent in the form of a message) to the host computer. After receiving the emergency stop signal uploaded by the current board, the host computer parses the variable content in the emergency stop signal, queries the button function module table according to the variable content function bit, and parses the function code of the emergency stop signal message; the host computer queries the button function configuration table according to the device IP, device code and function code to obtain the emergency stop button function information; the host computer queries all boards controlled by the emergency stop button in the button configuration table according to the emergency stop button function information, and sends an emergency stop signal to all the queried boards. The board that receives the emergency stop signal controls the motor to stop rotating. If the board that receives the emergency stop signal has a three-color light, the three-color light is controlled to alarm with a red light.
[0098] When the alarm on the conveyor line is lifted, all boards need to be manually reset by hardware. When the reset button on the current conveyor line is triggered, the board enters the reset state and uploads the reset signal to the host computer. After receiving the reset signal uploaded by the board, the host computer parses the variable content in the reset signal, queries the button function module table according to the variable content function bit, and parses the function code of the reset signal; the host computer queries the button function configuration table according to the device IP, device code and function code to obtain the reset button function information; the host computer queries all boards controlled by the reset button in the button configuration table according to the reset button function information, and sends a reset signal to all the queried boards. The board that receives the reset signal enters the initialization state. If the board that receives the reset signal has a three-color light, the three-color light is controlled to be green and always on.
[0099] When the board needs to enter the debugging configuration state, the manual automatic dial switch is turned to the manual direction, and the board uploads the manual signal to the host computer. The host computer parses the variable content in the manual signal, queries the button function module table according to the variable content function bit, and parses the function code of the manual signal; the host computer queries the button function configuration table according to the device IP, device code and function code to obtain the manual button function information; the host computer queries all the boards controlled by the manual button in the button configuration table according to the manual button function information, and sends manual signals to all the queried boards, and the board receiving the manual signal enters the debugging state; if the board receiving the manual signal has a three-color light, the yellow light of the three-color light is controlled to be always on, and the release and reception signals are shielded at this time.
[0100] When the board needs to enter the normal working state, the manual automatic dial switch is turned to the automatic direction, and the board uploads the automatic signal to the host computer. The host computer parses the variable content in the automatic signal, queries the button function module table according to the variable content function bit, and parses the function code of the automatic signal; the host computer queries the button function configuration table according to the device IP, device code and function code to obtain the automatic button function information; the host computer queries all the boards controlled by the automatic button in the button configuration table according to the automatic button function information, and sends the automatic signal to all the queried boards, and the board receiving the automatic signal enters the debugging state; if the board receiving the automatic signal has a three-color light, the green light of the three-color light is controlled to be always on, and the release and reception signals are sent at this time.
[0101] It should be noted that the embodiment of the present application is to read and write custom variables for reading and writing data such as the automatic state of the operator and the type of equipment, and the data type is a 2-byte unsigned short integer. The variable type may include 1 (equipment operation status), 2 (equipment operation status), 3 (alarm upload), and 4 (button function upload). The equipment operation status may include 0 (initialization), 1 (material discharge operation), 2 (material receiving operation), 3 (idle without material), 4 (idle with material)...7 (fault). In the embodiment of the present application, the status change of each board card is 4 =>1 (release command) => 3 =>2 (receive command) =>4.
[0102] The present application provides a logistics control method, which uses a board card to control a logistics line. One board card controls one section of the logistics line. After the board card is connected, the single section of the line can be debugged, and multiple types of line bodies are supported. Fixed instructions are sent according to the board card docking protocol to realize the board card to control the line operation, which reduces the complexity of the logistics line wiring, thereby reducing the difficulty of on-site implementation. The present application directly controls the motor of the logistics line through the board card, and the current state of the motor can be judged by monitoring the high and low levels of each pin on the board card, so that the output and operation of the motor equipment can be truly monitored;
[0103] Furthermore, the present application supports configurable route scheduling for multiple sections of the line body, and can determine a better route at any board node, making the route more flexible; the route can be configured according to demand, and if the line is blocked, the impact on production capacity will be small; and the host computer controls the front-end page of the board through the protocol, which is more intuitive and improves operability and maintainability.
[0104] Please refer to Fig. 9 The embodiment of the present application also provides a logistics control method applied to a board, including:
[0105] Step 210: The board receives the configuration table sent by the host computer and performs corresponding configuration according to the configuration table.
[0106] In the embodiment of the present application, a board controls a section of a conveyor line in a logistics line, and the board is connected to a sensor (such as an inductive photoelectric) and a motor and other equipment. The board performs corresponding board information configuration and board communication protocol configuration according to the configuration table sent by the host computer. Among them, the host computer connects to the configuration page corresponding to the board to perform board information configuration and board communication protocol configuration. The specific configuration process refers to the aforementioned step 110, which will not be repeated here.
[0107] Step 220: When performing logistics control, the board card determines the board card status through photoelectric sensing, and uploads the board card status to the host computer through a heartbeat message.
[0108] When performing logistics control, the board will sense whether there is material through photoelectric sensing, and upload the board status to the host computer through heartbeat messages. After receiving the heartbeat message, the host computer will parse it to determine whether the current board is in an idle state with material. If so, it will query all the flow board path information of the current board, and select a board that is idle and has no material and has a high priority as the next board.
[0109] Furthermore, when the current board is connected to a weighing module, the weighing information of the material will be obtained from the weighing module; when the current board is connected to a barcode scanner, the barcode value obtained by scanning the material will be obtained from the barcode scanner to obtain the barcode data; wherein, the barcode scanner has a built-in memory for storing the barcode data, and the barcode scanner transmits the barcode data to the board through the network port. After receiving the heartbeat message, the host computer will also parse the heartbeat message to determine whether the device connected to the current board has a weighing module or a barcode scanner. If so, it will send an inquiry message to the current board, and the current board will transmit the weighing information or barcode scanner data to the host computer through the message.
[0110] Step 230, when the board receives the release signal, it enters the material discharge operation state, uploads the release signal response to the host computer, and controls the corresponding motor to rotate to release the material; after the material leaves, the board controls the motor to stop rotating, and uploads the heartbeat message to indicate that the board is in an idle state without material.
[0111] Step 240, when the board receives the receiving signal, it enters the material receiving operation state, uploads the receiving signal response to the host computer, and controls the corresponding motor to rotate to receive the material; after the material is in place, the board controls the motor to stop rotating, and uploads the heartbeat message to indicate that the board is in an idle and material-containing state.
[0112] After selecting the next board, the upper computer sends a trip signal to the current board and a receiving signal to the next board. After receiving the release signal, the current board enters the material discharge operation state, uploads the release signal response to the upper computer, and controls the corresponding motor to rotate to release the material; after the material leaves, the board controls the motor to stop rotating, and uploads the board to the idle state with no material through the heartbeat message. After receiving the receiving signal, the next board enters the material receiving operation state, uploads the receiving signal response to the upper computer, and controls the corresponding motor to rotate to receive the material; after the material is in place, the board controls the motor to stop rotating, and uploads the board to the idle state with material through the heartbeat message.
[0113] The upper computer receives the heartbeat messages uploaded by the current board and the next board and determines whether the current board is in an idle state with no material and whether the next board is in an idle state with material by parsing the heartbeat messages. If the current board is in an idle state with no material and the next board is in an idle state with material, the next board is used as the current board to determine whether the conveyor line where the current board is located is the last conveyor line. If not, continue the logistics control. If so, end the logistics control.
[0114] Furthermore, after receiving the release signal or the reception signal, the board detects whether the motor has been idling for more than a preset time; if so, the state is switched to a fault state, the motor is controlled to stop rotating, an alarm signal is uploaded to the host computer, and when the three-color light alarm signal sent by the host computer is received, the three-color light is controlled to give a red light alarm.
[0115] Furthermore, after the fault is resolved, the board receives a board soft reset signal sent by the host computer after the fault is resolved, controls the motor operation, uploads an alarm release signal to the host computer, and receives a three-color light control signal to control the three-color light to display green.
[0116] Specifically, after parsing the alarm information, the host computer displays the alarm information to guide the user to solve the alarm problem triggered by the board card; after the fault is solved, the host computer responds to the operator's reset operation (the reset operation can be triggered by the reset button), sends the board card soft reset signal to the board card on the alarm transmission line, and sends the three-color light control signal to the board card that controls the three-color light, so that the board card on the alarm transmission line controls the motor to rotate, uploads the alarm cancellation signal to the host computer, and the board card that controls the three-color light controls the three-color light to display green; the host computer receives the alarm cancellation signal and parses to obtain the alarm solution information, and stores the alarm solution information in the historical alarm list. It should be noted that after controlling the motor to rotate, the board card continues to determine whether the motor has been idling for more than the preset time. If so, the alarm signal is re-reported, and if not, the subsequent process is executed.
[0117] Furthermore, in the logistics control process, the board uploads the target signal (the target signal is an emergency stop signal, a reset signal, a manual signal or an automatic signal) to the host computer, so that the host computer parses the variable content in the target signal, queries the button function module table according to the variable content function bit, and obtains the function code; queries all boards controlled by the corresponding target button in the button function configuration table according to the device IP, device code and function code, and sends the target signal to all queried boards; the queried board controls the stopping of the motor, entering the initialization state, the debugging state or the running state; wherein the target button is an emergency stop button, a reset button, a manual button or an automatic button.
[0118] Specifically, in the logistics control process, when the emergency stop button of the current conveyor line is triggered, if the motor on the current conveyor line is running, the current board controls the motor to stop running and uploads the emergency stop signal (sent in the form of a message) to the host computer. After receiving the emergency stop signal uploaded by the current board, the host computer parses the variable content in the emergency stop signal, queries the button function module table according to the variable content function bit, and parses the function code of the emergency stop signal message; the host computer queries the button function configuration table according to the device IP, device code and function code to obtain the emergency stop button function information; the host computer queries all boards controlled by the emergency stop button in the button configuration table according to the emergency stop button function information, and sends an emergency stop signal to all the queried boards. The board that receives the emergency stop signal controls the motor to stop rotating. If the board that receives the emergency stop signal has a three-color light, the three-color light is controlled to alarm with a red light.
[0119] When the alarm on the conveyor line is lifted, all boards need to be manually reset by hardware. When the reset button on the current conveyor line is triggered, the board enters the reset state and uploads the reset signal to the host computer. After receiving the reset signal uploaded by the board, the host computer parses the variable content in the reset signal, queries the button function module table according to the variable content function bit, and parses the function code of the reset signal; the host computer queries the button function configuration table according to the device IP, device code and function code to obtain the reset button function information; the host computer queries all boards controlled by the reset button in the button configuration table according to the reset button function information, and sends a reset signal to all the queried boards. The board that receives the reset signal enters the initialization state. If the board that receives the reset signal has a three-color light, the three-color light is controlled to be green and always on.
[0120] When the board needs to enter the debugging configuration state, the manual automatic dial switch is turned to the manual direction, and the board uploads the manual signal to the host computer. The host computer parses the variable content in the manual signal, queries the button function module table according to the variable content function bit, and parses the function code of the manual signal; the host computer queries the button function configuration table according to the device IP, device code and function code to obtain the manual button function information; the host computer queries all the boards controlled by the manual button in the button configuration table according to the manual button function information, and sends manual signals to all the queried boards, and the board receiving the manual signal enters the debugging state; if the board receiving the manual signal has a three-color light, the yellow light of the three-color light is controlled to be always on, and the release and reception signals are shielded at this time.
[0121] When the board needs to enter the normal working state, the manual automatic dial switch is turned to the automatic direction, and the board uploads the automatic signal to the host computer. The host computer parses the variable content in the automatic signal, queries the button function module table according to the variable content function bit, and parses the function code of the automatic signal; the host computer queries the button function configuration table according to the device IP, device code and function code to obtain the automatic button function information; the host computer queries all the boards controlled by the automatic button in the button configuration table according to the automatic button function information, and sends the automatic signal to all the queried boards, and the board receiving the automatic signal enters the debugging state; if the board receiving the automatic signal has a three-color light, the green light of the three-color light is controlled to be always on, and the release and reception signals are sent at this time.
[0122] The present application provides a logistics control method, which uses a board card to control a logistics line. One board card controls one section of the logistics line. After the board card is connected, the single section of the line can be debugged, and multiple types of line bodies are supported. Fixed instructions are sent according to the board card docking protocol to realize the board card to control the line operation, which reduces the complexity of the logistics line wiring, thereby reducing the difficulty of on-site implementation. The present application directly controls the motor of the logistics line through the board card, and the current state of the motor can be judged by monitoring the high and low levels of each pin on the board card, so that the output and operation of the motor equipment can be truly monitored;
[0123] Furthermore, the present application supports configurable route scheduling for multiple sections of the line body, and can determine a better route at any board node, making the route more flexible; the route can be configured according to demand, and if the line is blocked, the impact on production capacity will be small; and the host computer controls the front-end page of the board through the protocol, which is more intuitive and improves operability and maintainability.
[0124] Please refer to Fig.10 The present application also provides a host computer, including:
[0125] The configuration unit is used to configure the board information and the board communication protocol, generate the configuration table, and send the configuration table to the board; one board controls one section of the conveyor line in the logistics line;
[0126] The heartbeat parsing unit is used to receive the heartbeat message sent by the board when performing logistics control, and determine whether the current board is in an idle and material state by parsing the heartbeat message. If so, the query unit is triggered;
[0127] A query unit is used to query all the flow path information of the current board, and select a board with high priority that is idle and has no material as the next board;
[0128] A signal sending unit is used to send a travel signal to the current board and send a receiving signal to the next board, so that the current board controls the corresponding motor to release the material and the next board controls the corresponding motor to receive the material;
[0129] The heartbeat parsing unit is also used to receive the heartbeat messages uploaded by the current board and the next board, and to determine whether the current board is in an idle state with no material and whether the next board is in an idle state with material by parsing the heartbeat messages. If so, the next board is used as the current board and the query unit is triggered until the last board ends the logistics control.
[0130] As a further improvement, the heartbeat parsing unit is also used to:
[0131] By parsing the heartbeat message, it is determined whether the device connected to the current board has a weighing module or a barcode scanner. If so, an inquiry message is sent to the current board to obtain weighing information or barcode scanner data.
[0132] As a further improvement, the upper computer also includes a polling unit for polling several times whether a release signal and a response to a receive signal are received; if a release signal and a response to a receive signal are received, it is determined whether the current board is in a material discharging operation state and whether the next board is in a material receiving operation state. If so, it enters the waiting start stage.
[0133] As a further improvement, the host computer also includes an alarm unit for receiving the alarm signal uploaded by the board, parsing the alarm signal to obtain alarm information; storing the alarm information in the current alarm list, and sending a three-color light alarm signal to the board that controls the three-color light, so that the board controls the three-color light to issue a red light alarm.
[0134] As a further improvement, the host computer also includes an alarm processing unit for:
[0135] Display alarm information to guide users to solve the alarm problems triggered by the board;
[0136] After the fault is solved, in response to the operator's reset operation, the board soft reset signal and the three-color light control signal are sent to the corresponding board, so that the board controls the motor to rotate, uploads the alarm release signal and controls the three-color light to display green;
[0137] Receive the alarm cancellation signal and parse to obtain the alarm resolution information, and store the alarm resolution information in the historical alarm list.
[0138] As a further improvement, the host computer further includes a button interaction unit for:
[0139] Receive the target signal uploaded by the board and parse the variable content in the target signal; the target signal can be an emergency stop signal, a reset signal, a manual signal or an automatic signal;
[0140] According to the variable content function bit, query the button function module table to obtain the function code;
[0141] According to the device IP, device code and function code, query all boards controlled by the corresponding target button in the button function configuration table, and send target signals to all the queried boards, so that the queried boards control to stop rotating the motor, enter the initialization state, debugging state or running state; the target button is an emergency stop button, reset button, manual button or automatic button.
[0142] Please refer to Fig.11 The embodiment of the present application further provides a board, including:
[0143] The configuration unit is used to receive the configuration table sent by the host computer and perform corresponding configuration according to the configuration table; one board controls a section of the conveyor line in the logistics line;
[0144] The heartbeat upload unit is used to determine the board status through photoelectric induction during logistics control, and upload the board status to the host computer through the heartbeat message;
[0145] The control unit is used to enter the material discharge operation state when receiving the release signal, upload the release signal response to the upper computer, and control the corresponding motor to rotate to release the material; after the material leaves, the motor is controlled to stop rotating, and the board is uploaded to the idle state without material through the heartbeat message;
[0146] The control unit is also used to enter the material receiving operation state when receiving the receiving signal, upload the receiving signal response to the upper computer, and control the corresponding motor to rotate to receive the material; after the material is in place, the motor is controlled to stop rotating, and the board is uploaded to the idle and material-containing state through the heartbeat message.
[0147] As a further improvement, the board also includes a fault detection unit, which is used to detect whether the motor has been idling for more than a preset time after receiving a release signal or a reception signal; if so, the state is switched to a fault state, the motor is controlled to stop rotating, an alarm signal is uploaded to the host computer, and when the three-color light alarm signal sent by the host computer is received, the three-color light is controlled to give a red light alarm.
[0148] After the fault is resolved, the board receives the board soft reset signal sent by the host computer, controls the motor operation, uploads the alarm release signal to the host computer, and receives the three-color light control signal to control the three-color light to display green.
[0149] As a further improvement, the board also includes a button signal uploading unit, which is used to upload the target signal (the target signal is an emergency stop signal, a reset signal, a manual signal or an automatic signal) to the host computer during the logistics control process, so that the host computer parses the variable content in the target signal, and queries the button function module table according to the variable content function bit to obtain the function code; queries all boards controlled by the corresponding target button in the button function configuration table according to the device IP, device code and function code, and sends the target signal to all the queried boards, so that the queried boards control to stop rotating the motor, enter the initialization state, debugging state or running state; wherein the target button is an emergency stop button, a reset button, a manual button or an automatic button.
[0150] The embodiment of the present application also provides a logistics control system, including the host computer in the aforementioned device embodiment and the board card in the aforementioned device embodiment.
[0151] The host computer configures the board information and board communication protocol, generates a configuration table, and sends the configuration table to the board. The board performs corresponding configuration according to the received configuration table. When performing logistics control, the board determines the board status through photoelectric induction, and uploads the board status to the host computer through a heartbeat message; the host computer receives the heartbeat message sent by the board and determines whether the current board is in an idle state with material by parsing the heartbeat message. If so, it queries all the flow board path information of the current board, and selects a board that is idle and has no material and has a high priority as the next board. Furthermore, after the host computer sends out the release and reception signals, it will poll several times whether it has received the response to the release signal and the reception signal; if it has received the response to the release signal and the reception signal, it will determine whether the current board is in the discharge operation state and whether the next board is in the receiving operation state. If so, it will enter the waiting start stage to determine the board status.
[0152] The host computer sends a release signal to the current board and sends a receive signal to the lower board. The board that receives the release signal enters the material discharge operation state, uploads the release signal response to the host computer, and controls the corresponding motor to rotate to release the material; after the material leaves, the board controls the motor to stop rotating, and uploads the board to the idle state without material through the heartbeat message; the board that receives the receive signal enters the material receiving operation state, uploads the receive signal response to the host computer, and controls the corresponding motor to rotate to receive the material; after the material is in place, the board controls the motor to stop rotating, and uploads the board to the idle state with material through the heartbeat message.
[0153] The host computer receives the heartbeat messages uploaded by the current board and the next board and determines whether the current board is in an idle state with no material and whether the next board is in an idle state with material by parsing the heartbeat messages. If so, the next board will be used as the current board to continue logistics control until the last board ends logistics control.
[0154] Furthermore, after receiving the release signal or the reception signal, the board will perform a motor rotation timeout judgment to determine whether the corresponding controlled motor has been idling for more than a preset time (such as 20 seconds). If the board determines that the motor has been idling for more than the preset time, it will switch the state to a fault state, control the motor to stop rotating, and send an alarm signal to the host computer. The host computer receives the alarm signal uploaded by the board, analyzes the alarm signal to obtain the alarm information; the host computer stores the alarm information in the current alarm list, and sends a three-color light alarm signal to the board that controls the three-color light, so that the board controls the three-color light to alarm with a red light.
[0155] Furthermore, the host computer displays the alarm information to guide the user to solve the alarm problem triggered by the board card; after the fault is solved, the host computer responds to the operator's reset operation (the reset operation can be triggered by the reset button), sends the board card soft reset signal to the board card on the alarm transmission line, and sends the three-color light control signal to the board card that controls the three-color light, so that the board card on the alarm transmission line controls the motor to rotate, uploads the alarm release signal, and the board card that controls the three-color light controls the three-color light to display green; the host computer receives the alarm release signal and parses it to obtain the alarm solution information, and stores the alarm solution information in the historical alarm list. It should be noted that after controlling the motor to rotate, the board card continues to determine whether the motor has been idling for more than the preset time. If so, the alarm signal is re-reported, and if not, the subsequent process is executed.
[0156] Furthermore, during the logistics control process, the host computer receives the target signal uploaded by the board and analyzes the variable content in the target signal; the target signal is an emergency stop signal, a reset signal, a manual signal or an automatic signal;
[0157] The host computer queries the button function module table according to the variable content function bit to obtain the function code;
[0158] The host computer queries all boards controlled by the corresponding target buttons in the button function configuration table according to the device IP, device code and function code, and sends target signals to all the queried boards, so that the queried boards control to stop rotating the motor, enter the initialization state, debugging state or running state; the target button is an emergency stop button, reset button, manual button or automatic button.
[0159] Specifically, in the logistics control process, when the emergency stop button of the current conveyor line is triggered, if the motor on the current conveyor line is running, the current board controls the motor to stop running and uploads the emergency stop signal (sent in the form of a message) to the host computer. After receiving the emergency stop signal uploaded by the current board, the host computer parses the variable content in the emergency stop signal, queries the button function module table according to the variable content function bit, and parses the function code of the emergency stop signal message; the host computer queries the button function configuration table according to the device IP, device code and function code to obtain the emergency stop button function information; the host computer queries all boards controlled by the emergency stop button in the button configuration table according to the emergency stop button function information, and sends an emergency stop signal to all the queried boards. The board that receives the emergency stop signal controls the motor to stop rotating. If the board that receives the emergency stop signal has a three-color light, the three-color light is controlled to alarm with a red light.
[0160] When the alarm on the conveyor line is lifted, all boards need to be manually reset by hardware. When the reset button on the current conveyor line is triggered, the board enters the reset state and uploads the reset signal to the host computer. After receiving the reset signal uploaded by the board, the host computer parses the variable content in the reset signal, queries the button function module table according to the variable content function bit, and parses the function code of the reset signal; the host computer queries the button function configuration table according to the device IP, device code and function code to obtain the reset button function information; the host computer queries all boards controlled by the reset button in the button configuration table according to the reset button function information, and sends a reset signal to all the queried boards. The board that receives the reset signal enters the initialization state. If the board that receives the reset signal has a three-color light, the three-color light is controlled to be green and always on.
[0161] When the board needs to enter the debugging configuration state, the manual automatic dial switch is turned to the manual direction, and the board uploads the manual signal to the host computer. The host computer parses the variable content in the manual signal, queries the button function module table according to the variable content function bit, and parses the function code of the manual signal; the host computer queries the button function configuration table according to the device IP, device code and function code to obtain the manual button function information; the host computer queries all the boards controlled by the manual button in the button configuration table according to the manual button function information, and sends manual signals to all the queried boards, and the board receiving the manual signal enters the debugging state; if the board receiving the manual signal has a three-color light, the yellow light of the three-color light is controlled to be always on, and the release and reception signals are shielded at this time.
[0162] When the board needs to enter the normal working state, the manual automatic dial switch is turned to the automatic direction, and the board uploads the automatic signal to the host computer. The host computer parses the variable content in the automatic signal, queries the button function module table according to the variable content function bit, and parses the function code of the automatic signal; the host computer queries the button function configuration table according to the device IP, device code and function code to obtain the automatic button function information; the host computer queries all the boards controlled by the automatic button in the button configuration table according to the automatic button function information, and sends the automatic signal to all the queried boards, and the board receiving the automatic signal enters the debugging state; if the board receiving the automatic signal has a three-color light, the green light of the three-color light is controlled to be always on, and the release and reception signals are sent at this time.
[0163] A logistics control system provided by the present application adopts a board card to control the logistics line. One board card controls one section of the logistics line. After the board card is connected, the single section of the line can be debugged, and multiple line types are supported. Fixed instructions are sent according to the board card docking protocol to realize the board card control of the line operation, which reduces the complexity of the logistics line wiring and thus reduces the difficulty of on-site implementation. The present application directly controls the motor of the logistics line through the board card, and can judge the current state of the motor by monitoring the high and low levels of each pin on the board card, so as to truly monitor the output and operation of the motor equipment.
[0164] The embodiment of the present application also provides an electronic device, the device comprising a processor and a memory;
[0165] The memory is used to store the program code and transmit the program code to the processor;
[0166] The processor is used to execute the logistics control method in the aforementioned method embodiment according to the instructions in the program code.
[0167] An embodiment of the present application also provides a computer-readable storage medium, which is used to store program code. When the program code is executed by a processor, the logistics control method in the aforementioned method embodiment is implemented.
[0168] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0169] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0170] It should be understood that in this application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0171] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0172] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0173] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0174] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for executing all or part of the steps of the method described in each embodiment of the present application through a computer device (which can be a personal computer, server, or network device, etc.). The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store program code.
[0175] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A logistics control method, characterized in that: include: S1. The host computer configures the board information and board communication protocol, generates a configuration table, and sends the configuration table to the board; The board is electrically connected to the motor, and one board controls a section of the conveyor line in the logistics line; S2. When performing logistics control, the host computer receives the heartbeat message sent by the board and determines whether the current board is in an idle and material state by parsing the heartbeat message. If so, execute step S3; S3, the host computer queries all the flow path information of the current board, and selects a board with high priority that is idle and has no material as the next board; S4, the host computer sends a trip signal to the current board, and sends a receiving signal to the next board, so that the current board controls the corresponding motor to release the material, and the next board controls the corresponding motor to receive the material; S5. The host computer receives the heartbeat messages uploaded by the current board and the next board, and determines whether the current board is in an idle state with no material and whether the next board is in an idle state with material by parsing the heartbeat messages. If so, the next board is used as the current board and returns to step S3 until the last board ends the logistics control.
2. The logistics control method according to claim 1, characterized in that: The board information configuration process includes: Select the device management page in the configuration page, and configure the device information of each board connected. The device information includes device code, device name, device type, plane number, device IP, heartbeat variable, photoelectric signal position, whether there is a barcode scanner, and whether there is weighing; Select the flow management page to configure the plane number, device code, device code of the next device, plane number of the next device, board release instruction, board receive instruction and path priority of each device; Select the button function page to configure the board device information and access function bits of each type of button. The button types include emergency stop, reset, start and manual automatic. The board device information includes device IP and device code. Select the button configuration page to configure the board device information corresponding to each button; The configuration page also includes a log data page, which is used to record the log data of the message sent and received between the host computer and the board. The log data page provides the function of filtering log data according to device IP, device name, device type, and date; The configuration process of the board communication protocol includes: Select the function configuration page in the configuration page to configure the function code, address code, function name, function type, whether to interact, whether to record logs, whether to repeat logs, and function description of the communication protocol.
3. The logistics control method according to claim 1, characterized in that: The method also includes: The host computer determines whether the device connected to the current board has a weighing module or a barcode scanner by parsing the heartbeat message. If so, it sends an inquiry message to the current board to obtain weighing information or barcode scanner data.
4. The logistics control method according to claim 1, characterized in that: The method also includes: The upper computer polls several times to see whether it receives the response to the release signal and the receive signal; if it receives the response to the release signal and the receive signal, it determines whether the current board is in the material discharge operation state and whether the next board is in the material receiving operation state. If so, it enters the waiting start stage.
5. The logistics control method according to claim 1, characterized in that: The method also includes: The host computer receives the alarm signal uploaded by the board, analyzes the alarm signal and obtains the alarm information; The host computer stores the alarm information in the current alarm list, and sends a three-color light alarm signal to the board that controls the three-color light, so that the board controls the three-color light to give a red light alarm.
6. The logistics control method according to claim 5, characterized in that: The method also includes: The host computer displays alarm information to guide users to solve the alarm problems triggered by the board; After the fault is solved, the host computer responds to the operator's reset operation and sends the board card soft reset signal and the three-color light control signal to the corresponding board card, so that the board card controls the motor to rotate, uploads the alarm release signal to the host computer, and controls the three-color light to display green; The host computer receives the alarm release signal and parses it to obtain the alarm resolution information, and stores the alarm resolution information in the historical alarm list.
7. The logistics control method according to claim 1, characterized in that: The method also includes: The host computer receives the target signal uploaded by the board and analyzes the variable content in the target signal; the target signal can be an emergency stop signal, a reset signal, a manual signal or an automatic signal; The host computer queries the button function module table according to the variable content function bit to obtain the function code; The host computer queries all boards controlled by the corresponding target buttons in the button function configuration table according to the device IP, device code and function code, and sends target signals to all the queried boards, so that the queried boards control to stop rotating the motor, enter the initialization state, debugging state or running state; the target button is an emergency stop button, reset button, manual button or automatic button.
8. A logistics control method, characterized in that: include: The board receives the configuration table sent by the host computer and performs corresponding configuration according to the configuration table; The board is electrically connected to the motor, and one board controls a section of the conveyor line in the logistics line; When performing logistics control, the board determines the board status through photoelectric induction and uploads the board status to the host computer through heartbeat messages; When the board receives the release signal, it enters the material discharge operation state, uploads the release signal response to the upper computer, and controls the corresponding motor to rotate to release the material; after the material leaves, the board controls the motor to stop rotating, and uploads the heartbeat message to indicate that the board is in an idle state without material; When the board receives the receiving signal, it enters the material receiving operation state, uploads the receiving signal response to the host computer, and controls the corresponding motor to rotate to receive the material; after the material is in place, the board controls the motor to stop rotating, and uploads the heartbeat message to indicate that the board is in an idle and material-containing state.
9. The logistics control method according to claim 8, characterized in that: The method also includes: After receiving the release signal or the reception signal, the board detects whether the motor has been idling for more than the preset time; if so, the state is switched to the fault state, the motor is controlled to stop rotating, and an alarm signal is uploaded to the host computer. When receiving the three-color light alarm signal sent by the host computer, the three-color light is controlled to alarm red.
10. A host computer, characterized in that: include: A configuration unit, used to configure board information and board communication protocol, generate a configuration table, and send the configuration table to the board; The board is electrically connected to the motor, and one board controls a section of the conveyor line in the logistics line; The heartbeat parsing unit is used to receive the heartbeat message sent by the board when performing logistics control, and determine whether the current board is in an idle and material state by parsing the heartbeat message. If so, the query unit is triggered; A query unit is used to query all the flow path information of the current board, and select a board with high priority that is idle and has no material as the next board; A signal sending unit is used to send a travel signal to the current board and send a receiving signal to the next board, so that the current board controls the corresponding motor to release the material and the next board controls the corresponding motor to receive the material; The heartbeat parsing unit is also used to receive the heartbeat messages uploaded by the current board and the next board, and to determine whether the current board is in an idle state with no material and whether the next board is in an idle state with material by parsing the heartbeat messages. If so, the next board is used as the current board and the query unit is triggered until the last board ends the logistics control.
11. A board, characterized in that: include: The configuration unit is used to receive the configuration table sent by the host computer and perform corresponding configuration according to the configuration table; The board is electrically connected to the motor, and one board controls a section of the conveyor line in the logistics line; The heartbeat upload unit is used to determine the board status through photoelectric induction during logistics control, and upload the board status to the host computer through the heartbeat message; The control unit is used to enter the material discharge operation state when receiving the release signal, upload the release signal response to the upper computer, and control the corresponding motor to rotate to release the material; after the material leaves, the motor is controlled to stop rotating, and the board is uploaded to the idle state without material through the heartbeat message; The control unit is also used to enter the material receiving operation state when receiving the receiving signal, upload the receiving signal response to the upper computer, and control the corresponding motor to rotate to receive the material; after the material is in place, the motor is controlled to stop rotating, and the board is uploaded to the idle and material-containing state through the heartbeat message.
12. An electronic device, characterized in that: The device includes a processor and a memory; The memory is used to store the program code and transmit the program code to the processor; The processor is used to execute the logistics control method of any one of claims 1-9 according to the instructions in the program code.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program codes, and when the program codes are executed by a processor, the logistics control method of any one of claims 1 to 9 is implemented.