A cutting bed task state consistency management method based on PLC and OPC UA

By establishing a unified task state model and state adjudication mechanism in the CNC cutting machine system, and utilizing the OPC UA communication unit to implement state subscription and legality verification, the problem of state inconsistency caused by OPC UA communication delay is solved, thereby improving the reliability and security of the system.

CN123137256APending Publication Date: 2026-11-20BULLMER ELECTROMECHANICAL TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611521951.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-29
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In existing technologies, OPC UA suffers from latency and status inconsistency issues in communication with CNC cutting machines, resulting in discrepancies between the status displayed on the host computer and the actual status of the PLC, which may lead to misoperation and safety risks.

Method used

By establishing a unified task state model and state adjudication mechanism between the PLC and the host computer, and using the OPC UA communication unit to realize state subscription and legality verification, the legality of state switching and equipment security are ensured, and a closed-loop control process is adopted to ensure state consistency.

Benefits of technology

It effectively solves the problems of asynchronous status and misoperation, improves the reliability and safety of the cutting bed system, and avoids misoperation and equipment safety risks caused by inconsistent status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123137256A_ABST
    Figure CN123137256A_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on PLC and the task state consistency management method of OPCUA cutting bed, the management method is applied to the cutting bed system including PLC control unit, host computer control unit and OPC UA communication unit, comprising the following steps: S1, state reference establishment: the initial state of the PLC control unit issues cutting bed task;S2, state change request is issued;S3, state switching and back;S4, state consistency confirmation;S5, communication exception processing.Through the collaborative architecture of PLC control unit, host computer control unit and OPC UA communication unit, the decoupling communication between host computer control unit and PLC control unit and the standardized state subscription are realized using OPC UA communication unit;By setting the task state node as only allowing PLC control unit internal logic write, host computer control unit read-only permission mechanism, and building closed-loop control process on this basis, the problem of man-machine interface state misdisplay caused by different state is eliminated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of industrial automation control and industrial communication technology, specifically to a method for managing the consistency of cutting bed task status based on PLC and OPCUA, which is particularly suitable for task status synchronization and anomaly control when the host computer and PLC communicate bidirectionally through OPC UA. Background Technology

[0002] CNC cutting machines are key processing equipment in industries such as textiles, apparel, leather, and composite materials. They are mainly used for high-speed, high-precision automated cutting of flexible materials. The performance of their control system directly determines the processing accuracy, production efficiency, and safety of the equipment. As the requirements for cutting speed and accuracy in industries such as apparel and leather increase, the system architecture of modern CNC cutting machines has become increasingly complex, evolving from the early single-machine control mode to a distributed architecture with multi-level collaborative control.

[0003] Currently, most CNC cutting machine control systems on the market adopt a two-layer control architecture that combines a programmable logic controller (PLC) and a host computer. The PLC is primarily responsible for motion control, input / output control, and real-time execution of safety logic, while the host computer is mainly responsible for task scheduling, path planning, human-machine interface display, and process parameter management. This status information needs to be synchronized in real-time between the PLC and the host computer to ensure consistency between the host computer's display and the actual equipment status. Therefore, the PLC and host computer need to achieve bidirectional, real-time data interaction through industrial communication protocols to ensure that the status information presented by the host computer remains consistent with the actual operating status of the equipment.

[0004] OPC UA (OPC Unified Architecture) has become one of the most widely used industrial communication protocols in the CNC cutting machine field due to its excellent platform independence, security, and information model capabilities. However, OPC UA suffers from stability issues such as communication latency in actual operation. When the subscription connection between the OPC UA client and server is interrupted, the monitored items subscribed to by the client will stop receiving updates, and the host computer may not be able to detect this anomaly in time, causing a discrepancy between the status displayed on the host computer and the actual equipment status. In addition, due to the transmission latency of OPC UA communication, the status variables obtained by the host computer are not the actual status of the PLC at the current moment. This time difference may cause the host computer to display the equipment running status and execute task scheduling decisions based on outdated status information. For example, the PLC may have stopped running, but the host computer interface may still show that it is running; after the host computer issues a pause command, the PLC has not yet completed the state switch, but the host computer has already shown that it is paused. Therefore, to address the shortcomings of OPC UA communication stability and consistency in CNC cutting machines, a method for managing the consistency of cutting machine task status based on PLC and OPC UA has been invented. Summary of the Invention

