A method for issuing a checking instruction to a cross-cutting piece type parameter control in offline
Patent Information
- Application Number
- CN202610740303.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-05-27
- Publication Date
- 2026-10-13
- Estimated Expiration
- 2046-05-27
AI Technical Summary
[0003]在上述相关技术执行逻辑中,上位机应用软件的参数校验指令存在明显设计缺陷:现有应用软件的校验指令仅针对单一维度的几何参数执行孤立的数值大小判断,未嵌入结合横剪线底层多刀具之间固有的物理拓扑间距进行综合评估的协同校验指令,也未构建对应的拓扑约束校验逻辑和进给协同检验指令支路;当上位机应用软件下发的一组参数指令中包含物理间距相互干涉的冲切指令时,该参数指令在数学层面上满足基础校验要求,从而逃避了应用软件的数值拦截指令;而底层控制器接收参数指令后,由于其执行逻辑仅响应应用软件下发的动作指令,未收到应用软件下发的拓扑间距约束校验及干涉判断指令,无法对参数指令中的干涉问题进行二次校验,导致控制器驱动刀具在错误的位置执行冲切动作,产生持续的板材废料,甚至引发刀具相互挤压碰撞的机械损坏;同时,现有应用软件在参数下发过程中,缺乏对应的补偿偏移量生成指令、数据校验和比对指令以及通信时隙检测指令,当检测到参数干涉时,无法自动生成补偿修正指令并更新参数矩阵,也无法对参数写入控制器执行寄存器的过程进行校验确认,且未对控制器的空闲状态进行探测指令交互,易出现参数下发失败、写入错误或下发时机不当的问题,进一步影响横剪加工的稳定性和可靠性
1、本发明针对横剪加工中参数数值合法但刀具动作干涉这一痛点,聚焦硅钢片、变压器铁芯等精密板材高频次、小步距加工场景,深入挖掘不同工况下刀具干涉的差异化隐患,通过拓扑间距约束向量与参数校验的深度联动,实现刀具干涉的精准防控,解决了因校验与实际刀具排布脱节导致的机械损坏、废料激增问题;通过提取刀具排布分布数据,构建包含冲孔刀、V槽刀、主剪切刀间距的拓扑间距约束向量,将其与第一参数待检矩阵的理论动作距离特征进行差值计算,精准识别出间距干涉隐患,且该拓扑间距约束向量还会同步为后续进给协同检验提供基准数据,实现数据的一次提取以及多环节复用,避免了重复采集刀具数据导致的校验延迟,确保了校验逻辑与刀具实际安装状态的一致性,在高频次进给场景下,可降低刀具干涉发生率、刀头崩裂概率和刀头磨损速率,控制硅钢片毛刺超标率,有效提升加工精度与刀具使用寿命,降低耗材更换成本;
Smart Images

