A slotting machine application method and system for remote database reading control
Through the grooving machine method oriented to remote database reading and control, remote database and QR code technology are used to automatically process the metal plate grooving operation, which solves the problems of manual input errors and low equipment utilization in the existing technology, and achieves a better High processing accuracy and efficiency.
Patent Information
- Application Number
- CN202310916340.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-24
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2043-07-24
AI Technical Summary
During the existing metal sheet grooving process, workers need to manually input multi-step process parameters, which is prone to errors and the data of different products are not interoperable, resulting in inconvenient production management and low equipment utilization.
The grooving machine method for remote database reading and control is adopted. By analyzing the raw material and target plate parameters, the QR code identity information is generated, and the code scanning gun is used to transmit it to the remote server. The processing data is downloaded and verified, and the grooving operation is automatically performed. Reduce manual entry and error rates.
It improves the accuracy and efficiency of grooving operations, reduces equipment queuing, improves equipment utilization, and reduces error rates and defective products.
Smart Images

Figure CN117094543B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent device operation, and in particular to a slotting machine application method and system for remote database reading control. Background Art
[0002] Metal sheet grooving is a process used in metal sheet processing. Products made by grooving and then bending metal sheets have many advantages due to the small deformation at the bending point, such as precise external dimensions, small wear on the bending surface, precise bending angles, and beautiful bending angles.
[0003] The factory has a wide variety of products, and each workpiece has up to 200 steps. The existing metal sheet grooving process is that workers receive the drawings and input the parameters of each step on the machine on site before production and processing. Not only is the input troublesome but it is also very easy to make mistakes. In addition, different product data are stored on different devices and are not interconnected, which will cause fragmentation and is not conducive to production management. Summary of the invention
[0004] Purpose of the invention: To propose a slotting machine application method and system for remote database reading control to solve the above problems existing in the prior art.
[0005] Technical solution: In the first aspect, a slotting machine application method for remote database reading control is proposed, and the method includes the following steps:
[0006] Analyze the parameter information of the raw material plate and the parameter information required for the raw material plate to generate the target plate, and store the relevant parameter information in the constructed workpiece parameter database;
[0007] Analyze the parameter information of the plate to be processed and generate the corresponding QR code identity information;
[0008] Use a barcode scanner to scan the QR code identity information and parse it to obtain the identity information of the plate to be processed;
[0009] The identity information of the plate to be processed is transmitted to the workpiece parameter database in the remote server through the HTTP communication protocol;
[0010] Compare whether there is identity information of the current plate to be processed in the workpiece parameter database; if yes, download the corresponding processing data in the workpiece parameter database to the idle slotting machine; otherwise, notify the staff in the form of a pop-up window that there is no corresponding information in the current database, and terminate the current slotting operation;
[0011] Determine whether the downloaded data is complete. When the judgment result is complete, parse it in sequence to generate the corresponding operation steps and operation parameters. The staff will re-verify the generated operation steps and operation parameters. After the verification is correct, slotting is performed according to the corresponding operation steps and operation parameters; otherwise, the staff will be notified of the current data abnormality through a pop-up window and the current slotting operation will be terminated.
[0012] In some implementations of the first aspect, after determining the identity information of the plate to be processed, the method further includes: determining the operating state of the slotting machine, and the corresponding determination process includes the following steps:
[0013] Build a circular queue in the server and store the identity information and job status of the slotting machine;
[0014] After completing the identity information verification of the plate to be processed, traverse the circular queue;
[0015] When there is an idle slotting machine in the circular queue, the corresponding processing data in the workpiece parameter database is downloaded to the corresponding slotting machine, and the state value in the circular queue is updated to the occupied state;
[0016] When the slotting machine completes the slotting operation, the state value in the circular queue is automatically updated to the idle state.
[0017] In some implementations of the first aspect, the corresponding planing process during the slotting operation of the slotting machine includes: single-blade one-way, double-blade one-way, and double-blade two-way. During the slotting process, when an emergency occurs and the current operation process needs to be terminated, a stop command is generated through the stop function key on the touch screen, and the operation of the slotting machine is controlled. At this time, if the stop function key is triggered, the current operation status is judged. If the current operation status is "not completed", the slotting operation continues until the knife is completed; otherwise, it stops directly.
[0018] In addition, during the slotting operation, the slotting machine has higher authority to edit processing parameters through the touch screen than the corresponding parameter values in the workpiece parameter database. When the processing parameters input by the touch screen are received during the slotting operation, the current slotting process is stopped, and after receiving the operation command issued by the touch screen, the slotting operation is re-executed according to the updated processing parameters. When the subsequent processing parameters are in accordance with the operation command issued by the touch screen, the slotting machine will synchronously update the corresponding parameter information to the workpiece parameter database.
[0019] In some implementations of the first aspect, the process of scanning the QR code identity information using a barcode scanner includes the following steps:
[0020] First, check whether the signal of the scanner and the communication signal are normal according to the prompt signal color; secondly, when the signal color is normal, set the server address; thirdly, based on the set server address, realize the communication connection between the scanner and the workpiece parameter database to build a communication link; finally, use the scanner to scan and transmit the QR code identity information based on the communication link.
[0021] Based on scanning the QR code identity information with a barcode scanner, the process of decoding the scanned QR code information to obtain the identity information includes the following steps:
[0022] Read the scanned QR code information and identify the deep and shallow modules in the QR code information;
[0023] According to the recognition structure, the QR code information is converted into a two-dimensional matrix composed of 0 and 1;
[0024] Traverse and search the two-dimensional matrix to obtain the center coordinates of the image-seeking block;
[0025] Determine the position of the QR code according to the center coordinates to obtain a positioning result;
[0026] Performing format parsing on the positioning result to obtain format information including an error correction level and a mask number, and a version number of the current two-dimensional code;
[0027] Constructing a mask image from the format information, and using the constructed mask image to perform XOR processing on the bitmap of the coding area to eliminate the mask;
[0028] Recover the sequence of data and error correction code according to the arrangement rules of the modules;
[0029] Using the obtained error correction code to perform error correction detection on the two-dimensional code data, and correcting the error when an error is detected;
[0030] After completing data recovery and data error correction, the two-dimensional code data is decoded and the current decoding result is output.
[0031] Secondly, a slotting machine application system for remote database reading control is proposed, which is used to implement a slotting machine application method for remote database reading control. The system includes the following modules: parameter analysis module, database construction module, QR code generation module, scanning module, QR code parsing module, data transmission module, identity comparison module, data download module, completion judgment module, and warning module.
[0032] Among them, the parameter analysis module is used to analyze the parameter information of the raw material plate and the parameter information required for the raw material plate to generate the target plate; the database construction module is used to build a workpiece parameter database; the QR code generation module is used to generate the QR code identity information of the plate to be processed; the scanning module is used to scan the QR code identity information; the QR code parsing module is used to parse the QR code identity information; the data transmission module is used to perform data interaction; the identity comparison module is used to compare the identity information with the information in the database; the data download module is used to download the corresponding processing operation parameter data; the integrity judgment module is used to judge the integrity of the downloaded data; the warning module is used to prompt the staff that there is an abnormality in the current operation.
[0033] In a third aspect, a computer-readable storage medium is provided, wherein computer program instructions are stored on the computer-readable storage medium. When the computer program instructions are executed by a processor, a slotting machine application method for remote database reading control is implemented.
[0034] In a fourth aspect, a slotting machine is provided, which includes a computer-readable storage medium.
[0035] Beneficial effect: The present invention proposes a slotting machine application method and system for remote database reading control, which obtains the current operating status of the slotting machine and the processing parameters of the plate to be processed by reading the data stored in the database, and replaces the complicated steps of manual data input by data reading, thereby reducing the probability of input errors; at the same time, it improves the staff's control over the operating status of the slotting machine, reduces the need for equipment in processing to queue up, and the phenomenon that idle equipment cannot be used, thereby improving the utilization rate of equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 It is a data processing flow chart of the present invention.
[0037] Figure 2 It is a two-dimensional code decoding flow chart of the present invention. DETAILED DESCRIPTION
[0038] In the following description, a large number of specific details are provided to provide a more thorough understanding of the present invention. However, it is apparent to those skilled in the art that the present invention can be implemented without one or more of these details. In other examples, in order to avoid confusion with the present invention, some technical features well known in the art are not described.
[0039] Embodiment 1
[0040] In one embodiment, in response to the need for grooving of metal plates, in the process of using a grooving machine to process the plates, the processing parameters are often entered manually by inputting relevant parameters into the grooving machine according to the processing drawings, and then the grooving machine performs the grooving operation according to the received processing parameters after powering on. Since deviations may occur during the manual entry of processing parameters, defects in the processed products are often caused. In order to improve the utilization rate of the equipment and the accuracy of the processed products, this embodiment proposes a grooving machine application method for remote database reading control. By planning the process of the grooving machine processing operation, the grooving machine is effectively applied, the error rate is reduced, and the efficiency of the grooving operation is improved.
[0041] Specifically, Figure 1 As shown, the slotting machine application method for remote database reading control includes the following steps:
[0042] Step 1: Analyze the parameter information of the raw material plate and the parameter information required for the raw material plate to generate the target plate;
[0043] Step 2: construct a workpiece parameter database, and store the processing parameter information corresponding to the target plate in the workpiece parameter database;
[0044] Step 3: Analyze the parameter information of the plate to be processed and generate the corresponding QR code identity information;
[0045] Step 4: Use a barcode scanner to scan the QR code identity information and parse it to obtain the identity information of the plate to be processed;
[0046] Step 5: Transmit the identity information of the plate to be processed to the workpiece parameter database in the remote server through the HTTP communication protocol;
[0047] Step 6: Check whether there is identity information of the plate to be processed in the workpiece parameter database; if yes, download the corresponding processing data in the workpiece parameter database to the idle slotting machine and jump to step 7; otherwise, notify the staff in the form of a pop-up window that there is no corresponding information in the current database and terminate the current slotting operation;
[0048] Step 7: Determine whether the downloaded data is complete. If the result is complete, parse it in order, generate the corresponding operation steps and operation parameters, and jump to step 8; otherwise, notify the staff of the current data abnormality in the form of a pop-up window, and terminate the current slotting operation;
[0049] Step 8: The staff will recheck the generated operation steps and operation parameters, and after the verification is correct, they will perform slotting according to the corresponding operation steps and operation parameters.
[0050] In a further embodiment, in order to improve the utilization efficiency of the slotting machine, in the process of executing the slotting operation, in addition to judging whether the corresponding parameter information exists in the workpiece parameter database, the server also includes judging the operation status of the slotting machine. Optionally, the operation status of the slotting machine is stored by constructing a circular queue, and the queue contains the identity number and operation status of the slotting machine. When the server completes the identity information verification of the plate to be processed, the operation status of the slotting machine in the circular queue is read by traversal. When the operation status of the slotting machine is idle, the corresponding processing data in the workpiece parameter database is transmitted to the idle slotting machine.
[0051] This embodiment changes the original processing process to achieve the conversion from targeted one-to-one encoding to unified pre-coding, which effectively reduces the time consumed in encoding and improves work efficiency. In addition, through one-time data input, storage and reading, the error rate of manual entry required in each subsequent processing process is reduced, the generation of defective products is reduced, and the product qualification rate is improved.
[0052] Embodiment 2
[0053] In a further embodiment based on the first embodiment, the process of scanning the QR code identity information using a barcode scanner includes the following steps:
[0054] Step 1: Check whether the scanner signal and communication signal are normal according to the prompt signal color;
[0055] Optionally, green is used to indicate that the current barcode scanner signal is normal, and other colors are abnormal. When the barcode scanner signal is abnormal, check whether the USB plug-in of the barcode scanner is working properly. Green is used to indicate that the current communication signal is normal, and other colors are abnormal. When the communication signal is abnormal, when the slotting machine is powered on and initialized, open the startup page, that is, set it by continuously clicking the touch screen when starting up.
[0056] Step 2. When the signal color is normal, set the server address;
[0057] In a preferred embodiment, when the signal of the barcode scanner and the communication signal are normal, the barcode scanning server address is set, such as "http: / / 13420881125.gnway.cc:8000 / Api / PaoCao / GetPaoCaoData", without "MainValue=".
[0058] Step 3: Based on the set server address, the communication connection between the barcode scanner and the workpiece parameter database is realized to build a communication link;
[0059] Optionally, after setting the server address, you can scan the code to read the server data, such as "230203-0001 Door Leaf Swing Door Middle Door_Front Panel".
[0060] Step 4: Scan and transmit the QR code identity information using a barcode scanner based on the communication link.
[0061] In a further embodiment, the process of scanning the QR code identity information with a barcode scanner and performing the QR code information parsing includes the following steps:
[0062] S1, scanning image data information containing a QR code;
[0063] S2, performing grayscale processing, median filtering processing, binarization processing and opening operation on the image data in sequence to obtain pre-processed image data;
[0064] Specifically, grayscale processing uses channel conversion to process image data into a grayscale image; median filtering uses convolution operation to replace the grayscale value of the target pixel with the median of the grayscale value of the pixel covered by the filter kernel; binarization uses threshold setting to convert image data into black and white; opening operation is used to perform erosion operation on the binary image data, and dilation operation is performed after the erosion operation is completed.
[0065] Among them, according to the black and white attributes of the QR code, grayscale processing is performed on the image data to be analyzed, which can effectively reduce the required storage space and improve the computer's computing efficiency; at the same time, it will not affect the QR code information.
[0066] Since there are noise points in the image data that are significantly different from the surrounding areas, in order to improve the accuracy of subsequent data analysis and reduce the impact of noise, the median grayscale value of the pixel covered by the filter kernel is used to replace the grayscale value of the target pixel by filtering, thereby removing the noise points in the QR code that are significantly different from the surrounding areas, and overcoming the shortcomings of Gaussian filtering and mean filtering that blur the contour information during the smoothing process. The expression used in the process of executing the median filter is:
[0067] R(x,y)=medf{S(x,y)},(x,y)∈W
[0068] Where S(x, y) represents the original image data containing the QR code; R(x, y) represents the image data after filtering; W represents the image area covered by the convolution kernel.
[0069] The inter-class variance can directly reflect the degree of separation between the target and the background, so for the image data obtained after filtering, the binarization process is performed by selecting a threshold. Since the actual cargo picking and handling process is affected by ambient light, the collected image data has certain defects, which affects the subsequent data analysis. In order to obtain the best threshold value for binarization, the value with the largest inter-class variance value is used as the threshold for binarization; the calculation expression of the inter-class variance value is:
[0070] R=w1(m1-mG) 2 +w2(m2-mG) 2
[0071] Where w1 represents the ratio of the number of low points in the foreground pixels to the total number of pixels; w2 represents the ratio of the number of low points in the background pixels to the total number of pixels; m1 represents the gray value of the foreground; m2 represents the gray value of the background; and mG represents the global gray value of the image.
[0072] The opening operation is used to remove isolated small dots while ensuring that the overall shape and position do not change, thereby improving the clarity of the image background. The calculation expression corresponding to the opening operation is:
[0073]
[0074] In the formula, Indicates that the structural element B performs an erosion operation on the image data A; Represents the dilation operation.
[0075] In the process of performing the erosion operation, the structure B is translated relative to A. When the structural elements are all contained in the foreground pixels of A, the set of displaced pixels is defined as the erosion result. In the process of the dilation operation, the symmetrical structure C of the structure B is first obtained through the origin, and finally C is translated relative to A. When the foreground pixels of C and A coincide, the coincident pixels are used as the dilation result.
[0076] Optionally, when structure B selects a 3*3 rectangle and performs an erosion operation, the foreground of the processed image will be reduced by one pixel width, but after performing an expansion operation, the background of the image will be expanded by one pixel width.
[0077] S3, obtaining the coordinates of the positioning angles based on the three positioning angle characteristics of the two-dimensional code in the pre-processed image data, obtaining the position of the two-dimensional code, and framing the two-dimensional code area;
[0078] S4, performing two-dimensional code decoding on the two-dimensional code area to obtain a decoding result;
[0079] Specifically, during decoding, the position of the two-dimensional code is first located, and the image data is converted into a two-dimensional matrix composed of 0s and 1s to obtain a positioning result; secondly, a format parsing operation is performed on the positioning result to obtain format information including an error correction level and a mask number, and the version number of the two-dimensional code is determined, the mask is restored, and the mask is eliminated; thirdly, the sequence of data and error correction codes is restored according to the arrangement rules of the modules; from this, the error correction code obtained is used to perform error detection and correction on the two-dimensional code data; finally, after completing data recovery and data correction, the two-dimensional code data is decoded.
[0080] Optional, such as Figure 2 The decoding process shown includes the following steps:
[0081] Step ①, identifying the depth module in the two-dimensional code image data according to the reflectivity of the image, and converting the two-dimensional code image data into a two-dimensional matrix composed of 0 and 1 according to the identification result;
[0082] Step ②, search the image block in the two-dimensional matrix to obtain the center coordinates of the image-finding block;
[0083] Step 3: Determine the position of the QR code according to the center coordinates and obtain the positioning result;
[0084] Step ④: Perform format parsing on the positioning result to obtain format information including error correction level and mask number, as well as the version number of the current QR code;
[0085] Step ⑤, construct a mask image from the format information, and use the constructed mask image to perform XOR processing on the bitmap of the coding area to eliminate the mask;
[0086] Step ⑥, restore the sequence of data and error correction code according to the arrangement rules of the modules;
[0087] Step 7: Use the obtained error correction code to perform error correction detection on the two-dimensional code data, and perform error correction when an error is detected;
[0088] Step ⑧: After completing data recovery and data error correction, decode the QR code data;
[0089] Step 9: Output the current decoding result.
[0090] S5. Filter the decoding results to obtain the plate identity information required in the actual application process.
[0091] Embodiment 3
[0092] In one embodiment, a slotting machine application system for remote database reading control is proposed, which is used to implement a slotting machine application method for database remote reading. The system includes the following modules: parameter analysis module, database construction module, QR code generation module, scanning module, QR code parsing module, data transmission module, identity comparison module, data download module, completion judgment module, and warning module.
[0093] Among them, the parameter analysis module is used to analyze the parameter information of the raw material plate and the parameter information required for the raw material plate to generate the target plate; the database construction module is used to build a workpiece parameter database; the QR code generation module is used to generate the QR code identity information of the plate to be processed; the scanning module is used to scan the QR code identity information; the QR code parsing module is used to parse the QR code identity information; the data transmission module is used to perform data interaction; the identity comparison module is used to compare the identity information with the information in the database; the data download module is used to download the corresponding processing operation parameter data; the integrity judgment module is used to judge the integrity of the downloaded data; the warning module is used to prompt the staff that there is an abnormality in the current operation.
[0094] In the process of executing the slotting machine application for remote database reading control, the parameter analysis module is first used to analyze the parameter information of the raw material plate and the parameter information required for the raw material plate to generate the target plate, and the relevant parameter information is stored in the workpiece parameter database constructed by the database construction module; secondly, the parameter information of the plate to be processed is analyzed, and the QR code generation module is used to generate the corresponding QR code identity information; thirdly, the QR code identity information is scanned by the barcode scanner in the scanning module, and the identity information of the plate to be processed is transmitted to the workpiece parameter database in the remote server through the HTTP communication protocol by the data transmission module; thirdly, the QR code parsing model is used to parse in the server to obtain the identity information of the plate to be processed, and ... Check whether there is identity information of the current plate to be processed in the workpiece parameter database; if so, use the data download module to download the corresponding processing data in the workpiece parameter database to the idle slotting machine; otherwise, use the warning module to notify the staff that the corresponding information does not exist in the current database and terminate the current slotting operation; finally, use the completion judgment module to determine whether the downloaded data is complete. When the judgment result is complete, parse it in sequence to generate the corresponding operation steps and operation parameters. The staff will re-verify the generated operation steps and operation parameters, and after the verification is correct, perform slotting according to the corresponding operation steps and operation parameters; otherwise, use the warning module to notify the staff that the current data is abnormal and terminate the current slotting operation.
[0095] Embodiment 4
[0096] In one embodiment, a computer-readable storage medium stores computer program instructions; wherein when the computer program instructions are executed by a processor, the slotting machine application method proposed in the first embodiment is implemented.
[0097] Specifically, the computer program instructions stored on the readable storage medium are implemented in one or more programming languages according to actual needs. Optionally, the computer program instructions can be loaded into the slotting machine by the memory or the communication unit, and remote data reading is performed when triggered, and the slotting operation is performed according to the read data.
[0098] Optionally, when the computer-readable storage medium is a medium having a specific form, it includes: a machine-readable signal medium and a machine-readable storage medium, and the machine-readable signal medium includes but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any suitable combination of the above. More specific examples of machine-readable storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above.
[0099] Embodiment 5
[0100] In one embodiment, a slotting machine application method for realizing remote database reading control is proposed. The slotting machine includes a touch screen for performing data interaction with a user. The touch screen presents editable parameter values in a visual form in the form of an edit box.
[0101] Optionally, the user can edit the processing parameters involved in the processing through the touch screen, and can also select the current feed mode according to the mode. In the preferred implementation, during the slotting operation using the slotting machine, the axis parameters edited in the touch screen include: X-axis, Y-axis, Z-axis and W-axis, where the X-axis represents the tool holder crossbeam axis, that is, the tool holder performs the slotting operation by moving left and right according to the value of the X-axis; the Y-axis represents the plate moving forward and backward according to the value of the Y-axis to locate the distance between the slots; the Z-axis and the W-axis represent the depth values of the slotting.
[0102] In a further embodiment, when a slotting machine is used to perform slotting operations, the planing process includes: single-blade one-way, double-blade one-way, and double-blade two-way.
[0103] Optionally, when the planing process is single-blade and single-direction, the execution process is: the slotting machine is initialized according to the parameter information of the workpiece to be processed. After the user straightens the workpiece, the clamp function button on the touch screen is clicked to clamp the workpiece with the stop clamp, and the start button is clicked; then, the back stop clamp will clamp the workpiece and drag the workpiece backward to the first slot width position. At this time, the fixed pressure plate will automatically clamp the workpiece, and then the tool holder (X-axis) will move to the set starting position first, and the tool (Z-axis, W-axis) will reach the set tool lifting position and the back stop (Z-axis) will reach the current step position. After reaching the starting position, the tool holder moves down to the first slot depth, and the servo motor drives the tool holder (X-axis) to move from right to left at the planing speed. After reaching the set slot length, the tool (Z-axis) tool holder is lifted, and the fixed pressure plate is released after a slot is planed, and the tool holder returns to the origin. At the same time, the Y-axis moves synchronously to the next slot, and the action is the same as the first slot. The slotting operation is completed by cycling the above steps back and forth. After the slotting is completed, the slotting machine automatically moves to the starting position and sends the workpiece out. After the clamp is released, the user can directly remove the processed workpiece.
[0104] Optionally, when the planing process is double-blade unidirectional, the execution process is: the slotting machine is initialized according to the parameter information of the workpiece to be processed. After the user straightens the workpiece, the clamp function button on the touch screen is clicked to clamp the workpiece with the stop clamp, and the start button is clicked; the rear stop clamp will clamp the workpiece and drag the workpiece backward to the first slot width position. At this time, the fixed pressure plate automatically presses the workpiece, and then the tool holder (X-axis) will move to the set starting position first, and the tool (Z-axis, W-axis) will reach the set tool lifting position and the rear stop (Z-axis) will reach the current step position. After reaching the starting position, the tool holder moves down to the first slot depth, and the servo motor drives the tool holder (X-axis) to move from right to left at the planing speed. After reaching the set slot length, the tool (Z-axis, W-axis) tool holder is lifted, and the fixed pressure plate is released after a slot is planed, and the tool holder returns to the origin. At the same time, the Y-axis moves synchronously to the next slot, and the action is the same as the first slot. The slotting operation is completed by cycling the above steps back and forth. After the slotting is completed, the slotting machine automatically moves to the starting position and sends the workpiece out. After the clamp is released, the user can directly remove the processed workpiece.
[0105] Optionally, when the planing process is double-blade bidirectional, the execution process is: the slotting machine is initialized according to the parameter information of the workpiece to be processed. After the user straightens the workpiece, the clamp function button on the touch screen is clicked to clamp the workpiece with the stop clamp, and the start button is clicked; the rear stop clamp will clamp the workpiece and drag the workpiece backward to the first slot width position. At this time, the fixed pressure plate automatically presses the workpiece, and then the tool holder (X-axis) will move to the set starting position first, and the tool (Z-axis, W-axis) will reach the set tool lifting position, and the rear stop (Z-axis) will reach the current step position. After reaching the starting position, the tool holder moves down to the first slot depth, and the servo motor drives the tool holder (X-axis) to move from right to left at the planing speed. After reaching the set slot length, the tool W-axis tool holder is lifted, and the Z-axis immediately follows the W-axis to descend to the set slot depth to start slotting and return to the right side of the machine. The groove is planed back and forth until the set groove depth is reached. After a groove is planed, the fixed pressure plate is released, the tool holder returns to the origin, and the Y axis moves to the next groove synchronously, with the same action as the first groove. The groove operation is completed by the above steps of the reciprocating cycle. After the groove is completed, the groove machine automatically moves to the starting position and sends the workpiece out. After the clamp is released, the user can directly remove the processed workpiece.
[0106] In a further embodiment, when an emergency occurs during the slotting operation and the slotting operation needs to be stopped midway, a stop command is generated through the stop function key in the touch screen, thereby controlling the operation of the slotting machine. When the stop function key is triggered, the current operation status is determined. If the current operation status is "not completed", the slotting operation continues until the cut is completed; otherwise, it stops directly. Optionally, when the slotting machine is in a stopped state, the operation parameters can be reset through the editing function module in the touch screen. After the parameter update is completed, a run command is generated through the run function key in the touch screen, and the slotting machine is triggered to re-cut from the first cut of the current slotting.
[0107] In a further embodiment, in order to facilitate the user's control of the slotting machine, the function keys in the touch screen of the slotting machine also include: plus and minus buttons, positioning buttons, return reference buttons, lighting buttons, oil pump buttons, blowing buttons, water pump buttons, clamp loose button, clamp tight button, pressure plate tight button, pressure plate loose button, z blowing button, z water cooling button, w blowing button, w water cooling button.
[0108] Among them, the plus and minus buttons manually move the position of the axis, move at the manual speed, minus moves toward the negative limit, and plus moves toward the positive limit.
[0109] The positioning button moves the axis to the input target value. Optionally, define the upper value as the current value and the lower value as the target value on the layout. After entering the target value, click positioning to move. When the slotting machine receives the corresponding X, Y, Z, W axis positive and negative limit signals, it will stop the corresponding axis. At the same time, if it is in planing operation, it will stop running.
[0110] The return button moves the axis to the reference point position. Optionally, when the slotting machine is performing the return action, the servo motor continues to move in a certain direction until it receives the signal of the corresponding X, Y, Z, W reference point to stop.
[0111] In a further embodiment, the slotting machine also includes an IO monitoring module, which is used to monitor whether the slotting machine receives sensor signals and whether the output point signals are output. This is used to debug the point, or to determine whether the external sensor and solenoid valve are abnormal. For example: the external sensing point has been turned on (normally open signal) or turned off (normally closed signal), but the system has not received the corresponding signal. At this time, monitor whether the external IO board has a signal. If there is no signal, determine whether the NPN / PNP on the IO board is faulty, or whether the 24V power supply of the external sensing switch is normal, etc.
[0112] In the preferred embodiment, when the input is: positive and negative limit signals of the X, Y, Z, and W axes, the system will stop the movement of the corresponding axis after receiving the corresponding positive and negative limit signals of the X, Y, Z, and W axes, and will stop running if it is in planing operation.
[0113] When the input is: X, Y, Z, W reference point signal, the system will continuously move the servo motor in a certain direction when performing the reference return action until it receives the corresponding X, Y, Z, W reference point signal.
[0114] When the input is a foot signal, the system can determine the foot signal to start the automatic planing function when it is in the automatic interface.
[0115] When the input is an emergency stop signal, the system can move the axis and perform automatic planing before receiving the emergency stop signal, and stop all servo actions after receiving the signal.
[0116] When the input is: clamp, pressure plate signal, the system will receive feedback signals after using the clamp, release, pressure plate, and release functions, and the button indicator light will be highlighted.
[0117] When the input is: oil pump signal, after the oil pump motor is started, the signal will be high. If it is not started, the clamp, pressure plate and servo motor cannot be operated.
[0118] When the output is: output button, the clamp is clamped or released, and the pressure plate is pressed or released. The action of the clamp or pressure clamp can be directly operated in the io test interface. The output will stop only by releasing the corresponding button.
[0119] When the output is: water cooling, air blowing, oil pump, water pump, lighting output signal, the corresponding function can be used only after the system input signal.
[0120] As described above, although the present invention has been shown and described with reference to specific preferred embodiments, it should not be construed as limiting the present invention itself. Various changes may be made to it in form and detail without departing from the spirit and scope of the present invention as defined in the appended claims.
Claims
1. A slotting machine application method for remote database reading control, characterized in that: The following steps are involved: Analyze the parameter information of the raw material plate and the parameter information required for the raw material plate to generate the target plate, and store the relevant parameter information in the constructed workpiece parameter database; Analyze the parameter information of the plate to be processed and generate the corresponding QR code identity information; The QR code identity information is scanned by a barcode scanner and analyzed to obtain the identity information of the plate to be processed; wherein the process of scanning the QR code identity information by a barcode scanner and performing the QR code information analysis includes the following steps: S1, scanning image data information containing a QR code; S2. The image data is processed into a grayscale image by channel conversion, and then the grayscale value of the target pixel is replaced by the median value of the grayscale value of the pixel covered by the filter kernel for median filtering, and the image data is converted into black and white by setting a threshold; finally, an erosion operation is performed, and after the erosion operation is completed, an expansion operation is performed to obtain the preprocessed image data; the expression used in the process of performing the median filter is: R(x,y)=medf{S(x,y)},(x,y)∈W In the formula, S(x,y) represents the original image data containing the QR code; R(x,y) represents the image data after filtering; W represents the image area covered by the convolution kernel; S3, obtaining the coordinates of the positioning angles based on the three positioning angle characteristics of the two-dimensional code in the pre-processed image data, obtaining the position of the two-dimensional code, and framing the two-dimensional code area; S4, performing two-dimensional code decoding on the two-dimensional code area to obtain a decoding result; The identity information of the plate to be processed is transmitted to the workpiece parameter database in the remote server through the HTTP communication protocol; Compare whether there is the identity information of the current plate to be processed in the workpiece parameter database; if so, download the corresponding processing data in the workpiece parameter database to the idle slotting machine; otherwise, notify the staff through a pop-up window that the corresponding information does not exist in the current database, and terminate the current slotting operation; at the same time, judge the operation status of the slotting machine, and build a circular queue in the server to store the identity information and operation status of the slotting machine; after completing the identity information verification of the plate to be processed, traverse the circular queue; when there is an idle slotting machine in the circular queue, download the corresponding processing data in the workpiece parameter database to the corresponding slotting machine, and update the status value in the circular queue to the occupied state; when the slotting machine completes the slotting operation, it automatically updates the status value in the circular queue to the idle state; Determine whether the downloaded data is complete. If the judgment result is complete, parse it in order to generate the corresponding operation steps and operation parameters. The staff will re-verify the generated operation steps and operation parameters. After the verification is correct, slotting is performed according to the corresponding operation steps and operation parameters. Otherwise, the staff will be notified of the current data abnormality through a pop-up window and the current slotting operation will be terminated. Among them, the authority to edit processing parameters through the touch screen of the slotting machine is higher than the corresponding parameter values in the workpiece parameter database; when the processing parameters input by the touch screen are received during the slotting operation, the current slotting process is stopped, and after receiving the operation instruction issued by the touch screen, the slotting operation is re-executed according to the updated processing parameters; in addition, when the subsequent processing parameters are in accordance with the operation instruction issued by the touch screen, the slotting machine will synchronously update the corresponding parameter information to the workpiece parameter database; The corresponding planing processes during the slotting operation of the slotting machine include: single-blade unidirectional, double-blade unidirectional and double-blade bidirectional; the user edits the processing parameters involved in the processing process through the touch screen, and can also select the current feed mode according to the mode; during the slotting operation of the slotting machine, the axis parameters edited in the touch screen include: X-axis, Y-axis, Z-axis and W-axis, wherein the X-axis represents the crossbeam axis of the tool holder, that is, the tool holder performs the slotting operation of moving left and right according to the value of the X-axis; the Y-axis represents the forward and backward movement of the plate according to the value of the Y-axis to locate the distance between the grooves; the Z-axis and the W-axis represent the depth values of the slotting; When the planing process is single-blade and single-direction, the slotting machine is initialized according to the parameter information of the workpiece to be processed. After the user straightens the workpiece, click the clamp function button on the touch screen to clamp the workpiece with the stop clamp, and click the start button; then, the back gauge will clamp the workpiece and drag it backward to the first slot width position. At this time, the fixed pressure plate will automatically clamp the workpiece, and then the tool holder corresponding to the X-axis will move to the set starting position first. At the same time, the tools corresponding to the Z-axis and W-axis will reach the set tool lifting position and the back gauge corresponding to the Z-axis will move to the set starting position. Arriving at the previous step position, when the cutting operation begins, the tool holder moves down to the first slot depth, and the servo motor corresponding to the X-axis drives the tool holder to move from right to left at the planing speed. After reaching the set planing slot length, the tool and tool holder are lifted, and the fixed pressure plate is released after a slot is planed, and the tool holder returns to the origin. At the same time, the Y-axis moves synchronously to the next slot, and the action is the same as the first slot. The slotting operation is completed by reciprocating the above steps, and then the slotting machine automatically moves to the starting position after the slotting is completed, and the workpiece is sent out. After the clamp is released, the user can directly remove the processed workpiece; When the planing process is double-knife unidirectional, the execution process is as follows: the slotting machine is initialized according to the parameter information of the workpiece to be processed. After the user straightens the workpiece, the clamp function button on the touch screen is clicked to clamp the workpiece with the stopper clamp, and the start button is clicked; the back stopper will clamp the workpiece and drag the workpiece backward to the first slot width position. At this time, the fixed pressure plate automatically clamps the workpiece, and then the tool holder corresponding to the X-axis moves to the set starting position. At the same time, the tool will reach the set tool lifting position and the back stopper reaches the current step position; when the cutting operation starts, after the tool holder moves down to the first slot depth, the servo motor drives the tool holder to move from right to left at the planing speed in the X-axis direction. After reaching the set slot length, the tool and tool holder are lifted, and the fixed pressure plate is released after a slot is planed, and the tool holder returns to the origin. At the same time, the Y axis moves to the next slot synchronously, and the action is the same as the first slot; the slotting operation is completed by reciprocating the above steps, and then the slotting machine automatically moves to the starting position after the slotting is completed, and the workpiece is sent out. After the clamp is released, the user can directly remove the processed workpiece; When the planing process is double-knife bidirectional, the slotting machine is initialized according to the parameter information of the workpiece to be processed. After the user straightens the workpiece, click the clamp function button on the touch screen to clamp the workpiece with the stopper clamp, and click the start button; the back gauge clamps the workpiece and drags the workpiece backward to the first slot width position. At this time, the fixed pressure plate automatically presses the workpiece, and then the tool holder corresponding to the X-axis moves to the set starting position first. At the same time, the tool reaches the set tool lifting position and the back gauge reaches the current step position; when the cutting operation starts, the tool holder moves down to the first slot depth and then moves to the X-axis. The servo motor drives the tool holder to move from right to left at the planing speed in the axial direction. When the set planing length is reached, the W-axis tool holder is lifted, and the Z-axis is lowered to the required groove depth immediately after the W-axis to start planing and return to the right side of the machine; then the planing is repeated until the set groove depth is reached. After a groove is planed, the fixed pressure plate is released, the tool holder returns to the origin, and the Y-axis moves to the next groove synchronously, with the same action as the first groove; the grooving operation is completed by reciprocating the above steps, and then the grooving machine automatically moves to the starting position after the groove is completed, and the workpiece is sent out. After the clamp is released, the user can directly remove the processed workpiece; During the slotting process, if an emergency occurs and the current operation process needs to be terminated, a stop command is generated through the stop function key on the touch screen to control the operation of the slotting machine; When the stop function key is triggered, the current operation status is judged. If the current operation status is "not completed", the slotting operation will continue until the cut is completed; otherwise, it will stop directly; In addition, the slotting machine also includes an IO monitoring module for monitoring sensor signals and output point signals. When the slotting device inputs: positive and negative limit signals of the X, Y, Z, and W axes, the corresponding axis will stop moving, and if it is in planing operation, it will stop running; When the input is: X, Y, Z, W reference point signal, the system will continuously move the servo motor in a certain direction when performing the reference return action, and will not stop until it receives the corresponding X, Y, Z, W reference point signal; when the input is: foot pedal signal, the system can judge the foot pedal signal to start the automatic planing function when it is in the automatic interface; when the input is: emergency stop signal, the system can move the axis and automatically plan before receiving the emergency stop signal, and stop all servo actions after receiving the feedback signal; when the input is: clamp signal, the system will highlight the button indicator light after receiving the feedback signal after using the clamping and releasing functions; when the input is: pressure When the input is: oil pump signal, the signal is high after the oil pump motor is started. If the oil pump motor is not started, the clamp, pressure plate and servo motor cannot be operated. When the output is: the signal sent by the output button, that is, the clamp clamping, clamp releasing, pressure plate pressing, pressure plate releasing buttons corresponding signals, the action of the clamp or pressure clamp can be directly operated in the io test interface, and the output stops when the corresponding button is released. When the output is: water cooling, air blowing, oil pump, water pump, lighting output signal, the corresponding function is used after the system inputs the corresponding signal. The process of scanning the QR code identity information using a barcode scanner includes the following steps: Check whether the scanner signal and communication signal are normal according to the prompt signal color; When the signal color is normal, set the server address; Based on the set server address, the communication connection between the barcode scanner and the workpiece parameter database is realized to build a communication link; Scan and transmit the QR code identity information using a barcode scanner based on a communication link; The process of decoding the scanned QR code information and obtaining the identity information includes the following steps: Read the scanned QR code information and identify the deep and shallow modules in the QR code information; According to the recognition structure, the QR code information is converted into a two-dimensional matrix composed of 0 and 1; Traverse and search the two-dimensional matrix to obtain the center coordinates of the image-seeking block; Determine the position of the QR code according to the center coordinates to obtain a positioning result; Performing format parsing on the positioning result to obtain format information including an error correction level and a mask number, and a version number of the current two-dimensional code; Constructing a mask image from the format information, and using the constructed mask image to perform XOR processing on the bitmap of the coding area to eliminate the mask; Recover the sequence of data and error correction code according to the arrangement rules of the modules; Using the obtained error correction code to perform error correction detection on the two-dimensional code data, and correcting the error when an error is detected; After completing data recovery and data error correction, the two-dimensional code data is decoded and the current decoding result is output.
2. A slotting machine application system for remote database reading control, used to implement the slotting machine application method for remote database reading control as claimed in claim 1, characterized in that: Includes the following modules: A parameter analysis module is configured to analyze parameter information of the raw material plate and parameter information required for the raw material plate to generate the target plate; A database construction module, configured to construct a contribution parameter database storing artifact parameter information; A QR code generation module is configured to generate QR code identity information of the plate to be processed; A scanning module configured to scan the generated QR code identity information; A QR code parsing module is configured to parse the identity information of the scanned QR code; An identity comparison module is configured to compare identity information with information in a database; A data download module, configured to download corresponding processing operation parameter data; A completion judgment module is configured to judge the integrity of the downloaded data; The warning module is set to remind the staff that there is an abnormality in the current operation; The data transmission module is configured to perform data interaction among the parameter analysis module, the database construction module, the QR code generation module, the scanning module, the QR code parsing module, the identity comparison module, the data download module, the completion judgment module, and the warning module.
3. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by the processor, the slotting machine application method for remote database reading control as claimed in claim 1 is implemented.
4. A slotting machine, characterized in that: The slotting machine includes the computer-readable storage medium of claim 3.