[0005] The purpose of this invention is to overcome the shortcomings of the prior art and provide a method for managing the consistency of cutting bed task states based on PLC and OPC UA. Specifically, by establishing a unified task state model and state adjudication mechanism between the PLC and the host computer, the invention solves the problems of state asynchrony, state competition, and communication anomalies leading to state distortion in the prior art, thereby improving the reliability, security, and controllability of the cutting bed system.

[0006] To achieve the above objectives, the present invention adopts the following technical solution:

[0007] A method for managing the consistency of cutting bed task status based on PLC and OPC UA, the method being applied to a cutting bed system including a PLC control unit, a host computer control unit, and an OPC UA communication unit, includes the following steps:

[0008] S1. Establishing a state baseline: The PLC control unit publishes the initial state of the cutting bed task, and the host computer control unit subscribes to the task status node through the OPC UA communication unit, and uses the current task status of the PLC control unit as the baseline.

[0009] S2. Status Change Request Issuance: The host computer control unit generates a target task status request and sends the target task status request to the PLC control unit through the OPC UA communication unit. The PLC control unit then verifies the validity of the target task status request according to the preset status transition rules.

[0010] S3. Status Switching and Feedback: When the verification passes, the PLC control unit performs a status switch and updates the task status, and sends the status change notification to the host computer control unit through the OPC UA communication unit; if the verification fails, the PLC control unit refuses the status switch and feeds back the error information to the host computer control unit through the OPC UA communication unit.

[0011] S4. Status Consistency Confirmation: After receiving the status change notification, the host computer control unit compares the target task status with the actual task status returned by the PLC control unit; if they match, the status switch is confirmed to be complete and the task schedule is updated; if they do not match, communication exception handling is performed.

[0012] S5. Communication Anomaly Handling: When an OPC UA communication unit anomaly is detected, the host computer control unit freezes the current task state and prohibits the initiation of new state switching requests; when the OPC UA communication unit recovers, the host computer control unit resynchronizes the local task state based on the actual state of the PLC control unit and resumes the issuance of state change requests.

[0013] Preferably, the OPC UA communication unit is configured with a current task status node, a task status request node, a status switch result feedback node, and a status version node.

[0014] Preferably, the current task status node uses integer or enumerated data, and its value corresponds to the task status, where 0 corresponds to idle status, 1 corresponds to ready status, 2 corresponds to running status, 3 corresponds to paused status, 4 corresponds to abnormal status, and 5 corresponds to end status.

[0015] Preferably, the state switching result feedback node uses integer data, and its values ​​include: 0 indicates successful switching, 1 indicates illegal state, 2 indicates security conditions are not met, 3 indicates device alarm, and 4 indicates communication or internal error.

[0016] Preferably, in step S2, the preset state transition rules include: the idle state is allowed to switch to the ready state, the ready state is allowed to switch to the running state, the running state is allowed to switch to the paused state or the end state, the paused state is allowed to switch to the running state, the running state is allowed to switch to the end state, the paused state is allowed to switch to the end state, any task state is allowed to switch to the abnormal state, and the abnormal state is allowed to switch to the idle state.

[0017] Preferably, in step S5, the OPC UA communication unit anomaly includes one or more of the following: heartbeat communication timeout between the host computer control unit and the PLC control unit, OPC UA communication unit session disconnection, and task status node read or write timeout.

[0018] Preferably, the abnormality of the OPC UA communication unit is determined based on the alarm code collected by the PLC control unit and the equipment safety conditions. When the alarm is cleared and the equipment safety conditions are restored to meet the requirements, it is determined to be a recoverable abnormality; when the alarm cannot be cleared or the equipment safety conditions cannot be met, it is determined to be an unrecoverable abnormality.

