Actuator coil control method and control function block

By using a modularly designed actuator coil control method, safe control and status monitoring of cylinders and hydraulic cylinders are achieved, solving the problems of high control difficulty and poor safety in non-standard automated equipment, and improving the stability and safety of equipment operation.

CN116658494BActive Publication Date: 2026-07-07CHINA ORDNANCE EQUIP GRP AUTOMATION RES INST CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA ORDNANCE EQUIP GRP AUTOMATION RES INST CO LTD
Filing Date
2023-05-30
Publication Date
2026-07-07

AI Technical Summary

Technical Problem

Existing cylinder and hydraulic cylinder control methods present challenges in non-standard automated equipment, including high development difficulty and poor safety. In particular, human error during fault handling can easily lead to equipment instability and safety hazards.

Method used

The actuator coil control method adopts a modular design, which monitors the actuator's action time and position detection by receiving trigger signals, provides manual and automatic control modes, and realizes safe control and status monitoring of the coil by combining input and output variable interface groups.

Benefits of technology

It improves the stability and safety of equipment operation, avoids inaccurate fault reset caused by human error, and enhances the readability and inheritability of the program.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116658494B_ABST
    Figure CN116658494B_ABST
Patent Text Reader

Abstract

The application discloses an actuator coil control method and a control function block, adopts two different variables of a manual control trigger variable and an automatic control trigger variable to complete control on a coil control output point, simultaneously distinguishes a coil operation button in an operation interface from a coil control variable in an automatic control program, can effectively avoid problems such as artificial misoperation, and improves stability and safety of automatic operation of the system. A function of detecting a parking position of a cylinder is provided, and safety hidden dangers generated by sudden start of the system when the cylinder is parked at a wrong position can be avoided. A modular design idea is adopted, safety control and state monitoring on a single electric control coil can be realized, and the coil control can be conveniently applied to coil control of various non-standard equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of actuator control technology, and in particular to an actuator coil control method and control function block. Background Technology

[0002] Cylinders and valves, as basic actuators, are widely used in various automated equipment. As the most common actuators in engineering, they are integrated into non-standard automated equipment and chemical equipment systems as fundamental components. They enable rapid mechanical action and effective pipeline opening and closing, offering advantages such as simple structure and convenient maintenance. Furthermore, their power source is compressed air, eliminating the need for electricity, making them suitable for flammable and explosive production environments, such as those involving the preparation of energetic materials. For highly automated equipment, the control of cylinders and valves requires several basic functions:

[0003] 1. During normal production operation, the control program automatically controls the cylinders and other components according to the specified process flow, enabling multiple cylinders and other components in the equipment to complete the predetermined actions in an orderly and safe manner. Operators can monitor the status of each mechanism in real time through the human-machine interface. During normal production, operators do not have the authority to operate cylinders, valves, or other mechanisms.

[0004] 2. When individual cylinders or hydraulic cylinders of the equipment malfunction such as jamming, under conditions of suspension or other safety assurance, the operator can manually operate the cylinders through the human-machine interface to resolve the malfunction.

[0005] After a fault is resolved, to ensure the equipment continues to operate correctly, each cylinder needs to be manually restored to its pre-fault state. This is to prevent problems such as jamming or impacts caused by incorrect cylinder settings. However, due to operator subjectivity, when handling a fault requires operating multiple cylinders, it is inevitable that some cylinders may be forgotten to be reset to their pre-fault state, posing unforeseen dangers to the safe operation of the equipment.

[0006] Currently, there are two main methods for controlling and operating components such as cylinders and hydraulic cylinders in equipment. One method involves directly controlling the output points of the controller in the main program without judging the process state of the cylinder. The control program calls the required cylinder control points as needed, and the corresponding control point signals are directly associated in the human-machine interface, allowing operators to force control of the cylinder. The other method involves encapsulating the cylinder control program, adding a monitoring function for the cylinder status, and associating the input points of the corresponding function blocks in the human-machine interface to achieve control of the cylinder and other mechanisms.

[0007] Both existing programming methods for cylinders and valves in non-standard automated equipment have certain drawbacks. The first method, which directly controls the controller's output points, only provides cylinder control functionality but lacks cylinder status monitoring. This programming approach does not adhere to basic modular design principles, and for highly automated equipment, it significantly increases the development difficulty of the main program. Therefore, this method is only suitable for simpler automated equipment.