Figure CN122411263B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of application software instruction technology, specifically a method for offline verification of cross-cutting parameters to a controller. Background Technology
[0002] In the cross-cutting processing of silicon steel sheets, transformer cores, and other sheet metals, the production line adopts a collaborative control architecture between a host computer and a bottom-level controller. The host computer application software is responsible for parsing production work orders, processing sheet type parameters, generating and verifying the issued instructions, and the bottom-level controller drives servo motors and punching cutters, V-groove cutters, cross-cutting shears, etc., to perform processing actions after receiving the instructions. Specifically, after the host computer application software parses the sheet type parameters and passes the basic verification instructions, it sends the parameters offline to the controller through industrial bus communication instructions. The controller then parses the instructions and executes the corresponding drive actions.
[0003] In the aforementioned technical execution logic, the parameter verification instructions of the host computer application software have obvious design flaws: the existing application software's verification instructions only perform isolated numerical magnitude judgments on single-dimensional geometric parameters, without embedding collaborative verification instructions that comprehensively evaluate the inherent physical topological spacing between multiple tools at the bottom layer of the cross-cutting line, nor constructing corresponding topological constraint verification logic and feed collaborative verification instruction branches; when a set of parameter instructions issued by the host computer application software includes punching instructions with mutually interfering physical spacing, the parameter instructions mathematically meet the basic verification requirements, thus evading the numerical interception instructions of the application software; and after the bottom controller receives the parameter instructions, its execution logic only responds to the action instructions issued by the application software and does not receive the topological constraints issued by the application software. The spacing constraint verification and interference judgment instructions cannot perform secondary verification of interference issues in the parameter instructions, causing the controller to drive the tool to perform punching actions in the wrong position, generating continuous scrap material and even causing mechanical damage from tool squeezing and collision. At the same time, the existing application software lacks corresponding compensation offset generation instructions, data verification and comparison instructions, and communication time slot detection instructions during the parameter issuance process. When parameter interference is detected, it cannot automatically generate compensation correction instructions and update the parameter matrix, nor can it verify and confirm the process of writing parameters into the controller execution register. Furthermore, it does not have an interactive instruction to detect the controller's idle state, which easily leads to problems such as parameter issuance failure, writing errors, or improper issuance timing, further affecting the stability and reliability of cross-cutting processing. Summary of the Invention
[0004] To achieve the above objectives, the present invention provides the following technical solution: A method for transmitting cross-cutting blade type parameters to the controller for offline verification includes: Obtain the first parameter, the inspection matrix, corresponding to the task to be produced; Extract the tool layout data of the current production line; construct a topological spacing constraint vector based on the tool layout data; Map the first parameter matrix to be inspected to the preset feed cooperative inspection branch; In the feed cooperative inspection branch, obtain the mapping difference between the theoretical motion distance features contained in the first parameter test matrix and the topological spacing constraint vector; The mapping difference is used as the collaborative interference deviation value; if the collaborative interference deviation value is greater than the first interference threshold with a first numerical value, the first parameter matrix to be inspected is intercepted and the corresponding compensation offset is generated; if the collaborative interference deviation value is not greater than the first interference threshold with a first numerical value, the first parameter matrix to be inspected is imported into the preset first verification buffer. The data in the first verification buffer is used to overwrite the preset execution register; Generate an offline trigger signal to be sent to the controller.
[0005] Furthermore, the first parameter to be inspected matrix corresponding to the task to be produced is obtained, including: Obtain the original production work order message input from the external terminal; Extract the geometric dimension field with the first format feature and the processing position coordinate field with the second format feature from the original production work order message; Construct an initial empty matrix containing row vectors of a preset dimension; Map the geometry field to the first row vector of the initial empty matrix; Map the processing site coordinate field to the second row vector of the initial empty matrix; Perform invalid bit removal operation on the initial empty matrix; Output the first parameter, the matrix to be tested.
[0006] Furthermore, a topological spacing constraint vector is constructed based on the tool arrangement distribution data, including: Extract the first absolute coordinates corresponding to the first punching tool and the second absolute coordinates corresponding to the first V-groove tool from the tool arrangement data; Obtain the absolute value of the physical distance between the first absolute coordinate and the second absolute coordinate; Extract the third absolute coordinates corresponding to the main shearing tool; Obtain the absolute value of the secondary distance between the first and third absolute coordinates; Write the absolute values of physical spacing and secondary spacing into a one-dimensional array according to a preset order; Convert a one-dimensional array into a topological spacing constraint vector.
[0007] Furthermore, in the feed cooperative inspection branch, the mapping difference between the theoretical motion distance features contained in the first parameter test matrix and the topological spacing constraint vector is obtained, including: Read the servo feed step size data sequence corresponding to the first parameter matrix to be inspected in the feed coordination inspection branch; Extract the first theoretical interval between two adjacent machining actions from the servo feed step size data sequence; Read the theoretical minimum execution spacing with a third numerical value from the topological spacing constraint vector; Obtain the difference between the first theoretical spacing and the theoretical minimum execution spacing; If the difference data is less than a preset zero threshold with a fourth numerical value, the absolute value of the difference data is extracted as the mapping difference.
[0008] Furthermore, the first parameter matrix to be inspected is intercepted and the corresponding compensation offset is generated, including: Read the maximum single feed stroke data of the current servo feed axis; The coordinates of conflict processing points in the first parameter inspection matrix are split and calculated based on the maximum single feed stroke data. Generate a split distance difference with a fifth numerical value; The split distance difference is encapsulated as a compensation offset; The compensation offset is merged into the updated first parameter matrix to be examined.
[0009] Furthermore, the preset execution register is overwritten using data from the first verification buffer, including: Obtain the first data checksum from the first verification cache; Read the base address and offset length of the execution register; With external interrupt requests disabled, the data in the first verification buffer is continuously written into the execution register according to the offset length. After the write operation is complete, read the second data checksum from the execution register; If the first data checksum matches the second data checksum, restart the external interrupt request.
[0010] Furthermore, the first parameter, the matrix to be inspected, is mapped to a preset feed cooperative inspection branch, including: Obtain the tension deformation operator with the first elastic coefficient corresponding to the current processed material; Extract the transmission span value between the servo feed roller and the processing point; The extension compensation constant is obtained by multiplying the transmission span value by the tension deformation operator; In the feed collaborative inspection branch, the coordinate values in the first parameter inspection matrix are weighted and corrected using the extension compensation constant. Output the corrected first parameter matrix to be tested.
[0011] Furthermore, generating a trigger signal to be sent offline to the controller includes: Send a polling probe frame with a first probe cycle to the communication bus corresponding to the controller; Capture the idle response signal with a first-level state returned by the controller; The available time slot length is obtained by analyzing the idle response signal; If the available time slot length is greater than the preset transmission time threshold, generate an offline trigger signal. The parameter mapping operation from the execution register to the underlying driver is activated by an offline trigger signal.
[0012] Furthermore, the first parameter to be inspected matrix corresponding to the task to be produced is obtained, including: Read the historical tail-piece parameter matrix of the previous processing cycle cached in local memory; Extract the coordinates of the last processing position from the historical tail film parameter matrix; Extract the starting processing position coordinates of the current task from the first parameter matrix to be inspected; Generate the boundary overlap interference feature between the final processing position coordinates and the initial processing position coordinates; The first parameter matrix to be examined is translated and corrected based on the boundary overlap interference characteristics.
[0013] Furthermore, after intercepting the first parameter matrix to be inspected and generating the corresponding compensation offset, the process also includes: The number of times the compensation offset is generated is cumulatively counted. Obtain the cumulative retry value with a second numerical value; If the cumulative retry value exceeds the retry threshold with the sixth value, discard the first parameter matrix to be tested. Generate the first hardware denial instruction; The first hardware rejection instruction is fed back to the data sending source through the external communication interface.
[0014] This invention provides a method for transmitting cross-cutting plate type parameters to a controller for offline verification, which has the following beneficial effects: 1. This invention addresses the pain point of tool interference in cross-cutting machining where parameter values are valid but tool movement is still interfered with. Focusing on high-frequency, small-step machining scenarios for precision plates such as silicon steel sheets and transformer cores, it delves into the differentiated potential hazards of tool interference under various working conditions. Through deep linkage between the topological spacing constraint vector and parameter verification, it achieves precise control of tool interference, solving the problems of mechanical damage and increased scrap caused by the disconnect between verification and actual tool arrangement. By extracting tool arrangement distribution data, a topological spacing constraint vector containing the spacing of punching tools, V-groove tools, and main shearing tools is constructed. The difference between this vector and the theoretical movement distance characteristics of the first parameter inspection matrix is calculated to accurately identify spacing interference hazards. Furthermore, this topological spacing constraint vector simultaneously provides benchmark data for subsequent feed collaborative inspection, enabling one-time data extraction and multi-stage reuse. This avoids verification delays caused by repeated tool data collection, ensuring consistency between verification logic and the actual tool installation state. In high-frequency feed scenarios, it can reduce the occurrence rate of tool interference, the probability of tool breakage, and the tool wear rate, control the excessive burr rate of silicon steel sheets, effectively improve machining accuracy and tool life, and reduce consumable replacement costs. 2. This invention obtains the material tension deformation operator and the feeding span value, calculates the extension compensation constant, and performs weighted correction on the first parameter test matrix. The extension compensation constant also simultaneously acts on the difference calculation link of the feed collaborative inspection branch to correct the theoretical action distance characteristics, realizing the linkage optimization of deformation compensation and collaborative verification. This not only effectively controls the parameter coordinate deviation, but also avoids the problem of non-coordination between feed action and topological constraints caused by deformation, significantly improving the pass rate of processing points and the pass rate of iron core lamination. At the same time, the compensation logic can automatically adapt and adjust to the differences in elastic coefficients of different materials without manual intervention, adapting to the processing needs of different specifications of plates, improving the flexible production capacity of the production line, and reducing the time spent on manual debugging. 3. This invention utilizes the checksum comparison between the first verification buffer and the execution register to ensure that the parameters are written correctly. By reading the historical tail film parameter matrix of the previous cycle, the current first parameter to be checked matrix is shifted and corrected to reduce the occurrence rate of boundary overlap interference. The number of times the compensation offset is triggered is accumulated to avoid repeated invalid compensation, shorten the production line downtime and the average number of downtimes per day. By polling to detect the idle status of the controller, the timing of parameter issuance is ensured to be reasonable, and the issuance success rate is improved. Thus, the stability and efficiency of continuous production are improved, and the average daily capacity of a single production line is increased. 4. This invention addresses the scenario of parameter verification failure under extreme working conditions in cross-cutting machining. Combining complex conditions such as long-term continuous production line operation, tool wear, and abnormal work order parameters, it constructs an emergency linkage mechanism, solving the pain point of weak extreme condition response capabilities in existing technologies and further ensuring the continuity and safety of production line operations. Through multi-stage linkage to cope with extreme conditions, the construction of the topological spacing constraint vector relies on real-time extracted tool arrangement distribution data, which can adapt to coordinate offsets caused by tool wear in real time, avoiding verification failure due to tool wear and reducing the occurrence rate of tool interference failures. During the generation of the first parameter to-be-checked matrix, an invalid bit removal operation is performed. The system removes abnormal coordinate fields to ensure the validity of the parameter matrix, shortening the time spent troubleshooting controller faults. When the number of compensation retries exceeds the limit, a hardware rejection command is generated and fed back to the data sending source. At the same time, the abnormal parameter matrix is retained for subsequent analysis. This not only avoids equipment failures caused by invalid parameter distribution but also provides data support for work order parameter optimization. In addition, the above emergency mechanism is linked with the closed-loop verification process. When extreme operating conditions are detected, parameter distribution is automatically paused, and the verification process is restarted after the fault is resolved. This reduces the product scrap rate caused by extreme operating conditions, reduces the controller failure rate, extends equipment life, and reduces equipment maintenance costs. In summary, this solution addresses the scenario-specific pain points of cross-cutting sheet parameter transmission to the controller during the online transmission process, including tool interference, parameter deviation, transmission failure, and inadequate handling of extreme working conditions. It is particularly suitable for high-frequency, continuous cross-cutting processing of high-end plates such as precision silicon steel sheets and transformer cores, significantly improving processing accuracy, production line efficiency, and equipment stability, while reducing tool wear, product scrap, and equipment failure rates. This provides strong support for the intelligent and precise control of cross-cutting production lines. Attached Figure Description
[0015] Figure 1 This is a flowchart illustrating the steps of the present invention. Figure 2 This is a flowchart illustrating the core verification process of the present invention. Figure 3 This is a flowchart illustrating the exception handling process of the present invention. Detailed Implementation
[0016] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0017] Example 1: Please see Figures 1-3This embodiment provides a method for transmitting cross-cutting sheet type parameters to the controller for offline verification, including the following steps: S101, Obtain the first parameter inspection matrix corresponding to the production task; In some embodiments, the first parameter to be inspected matrix corresponding to the production task is obtained by: receiving the transmission data stream from the manufacturing execution server through the industrial Ethernet interface; extracting the length coordinate data and angle coordinate data from the transmission data stream; organizing the extracted coordinate data into a two-dimensional numerical array according to a preset row and column structure; the first parameter to be inspected matrix refers to a two-dimensional numerical set containing the geometric mapping relationship of each processing point of the silicon steel sheet to be cut; effectively reducing the computational overhead of the underlying controller when parsing unstructured messages.
[0018] Specifically, the steps for obtaining the first parameter matrix to be checked corresponding to the production task are executed as follows: First, configure the communication parameters of the industrial Ethernet interface, including IP address, port number, and data transmission protocol, to ensure a stable communication link with the manufacturing execution server; after the communication link is established, receive the transmission data stream sent by the server. This data stream is encapsulated in a preset frame format, including a frame header, data payload, and frame trailer; locate the data payload area by identifying the frame header, extract length coordinate data and angle coordinate data from the data payload, and remove redundant information such as the frame header, frame trailer, and check bits; according to the preset row and column structure, fill the extracted length coordinate data into the first row and the angle coordinate data into the second row to form a two-dimensional numerical array, which is the first parameter matrix to be checked; in this way, the underlying controller does not need to parse unstructured messages and can directly read the standardized two-dimensional numerical array, which greatly reduces the computational overhead.
[0019] In some embodiments, the steps for obtaining the first parameter matrix to be inspected corresponding to the production task include: obtaining the original production work order message input from an external terminal; extracting a geometric dimension field with a first format feature and a processing position coordinate field with a second format feature from the original production work order message; constructing an initial empty matrix containing row vectors of a preset dimension; mapping the geometric dimension field to the first row vector of the initial empty matrix; mapping the processing position coordinate field to the second row vector of the initial empty matrix; performing an invalid bit removal operation on the initial empty matrix; and outputting the first parameter matrix to be inspected. Listen for data packets on a specified network port; unpack the data packets according to a preset hypertext transfer protocol to obtain the original text string; extract floating-point numbers containing length information from the original text string using regular expressions as geometric dimension fields; extract floating-point numbers containing coordinate positions based on delimiters as processing point coordinate fields; allocate memory blocks with a preset number of rows and columns in memory; fill the floating-point numbers into specific memory units in the first and second rows respectively; traverse the matrix to remove columns containing null values or non-numeric types; invalid bit removal operation refers to the action of cleaning up illegal characters in the array that cannot be recognized by the servo driver; effectively reducing dirty data interference during subsequent matrix operations and reducing the computing power consumption caused by redundant calculations.
[0020] Specifically, the execution process of the above steps is as follows: First, listen to the local preset network port to capture data packets sent by external terminals in real time; use the Hypertext Transfer Protocol to unpack the captured data packets, remove redundant content such as protocol headers and request lines, and obtain the original text string; preset regular expressions to match and extract floating-point numbers from the original text string as geometric dimension fields; preset delimiters to split the original text string according to the delimiters and extract floating-point numbers containing coordinate positions as processing position coordinate fields; allocate memory blocks with preset number of rows and columns in memory, fill the extracted geometric dimension fields into the memory units of the first row in sequence, and split the processing position coordinate fields into X and Y coordinates and fill them into the corresponding memory units of the second row; traverse the entire initial empty matrix and verify the values of each column. If there are null values, letters, special symbols, or other illegal characters that cannot be recognized by the servo driver, directly remove the data in that column; after removal, output the processed two-dimensional numerical array, which is the first parameter matrix to be checked.
[0021] In some embodiments, the steps for obtaining the first parameter inspection matrix corresponding to the production task may further include: reading the historical tail sheet parameter matrix of the previous processing cycle cached in the local memory; extracting the last processing position coordinates from the historical tail sheet parameter matrix; extracting the starting processing position coordinates of the current task from the first parameter inspection matrix; calculating the boundary overlap interference features between the last processing position coordinates and the starting processing position coordinates; performing translation correction on the first parameter inspection matrix based on the boundary overlap interference features; accessing the non-volatile storage area to load the two-dimensional numerical array written when the previous work order was completed; reading the coordinate mapping data of the last column of the array; extracting the coordinate mapping data of the first column of the current two-dimensional numerical array; subtracting to obtain the cross-sectional overlap value; uniformly adding the cross-sectional overlap value to all coordinate vectors of the current two-dimensional numerical array; the historical tail sheet parameter matrix refers to the geometric state dataset of the end of the previously cut silicon steel sheet; the boundary overlap interference feature refers to the risk index of cut overlap between two sheets of material during continuous conveying; by extracting historical parameters for batch-to-batch continuation calculations, the interference of first and last layout conflicts during continuous processing of multiple work orders is eliminated.
[0022] Specifically, the execution process of the above optional steps is as follows: First, access the local non-volatile memory area through the SPI interface and load the historical tail sheet parameter matrix written when the previous work order was completed; read the coordinate mapping data of the last column of the matrix; extract the coordinate mapping data of the first column of the current first parameter inspection matrix; subtract the current starting processing position coordinate from the last processing position coordinate of the previous piece to obtain the cross-section overlap value; if the value is positive, it indicates that there is overlap interference, and the cross-section overlap value is added to all coordinate vectors of the current first parameter inspection matrix to achieve matrix translation; if the value is negative or zero, it indicates that there is no overlap interference, and no translation correction is required; after the correction is completed, the adjusted first parameter inspection matrix is output to ensure that the cuts of the silicon steel sheets processed in the two batches do not overlap, thus avoiding layout conflicts.
[0023] S102, Extract the tool layout distribution data of the current production line; Construct a topological spacing constraint vector based on the tool layout distribution data; In some embodiments, the tool layout distribution data of the current production line is extracted by: accessing the device parameter configuration file pre-burned in the local storage device; reading the installation coordinate values of each level of mechanical tool holder on the cross-cutting line from the device parameter configuration file; the tool layout distribution data refers to the data set that characterizes the absolute physical position of the physical mechanical tool on the cross-cutting production line; and providing a reference data source that can truly reflect the mechanical characteristics of the current underlying hardware.
[0024] Specifically, the steps for extracting the tool layout distribution data of the current production line are executed as follows: The local storage device is accessed via the local bus interface. This device contains a pre-programmed device parameter configuration file. The configuration file is opened, and the absolute installation coordinates of each level of the mechanical tool holder on the cross-cutting line are read using keyword search, with the production line start point as the origin and the production line conveying direction as the positive X-axis. All read tool holder installation coordinate values are organized into a dataset, which is the tool layout distribution data. During the reading process, the coordinate values are verified. If any abnormal values are found, i.e., values exceeding the preset coordinate range, an alarm is triggered, and default coordinate values are used to replace them, ensuring that the obtained tool layout distribution data is accurate and valid, providing a reliable benchmark for the subsequent construction of the topology spacing constraint vector.
[0025] In some embodiments, a topological spacing constraint vector is constructed based on tool arrangement distribution data: the difference between the installation coordinates of each tool holder in the tool arrangement distribution data is read; the above difference is sequentially filled into a one-dimensional floating-point array of a preset dimension; the topological spacing constraint vector refers to a one-dimensional array composed of the minimum physical safety interference distance between multiple tools; the macroscopic mechanical installation constraints are quantified into a standardized matrix structure that can be directly used by the algorithm in addition and subtraction operations.
[0026] Specifically, the steps for constructing the topological spacing constraint vector based on tool arrangement distribution data are as follows: First, read the installation coordinate values of all tool holders in the tool arrangement distribution data, including the absolute coordinates of each level of tool holder such as punching tool, V-groove tool, and main shearing tool; calculate the difference between any two tool holder installation coordinate values and take the absolute value as the physical spacing, such as calculating the spacing between punching tool and V-groove tool, punching tool and main shearing tool, V-groove tool and main shearing tool, etc.; preset the dimension of the one-dimensional floating-point array, which is consistent with the number of tool combinations; fill the calculated absolute values of each tool spacing into the one-dimensional floating-point array in a preset order; sort the values in the array and retain the minimum physical safety interference distance, i.e., the minimum spacing to avoid tool collision. The final one-dimensional array is the topological spacing constraint vector, which can be directly used for subsequent interference judgment calculations.
[0027] In some embodiments, the steps for constructing a topological spacing constraint vector based on tool arrangement distribution data include: extracting the first absolute coordinates corresponding to the first punching tool and the second absolute coordinates corresponding to the first V-groove tool from the tool arrangement distribution data; calculating the absolute value of the physical spacing between the first and second absolute coordinates; extracting the third absolute coordinates corresponding to the main shearing tool; calculating the absolute value of the secondary spacing between the first and third absolute coordinates; writing the absolute values of the physical spacing and the secondary spacing into a one-dimensional array according to a preset arrangement order; converting the one-dimensional array into a topological spacing constraint vector; and retrieving representative values from the equipment parameter configuration file. The key-value pairs representing the punching cutter positions are used to obtain the first coordinate value; the key-value pairs representing the grooving cutter positions are retrieved to obtain the second coordinate value; the first coordinate value is subtracted from the second coordinate value and the absolute value function is called to obtain the first result; the key-value pairs representing the cross-cutting cutter positions are retrieved to obtain the third coordinate value; the first coordinate value is subtracted from the third coordinate value and the absolute value function is called to obtain the second result; the first result and the second result are filled into the adjacent index positions of a pre-initialized single-row array; the secondary spacing absolute value refers to the non-negative floating-point value that characterizes the spatial span between cutters at different workstations; through multi-level spacing absolute value extraction, a three-dimensional physical space model covering the entire punching, cutting, and shearing process is established.
[0028] Specifically, the execution process of the above steps is as follows: First, in the equipment parameter configuration file, the first absolute coordinates of the first punching tool and the second absolute coordinates of the first V-groove tool are obtained through key-value pair retrieval; the absolute value function is called to calculate the absolute value of the physical distance between the two, i.e., the first result; then, the third absolute coordinates of the main shearing tool are obtained through key-value pair retrieval, and the absolute value of the secondary distance between the two is calculated, i.e., the second result; a single-row one-dimensional array is pre-initialized with a preset dimension; the first result is filled into the preset position of the array index, and the second result is filled into the preset position of the array index; the values in the array are verified, and if the value is less than the preset minimum safety distance, an alarm is triggered, and the value is corrected to the minimum safety distance; after verification, the single-row array is converted into a standardized topological spacing constraint vector, which is used for the interference difference calculation of the subsequent feed collaborative inspection branch to realize the physical space constraint of the entire punching, cutting, and shearing process.
[0029] Specifically, the general construction rules for topological spacing constraint vectors for arbitrary numbers and arrangements of tools are as follows: Traverse all tools in the current production line, extract the absolute coordinates of each tool, and establish a tool coordinate list. Each element in the list corresponds to a unique identifier (such as tool number) and its corresponding absolute coordinates for a tool. Combine the tool coordinate list in pairs to generate all tool pairings, avoiding duplicate combinations. For example, the combination of tool A and tool B is calculated only once. Calculate the absolute coordinate difference between each pair of tool combinations and take the absolute value to obtain the physical spacing between each pair of tools. For each pair of tool combinations, determine the minimum safe execution spacing based on its tool type and machining action logic. For example, the minimum safe spacing between a punching tool and a V-groove tool is 5mm, and the minimum safe spacing between a V-groove tool and a main shearing tool is... The minimum safe execution distance for all tool pairings is 8mm. A base value can be preset based on the tool model and material thickness, and then corrected for actual installation errors. The minimum safe execution distance for all tool pairings is sequentially written into a one-dimensional array according to the ascending order of tool numbers and the priority of processing actions. An index lookup table is added to the one-dimensional array, with each index value corresponding one-to-one with a tool pairing. For example, index 0 corresponds to the combination of tool A and tool B, and index 1 corresponds to the combination of tool A and tool C. This clearly defines the tool combination corresponding to each element in the vector, facilitating rapid indexing and value retrieval during subsequent verification. The one-dimensional array and index lookup table are then encapsulated and converted into a topological spacing constraint vector. This ensures that any number and arrangement of tools can construct a clear and indexable constraint vector using this rule, adapting to the complex tool arrangement scenarios of real production lines.
[0030] S103, map the first parameter to be inspected matrix to the preset feed cooperative inspection branch; In some embodiments, the first parameter matrix to be checked is mapped to a preset feed cooperative verification branch: an isolated computation area independent of the main communication polling thread is opened in the host computer memory; the two-dimensional numerical array in the first parameter matrix to be checked is loaded into the isolated computation area row by row; the feed cooperative verification branch refers to an asynchronous verification logic code execution space that is not affected by bus communication interruption; this ensures that the verification process will not block the main control flow of the host computer issuing instructions to other normally operating devices.
[0031] Specifically, the above-mentioned step of mapping the first parameter to be inspected matrix to the preset feed collaborative inspection branch is executed as follows: In the memory of the host computer, an independent isolated computing area is allocated through a memory allocation function. The memory size of this computing area is preset according to the size of the first parameter to be inspected matrix; the permissions of this isolated computing area are set so that it is independent of the main communication polling thread and is not affected by bus communication interruption or other thread occupation; through a memory copy function, the two-dimensional numerical array in the first parameter to be inspected matrix is loaded into the isolated computing area row by row. First, the first row of geometric dimension data is loaded, and then the second row of machining position coordinate data is loaded; after loading is completed, the start signal of the feed collaborative inspection branch is triggered, so that the verification logic code starts to run asynchronously, ensuring that the verification process does not block the main control flow of the host computer and does not affect the host computer from issuing instructions to other devices.
[0032] In some embodiments, the aforementioned step of mapping the first parameter test matrix to a preset feed collaborative inspection branch includes: obtaining a tension deformation operator with a first elastic coefficient corresponding to the current processed material; extracting the transmission span value between the servo feed roller and the processing point; multiplying the transmission span value by the tension deformation operator to obtain an extension compensation constant; in the feed collaborative inspection branch, using the extension compensation constant to perform weighted correction on the coordinate values in the first parameter test matrix; outputting the corrected first parameter test matrix; reading the Young's modulus parameter mapped by the current work order material code; and reading the equipment configuration. The file shows the spatial distance difference between the hardware positions of the traction roller and the tool holder; it performs floating-point multiplication to obtain a constant value characterizing the tensile deformation of the material; it iterates through the coordinate row vectors of the two-dimensional numerical array and adds the constant value to each one to overwrite the data; the tension deformation operator is a constant proportionality factor characterizing the degree of mechanical elongation of silicon steel sheets under specific physical tension; the transmission span value is the physical length of the stressed plate suspended in the air; by incorporating the material tensile deformation factor into the derivation of the cooperative interference deviation value, the shortcomings of pure geometric parameters that do not consider physical forces are compensated for, effectively reducing the actual drilling misalignment problem caused by material elongation.
[0033] Specifically, the execution process of the above steps is as follows: First, read the material code of the current work order, and retrieve the corresponding Young's modulus parameter, i.e., the first elastic coefficient, from the local material parameter library using the material code. Convert this parameter into a tension deformation operator, which is the ratio of Young's modulus to 1000. Read the hardware position coordinates of the servo feed roller (i.e., the traction roller) and the processing point from the equipment parameter configuration file, and calculate the spatial distance difference between them. This distance difference is the transmission span value. Perform floating-point multiplication to multiply the transmission span value by the tension deformation operator to obtain the extension compensation constant. In the isolated calculation area of the feed collaborative inspection branch, traverse the second row coordinate vector of the first parameter inspection matrix, i.e., the processing point coordinates, and add the extension compensation constant to each coordinate value one by one for overwriting. After the correction is completed, verify the matrix to ensure that the corrected coordinate values are within the preset processing range, and output the corrected first parameter inspection matrix to avoid drilling misalignment caused by material tensile deformation.
[0034] S104, in the feed cooperative inspection branch, obtain the mapping difference between the theoretical motion distance feature contained in the first parameter test matrix and the topological spacing constraint vector; In some embodiments, the mapping difference between the theoretical motion distance feature and the topological spacing constraint vector contained in the first parameter inspection matrix is obtained in the feed collaborative inspection branch; the coordinate difference values of adjacent machining points in the two-dimensional numerical array are read row by row; the corresponding safety spacing element value in the topological spacing constraint vector is subtracted bit by bit using the coordinate difference value; the result data after subtraction is extracted and stored as a new deviation variable; the theoretical motion distance feature refers to the mathematical ideal distance between two cutting actions required by the work order parameters; it quantifies the degree of spatial interference that may be generated when the pure mathematical instructions are physically executed.
[0035] Specifically, the above steps for calculating the mapping difference are executed as follows: In the isolated operation area of the feed collaborative inspection branch, the two-dimensional numerical array of the first parameter matrix to be inspected is read row by row, with a focus on reading the coordinate data of the machining point in the second row; the difference between the coordinates of two adjacent machining points is calculated, and the latter coordinate is subtracted from the former coordinate to obtain the coordinate difference value, which is the theoretical action distance feature, i.e., the mathematical ideal distance between the two cutting actions; the obtained coordinate difference value is subtracted bit by bit from the corresponding safety distance element value in the topological spacing constraint vector, and the coordinate difference value is subtracted from the safety distance element value; the result of the subtraction is stored in a new deviation variable. If the result is positive, it indicates no interference; if the result is negative, it indicates interference, and the absolute value of the negative value is the interference overlap amount; after the difference of all adjacent machining points is calculated, all deviation variables are output as the basic data for subsequent collaborative interference deviation values.
[0036] In some embodiments, the aforementioned step of calculating the mapping difference includes: reading the servo feed step size data sequence corresponding to the first parameter matrix to be inspected in the feed collaborative inspection branch; extracting the first theoretical distance between two adjacent machining actions from the servo feed step size data sequence; reading the theoretical minimum execution distance with a third numerical value corresponding to the topological distance constraint vector; calculating the difference data between the first theoretical distance and the theoretical minimum execution distance; if the difference data is less than a preset zero threshold with a fourth numerical value; extracting the absolute value of the difference data as the mapping difference; and traversing the coordinate rows of the two-dimensional numerical array. The calculation involves: subtracting the coordinates of the previous index from the current index value to obtain the step distance value; locating the numerical difference between two consecutive punching actions in the set of step distance values as the theoretical spacing; extracting the safety value of the corresponding tool position combination from the single-row array; performing subtraction arithmetic operations; comparing the result of the subtraction arithmetic operation with the zero-position state constant; inverting the sign bit to obtain a positive real number if the result is negative; and setting the zero-position threshold as a zero-point constant used to determine whether the subtraction result has a negative overflow. This further quantifies the intrusion depth of mathematical instructions into the physical restricted area, providing a benchmark dimension for subsequent compensation calculations.
[0037] Specifically, the execution process of the above steps is as follows: In the feed coordination inspection branch, the servo feed step length data sequence corresponding to the first parameter inspection matrix is read, which consists of the difference in the coordinates of the processing position; the data sequence is traversed, and the step distance between two adjacent processing actions is extracted, focusing on the step distance value between two consecutive punching actions, as the first theoretical distance; the theoretical minimum execution distance of the corresponding punching tool combination, i.e., the third value, is read from the topological distance constraint vector; subtraction arithmetic is performed to calculate the difference data between the first theoretical distance and the theoretical minimum execution distance; a zero threshold is preset, i.e., the fourth value; the difference data is compared with the zero threshold; if the difference data is less than zero, it indicates that the first theoretical distance is less than the minimum safe distance, and there is interference, and the absolute value of the difference data is extracted as the mapping difference, i.e., the interference overlap amount; if the difference data is greater than or equal to zero, it indicates that there is no interference, and the mapping difference is zero; the mapping differences of all consecutive punching actions are sorted and summarized for subsequent determination of the coordination interference deviation value.
[0038] Specifically, Wang Wei clarified the value selection rules when the difference data is greater than or equal to the preset zero threshold: When the difference data is greater than or equal to the preset zero threshold, the preset zero threshold is 0, that is, the fourth value is 0, indicating that the first theoretical distance is greater than or equal to the theoretical minimum execution distance, and there is no interference. At this time, the mapping difference value is 0, that is, it is determined that there is no interference risk in this group of processing actions, and no subsequent interference compensation operation is required; this value selection rule and the absolute value of the difference data being less than zero form a complete logical closed loop, ensuring that all difference data scenarios have clear values and avoiding logical gaps in verification.
[0039] S105, the mapping difference is used as the cooperative interference deviation value; if the cooperative interference deviation value is greater than the first interference threshold with a first numerical value, the first parameter matrix to be inspected is intercepted and the corresponding compensation offset is generated; if the cooperative interference deviation value is not greater than the first interference threshold with a first numerical value, the first parameter matrix to be inspected is imported into the preset first verification buffer. In some embodiments, the mapping difference is used as the collaborative interference deviation value: a globally unique variable label is assigned to the mapping difference in the isolated computation area; the variable label is associated with the branch logic interface of the subsequent interference judgment; the collaborative interference deviation value is the overlapping quantized value obtained by subtracting the mathematical ideal distance from the minimum safe distance of the underlying hardware; the operation caliber is unified, and a unique data source is provided for the execution or blocking action.
[0040] Specifically, the above-mentioned step of using the mapping difference as the collaborative interference deviation value is executed as follows: In the isolated calculation area of the feed collaborative inspection branch, a globally unique variable label is assigned to each mapping difference to ensure that each mapping difference can be identified individually; all variable labels are associated with the branch logic interface of the subsequent interference judgment, so that the branch logic can directly call each mapping difference; all mapping differences are summarized, and the maximum value is taken as the final collaborative interference deviation value. If there are multiple interference points, the most severe interference is taken as the standard; if all mapping differences are zero, the collaborative interference deviation value is zero. In this way, the calculation caliber of the interference judgment is unified, ensuring that subsequent interception, compensation or release actions all use the collaborative interference deviation value as the only data source, avoiding data chaos.
[0041] Specifically, the core logic is revised as follows: The design that tolerates slight interference is abandoned, and the invention's objective of eliminating tool interference is strictly adhered to. The judgment logic is adjusted as follows: the mapping difference is used as the cooperative interference deviation value, which is the amount of overlap between the theoretical spacing and the safe spacing. That is, if the mapping difference is ≥ 0, and the cooperative interference deviation value is > 0, then any degree of interference exists, regardless of the overlap. The first parameter matrix to be inspected is immediately intercepted, and a corresponding compensation offset is generated to completely eliminate the interference risk. If the cooperative interference deviation value is = 0 (i.e., no interference), the first parameter matrix to be inspected is imported into the preset first verification buffer and allowed to be sent. The original tolerance design for the first interference threshold is deleted, completely eliminating the tool from operating in an unsafe state, perfectly aligning with the invention's objective. The original first interference threshold... The principle and calculation method for determining the critical distance that triggers physical collisions between tools are as follows: the value should be less than half of the minimum safe distance between tools to ensure early interception before the collision threshold is reached; the calculation method is: first interference threshold = (minimum safe execution distance of the corresponding tool combination) × 50%. For example, if the minimum safe execution distance of a tool combination is 8mm, then the first interference threshold = 8mm × 50% = 4mm; its value can also be dynamically adjusted according to the degree of tool wear. For every 0.1mm increase in tool wear, the first interference threshold is lowered by 0.05mm to ensure that collision risks can still be identified in advance as the tool wears; because this scheme is adjusted to zero interference tolerance logic, this threshold is no longer used for interference judgment, but only as an auxiliary early warning reference for tool collision risks.
[0042] In some embodiments, if the cooperative interference deviation value is greater than a first interference threshold with a first numerical value; the first parameter to be inspected matrix is intercepted and a corresponding compensation offset is generated; the cooperative interference deviation value is extracted and compared with a reference extreme value stored in non-volatile memory; if the comparison result is greater than the reference extreme value, a suspension command is triggered to cut off the data stream of the current transmission bus; the difference in coordinate spacing that causes the conflict is calculated as additional step size correction data; the first interference threshold refers to the critical distance value that causes a physical rigid collision between the two bottom-level tools; the compensation offset refers to the distance data by which the servo axis performs a specific stroke one more time to avoid the tool interference zone; by taking the strategy of blocking and compensating when interference is detected, the physical collision phenomenon of the tool caused by instruction overlap is effectively prevented, and the defect of the prior art that only performs numerical boundary checks and ignores physical topology leading to equipment damage is solved.
[0043] Specifically, the execution process of the above steps is as follows: First, the first interference threshold, i.e., the first numerical value, which is the critical distance that triggers tool collision, is read from the non-volatile memory; the cooperative interference deviation value is compared with the first interference threshold. If the cooperative interference deviation value is greater than the first interference threshold, it indicates that there is serious interference, triggering a suspension command. The data stream of the current transmission bus is cut off through the bus control module to prevent the first parameter matrix to be inspected from continuing to be sent; the coordinate spacing difference between the two machining actions that caused the interference is extracted, and the difference is subtracted from the first interference threshold to obtain additional step size correction data, i.e., the basic data of compensation offset; based on the step size correction data, compensation offset is generated. The compensation offset is the sum of the step size correction data and the safety margin, ensuring that the tool spacing after compensation is greater than the minimum safety spacing, effectively avoiding the interference zone.
[0044] Specifically, intercepting the first parameter matrix to be inspected and generating the corresponding compensation offset includes: clarifying the specific calculation rules between the split distance difference, the maximum single feed stroke, and the degree of interference, and disclosing the complete interference elimination logic, as follows: Intercepting the first parameter matrix to be inspected and generating the corresponding compensation offset requires execution according to the following plain text steps: First, read the maximum single feed stroke data of the current servo feed axis. This data is used to limit the stroke range of a single feed action to prevent the servo feed axis from exceeding the upper limit of the mechanical stroke; then, combining the read maximum single feed stroke data and the cooperative interference deviation value characterizing the degree of interference overlap, the coordinates of the conflict processing points with interference problems in the first parameter matrix to be inspected are split and calculated; during the split calculation, First, determine the number of times the conflict processing point coordinates are split. The number of splits is calculated by rounding up, i.e., using a rounding function, dividing the conflict processing point coordinates by the maximum single feed stroke. The result is the number of splits, ensuring that each sub-step size after splitting will not exceed the maximum single feed stroke. Next, calculate the basic sub-step size using a rounding function, dividing the conflict processing point coordinates by the number of splits. This basic sub-step size applies to the first n-1 feed actions after splitting, where n is the number of splits. Finally, calculate the last sub-step size by subtracting the sum of the first n-1 basic sub-step sizes from the conflict processing point coordinates, ensuring that the sum of all sub-step sizes remains consistent with the original conflict processing point coordinates. The machining target remains unaffected. Next, the splitting distance difference is calculated, which is the fifth value mentioned in the original technical solution. The value of the splitting distance difference is equal to the cooperative interference deviation value. Its core function is to add a buffer distance equal to the interference overlap between two adjacent sub-steps by splitting the feed action, thereby completely eliminating the potential for tool interference. Then, the splitting distance difference is encapsulated as a compensation offset. The specific value of the compensation offset is the sum of the splitting distance difference and the safety margin. The safety margin is 10% of the minimum safe execution distance of the corresponding tool combination. The purpose of setting the safety margin is to avoid minor interference remaining after compensation, further improving the reliability of interference elimination. Finally, the compensation offset is merged into the updated first parameter test matrix. (Specific operations...) The process involves inserting a feed action corresponding to the compensation offset between two adjacent sub-steps after splitting. This splits the original single feed action into three consecutive feed actions: the basic sub-step, the compensation offset, and the next basic sub-step. This ensures that the distance between adjacent machining actions after splitting is not less than the minimum safe execution distance of the corresponding tool combination, thus completely eliminating interference. The above steps clarify the causal relationship between the maximum single feed stroke and the splitting distance difference: the maximum single feed stroke is only used to determine the number of splits and the basic sub-step to avoid overtravel of the servo feed axis, while the degree of interference is characterized by the cooperative interference deviation value, which directly determines the core value of the splitting distance difference. The two work together to ultimately achieve a compensation effect that does not exceed the travel limit and completely eliminates interference.
[0045] In some embodiments, the steps of intercepting the first parameter inspection matrix and generating the corresponding compensation offset include: reading the maximum single feed stroke data of the current servo feed axis; splitting and calculating the coordinates of the conflict processing points in the first parameter inspection matrix based on the maximum single feed stroke data; generating a splitting distance difference with a fifth numerical value; encapsulating the splitting distance difference as a compensation offset; merging the compensation offset into the updated first parameter inspection matrix; accessing the status register fed back by the underlying controller to obtain the upper limit value of the mechanical stroke of the servo motor; decomposing the current index coordinate value causing interference into two sub-steps not exceeding the upper limit value of the mechanical stroke; converting the calculated sub-step data into a hexadecimal displacement message; inserting the hexadecimal displacement message into the original index position of the two-dimensional numerical array; the splitting distance difference refers to a buffer movement distance generated by the decomposition of a single feed action to resolve tool position conflicts; by introducing a buffer movement distance, the execution timing of the servo motor is changed without changing the final cutting target of the work order, effectively bypassing the rigid interference zone of the underlying hardware; The formula for calculating the split distance difference is as follows: In the formula To split the distance difference, i.e., the fifth numerical value, This represents the maximum single feed stroke data for the current servo feed axis. The feed stroke corresponding to the conflict processing point is calculated from the coordinates of the conflict processing point in the first parameter test matrix, i.e., the distance between the conflict processing point and the previous processing point; when there are multiple consecutive conflict processing points, the split distance difference is taken as the average of the differences between each conflict stroke and the maximum single feed stroke, i.e. , The number of consecutive conflicting processing points; the split distance difference is encapsulated as a compensation offset.
[0046] Specifically, the execution process of the above steps is as follows: Access the status register of the underlying controller through the communication interface to read the maximum single feed stroke data of the current servo feed axis, i.e., the upper limit of the mechanical stroke; locate the coordinates of the machining point causing interference in the first parameter inspection matrix, i.e., the current index coordinates; decompose this coordinate value into two sub-steps, the sum of the two sub-steps equals the original coordinate value, and each sub-step does not exceed the maximum single feed stroke; calculate the difference between the two sub-steps, which is the split distance difference, i.e., the fifth numerical value; encapsulate the split distance difference into a hexadecimal displacement message, conforming to the servo driver's communication protocol; insert this hexadecimal displacement message at the original index position of the first parameter inspection matrix, update the matrix structure, and split the original single feed action into two feed actions, the split distance difference being the compensation offset; after the update is completed, output the updated first parameter inspection matrix to ensure that the servo motor executes the action according to the new timing sequence, bypassing the tool interference zone.
[0047] In some embodiments, the process following the generation of the compensation offset includes: accumulating the number of times the compensation offset is generated; obtaining a cumulative retry value with a second numerical value; if the cumulative retry value is greater than a retry threshold with a sixth numerical value; discarding the first parameter matrix to be inspected; generating a first hardware rejection instruction; feeding the first hardware rejection instruction back to the data sending source through an external communication interface; initializing a step-counting variable in memory; incrementing the step-counting variable by one each time the split distance difference encapsulation step is executed; comparing the step-counting variable with the fault tolerance upper limit set in the configuration file; clearing the memory space occupied by the two-dimensional numerical array if the fault tolerance upper limit is exceeded; constructing an alarm message containing a hexadecimal error code; and sending it to the manufacturing execution server through the reverse link of the data stream. The cumulative retry value refers to the total number of loops in which the current chip type parameter is frequently split due to physical interference; the first hardware rejection instruction refers to the network return packet that forcibly returns the original production work order and requires manual intervention for review. By establishing a retry loop count monitoring and rollback mechanism, extreme abnormal chip types that exceed the algorithm compensation limit are effectively intercepted, preventing the control system from falling into an infinite loop crash state.
[0048] Specifically, the execution process of the above subsequent steps is as follows: Initialize a step counter variable in memory with an initial value of zero. Each time the steps of splitting the distance difference encapsulation and generating the compensation offset are executed, the step counter variable is incremented by one to obtain the cumulative retry value, i.e., the second value. Read the retry threshold set in the configuration file, i.e., the sixth value. Compare the cumulative retry value with the retry threshold. If the cumulative retry value is greater than the retry threshold, it indicates that the current chip type parameter is abnormal and exceeds the algorithm compensation limit. At this time, clear the memory space occupied by the first parameter to be checked matrix and discard the parameter matrix. Construct an alarm message containing a hexadecimal error code, which contains the reason for the abnormality. Send the alarm message to the data sending source, i.e., the manufacturing execution server, through the reverse link of the data transmission stream, i.e., the communication link with the manufacturing execution server. At the same time, generate the first hardware rejection instruction, forcibly return the original production work order, and prompt manual intervention for review to avoid the control system from falling into an infinite loop.
[0049] In some embodiments, if the cooperative interference deviation value is not greater than a first interference threshold with a first numerical value, the first parameter to be tested matrix is imported into a preset first verification buffer: if the comparison result is not greater than the reference extreme value, the two-dimensional numerical array is moved to a specific sector through a direct memory access channel; the first verification buffer refers to an asynchronous physical storage stage used to store verified legal parameters; by introducing a pre-verification confirmation mechanism, the reliability of parameter transfer to the underlying layer is ensured.
[0050] Specifically, the execution process of the above steps is as follows: The specific execution process corresponding to the adjusted logic is as follows: If the cooperative interference deviation value = 0, it means there is no interference and the parameter matrix is valid; start the direct memory access channel, which is independent of the CPU and can quickly realize data transfer; through the direct memory access channel, the two-dimensional numerical array of the first parameter matrix to be checked is completely transferred to the preset first verification cache area, i.e., the specific sector of the asynchronous physical storage stage; after the transfer is completed, the data in the cache area is verified to confirm the data integrity, including verifying the data length and checksum; if the verification passes, the parameter matrix is marked as valid and can be sent down, waiting for subsequent writing to the execution register; if the verification fails, the data is transferred again to ensure that the parameter matrix is accurately imported into the cache area.
[0051] S106, overwrite the preset execution register with the data in the first verification buffer; generate a trigger signal to be sent to the controller; In some embodiments, the data in the first verification buffer is used to overwrite the preset execution register; the data bus write instruction is activated; the two-dimensional numerical array in a specific sector is written bit by bit into the communication storage block of the controller; the execution register refers to the mapped address area inside the controller used to directly send low-level pulse instructions to the servo driver; the data path from the host computer security data to the low-level physical execution end is opened.
[0052] Specifically, the execution process of the above steps is as follows: First, activate the data bus write instruction and configure the write parameters, including the address of the execution register, the write length, and the data format; locate the specific sector in the first verification buffer that stores the valid parameter matrix, and read the two-dimensional numerical array in that sector; according to the address mapping rules of the execution register, write the two-dimensional numerical array bit by bit into the controller's communication storage block, i.e., the execution register, first write the first row of geometric dimension data, and then write the second row of machining position coordinate data; during the writing process, disable external interrupts to avoid interference with data writing; after the writing is completed, read the data in the execution register and compare it with the data in the buffer to confirm that the writing is correct, and open the path for data from the host computer to the underlying execution end.
[0053] In some embodiments, the aforementioned step of overwriting the preset execution register with data from the first verification buffer includes: obtaining a first data checksum from the first verification buffer; reading the base address and offset length of the execution register; writing the data from the first verification buffer continuously into the execution register according to the offset length while the external interrupt request is disabled; reading the second data checksum from the execution register after writing is complete; if the first data checksum matches the second data checksum, re-enabling the external interrupt request; performing a cyclic redundancy check algorithm on the two-dimensional numerical array in a specific sector to obtain a first feature string; obtaining the starting address and byte width of the communication storage block; and sending the data to the central processing unit. The device sends an interrupt mask instruction; it calls a memory copy function based on the starting address to write the two-dimensional numerical array byte by byte; after writing, it re-executes the cyclic redundancy check algorithm on the communication storage block to obtain the second feature string; it compares the bit patterns of the first feature string and the second feature string; when the bit patterns match completely, it sends an interrupt recovery instruction to the central processing unit; the base address refers to the starting hexadecimal number of the control instruction mapped in the memory space; the external interrupt request refers to the hardware signal triggered by other high-priority sensors in the industrial field to suspend the current execution flow; by disabling interrupts and verifying hash values, a rigorous atomic operation mechanism is constructed, which effectively reduces the risk of chip parameter loss due to communication tearing in a high-frequency bus environment.
[0054] Specifically, the key exception handling mechanism for checksum inconsistency is as follows: If the first data checksum is inconsistent with the second data checksum, it indicates an error in the data writing, and the following exception handling steps are immediately executed: Send an error interrupt signal to the central processing unit to suspend all parameter sending-related operations to prevent erroneous data from being executed by the controller; clear the erroneous data in the execution register and release the memory space occupied by the execution register; reread the data in the first verification buffer and execute the cyclic redundancy check algorithm again to obtain a new first data checksum; re-execute the write operation, disable external interrupts, write byte by byte according to the offset length, and read the second data checksum again after the write is completed for comparison; if the checksum is still inconsistent after 3 consecutive writes, it is determined to be a hardware communication failure or an execution register abnormality, and hardware is generated.
[0055] Specifically, the execution process of the above steps is as follows: For the two-dimensional numerical array in a specific sector of the first verification buffer, a cyclic redundancy check (CRC) algorithm is executed to calculate the first data checksum, i.e., the first feature string; the base address and offset length of the execution register are read; an interrupt mask instruction is sent to the central processing unit (CPU) to disable all external interrupt requests, preventing the data writing process from being interrupted by high-priority sensor signals; based on the base address of the execution register, a memory copy function is called to continuously write the data in the buffer into the communication storage block of the execution register byte by byte according to the offset length; after writing, the CRC algorithm is executed again on the data in the execution register to obtain the second data checksum, i.e., the second feature string; the bit patterns of the first feature string and the second feature string are compared. If they match completely, it indicates that the data writing is error-free, and an interrupt recovery instruction is sent to the CPU to re-enable external interrupt requests; if they do not match, the writing operation is re-executed until the verification passes, ensuring the accuracy of the data writing and reducing the risk of parameter loss caused by communication tearing.
[0056] In some embodiments, an offline trigger signal is generated for the controller: after writing is completed, a level inversion instruction is sent to the controller's flag bit; the offline trigger signal refers to a rising edge pulse signal used to notify the controller that the parameters are ready; the execution timing of the controller is clarified, avoiding the controller from blindly starting to act after reading only half of the data.
[0057] Specifically, the steps for generating the online trigger signal to the controller are executed as follows: First, confirm that the data in the first verification buffer has been successfully written to the execution register, and that the data verification and comparison are consistent. Then, send a level inversion instruction to the controller's flag bit, inverting the flag bit's level from low to high, forming a rising edge pulse signal. This rising edge pulse signal is the online trigger signal. The controller monitors the level change of this flag bit in real time. When a rising edge pulse is detected, it confirms that the parameters are ready, begins reading the parameters from the execution register, and sends a low-level pulse instruction to the servo driver. After the trigger signal is sent, the flag bit level is restored to low, waiting for the next parameter delivery to ensure accurate controller execution timing and avoid incomplete data reading.
[0058] In some embodiments, the steps for generating the online trigger signal to the controller include: sending a polling probe frame with a first probe cycle to the communication bus corresponding to the controller; capturing an idle response signal with a first level state returned by the controller; parsing the idle response signal to obtain the available time slot length; generating an online trigger signal if the available time slot length is greater than a preset transmission time threshold; activating the parameter mapping operation of the execution register to the underlying driver based on the online trigger signal; sending a heartbeat handshake data packet every preset number of milliseconds through the underlying socket; listening to the data packet containing a specific low-level flag bit returned by the bus; extracting the time window field data from the data packet payload; comparing the time window field data with the pre-estimated communication time; enabling the pulse output pin when the window time is sufficient; driving the controller to push the data in the internal storage block to the motion control card of the servo driver; the polling probe frame refers to a test instruction used to actively detect the current load state of the underlying controller; the available time slot length refers to the microsecond-level time window in which the controller can stably receive data between two high-frequency interrupt responses; by accurately capturing the idle window period of the controller through the state detection action, the bus communication packet loss phenomenon caused by blind overwrite operation when the controller is busy is effectively reduced.
[0059] Specifically, the execution process of the above steps is as follows: Using the underlying socket, a polling probe frame (i.e., a test command) is sent to the communication bus corresponding to the controller according to the first probe cycle to detect the current load status of the controller; the communication bus is monitored to capture the response signal returned by the controller. If the controller is in an idle state, it returns an idle response signal with a first level state, i.e., a low level; the load of the idle response signal is analyzed, and the time window field data is extracted. This data is the available time slot length, i.e., the idle time between two high-frequency interrupt responses of the controller; a preset transmission time consumption threshold is set, and the available time slot length is compared with the transmission time consumption threshold. If the available time slot length is greater than the transmission time consumption threshold, it indicates that the controller has sufficient idle time to receive data, generating an offline trigger signal, i.e., a rising edge pulse; based on this trigger signal, the parameter mapping operation from the execution register to the underlying servo driver is activated, causing the controller to push the parameter data in the execution register to the motion control card of the servo driver, driving the tool to perform machining actions; if the available time slot length is less than or equal to the transmission time consumption threshold, polling probe frames continue to be sent until an idle response signal that meets the conditions is captured, avoiding bus packet loss caused by blind transmission.
[0060] The above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any other combination thereof. When implemented in software, the above embodiments can be implemented, in whole or in part, as a computer program product. Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution.
[0061] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0062] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. A method for offline verification of cross-cutting blade type parameters to a controller, characterized in that, The method includes: Obtain the first parameter, the inspection matrix, corresponding to the task to be produced, including: Read the historical tail-piece parameter matrix of the previous processing cycle cached in local memory; Extract the coordinates of the last processing position from the historical tail film parameter matrix; Extract the starting processing position coordinates of the current task from the first parameter matrix to be inspected; Generate the boundary overlap interference feature between the final processing position coordinates and the initial processing position coordinates; The first parameter matrix to be tested is translated and corrected based on the boundary overlap interference characteristics. Extract the tool layout data of the current production line; construct a topological spacing constraint vector based on the tool layout data; Mapping the first parameter, the matrix to be inspected, to a preset feed cooperative inspection branch includes: Obtain the tension deformation operator with the first elastic coefficient corresponding to the current processed material; Extract the transmission span value between the servo feed roller and the processing point; The extension compensation constant is obtained by multiplying the transmission span value by the tension deformation operator; In the feed collaborative inspection branch, the coordinate values in the first parameter inspection matrix are weighted and corrected using the extension compensation constant. Output the corrected first parameter matrix to be tested; In the feed cooperative inspection branch, obtain the mapping difference between the theoretical motion distance features contained in the first parameter test matrix and the topological spacing constraint vector; The mapping difference is used as the collaborative interference deviation value; if the collaborative interference deviation value is greater than the first interference threshold with a first numerical value, the first parameter matrix to be inspected is intercepted and the corresponding compensation offset is generated; if the collaborative interference deviation value is not greater than the first interference threshold with a first numerical value, the first parameter matrix to be inspected is imported into the preset first verification buffer. The data in the first verification buffer is used to overwrite the preset execution register; Generate an offline trigger signal to be sent to the controller.
2. The method for transmitting and verifying cross-cutting blade parameters to the controller offline according to claim 1, characterized in that, Obtain the first parameter, the inspection matrix, corresponding to the task to be produced, including: Obtain the original production work order message input from the external terminal; Extract the geometric dimension field with the first format feature and the processing position coordinate field with the second format feature from the original production work order message; Construct an initial empty matrix containing row vectors of a preset dimension; Map the geometry field to the first row vector of the initial empty matrix; Map the processing site coordinate field to the second row vector of the initial empty matrix; Perform invalid bit removal operation on the initial empty matrix; Output the first parameter, the matrix to be tested.
3. The method for transmitting cross-cutting blade type parameters to the controller for verification according to claim 2, characterized in that, A topological spacing constraint vector is constructed based on the tool arrangement distribution data, including: Extract the first absolute coordinates corresponding to the first punching tool and the second absolute coordinates corresponding to the first V-groove tool from the tool arrangement data; Obtain the absolute value of the physical distance between the first absolute coordinate and the second absolute coordinate; Extract the third absolute coordinates corresponding to the main shearing tool; Obtain the absolute value of the secondary distance between the first and third absolute coordinates; Write the absolute values of physical spacing and secondary spacing into a one-dimensional array according to a preset order; Convert a one-dimensional array into a topological spacing constraint vector.
4. The method for transmitting and verifying cross-cutting blade parameters to the controller offline according to claim 3, characterized in that, In the feed cooperative inspection branch, obtain the mapping difference between the theoretical motion distance features contained in the first parameter test matrix and the topological spacing constraint vector, including: Read the servo feed step size data sequence corresponding to the first parameter matrix to be inspected in the feed coordination inspection branch; Extract the first theoretical interval between two adjacent machining actions from the servo feed step size data sequence; Read the theoretical minimum execution spacing with a third numerical value from the topological spacing constraint vector; Obtain the difference between the first theoretical spacing and the theoretical minimum execution spacing; If the difference data is less than a preset zero threshold with a fourth numerical value, the absolute value of the difference data is extracted as the mapping difference.
5. The method for transmitting and verifying cross-cutting blade parameters to the controller offline according to claim 4, characterized in that, Intercept the first parameter matrix to be inspected and generate the corresponding compensation offset, including: Read the maximum single feed stroke data of the current servo feed axis; The coordinates of conflict processing points in the first parameter inspection matrix are split and calculated based on the maximum single feed stroke data. Generate a split distance difference with a fifth numerical value; The split distance difference is encapsulated as a compensation offset; The compensation offset is merged into the updated first parameter matrix to be examined.
6. The method for transmitting and verifying cross-cutting blade parameters to a controller offline according to claim 1, characterized in that, Overwriting the preset execution register with data from the first verification buffer includes: Obtain the first data checksum from the first verification cache; Read the base address and offset length of the execution register; With external interrupt requests disabled, the data in the first verification buffer is continuously written into the execution register according to the offset length. After the write operation is complete, read the second data checksum from the execution register; If the first data checksum matches the second data checksum, restart the external interrupt request.
7. The method for transmitting and verifying cross-cutting blade parameters to the controller offline according to claim 1, characterized in that, Generate a trigger signal to be sent offline to the controller, including: Send a polling probe frame with a first probe cycle to the communication bus corresponding to the controller; Capture the idle response signal with a first-level state returned by the controller; The available time slot length is obtained by analyzing the idle response signal; If the available time slot length is greater than the preset transmission time threshold, generate an offline trigger signal. The parameter mapping operation from the execution register to the underlying driver is activated by an offline trigger signal.
8. A method for verifying cross-cutting blade parameters to a controller offline according to claim 5, characterized in that, After intercepting the first parameter matrix to be inspected and generating the corresponding compensation offset, the process also includes: The number of times the compensation offset is generated is cumulatively counted. Obtain the cumulative retry value with a second numerical value; If the cumulative retry value exceeds the retry threshold with the sixth value, discard the first parameter matrix to be tested. Generate a first hardware rejection instruction; send the first hardware rejection instruction back to the data sending source through the external communication interface.
Citation Information
Patent Citations
Intelligent equipment butt-assembling cooperative control system with multi-axis linkage compensation
CN121995891A
Long-distance photoelectric sensor focusing calibration method and system
CN122062740A