[0019] Preferably, the equipment safety conditions include at least one of emergency stop, alarm state, and stationary state of moving parts.

[0020] Preferably, the management method is applicable to cutting machines, laser cutting machines, CNC punching machines, and automated processing units.

[0021] Compared with the prior art, the beneficial effects of the present invention are:

[0022] 1. This invention utilizes a collaborative architecture of PLC control unit, host computer control unit, and OPC UA communication unit. The OPC UA communication unit enables decoupled communication and standardized status subscription between the host computer control unit and the PLC control unit, effectively improving the interoperability and scalability of the cutting bed system. By setting the task status node to a permission mechanism that allows only internal logic writing by the PLC control unit and read-only access by the host computer control unit, and building a closed-loop control process of "request issuance → status validity verification → equipment safety condition verification → status execution and update → result feedback confirmation," the task status presented on the host computer interface is always consistent with the actual operating status of the PLC control unit, fundamentally eliminating the problem of incorrect display of human-machine interface status due to status asynchrony. Furthermore, by having the host computer control unit initiate and issue a request for the target task status, and by having the PLC control unit independently complete status validity verification and status switching execution according to preset status transition rules, this separation of responsibilities effectively avoids illegal status transitions caused by erroneous instructions from the host computer, thus ensuring the determinism and controllability of the cutting bed system.

[0023] 2. When the host computer control unit initiates an illegal state transition or a state switching request that conflicts with the equipment safety conditions, the PLC control unit can refuse to execute and maintain the current task state unchanged. The host computer control unit synchronously prevents the interface state update and prompts the operator with the reason for failure based on the error code. This avoids misoperation and equipment safety risks caused by state asynchrony and erroneous command issuance, thereby ensuring that the cutting bed system can still operate safely and reliably under unsafe conditions such as emergency stop triggering, alarm not being cleared, and moving parts not being stationary.

[0024] 3. By independently configuring the current task status node, task status request node, status transition result feedback node, and status version node in the OPC UA communication unit, and strictly limiting the read and write permissions of each node, the risk of status tampering caused by the host computer's misoperation is eliminated from the source. When an OPC UA communication anomaly is detected, such as heartbeat detection timeout, OPC UA session disconnection, or task status node read / write timeout, the host computer control unit immediately freezes the local task status and prohibits the initiation of new status transition requests, which can effectively prevent dangerous operations caused by status uncertainty during communication interruption. Attached Figure Description

[0025] Figure 1 This is a flowchart of the present invention. Detailed Implementation

[0026] The present invention will be further described below with reference to specific embodiments. It should be understood that the following embodiments are for illustrative purposes only and are not intended to limit the scope of the invention.

[0027] A method for managing the consistency of cutting bed task status based on PLC and OPC UA, wherein the management method is applied to a cutting bed system including a PLC control unit, a host computer control unit, and an OPC UA communication unit.

[0028] The cutting bed system comprises multiple modules, including a PLC status management module, an OPC UA status publishing module, a host computer status subscription module, a status consistency verification module, and an anomaly and recovery control module. These modules communicate decoupledly through nodes in the OPC UA communication unit. Specifically:

[0029] The PLC status management module runs on the PLC control unit and is used to maintain the task status and execute the status transition rules.

[0030] The OPC UA status publishing module is used to publish the task status of the PLC control unit to the corresponding node of the OPC UA communication unit;

[0031] The host computer status subscription module is used to subscribe to and monitor the value changes of each node in the OPC UA communication unit;

[0032] The state consistency verification module is used to perform the comparison between the target task state and the actual task state in step S4.

[0033] The anomaly and recovery control module is used to perform state freezing, request blocking, state resynchronization, and recovery distribution operations in communication anomaly handling.

[0034] One method for managing the consistency of cutting bed task status based on PLC and OPC UA includes the following steps:

[0035] S1. Establishing a state baseline: The PLC control unit publishes the initial state of the cutting bed task, and the host computer control unit subscribes to the task status node through the OPC UA communication unit, and uses the current task status of the PLC control unit as the baseline.

[0036] Specifically, the OPC UA communication unit is configured with a current task status node, a task status request node, a status switch result feedback node, and a status version node.

[0037] The current task status node is used to represent the current task status of the PLC control unit. Only the internal logic of the PLC control unit is allowed to write to it, and the host computer control unit is read-only.

[0038] The task status request node is used to allow the host computer control unit to initiate a status switching request, and the PLC control unit is used to monitor the value change of the task status request node to trigger status validity verification.

[0039] The state switching result feedback node is used to allow the PLC control unit to report the state switching result to the host computer control unit.

[0040] The status version node is used to identify the version information of the current task status. The version information is updated each time the PLC control unit performs a status switch and is used for status resynchronization judgment after communication is restored.

[0041] Furthermore, the current task status node uses integer or enumerated data, and its values ​​correspond to the task status as shown in Table 1:

[0042] Table 1. Value Definitions for the Current Task Status Node

[0043] numerical values Status Name illustrate 0 Idle state Equipment is ready and awaiting task assignment. 1 Ready Task ready, entering the waiting state. 2 Running status Formal cutting operation 3 Paused Temporarily interrupt and preserve the scene 4 Abnormal state Emergency stop / alarm / unsafe situation triggered 5 End state This batch is completed

[0044] The state transition result feedback node uses integer data, and its values ​​are shown in Table 2:

[0045] Table 2. Value Definitions for State Transition Result Feedback Nodes

[0046] numerical values Feedback instructions 0 Switching successful 1 illegal status 2 Safety conditions not met 3 Equipment alarm 4 Communication or internal error

[0047] S2. Status Change Request Issuance: The host computer control unit generates a target task status request and sends the target task status request to the PLC control unit through the OPC UA communication unit. The PLC control unit then verifies the validity of the target task status request according to the preset status transition rules.

[0048] The validity verification is based on preset state transition rules, which include: Idle state allows switching to ready state; ready state allows switching to running state; running state allows switching to paused or terminated state; paused state allows switching to running state; running state allows switching to terminated state; paused state allows switching to terminated state; any task state allows switching to an abnormal state, and an abnormal state allows switching back to idle state when the alarm is cleared and the equipment safety conditions are met. See Table 3 for details.

[0049] Table 3. Preset State Transition Rules for Cutting Tasks

[0050] Serial Number Transfer path Triggering conditions 1 Free time → Preparation Task ready, entering the waiting state. 2 Preparation → Run Once all prerequisites are met, the cutting process officially begins. 3 Run → Pause Temporarily interrupt and preserve the scene 4 Pause → Run Restore cropping 5 Run → End This batch is complete and the process is finished as usual. 6 Pause → End The current batch of tasks will be terminated directly while the task is paused. 7 Any state → Abnormal Forced fuse tripping in the event of an emergency stop, alarm, or moving parts not coming to a complete stop. 8 Abnormal → Idle The reset loop can only be completed after the alarm has been cleared and the equipment safety conditions have been restored.

[0051] S3. Status Switching and Feedback: When the verification passes, the PLC control unit performs a status switch and updates the task status, and sends the status change notification to the host computer control unit through the OPC UA communication unit; if the verification fails, the PLC control unit refuses the status switch and feeds back the error information to the host computer control unit through the OPC UA communication unit.

[0052] Specifically, when the PLC control unit receives a status request written by the host computer control unit through the OPC UA communication unit, the following process is executed:

[0053] 1. Request Parsing: The PLC control unit first reads the value in the target status request node and parses out the target status value requested by the host computer control unit. This target status value corresponds to one of the predefined states in the cutting bed task state machine, including: idle state, ready state, running state, paused state, abnormal state, and end state. If the parsed target status value is not within the predefined state set, the PLC control unit directly writes an "invalid target status" error code to the status switching result feedback node, ending the current process.