[0008] Another existing programming approach that encapsulates cylinder control adds monitoring of cylinder status and follows modular design principles, making it suitable for programming large-scale automated production equipment. However, its encapsulated functional blocks lack specific anti-misoperation measures. For anti-misoperation functions required for safe production in hazardous environments, these functions need to be programmed individually in the controller's main program and implemented in conjunction with scripts in the human-machine interface. This leads to decreased program readability and inheritance, increased likelihood of program vulnerabilities, and consequently, some unknown security risks. Summary of the Invention

[0009] In view of the above problems, the present invention provides an actuator coil control method and control function block for overcoming or at least partially solving the above problems.

[0010] This invention provides the following solution:

[0011] An actuator coil control method, comprising:

[0012] Receive the linkage working mode trigger signal, and control the system to execute the linkage working mode according to the linkage working mode trigger signal;

[0013] The actual timing of the execution of the target action by the actuator and the arrival detection signal are obtained. Based on the relationship between the actual timing and the preset timing threshold and the arrival detection signal, it is determined whether there is an operational status fault during the execution of the target action by the actuator.

[0014] After determining that the actuator has an operational malfunction, a pause trigger signal is received, and the system is controlled to pause operation based on the pause trigger signal.

[0015] Receive a jog mode trigger signal, and control the actuator to perform actions according to the jog mode trigger signal to eliminate the malfunction of the actuator's operating status;

[0016] Determine whether the current docking position of the actuator is consistent with the docking position when the fault occurred. If the docking position is consistent, generate a system recovery signal.

[0017] Preferably: if the actual action timing time is greater than the preset action time threshold or the arrival detection signal is not in place, it is determined that the actuator has an operational status fault.

[0018] Preferably, the target action includes a setting action and a resetting action.

[0019] A control function block includes an input variable interface group, an input-output variable interface group, and an output variable interface group;

[0020] The input variable interface group includes:

[0021] The function block enable input signal interface is configured to enable the invocation and control of the control function block;

[0022] The device pauses the input signal interface, which is configured to implement pause control of the control function block;

[0023] The device operation mode input signal interface is configured to set the coil operation mode;

[0024] The cylinder position detection signal input interface in the set state is configured to detect whether the actuator has moved to the correct position in the set state;

[0025] The cylinder position detection signal input interface in the reset state is configured to detect whether the actuator has moved to the correct position in the reset state;

[0026] The cylinder action time setting input interface is configured to set a reasonable operating time for the cylinder's positioning action.

[0027] The reset cylinder action time setting input interface is configured to set a reasonable operating time for the cylinder reset action;

[0028] The input / output variable interface group includes:

[0029] Automatic operation trigger signal input interface, configured to realize coil control triggering during normal production operation;

[0030] The manual operation trigger signal input interface is configured to manually control the triggering of the coil in the paused state of jog mode or linkage mode;

[0031] The output variable interface group includes:

[0032] The solenoid valve coil mapped output signal interface is configured to connect to the hardware mapped address of the controller output variable that controls the solenoid valve coil to achieve direct control of the coil;

[0033] The cylinder operating status output signal interface is configured to output the cylinder status signal in real time, so that the main program of the main equipment can read the cylinder status signal in real time and respond according to the process requirements.

[0034] Preferably, the function block enable input signal interface, the device pause input signal interface, the cylinder position detection signal input interface in the set state, the cylinder position detection signal input interface in the reset state, the automatic operation trigger signal input interface, the manual operation trigger signal input interface, and the solenoid valve coil mapping output signal interface are all connected to Boolean variables.

[0035] Preferably, the device operation mode input signal interface is connected to an integer variable.

[0036] Preferably, both the cylinder action time setting input interface during setting and the cylinder action time setting input interface during reset are connected to dual integer variables.

[0037] Preferably, the cylinder operating status output signal interface is connected to an unsigned integer variable.

[0038] Preferably, the device pause input signal interface shares the same signal as the main device pause command, and the device operation mode input signal interface shares the same signal as the main device operation mode.

[0039] Preferably, the cylinder status signals include a cylinder setting action completed signal, a cylinder reset action completed signal, a cylinder setting action operation fault signal, a cylinder reset action operation fault signal, a cylinder setting action in operation signal, a cylinder reset action in operation signal, and a cylinder docking position error signal.