[0054] 2. State Transition Legality Verification: The PLC control unit reads the current state value of the current task state node and determines whether a transition from the current state to the target state is permitted according to preset state transition rules. These state transition rules define all legal state transition paths in the cutting bed task state machine. If the transition from the current state to the target state is not within a legal path, the PLC control unit writes an "illegal state transition" error code to the state transition result feedback node, terminates the current process, and the current task state remains unchanged.

[0055] 3. Equipment Safety Condition Verification: After the state transition legality verification passes, the PLC control unit further verifies the safety conditions of the cutting bed equipment. This step is crucial for ensuring safe operation of the equipment and specifically includes the following verification items:

[0056] Emergency stop status verification: The PLC control unit reads the value of the emergency stop status node to determine whether the cutting machine is in an emergency stop triggered state. If the emergency stop button has been pressed or the emergency stop circuit is disconnected, the emergency stop state is determined to be active, and no state switching operation is allowed.

[0057] Alarm Status Verification: The PLC control unit reads the values ​​of the alarm status nodes to determine if there are any unprocessed alarms on the cutting machine. If any level of alarm exists (including warning alarms and fault alarms), the severity of the alarm determines whether a status switch is allowed. Normally, a status switch is not allowed when a fault alarm is present.

[0058] Motion completion flag verification: The PLC control unit reads the value of the motion completion flag node to determine whether the current moving part of the cutting bed has completed its current action. If the moving part has not yet reached the designated position or is executing a motion command, state switching is not allowed to prevent motion control conflicts caused by state switching.

[0059] If the verification fails, meaning any of the above verification steps are not passed, the PLC control unit performs the following operation:

[0060] (1) The PLC control unit does not change the value of the current task status node, and the cutting bed equipment continues to operate in the current task status. The value written to the target status request node will not be adopted.

[0061] (2) The PLC control unit writes the corresponding error code to the state switching result feedback node according to the specific failure reason;

[0062] (3) After the host computer control unit reads the error code in the status switching result feedback node, it prevents the status display in the user interface from updating, ensuring that the UI display is consistent with the actual status of the PLC; at the same time, it pops up the corresponding prompt information to the operator according to the content of the error code, informing them of the specific reason for the operation failure.

[0063] If the verification is successful, meaning all the above verification steps have passed, the PLC control unit will perform the following operations:

[0064] (1) The PLC control unit performs the actual state switching operation. After the actual state switching operation is completed, the PLC control unit updates the value of the current task state node to the target state value.

[0065] (2) After the host computer control unit reads the success flag in the status switching result feedback node, it updates the task status display in the user interface;

[0066] (3) The PLC control unit writes the “switching successful” flag and the corresponding success code to the state switching result feedback node, thereby forming a closed-loop control process of “request → verification → execution → confirmation”.

[0067] The closed-loop control process described above effectively ensures the consistency of the cutting bed task status between the host computer and the PLC, thereby avoiding operational errors and safety risks caused by asynchronous status.

[0068] S4. Status Consistency Confirmation: After receiving the status change notification, the host computer control unit compares the target task status with the actual task status returned by the PLC control unit.

[0069] If they match, confirm the status switch is complete and update the task schedule;

[0070] If there is a discrepancy, communication exception handling is performed, which includes:

[0071] The heartbeat communication between the host computer control unit and the PLC control unit timed out, that is, the periodic probe signal sent by the host computer control unit and the PLC control unit through the heartbeat detection mechanism independent of the OPC UA service request failed to receive a reply from the other party within several consecutive cycles, thus determining that the underlying communication between the host computer control unit and the PLC control unit is unavailable.

[0072] The OPC UA communication unit session is disconnected, meaning that the established OPC UA session between the host computer control unit and the PLC control unit is terminated for some reason, thus preventing the two parties from continuing to exchange any data through the session.

[0073] Task status node read or write timeout, that is, when the host computer control unit initiates a data access service to the PLC control unit through the OPC UA communication unit, it does not receive a service confirmation response within the preset timeout window.

[0074] S5. Communication Anomaly Handling: When an OPC UA communication unit anomaly is detected, the host computer control unit freezes the current task state. That is, the host computer control unit locks the locally stored task state variables at the current value, no longer performs any automatic update operations, and prohibits the initiation of new state switching requests.

[0075] The OPC UA communication unit malfunction is determined based on the alarm code collected by the PLC control unit and the equipment safety conditions. If the alarm is cleared and the equipment safety conditions are met again, it is determined to be a recoverable malfunction; if the alarm cannot be cleared or the equipment safety conditions cannot be met, it is determined to be an unrecoverable malfunction. The equipment safety conditions include at least one of the following: emergency stop state, alarm state, and stationary state of moving parts. Specifically:

[0076] When a communication anomaly occurs, if the alarm code read by the host computer control unit corresponds to an alarm type that can be automatically recovered, and the emergency stop state in the device safety conditions is inactive, the alarm state is recoverable, and the moving parts are in a stationary state, then the communication anomaly is determined to be a recoverable anomaly.

[0077] When a communication anomaly occurs, if the alarm code read by the host computer control unit corresponds to a serious hardware failure, or if the emergency stop state is activated and cannot be cleared by the operator through a simple reset operation, or if the moving parts cannot return to the stationary position due to mechanical jamming, then the communication anomaly is determined to be an unrecoverable anomaly.

[0078] Once the OPC UA communication unit recovers, the host computer control unit initiates a read request to the PLC control unit via the OPC UA protocol to obtain the latest value of the current task status node. Simultaneously, the host computer control unit reads the version number node or timestamp node associated with the task status from the PLC control unit. The host computer control unit compares the read version number or timestamp with the last valid value recorded locally before the communication failure. If the comparison results match, it indicates that the task status of the PLC control unit did not change during the communication interruption, and no status overwrite is required.

[0079] If the comparison results are inconsistent, it indicates that the PLC control unit experienced a state transition due to internal logic during the communication interruption. In this case, the host computer control unit resynchronizes its local task state based on the actual state of the PLC control unit and resumes issuing state change requests.

[0080] The resynchronization rule uses the PLC status as the final trusted state. If the PLC status is running or paused, the host computer control unit restores the corresponding UI and task scheduling status; if the PLC status is abnormal or terminated, the host computer control unit enters the abnormal handling or task termination process, thereby avoiding misjudgment or incorrect recovery of status during communication anomalies.

[0081] Furthermore, a management method for consistent cutting bed task status based on PLC and OPC UA is applicable to industrial equipment with a PLC+OPCUA architecture, such as cutting bed equipment, laser cutting equipment, CNC punching machines, and automated processing units. Specifically:

[0082] For cutting equipment, a management method for the consistency of cutting task status based on PLC and OPC UA is mainly used to manage the status switching of cutting tasks, the execution progress of cutting paths, and the confirmation of cutting completion.

[0083] For laser cutting equipment, a management method for the consistency of cutting bed task status based on PLC and OPC UA is mainly used to manage the state switching of cutting tasks, the coordination of laser light output and light-off states, and the completion confirmation of the cutting head motion trajectory.

[0084] For CNC punching machines, a management method for consistent cutting task status based on PLC and OPC UA is mainly used to manage the status switching of punching tasks, the counting of punching times, and the status synchronization of the die changing process.

[0085] For automated processing units, a management method based on PLC and OPC UA for consistent cutting bed task status is mainly used to manage the status switching of multi-station collaborative processing tasks, summarize the processing completion flags of each station, and uniformly schedule the overall line operation status.

[0086] It should be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0087] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention are included within the scope of protection of the invention.

Claims