[0040] According to specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0041] This application provides an actuator coil control method and control function block. It uses two different variables—manual and automatic—to control the coil control output point. Furthermore, it separates the coil operation buttons in the user interface from the coil control variables in the automatic control program, effectively avoiding human error and improving the stability and safety of the system's automatic operation. It also provides a cylinder docking position detection function, preventing safety hazards caused by sudden system startup when the cylinder is docked in an incorrect position. Employing a modular design, it enables safe control and status monitoring of a single electronically controlled coil, making it easily applicable to coil control in various non-standard equipment.

[0042] Of course, any product implementing this invention does not necessarily need to achieve all of the advantages described above at the same time. Attached Figure Description

[0043] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly described below. Obviously, the drawings described below are merely some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.

[0044] Figure 1 This is a flowchart of an actuator coil control method provided in an embodiment of the present invention;

[0045] Figure 2 This is a schematic diagram of the interface arrangement of the control function block provided in an embodiment of the present invention;

[0046] Figure 3 This is a schematic diagram of the user interface provided in an embodiment of the present invention;

[0047] Figure 4 This is a schematic diagram of the control function block control flow provided in an embodiment of the present invention. Detailed Implementation

[0048] 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 a part of the embodiments of the present invention, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention are within the scope of protection of the present invention.

[0049] See Figure 1 This invention provides an actuator coil control method, such as... Figure 1 As shown, the method may include:

[0050] S101: Receive the linkage working mode trigger signal, and control the system to execute the linkage working mode according to the linkage working mode trigger signal;

[0051] S102: Obtain the actual motion timing time and the arrival detection signal of the actuator performing the target action; determine whether there is a running state fault during the execution of the target action by the actuator based on the relationship between the actual motion timing time and the preset motion time threshold and the arrival detection signal.

[0052] S103: After determining that there is a malfunction in the operation of the actuator, receive a pause trigger signal, and control the system to pause operation according to the pause trigger signal;

[0053] S104: Receive a jog mode trigger signal, and control the actuator to perform actions according to the jog mode trigger signal to eliminate the operating status fault of the actuator;

[0054] S105: Determine whether the current docking position of the actuator is consistent with the docking position when the fault occurred, and generate a system recovery signal after confirming that the docking positions are consistent.

[0055] The actuator coil control method provided in this application can monitor the status of the actuator, realize safe control and status monitoring of a single electronic control coil, and can be easily applied to the coil control of various non-standard equipment. It eliminates the need for individual programming in the controller's main program, thus preserving program readability and inheritance, and reducing the likelihood of program vulnerabilities.

[0056] Furthermore, if the actual action timing time exceeds a preset action time threshold or the positioning detection signal is not in place, it is determined that the actuator has an operational malfunction. The target action includes a setting action and a reset action.

[0057] To facilitate use with existing systems, this application embodiment may also provide a control function block, including an input variable interface group, an input-output variable interface group, and an output variable interface group;

[0058] The input variable interface group includes:

[0059] The function block enable input signal interface is configured to enable the invocation and control of the control function block;

[0060] The device pauses the input signal interface, which is configured to implement pause control of the control function block;

[0061] The device operation mode input signal interface is configured to set the coil operation mode;

[0062] The cylinder position detection signal input interface in the set state is configured to detect whether the actuator has moved to the correct position in the set state;

[0063] The cylinder position detection signal input interface in the reset state is configured to detect whether the actuator has moved to the correct position in the reset state;

[0064] The cylinder action time setting input interface is configured to set a reasonable operating time for the cylinder's positioning action.

[0065] The reset cylinder action time setting input interface is configured to set a reasonable operating time for the cylinder reset action;

[0066] The input / output variable interface group includes:

[0067] Automatic operation trigger signal input interface, configured to realize coil control triggering during normal production operation;

[0068] The manual operation trigger signal input interface is configured to manually control the triggering of the coil in the paused state of jog mode or linkage mode;

[0069] The output variable interface group includes:

[0070] The solenoid valve coil mapped output signal interface is configured to connect to the hardware mapped address of the controller output variable that controls the solenoid valve coil to achieve direct control of the coil;

[0071] The cylinder operating status output signal interface is configured to output the cylinder status signal in real time, so that the main program of the main equipment can read the cylinder status signal in real time and respond according to the process requirements.