1. A method for managing the consistency of cutting bed task status based on PLC and OPC UA, characterized in that, The management method is applied to a cutting bed system including a PLC control unit, a host computer control unit, and an OPC UA communication unit, and includes the following steps: S1. Establishing a state baseline: The PLC control unit publishes the initial state of the cutting bed task, and the host computer control unit subscribes to the task status node through the OPC UA communication unit, and uses the current task status of the PLC control unit as the baseline. S2. Status Change Request Issuance: The host computer control unit generates a target task status request and sends the target task status request to the PLC control unit through the OPC UA communication unit. The PLC control unit then verifies the validity of the target task status request according to the preset status transition rules. S3. Status Switching and Feedback: When the verification passes, the PLC control unit performs a status switch and updates the task status, and sends the status change notification to the host computer control unit through the OPC UA communication unit; if the verification fails, the PLC control unit refuses the status switch and feeds back the error information to the host computer control unit through the OPC UA communication unit. S4. Status Consistency Confirmation: After receiving the status change notification, the host computer control unit compares the target task status with the actual task status returned by the PLC control unit; if they match, the status switch is confirmed to be complete and the task schedule is updated; if they do not match, communication exception handling is performed. S5. Communication Anomaly Handling: When an OPC UA communication unit anomaly is detected, the host computer control unit freezes the current task state and prohibits the initiation of new state switching requests; when the OPC UA communication unit recovers, the host computer control unit resynchronizes the local task state based on the actual state of the PLC control unit and resumes the issuance of state change requests.

2. The method for consistent management of cutting bed task status based on PLC and OPC UA as described in claim 1, characterized in that, The OPC UA communication unit is configured with a current task status node, a task status request node, a status switch result feedback node, and a status version node.

3. The method for consistent management of cutting bed task status based on PLC and OPC UA as described in claim 2, characterized in that, The current task status node uses integer or enumerated data, and its value corresponds to the task status, where 0 corresponds to idle status, 1 corresponds to ready status, 2 corresponds to running status, 3 corresponds to paused status, 4 corresponds to abnormal status, and 5 corresponds to end status.

4. The method for consistent management of cutting bed task status based on PLC and OPC UA as described in claim 2, characterized in that, The state switching result feedback node uses integer data, and its values ​​include: 0 indicates successful switching, 1 indicates illegal state, 2 indicates security conditions are not met, 3 indicates device alarm, and 4 indicates communication or internal error.

5. The method for consistent management of cutting bed task status based on PLC and OPC UA as described in claim 1, characterized in that, In step S2, the preset state transition rules include: the idle state is allowed to switch to the ready state, the ready state is allowed to switch to the running state, the running state is allowed to switch to the paused state or the end state, the paused state is allowed to switch to the running state, the running state is allowed to switch to the end state, the paused state is allowed to switch to the end state, any task state is allowed to switch to the abnormal state, and the abnormal state is allowed to switch to the idle state.

6. The method for consistent management of cutting bed task status based on PLC and OPC UA as described in claim 1, characterized in that, In step S5, the OPC UA communication unit anomaly includes one or more of the following: heartbeat communication timeout between the host computer control unit and the PLC control unit, OPC UA communication unit session disconnection, and task status node read or write timeout.

7. The method for consistent management of cutting bed task status based on PLC and OPC UA as described in claim 6, characterized in that, The abnormality of the OPC UA communication unit is determined based on the alarm code collected by the PLC control unit and the equipment safety conditions. When the alarm is cleared and the equipment safety conditions are restored, it is determined to be a recoverable abnormality; when the alarm cannot be cleared or the equipment safety conditions cannot be met, it is determined to be an unrecoverable abnormality.

8. The method for consistent management of cutting bed task status based on PLC and OPC UA as described in claim 7, characterized in that, The equipment safety conditions include at least one of the following: emergency stop, alarm state, and stationary state of moving parts.

9. The method for consistent management of cutting bed task status based on PLC and OPC UA as described in claim 1, characterized in that, The management method is applicable to cutting equipment, laser cutting equipment, CNC punching machines, and automated processing units.