[0072] In practical applications, the variable types that need to be connected to each signal interface can be determined according to the interface type. Specifically, in one implementation, this application embodiment can provide that the function block enable input signal interface, the device pause input signal interface, the cylinder position detection signal input interface in the set state, the cylinder position detection signal input interface in the reset state, the automatic operation trigger signal input interface, the manual operation trigger signal input interface, and the solenoid valve coil mapping output signal interface are all connected to Boolean variables. The device operation mode input signal interface is connected to an integer variable. The cylinder action time setting input interface in the set state and the cylinder action time setting input interface in the reset state are both connected to double integer variables. The cylinder operation status output signal interface is connected to an unsigned integer variable.

[0073] Furthermore, the device pause input signal interface shares the same signal as the main device pause command, and the device operation mode input signal interface shares the same signal as the main device operation mode.

[0074] Furthermore, the cylinder status signals include a cylinder setting action completed signal, a cylinder reset action completed signal, a cylinder setting action operation fault signal, a cylinder reset action operation fault signal, a cylinder setting action in operation signal, a cylinder reset action in operation signal, and a cylinder docking position error signal.

[0075] Combination Figure 2 , Figure 3 , Figure 4 The control function blocks provided in the embodiments of this application will be described in detail.

[0076] The coil control function block interface includes three types: input variable interface, input / output variable interface, and output variable interface. The specific definition and function of the input variable interface are as follows:

[0077] Function block enable input signal EN(1): A Boolean variable needs to be connected to it as the control interface for whether this function block is called in the main program. When the input signal is TRUE, the function block is enabled.

[0078] Device pause input signal Pause(2): A Boolean variable needs to be connected to it as the input interface for the pause command of this function block, so as to realize the pause control of this function block. It usually shares the same signal with the main device pause command. When the input signal is TRUE, the function block pauses.

[0079] The device operation mode input signal nRunMode(3) needs to be connected to an integer variable as the input interface of the operation mode of this function block to realize the setting of the coil operation mode. It usually shares the same signal with the main device operation mode. When the signal variable is equal to 0, the coil is in the jog control mode. When the signal variable is greater than 0, the coil is in the linkage control mode.

[0080] In the set state, the cylinder position detection signal input I_Extend(4) needs to be connected to a Boolean variable as an external detection signal input interface for the cylinder and other actuators to move into position in the coil set state. This is used to detect whether the actuator has moved into position in the set state. When the input signal is TRUE, the actuator has moved into position.

[0081] The cylinder position detection signal input I_Back(5) in the reset state needs to be connected to a Boolean variable as an external detection signal input interface for the cylinder and other actuators to move into position in the coil reset state. This is used to detect whether the actuator has moved into position in the reset state. When the input signal is TRUE, the actuator has moved into position.

[0082] When the cylinder is set, the cylinder action time setting input Time_Extend(6) needs to be connected to a double integer variable as the setting input interface for the time required for the cylinder to move to the position when the coil is set under normal conditions. This is used to set the reasonable running time of the cylinder setting action. When the running time after the cylinder actually performs the setting action is less than the set time, the cylinder setting action is normal. Otherwise, the cylinder setting action is judged to be abnormal.

[0083] The cylinder action time setting input during reset is Time_Back(7); it needs to be connected to a double integer variable as the setting input interface for the time required for the cylinder to move to the position when the coil is reset under normal conditions, so as to realize the setting of the reasonable running time of the cylinder reset action. When the running time after the cylinder actually performs the reset action is less than the set time, the cylinder reset action is normal; otherwise, the cylinder reset action is judged to be abnormal.

[0084] The specific definitions and functions of the input / output variable interface are as follows:

[0085] Automatic operation trigger signal StartFlag_A(8): It needs to be connected to a Boolean variable as the input interface of the coil start trigger signal in the linkage mode. This signal is applied to the automatic control program of the main equipment to realize the coil control trigger during normal production operation. When the signal is TRUE, the solenoid valve coil is energized.

[0086] Manual run trigger signal StartFlag_M(9): A Boolean variable needs to be connected to it as the input interface for the coil start trigger signal when the jog mode or the linkage mode is paused. This signal is directly associated with the button on the operation interface to realize the manual control trigger of the coil in the jog mode or the linkage mode paused state. When this signal is TRUE, the solenoid valve coil is energized.

[0087] The specific definition and functions of the output variable interface are as follows:

[0088] The output signal Q(10) of the solenoid valve coil needs to be connected to a Boolean variable as the output interface of the function block control instruction. It is connected to the hardware mapping address of the controller output variable that controls the solenoid valve coil in order to realize direct control of the coil.

[0089] Cylinder running status output signal Status_Out(11): It needs to be connected to an unsigned integer variable as the output interface of the function block status signal to realize the real-time output of the cylinder status signal. The function block defines 7 cylinder running states, namely, cylinder setting action in place (signal = 1), cylinder reset action in place (signal = 2), cylinder setting action operation failure (signal = 3), cylinder reset action operation failure (signal = 4), cylinder setting action in operation (signal = 5), cylinder reset action in operation (signal = 6), cylinder docking position error (signal = 100). The main program of the equipment can read the status signal in real time and respond according to the specific process requirements.

[0090] Function block enable output signal ENO(12): Function block enable output interface, which does not need to be connected to actual variables.

[0091] The specific design method of the user interface used in conjunction with this function block is as follows:

[0092] The dedicated operation window for coil control includes two operation buttons, two position indicator lights, and a running status display text bar. The specific functions of each component are described below:

[0093] Set (13): Set button, associated with the manual run trigger signal StartFlag_M (9), used to realize the manual set trigger of the coil in the paused state of jog mode or linkage mode, so that the solenoid valve coil is energized;

[0094] Reset (14): Reset button, associated with the manual run trigger signal StartFlag_M (9), is used to realize the manual reset trigger of the coil in the paused state of jog mode or linkage mode, so that the solenoid valve coil is de-energized;

[0095] Position in place (15): Indicator light, associated with the cylinder position detection signal input signal I_Extend (4) in the position state, used to realize the real-time display of the cylinder position action operation position detection sensor status;

[0096] Reset in place (16): Indicator light, associated with the cylinder position detection signal input signal I_Back (5) in the reset state, used to realize the real-time display of the cylinder reset action operation position detection sensor status;

[0097] Status display text box (17): Data output box, associated with the cylinder operating status output signal Status_Out (11), used to realize the real-time display of the cylinder operating status.

[0098] The operation flow and usage instructions for the coil control program and user interface are as follows:

[0099] When the function block enable input signal EN(1) is TRUE, the control program divides the coil control into two modes according to the running mode signal nRunMode(3): jog control mode and linkage control mode, in order to meet the requirements of the production process.

[0100] Jog control mode: When nRunMode(3) equals 0, it is jog control mode. At this time, the manual run trigger signal StartFlag_M(9) is valid. The operator can directly control the coil through the button in the operation interface. When the set position (13) button is pressed, the manual run trigger signal StartFlag_M(9) is TRUE. The cylinder performs the set position action and starts the timer. When the action time reaches the set position, the cylinder action time setting Time_Extend(6) is checked. The status of the cylinder position detection I_Extend(4) is checked. When the signal is TRUE, the cylinder moves normally to the position. The cylinder running status output signal Status_Out(11) is assigned a value of 1. When the signal is FALSE, the cylinder does not move to the position within the specified time. The cylinder running status output signal Status_Out(11) is assigned a value of 3, which means that the cylinder has failed to perform the set position action. The operator is prompted to take appropriate action. When the reset (14) button is pressed, the manual operation trigger signal StartFlag_M (9) is FALSE, the cylinder performs the set action and starts the timer. When the action time reaches the reset cylinder action time setting Time_Back (7), the status of the cylinder position detection I_Back (5) is checked. When the signal is TRUE, the cylinder moves normally to the position and the cylinder operation status output signal Status_Out (11) is assigned a value of 2. When the signal is FALSE, the cylinder does not move to the position within the specified time and the cylinder operation status output signal Status_Out (11) is assigned a value of 4, which means that the cylinder has failed to perform the reset action and prompts the operator to take appropriate action.

[0101] Linkage control mode: When nRunMode(3) is greater than 0, it is the linkage control mode. In this mode, according to the state of the device pause input signal Pause(2), there are two situations: paused state and non-pause state.

[0102] Interlocking control mode pause state: When nRunMode(3) is greater than 0 and the equipment pause input signal Pause(2) is TRUE, the control program enters the interlocking control mode pause state. At this time, the manual run trigger signal StartFlag_M(9) is valid, and the operator can directly control the coil through the buttons in the operation interface. This mode is usually used for fault handling operations during normal production operation of the equipment. The specific operation process is the same as the jog control mode. In this mode, when the equipment recovers from the pause state to normal operation, the operator should restore the cylinder state to the final state when the fault occurred. Otherwise, the cylinder running status output signal Status_Out(11) is assigned a value of 100, which means that the cylinder docking position is incorrect and the equipment is not allowed to resume operation.

[0103] Non-pause state in linkage control mode: When nRunMode(3) is greater than 0 and the equipment pause input signal Pause(2) is FALSE, the control program enters the normal production state of linkage control mode. At this time, the automatic run trigger signal StartFlag_A(8) is valid, the button trigger function of the operation interface is disabled, the human-machine interface is closed, and the coil is automatically controlled by the control program. This mode can avoid the influence of human factors on process stability during production and improve the stability and safety of automatic operation of the system.

[0104] Taking a tooling positioning mechanism as an example, the system requires that when the material arrives at the positioning mechanism, the positioning cylinder extends to position the material. After the positioning is completed and the cylinder retracts, the material can continue to be conveyed to the next station. If the cylinder action is abnormal due to material jamming or other reasons during the extension or retraction process, the operator can change the working state of the cylinder and manually intervene in the material through the cylinder jog button on the operation interface after the system enters the pause state, until the fault is successfully resolved and the system continues to run.

[0105] The specific program design and workflow are as follows:

[0106] 1. Edit the positioning cylinder control function block and operation interface: EN(1) is forced to TRUE, Pause(2) is associated with the system main pause signal, nRunMode(3) is associated with the system running mode signal, I_Extend(4) is associated with the positioning cylinder extension detection, I_Back(5) is associated with the positioning cylinder retraction detection, Time_Extend(6) is set to 5s, Time_Back(7) is set to 5s, StartFlag_A(8) is associated with the positioning cylinder control variable used in the automatic control program, StartFlag_M(9) is associated with the positioning cylinder manual control variable, Q(10) is associated with the control output point of the positioning cylinder coil, Status_Out(11) is associated with the positioning cylinder status variable, Set(13) and Reset(14) are both associated with the positioning cylinder manual control variable, Set in place(15) is associated with the positioning cylinder extension detection, Reset in place(16) is associated with the positioning cylinder retraction detection, Status display text box(17) is associated with the positioning cylinder status variable.

[0107] 2. Actual working process: When nRunMode(3) is set to be greater than 0, the system is in the linkage working mode. When the material arrives at the positioning mechanism, StartFlag_A(8) is set to TRUE. The positioning cylinder performs the extension action. When the cylinder running time reaches 5s set by Time_Extend(6), it is judged whether I_Extend(4) has received the extension to position signal. If the position signal is triggered, Status_Out(11) is set to 1. The positioning of the material is completed. StartFlag_A(8) is set to FALSE. The positioning cylinder performs the retraction action. When the cylinder running time reaches 5s set by Time_Back(7), it is judged whether I_Back(5) has received the retraction to position signal. If the position signal is triggered, Status_Out(11) is set to 2. The system continues to run and transport the material to the next station.

[0108] 3. During this process, if the positioning cylinder fails to extend or retract properly, Status_Out(11) will be assigned a value of 3 or 4, and the cylinder will remain in its current position. At this time, the operator presses the system pause button, and the system enters a paused state. The operator finds the problem, confirms the cause of the fault, and manually controls the cylinder by clicking the control button on the operation interface to restore the positioning cylinder's operation. If the stopping position of the positioning cylinder is inconsistent with the stopping position when the fault occurred, Status_Out(11) will be assigned a value of 100, indicating that the cylinder's stopping position is incorrect. At this time, the operator needs to restore the positioning cylinder to its correct position before the system can resume operation.

[0109] Adopting a modular design concept, this system enables safe control and status monitoring of single-electrified coils, making it easily applicable to coil control in various non-standard equipment. Coil control is divided into three different scenarios: inching control, paused state in linkage control, and non-pause state in linkage control. Different control methods are assigned to the coils for each scenario. Two different variables, manual and automatic, are used to control the coil's output point. By distinguishing between manual and automatic control based on specific application scenarios, human error can be effectively avoided. The state of the coil-controlled cylinder is finely divided into five states, facilitating separate access and processing by the system's linkage program and operators for each state. A cylinder docking position detection function is designed to prevent safety hazards caused by sudden system startup when the cylinder is docked in an incorrect position. The coil operation buttons in the user interface are separated from the coil control variables in the automatic control program, eliminating the impact of human factors on process stability and improving the stability and safety of the system's automatic operation.

[0110] In summary, the control function block provided in this application uses two different variables—manual and automatic—to control the coil control output point. It also distinguishes the coil operation buttons in the user interface from the coil control variables in the automatic control program, effectively avoiding human error and improving the stability and safety of the system's automatic operation. It provides a cylinder docking position detection function, preventing safety hazards caused by sudden system startup when the cylinder is docked in an incorrect position. Adopting a modular design, it enables safe control and status monitoring of single-electrified coils, and can be easily applied to coil control in various non-standard equipment.

[0111] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, 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 limitations, 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.

[0112] As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of this application.

[0113] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for system or system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and relevant parts can be referred to the descriptions in the method embodiments. The systems and system embodiments described above are merely illustrative. 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; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0114] 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 present invention.

Claims

1. A control function block, characterized in that, A method for controlling actuator coils, the control function module includes an input variable interface group, an input-output variable interface group, and an output variable interface group; The input variable interface group includes: The function block enable input signal interface is configured to enable the invocation and control of the control function block; The device pauses the input signal interface, which is configured to implement pause control of the control function block; The device operation mode input signal interface is configured to set the coil operation mode; The cylinder position detection signal input interface in the set state is configured to detect whether the actuator has moved to the correct position in the set state; The cylinder position detection signal input interface in the reset state is configured to detect whether the actuator has moved to the correct position in the reset state; The cylinder action time setting input interface is configured to set a reasonable operating time for the cylinder's positioning action. The reset cylinder action time setting input interface is configured to set a reasonable operating time for the cylinder reset action; The input / output variable interface group includes: Automatic operation trigger signal input interface, configured to realize coil control triggering during normal production operation; The manual operation trigger signal input interface is configured to manually control the triggering of the coil in the paused state of jog mode or linkage mode; The output variable interface group includes: The solenoid valve coil mapped output signal interface is configured to connect to the hardware mapped address of the controller output variable that controls the solenoid valve coil to achieve direct control of the coil; The cylinder operating status output signal interface is configured to output the cylinder status signal in real time, so that the main program of the main equipment can read the cylinder status signal in real time and respond according to the process requirements; The function block enable input signal interface, the device pause input signal interface, the cylinder position detection signal input interface in the set state, the cylinder position detection signal input interface in the reset state, the automatic run trigger signal input interface, the manual run trigger signal input interface, and the solenoid valve coil mapping output signal interface are all connected to Boolean variables; The cylinder status signals include the cylinder set action completed signal, the cylinder reset action completed signal, the cylinder set action operation fault signal, the cylinder reset action operation fault signal, the cylinder set action in operation signal, the cylinder reset action in operation signal, and the cylinder docking position error signal. The actuator coil control method includes: Receive the linkage working mode trigger signal, and control the system to execute the linkage working mode according to the linkage working mode trigger signal; The actual timing of the actuator performing the target action and the arrival detection signal are obtained. Based on the relationship between the actual timing and a preset action time threshold and the arrival detection signal, it is determined whether there is an operational fault during the execution of the target action by the actuator. The target action includes a setting action and a resetting action. If the actual action timing time is greater than the preset action time threshold or the arrival detection signal is not in place, it is determined that the actuator action has an operational status fault; if the actuator action has an operational status fault, a pause trigger signal is received, and the system is controlled to pause operation according to the pause trigger signal; Receive a jog mode trigger signal, and control the actuator to perform actions according to the jog mode trigger signal to eliminate the malfunction of the actuator's operating status; Determine whether the current docking position of the actuator is consistent with the docking position when the fault occurred. If the docking position is consistent, generate a system recovery signal.

2. The control function block according to claim 1, characterized in that, The device operation mode input signal interface is connected to an integer variable.

3. The control function block according to claim 1, characterized in that, Both the cylinder action time setting input interface during setting and the cylinder action time setting input interface during reset are connected to dual integer variables.

4. The control function block according to claim 1, characterized in that, The cylinder operating status output signal interface is connected to an unsigned integer variable.

5. The control function block according to claim 1, characterized in that, The device pause input signal interface shares the same signal as the main device pause command, and the device operation mode input signal interface shares the same signal as the main device operation mode.