A method, system and electronic device for controlling a complex sequence of forced and logical associations for a die casting machine
By collecting multi-source data from the die-casting machine and combining it with process rules to generate a composite test sequence, and by monitoring and executing logical correlation control in real time, the single-point operation defect of the die-casting machine IO signal forced technology is solved, and an efficient and safe testing process is achieved.
Patent Information
- Application Number
- CN202610534713.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-04-22
- Publication Date
- 2026-05-26
Smart Images

Figure CN122085980A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of die-casting machine testing technology, and in particular to a composite sequence forced and logical association control method, system and electronic equipment for die-casting machines. Background Technology
[0002] In system testing and fault diagnosis of die-casting machines, the forced operation of input / output (I / O) signals has become an indispensable key technology. It is important to note that forced testing for die-casting machines differs fundamentally from ordinary testing: ordinary testing relies on the natural operation of the equipment under real-world conditions to passively observe system behavior, while forced testing actively injects specific I / O signal states to artificially construct test scenarios (such as faults, boundary conditions, or combinations of multiple signal timings) that are difficult to trigger during normal operation. This allows for proactive and precise verification of control logic, safety interlocks, and intermittent faults. Because forced testing can simulate specific signal states without actual hardware constraints, thereby verifying the correctness of control logic, it has become the technical foundation for the next generation of die-casting control systems to test the effectiveness of safety interlocks and reproduce intermittent faults. However, current signal forced operation technology in the die-casting field still relies on manual adjustment in real time, typically involving only single signals with a crude intervention disconnected from the process, which is insufficient to meet the requirements of high-end die-casting machines for systematic and high-reliability verification.
[0003] To address the aforementioned issues, existing forced control systems mainly fall into two categories: one involves manual, real-time switching of a single I / O point between "set to 0" and "set to 1" via a host computer or human-machine interface (HMI); the other adds a simple delay function to the single-point forced operation, allowing the setting of the delay time for a single signal to be turned on or off. Both methods solve the problem of simple signal substitution, but they have significant shortcomings: First, manual operation is an instantaneous, single-point operation, unable to simulate complex scenarios where multiple signals change according to a specific time sequence; second, the forced action is completely unrelated to the actual operating state of the die-casting machine, essentially a static test, which is highly susceptible to test distortion; finally, for intermittent system failures, existing technologies are essentially unable to effectively and safely reproduce them, significantly increasing the troubleshooting cycle. Summary of the Invention
[0004] To address the problems of existing die-casting machine I / O signal forcing technologies, such as reliance on manual single-point operation, lack of timing coordination capabilities, detachment from actual process logic, and difficulty in reproducing intermittent faults, this invention proposes a composite sequence forcing and logical association control method for die-casting machines, including: Collect multi-source operating data of the die-casting machine, and determine the process status of the die-casting machine based on the multi-source operating data and the preset process rules. Obtain a pre-stored forced test sequence and generate a corresponding test instruction. The forced test sequence includes a trigger condition and forced steps arranged in a logical order. During the operation of the die-casting machine, the triggering condition is monitored in real time. If it is met, the test instruction is executed according to the timing logic of the forced step. The process status and die-casting machine safety parameters are monitored in real time, and the interruption and reset of the test commands are controlled based on the detection results.
[0005] Furthermore, the process of collecting multi-source operating data of the die-casting machine and determining the process state of the die-casting machine based on the multi-source operating data and in conjunction with preset process rules includes: Acquire key signals that are strongly correlated with preset process rules. These key signals include: limit switch status, real-time values of pressure sensor, displacement sensor, and temperature sensor, as well as PLC internal variables. The key signals are matched with the rule conditions in the process rules, and the corresponding status labels are determined based on the matching results. Determine whether the status label is stable within a preset time period. Once the status label is stable within the preset time period, determine the process status of the die-casting machine under the status label.
[0006] Furthermore, the triggering condition includes at least one of the following settings: Absolute delay condition: It is set to the length of time that needs to elapse after the die-casting machine system starts; Process conditions: These are the process conditions that the die-casting machine needs to be in. Combination conditions: These are the logical relationships that must be satisfied between multiple detection parameters; Event trigger condition: It is set to the edge change of the preset signal to be detected; The mandatory steps include: The target I / O channel represents the input / output channel that requires a mandatory action. Forced action refers to the level state or signal form applied to the target I / O channel; Timing parameters, including the delay time of the forced step relative to the previous forced step and the duration of the action hold; The step of acquiring the pre-stored forced test sequence and generating the corresponding test instructions includes: Obtain a pre-stored graphical or scripted forced test sequence and compile it into a corresponding instruction list; wherein, each instruction in the instruction list is parsed into an action instruction for the corresponding forced step during execution, and the action instruction is used to control the level state or signal form of the target IO channel.
[0007] Furthermore, the real-time monitoring of whether the triggering condition is met, and if so, the execution of the test instruction according to the timing logic of the forced step, includes: When the triggering condition is detected to be met, a corresponding execution instance is created and an ID is assigned, and it is checked whether the target IO channel corresponding to each forced step in the forced test sequence is available; When all target IO channels are available, the test instruction is parsed based on the inter-step logic, and an action instruction corresponding to the current forced action is sent to the IO module to which the current target IO channel belongs, and the action instruction is executed through the IO module.
[0008] Furthermore, the real-time monitoring of the process status and die-casting machine safety parameters, and the control of the interruption and reset of the test commands based on the detection results, specifically includes: During the execution of the action command, the process status and die-casting machine safety parameters are monitored in real time; When the process status and die-casting machine safety parameters are detected to trigger the preset safety interruption rules, a safety interruption command and a reset command are generated. Based on the safety interruption command, the execution of the current action command is stopped, and a reset command is sent to the IO module to which all target IO channels that have been subjected to forced actions in this forced test sequence belong. At the same time, the interruption event is recorded.
[0009] To address the aforementioned problems, another aspect of the present invention provides a composite sequence forcing and logical association control system for die-casting machines, comprising: The process status perception and analysis module is used to collect multi-source operating data of the die-casting machine and determine the process status of the die-casting machine based on the multi-source operating data and in combination with preset process rules. The composite sequence orchestration and management module is used to obtain pre-stored forced test sequences and generate corresponding test instructions. The forced test sequence includes triggering conditions and forced steps arranged in logical order. The execution engine module is used to monitor in real time whether the triggering conditions are met during the operation of the die-casting machine, and when they are met, to execute the test instructions according to the timing logic of the forced steps; The safety monitoring and logic reset module is used to monitor the process status and die-casting machine safety parameters in real time, and control the interruption and reset of the test command based on the detection results.
[0010] Furthermore, the process status sensing and analysis module includes: The acquisition unit is used to acquire key signals that are strongly correlated with preset process rules. The key signals include: limit switch status, real-time values of pressure sensor, displacement sensor, temperature sensor, and PLC internal variables. A matching unit is used to match the key signal with the rule conditions in the process rules, and determine the corresponding status label based on the matching result; The judgment unit is used to determine whether the status label is stable within a preset time period. When the status label is stable within the preset time period, the process status of the die casting machine under the status label is determined.
[0011] Furthermore, the triggering condition includes at least one of the following settings: Absolute delay condition: It is set to the length of time that needs to elapse after the die-casting machine system starts; Process conditions: These are the process conditions that the die-casting machine needs to be in. Combination conditions: These are the logical relationships that must be satisfied between multiple detection parameters; Event trigger condition: It is set to the edge change of the preset signal to be detected; The mandatory steps include: The target I / O channel represents the input / output channel that requires a mandatory action. Forced action refers to the level state or signal form applied to the target I / O channel; Timing parameters, including the delay time of the forced step relative to the previous forced step and the duration of the action hold; The step of acquiring the pre-stored forced test sequence and generating the corresponding test instructions includes: Obtain a pre-stored graphical or scripted forced test sequence and compile it into a corresponding instruction list; wherein, each instruction in the instruction list is parsed into an action instruction for the corresponding forced step during execution, and the action instruction is used to control the level state or signal form of the target IO channel.
[0012] Furthermore, the security monitoring and logic reset module is specifically used for: During the execution of the action command, the process status and die-casting machine safety parameters are monitored in real time; When the process status and die-casting machine safety parameters are detected to trigger the preset safety interruption rules, a safety interruption command and a reset command are generated. Based on the safety interruption command, the execution of the current action command is stopped, and a reset command is sent to the IO module to which all target IO channels that have been subjected to forced actions in this forced test sequence belong. At the same time, the interruption event is recorded.
[0013] To address the aforementioned problems, in another aspect of this invention, an electronic device is provided, comprising: a processor and a memory storing a program, the program including instructions that, when executed by the processor, cause the processor to perform the aforementioned composite sequence forcing and logical association control method for die-casting machines.
[0014] Compared with the prior art, the present invention has at least the following beneficial effects: This invention transforms traditional single-point, manual signal-driven operations into a composite test sequence that is triggered by conditions and automatically executed according to preset logic, thereby achieving automation and structuring of the testing process. By synchronously monitoring process status and safety parameters during execution and dynamically responding to anomalies to achieve interruption and reset, the safety and controllability of the testing process are significantly improved. This method supports repeatable and safe simulation and verification of complex working conditions or occasional faults, effectively improving the testing efficiency and reliability of the die-casting machine control system during the research and development, debugging, and fault diagnosis stages. Attached Figure Description
[0015] Figure 1 This is a flowchart of a composite sequence forced and logical association control method for die-casting machines according to an embodiment of the present invention; Figure 2 This is a schematic diagram of a composite sequence forcing and logical association control system for die-casting machines according to an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of an electronic device in an embodiment of the present invention. Detailed Implementation
[0016] The following are specific embodiments of the present invention, which are described in conjunction with the accompanying drawings. However, the present invention is not limited to these embodiments.
[0017] To address the problems of existing die-casting machine IO signal forcing technology, such as reliance on manual single-point operation, lack of timing coordination capabilities, detachment from actual process logic, and difficulty in reproducing intermittent faults, such as... Figure 1 As shown, this invention proposes a composite sequence forcing and logical association control method for die-casting machines, comprising: Collect multi-source operating data of the die-casting machine, and determine the process status of the die-casting machine based on the multi-source operating data and the preset process rules. Specifically, this embodiment establishes a high-speed and stable data connection with the PLC controller and sensor group at the bottom of the die-casting machine through Ethernet or serial communication. Collect multi-source operational data that is strongly correlated with the process status, including but not limited to: Digital input signals: 0 / 1 states of each limit switch, such as "mold closed in place", "ejector pin returned to its original position", "safety door locked"; Analog input signals: real-time pressure value output by the pressure sensor, position of the injection rod detected by the displacement sensor, and mold temperature collected by the temperature sensor; PLC internal variables include timers, counters, or specific intermediate variables used to characterize the process progress. These variables can also be used as a basis for judging the current process status.
[0018] In addition, after collecting multi-source operating data, simple processing is also performed, such as filtering analog signals to remove instantaneous electrical interference, and converting the number of pulses from displacement sensors into actual displacement in millimeters to improve the accuracy of subsequent status tag identification.
[0019] The process of collecting multi-source operating data of the die-casting machine and determining the process state of the die-casting machine based on the multi-source operating data and preset process rules includes: Acquire key signals that are strongly correlated with preset process rules. These key signals include: limit switch status, real-time values of pressure sensor, displacement sensor, and temperature sensor, as well as PLC internal variables. The key signals are matched with the rule conditions in the process rules, and the corresponding status labels are determined based on the matching results. Determine whether the status label is stable within a preset time period. Once the status label is stable within the preset time period, determine the process status of the die-casting machine under the status label.
[0020] In this embodiment, the process states include, but are not limited to, typical stages of the die-casting process such as "mold closing," "mold opening," "slow injection," "fast injection," "pressure holding," "hammer return," "energy storage," and "ejection." The process rules are predefined in the system by relevant personnel and take the form of a die-casting machine process state machine. Essentially, it is a set of combined logic conditions based on multi-source operating signals used to deduce the current process state.
[0021] Specifically, each process state corresponds to a set of preset logical judgment conditions and is associated with a unique state label. The system matches the key signals collected in real time with the rule conditions of each process state; when a set of conditions is fully met, its corresponding state label is generated as the current candidate state. Subsequently, the system further determines whether the state label remains stable within a preset time period; only when the label remains stable for a set time is it finally confirmed that the die-casting machine has entered the process state corresponding to that label, thereby transforming scattered sensor signals into reliable process stage information with engineering significance.
[0022] Exemplary logical decision conditions include: If the mold closing limit switch is triggered (value 1) and the clamping force is established (value 1), then the current state is determined to be "mold closing completed"; If the injection displacement is less than 500mm and the injection velocity is greater than 0, the current state is determined to be "low-speed injection". If the actual system pressure is greater than 200 bar and the pressure holding timer runs for less than 5 seconds, the current status is determined to be "pressure holding".
[0023] For example, the rule conditions for the "mold closing" state can be defined as: the mold closing limit switch is not triggered, the mold opening limit switch is released, and the mold closing hydraulic pressure is greater than the preset threshold.
[0024] In addition, the specific explanation regarding determining whether the status label is stable within a preset time period is as follows: Once all the rule conditions for a certain process state are met and a corresponding state label is generated, the system initiates a stability monitoring window of a preset duration (e.g., 50 milliseconds). Within this window, the system continuously samples key signals and repeatedly performs rule matching. If each matching result outputs the same state label, the label is considered stable within the monitoring window, and the die-casting machine is confirmed to have entered the process state corresponding to that label. If any matching result is inconsistent before the end of the window (i.e., the state label changes), the current change is determined to be caused by transient interference, and no state switch is triggered; the original process state is maintained. Through this mechanism, short-term signal jitter is effectively filtered out while ensuring response speed, improving the accuracy and reliability of process state identification.
[0025] Obtain a pre-stored forced test sequence and generate a corresponding test instruction. The forced test sequence includes a trigger condition and forced steps arranged in a logical order. In this embodiment, the system has several preset mandatory test sequences, each with a unique number.
[0026] The step of acquiring the pre-stored forced test sequence and generating the corresponding test instructions includes: Obtain a pre-stored graphical or scripted forced test sequence and compile it into a corresponding instruction list; wherein, each instruction in the instruction list is parsed into an action instruction for the corresponding forced step during execution, and the action instruction is used to control the level state or signal form of the target IO channel.
[0027] The triggering conditions include at least one of the following settings: Absolute delay condition: This is set to the length of time that the die-casting machine system needs to wait after startup; for example, a 10-second delay after system startup. Process status conditions: These are the process states that the die-casting machine needs to be in (such as "mold closing completed", "pressure holding in progress", etc.). Combination conditions: These are the logical relationships that must be satisfied between multiple detection parameters; Specifically, combined conditions refer to the combination of multiple detection values and / or process states through logical operators (such as AND and OR) to form composite judgment rules; for example, "holding pressure AND system pressure > 150 bar" means that the condition is only met when the die casting machine is in the holding pressure stage and the system pressure exceeds 150 bar, or "mold opening OR ejection stage" means that the subsequent logic is triggered when either state is met.
[0028] Event trigger condition: It is set to the edge change of the preset signal to be detected; In this embodiment, the preset signal to be detected refers to a key state quantity or control signal (such as a sensor switch quantity, a die-casting machine running flag, etc.) that is predefined in the system and used to characterize the occurrence of a specific event. The change of its rising or falling edge serves as the basis for event triggering.
[0029] The mandatory steps include: The target I / O channel refers to the input / output channel that requires a forced action. It can be a single I / O point, a set of multiple I / O points (such as all output channels of an I / O module), or an analog I / O channel. Forced action refers to the level state or signal form applied to the target I / O channel; In this embodiment, the forced action refers to an action command applied to the target I / O channel to override its normal logic state. For digital I / O channels, the forced action includes forcing a high level (i.e., logic "1" or ON state) or a low level (i.e., logic "0" or OFF state); for analog I / O channels, the forced action includes setting a specific engineering value or voltage / current output value (such as a specified value within the range of 4–20mA). Furthermore, pulse-type forced actions are also supported, such as outputting a pulse signal of a specified width, with the forced action automatically canceled after the pulse ends, and the channel returning to normal control logic.
[0030] Timing parameters, including the delay time of the forced step relative to the previous forced step and the duration of the action hold; Specifically, timing parameters include: (1) The delay time of the current forced step relative to the end time of the previous forced step; (2) Duration of holding the action command in the current forced step.
[0031] The forced steps are organized according to inter-step logic, which includes at least one of the following: sequential execution, parallel execution, conditional branching, and loop execution.
[0032] In this invention, the arrangement according to logical order refers to organizing the forced steps according to a preset inter-step logic. This inter-step logic includes, but is not limited to: sequential dependencies between steps (serial), simultaneous execution of multiple steps (parallel), branch jumps based on conditional judgments, and dynamic execution paths triggered by events. Therefore, "logical order" does not only refer to a linear order in time, but rather to the overall execution structure defined by the control logic.
[0033] Specifically, the inter-step logic between multiple forced steps adopts a sequential execution mode by default, that is, the current forced step starts to execute after the previous forced step has been executed and after the configured delay time has elapsed.
[0034] Furthermore, the inter-step logic can also support the following advanced orchestration patterns: (1) Parallel execution: allows multiple forced steps to start at the same time, each running its action instructions and timing parameters independently; (2) Conditional branch: After the specified forced step is completed, the system evaluates one or more signal states according to preset judgment conditions, and selects the subsequent forced step to be executed based on the evaluation results; the judgment conditions are configured by the user, including but not limited to the current level state of the target IO channel or event signals from external devices (such as communication messages or host computer instructions); different condition results correspond to different subsequent forced steps; (3) Repeated execution: Repeatedly executes a specified set of consecutive forced steps. The number of loops or termination conditions can be configured.
[0035] By combining the logic between the above steps with the aforementioned action instructions and timing parameters, a structured forced test sequence can be constructed to model typical equipment test scenarios (such as normal operating condition simulation, anomaly injection, and fault recovery processes), thereby transforming test intent into an automatically executable test process.
[0036] During the operation of the die-casting machine, the triggering condition is monitored in real time. If it is met, the test instruction is executed according to the timing logic of the forced step. Specifically, during the operation of the die-casting machine, the triggering condition is monitored in real time. If it is met, the test instruction is executed according to the timing logic of the forced step in the forced test sequence to which the triggering condition belongs. The real-time monitoring checks whether the triggering condition is met. If so, the test instruction is executed according to the timing logic of the forced step, including: When the triggering condition is detected to be met, a corresponding execution instance is created and an ID is assigned, and it is checked whether the target IO channel corresponding to each forced step in the forced test sequence is available; When all target IO channels are available, the test instruction is parsed based on the inter-step logic, and an action instruction corresponding to the current forced action is sent to the IO module to which the current target IO channel belongs, and the action instruction is executed through the IO module.
[0037] It should be noted that when the triggering condition is detected, the die-casting machine's execution engine will execute each forced step step by step according to the predefined logical relationship between steps (including sequential, parallel, or conditional branching): For conditional branches, after the preceding steps are completed, the system evaluates the relevant signal states according to preset judgment conditions, and determines and executes the corresponding subsequent forced steps based on the evaluation results.
[0038] For sequential execution, a timed delay is initiated after the current forced step is completed, and the next forced step is executed only after the delay period expires; For parallel execution, multiple branches can simultaneously initiate their respective delayed and forced steps.
[0039] When executing a forced step, the execution engine sends an action command to the corresponding I / O module, instructing it to apply a forced action to the target I / O channel and maintain that state for the duration specified in the action command. Upon receiving the action command, the I / O module disconnects the channel from the original controller and injects the signal specified in the action command, thereby achieving precise intervention in the physical input / output.
[0040] Through the above mechanism, the system can automatically execute complex forced test processes with timing accuracy at the millisecond or even microsecond level, effectively reproducing sporadic faults that rely on precise signal timing, which is significantly better than traditional methods that rely on manual operation.
[0041] The process status and die-casting machine safety parameters are monitored in real time, and the interruption and reset of the test commands are controlled based on the detection results.
[0042] The real-time monitoring of the process status and die-casting machine safety parameters, and the control of the interruption and reset of the test commands based on the detection results, specifically includes: During the execution of the action command, the process status and die-casting machine safety parameters are monitored in real time; When the process status and die-casting machine safety parameters are detected to trigger the preset safety interruption rules, a safety interruption command and a reset command are generated. Based on the safety interruption command, the execution of the current action command is stopped, and a reset command is sent to the IO module to which all target IO channels that have been subjected to forced actions in this forced test sequence belong. At the same time, the interruption event is recorded.
[0043] Specifically: During the execution of the action command, the process status and safety parameters of the die-casting machine are continuously acquired. The safety parameters include physical emergency stop signals, status signals of safety protection devices (such as safety doors and light curtains), limit position signals of moving parts (such as molds and ejector pins), threshold status of key process variables (such as system pressure and temperature), and legality information of the process flow (such as whether the state machine has an illegal jump or abnormal state duration). The acquired parameters are compared with the preset safety interruption rules in real time. The safety interruption rules are logical judgment conditions set based on the above safety parameters and process status, including but not limited to the following types: simple conditions that are triggered when a single safety parameter exceeds the limit, or composite conditions that are triggered when multiple parameters and the current process status are met together. The composite conditions may involve logical AND, logical OR relationships, and constraints on state combinations or timing, such as "emergency stop signal is valid", "safety door is open and equipment is not in standby state" or "system pressure exceeds the limit and pressure relief valve is not open". Once any safety interruption rule is met, a safety interruption instruction and a reset instruction are immediately generated to stop the currently executing action instruction and all subsequent forced steps to be executed. A reset instruction is also sent to the IO modules to which all target IO channels that have been forcibly operated in this test sequence belong, so that the corresponding IO channels can restore the original PLC control signal path. At the same time, the trigger time of this interruption event, the activated safety interruption rule, the process status at that time, and the number of the forced test sequence are recorded to a non-volatile storage medium.
[0044] like Figure 2 As shown, this embodiment of the invention also proposes a composite sequence forcing and logic association control system for die-casting machines, including: The process status perception and analysis module is used to collect multi-source operating data of the die-casting machine and determine the process status of the die-casting machine based on the multi-source operating data and in combination with preset process rules. The process status sensing and analysis module includes: The acquisition unit is used to acquire key signals that are strongly correlated with preset process rules. The key signals include: limit switch status, real-time values of pressure sensor, displacement sensor, temperature sensor, and PLC internal variables. A matching unit is used to match the key signal with the rule conditions in the process rules, and determine the corresponding status label based on the matching result; The judgment unit is used to determine whether the status label is stable within a preset time period. When the status label is stable within the preset time period, the process status of the die casting machine under the status label is determined.
[0045] The composite sequence orchestration and management module is used to obtain pre-stored forced test sequences and generate corresponding test instructions. The forced test sequence includes triggering conditions and forced steps arranged in logical order. The step of acquiring the pre-stored forced test sequence and generating the corresponding test instructions includes: Obtain a pre-stored graphical or scripted forced test sequence and compile it into a corresponding instruction list; wherein, each instruction in the instruction list is parsed into an action instruction for the corresponding forced step during execution, and the action instruction is used to control the level state or signal form of the target IO channel.
[0046] The triggering conditions include at least one of the following settings: Absolute delay condition: It is set to the length of time that needs to elapse after the die-casting machine system starts; Process conditions: These are the process conditions that the die-casting machine needs to be in. Combination conditions: These are the logical relationships that must be satisfied between multiple detection parameters; Event trigger condition: It is set to the edge change of the preset signal to be detected; The mandatory steps include: The target I / O channel represents the input / output channel that requires a mandatory action. Forced action refers to the level state or signal form applied to the target I / O channel; Timing parameters, including the delay time of the forced step relative to the previous forced step and the duration of the action hold; The forced steps have inter-step logic, which includes at least one of the following: sequential execution, parallel execution, conditional branching, and loop execution. The execution engine module is used to monitor in real time whether the triggering conditions are met during the operation of the die-casting machine, and when they are met, to execute the test instructions according to the timing logic of the forced steps; The safety monitoring and logic reset module is used to monitor the process status and die-casting machine safety parameters in real time, and control the interruption and reset of the test command based on the detection results.
[0047] The security monitoring and logic reset module is specifically used for: During the execution of the action command, the process status and die-casting machine safety parameters are monitored in real time; When the process status and die-casting machine safety parameters are detected to trigger the preset safety interruption rules, a safety interruption command and a reset command are generated. Based on the safety interruption command, the execution of the current action command is stopped, and a reset command is sent to the IO module to which all target IO channels that have been subjected to forced actions in this forced test sequence belong. At the same time, the interruption event is recorded.
[0048] This invention collects multi-source operating data from a die-casting machine and, based on this data and pre-defined process rules, determines the process state of the die-casting machine. It acquires a pre-stored forced test sequence and generates corresponding test instructions. The forced test sequence includes trigger conditions and forced steps arranged in a logical order. During the operation of the die-casting machine, it monitors in real time whether the trigger conditions are met. If met, the test instructions are executed according to the timing logic of the forced steps. Simultaneously, it continuously monitors the process state and safety parameters of the die-casting machine and controls the interruption and reset of the test instructions based on the monitoring results. Thus, this invention transforms traditional single-point, manual signal forced operation into a composite test sequence driven by trigger conditions and automatically executed according to pre-defined logic, achieving automation and structuring of the testing process. By synchronously monitoring the process state and safety parameters during execution and dynamically responding to anomalies to achieve interruption and reset, it significantly improves the safety and controllability of the testing process. This method supports repeatable and safe simulation and verification of complex working conditions or occasional faults, effectively improving the testing efficiency and reliability of the die-casting machine control system during the R&D, debugging, and fault diagnosis stages.
[0049] This invention also provides an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor. The memory stores a computer program executable by the at least one processor, which, when executed by the at least one processor, causes the electronic device to perform a composite sequence forcing and logical association control method for a die-casting machine according to an embodiment of this invention.
[0050] This invention also provides a non-transitory machine-readable medium storing a computer program, wherein the computer program, when executed by a computer's processor, is used to cause the computer to perform a composite sequence forcing and logical association control method for a die-casting machine according to an embodiment of this invention.
[0051] This invention also provides a computer program product, including a computer program, wherein when executed by a computer's processor, the computer program is used to cause the computer to execute a composite sequence forcing and logical association control method for die-casting machines according to an embodiment of this invention.
[0052] refer to Figure 3The present invention will now describe a structural block diagram of an electronic device that can serve as a server or client in embodiments of the present invention, which is an example of a hardware device that can be applied to various aspects of the present invention. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0053] like Figure 3 As shown, the electronic device includes a computing unit 401, which can perform various appropriate actions and processes based on a computer program stored in a read-only memory (ROM) 402 or a computer program loaded from a storage unit 408 into a random access memory (RAM) 403. The RAM 403 may also store various programs and data required for the operation of the electronic device. The computing unit 401, ROM 402, and RAM 403 are interconnected via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0054] Multiple components in the electronic device are connected to I / O interface 405, including: input unit 406, output unit 407, storage unit 408, and communication unit 409. Input unit 406 can be any type of device capable of inputting information into the electronic device. Input unit 406 can receive input digital or character information and generate key signal inputs related to user settings and / or function control of the electronic device. Output unit 407 can be any type of device capable of presenting information and may include, but is not limited to, a display, speaker, video / audio output terminal, vibrator, and / or printer. Storage unit 408 may include, but is not limited to, disks and optical discs. Communication unit 409 allows the electronic device to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers, and / or chipsets, such as Bluetooth devices, WiFi devices, WiMax devices, cellular communication devices, and / or the like.
[0055] The computing unit 401 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, CPUs, graphics processing units (GPUs), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. The computing unit 401 performs a composite sequence enforcement and logical association control method and processing for die-casting machines as described above. For example, in some embodiments, the method embodiments of the present invention can be implemented as a computer program tangibly contained in a machine-readable medium, such as storage unit 408. In some embodiments, part or all of the computer program can be loaded and / or installed on an electronic device via ROM 402 and / or communication unit 409. In some embodiments, the computing unit 401 can be configured by any other suitable means (e.g., by means of firmware) to perform the composite sequence enforcement and logical association control method for die-casting machines described above.
[0056] A computer program for implementing a composite sequence forcing and logical association control method for a die-casting machine according to embodiments of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program can be executed entirely on the machine, partially on the machine, as a standalone software package partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0057] In the context of embodiments of the present invention, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable signal medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0058] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indication will also change accordingly.
[0059] Furthermore, in this invention, descriptions involving terms such as "first," "second," and "a" are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0060] In this invention, unless otherwise explicitly specified and limited, the terms "connection," "fixed," etc., should be interpreted broadly. For example, "fixed" can mean a fixed connection, a detachable connection, or an integral part; it can mean a mechanical connection or an electrical connection; it can mean a direct connection or an indirect connection through an intermediate medium; it can mean the internal communication of two components or the interaction between two components, unless otherwise explicitly limited. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0061] Furthermore, the technical solutions of the various embodiments of the present invention can be combined with each other, but only if they are based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the scope of protection claimed by the present invention.
Claims
1. A composite sequence forced and logical association control method for die-casting machines, characterized in that, include: Collect multi-source operating data of the die-casting machine, and determine the process status of the die-casting machine based on the multi-source operating data and the preset process rules. Obtain a pre-stored forced test sequence and generate a corresponding test instruction. The forced test sequence includes a trigger condition and forced steps arranged in a logical order. During the operation of the die-casting machine, the triggering condition is monitored in real time. If it is met, the test instruction is executed according to the timing logic of the forced step. The process status and die-casting machine safety parameters are monitored in real time, and the interruption and reset of the test commands are controlled based on the detection results.
2. The composite sequence forced and logical association control method for die-casting machines according to claim 1, characterized in that, The process of collecting multi-source operating data from the die-casting machine and determining the process state of the die-casting machine based on the multi-source operating data and preset process rules includes: Acquire key signals that are strongly correlated with preset process rules. These key signals include: limit switch status, real-time values of pressure sensor, displacement sensor, and temperature sensor, as well as PLC internal variables. The key signals are matched with the rule conditions in the process rules, and the corresponding status labels are determined based on the matching results. Determine whether the status label is stable within a preset time period. Once the status label is stable within the preset time period, determine the process status of the die-casting machine under the status label.
3. The composite sequence forced and logical association control method for die-casting machines according to claim 1, characterized in that, The triggering conditions include at least one of the following settings: Absolute delay condition: It is set to the length of time that needs to elapse after the die-casting machine system starts; Process conditions: These are the process conditions that the die-casting machine needs to be in. Combination conditions: These are the logical relationships that must be satisfied between multiple detection parameters; Event trigger condition: It is set to the edge change of the preset signal to be detected; The mandatory steps include: The target I / O channel represents the input / output channel that requires a mandatory action. Forced action refers to the level state or signal form applied to the target I / O channel; Timing parameters, including the delay time of the forced step relative to the previous forced step and the duration of the action hold; The step of acquiring the pre-stored forced test sequence and generating the corresponding test instructions includes: Obtain a pre-stored graphical or scripted forced test sequence and compile it into a corresponding instruction list; wherein, each instruction in the instruction list is parsed into an action instruction for the corresponding forced step during execution, and the action instruction is used to control the level state or signal form of the target IO channel.
4. The composite sequence forced and logical association control method for die-casting machines according to claim 3, characterized in that, The real-time monitoring checks whether the triggering condition is met. If so, the test instruction is executed according to the timing logic of the forced step, including: When the triggering condition is detected to be met, a corresponding execution instance is created and an ID is assigned, and it is checked whether the target IO channel corresponding to each forced step in the forced test sequence is available; When all target IO channels are available, the test instruction is parsed based on the inter-step logic, and an action instruction corresponding to the current forced action is sent to the IO module to which the current target IO channel belongs, and the action instruction is executed through the IO module.
5. A composite sequence forced and logical association control method for die-casting machines according to claim 4, characterized in that, The real-time monitoring of the process status and die-casting machine safety parameters, and the control of the interruption and reset of the test commands based on the detection results, specifically includes: During the execution of the action command, the process status and die-casting machine safety parameters are monitored in real time; When the process status and die-casting machine safety parameters are detected to trigger the preset safety interruption rules, a safety interruption command and a reset command are generated. Based on the safety interruption command, the execution of the current action command is stopped, and a reset command is sent to the IO module to which all target IO channels that have been subjected to forced actions in this forced test sequence belong. At the same time, the interruption event is recorded.
6. A composite sequence forcing and logic association control system for die-casting machines, characterized in that, include: The process status perception and analysis module is used to collect multi-source operating data of the die-casting machine and determine the process status of the die-casting machine based on the multi-source operating data and in combination with preset process rules. The composite sequence orchestration and management module is used to obtain pre-stored forced test sequences and generate corresponding test instructions. The forced test sequence includes triggering conditions and forced steps arranged in logical order. The execution engine module is used to monitor in real time whether the triggering conditions are met during the operation of the die-casting machine, and when they are met, to execute the test instructions according to the timing logic of the forced steps; The safety monitoring and logic reset module is used to monitor the process status and die-casting machine safety parameters in real time, and control the interruption and reset of the test command based on the detection results.
7. A composite sequence forcing and logic association control system for die-casting machines according to claim 6, characterized in that, The process status sensing and analysis module includes: The acquisition unit is used to acquire key signals that are strongly correlated with preset process rules. The key signals include: limit switch status, real-time values of pressure sensor, displacement sensor, temperature sensor, and PLC internal variables. A matching unit is used to match the key signal with the rule conditions in the process rules, and determine the corresponding status label based on the matching result; The judgment unit is used to determine whether the status label is stable within a preset time period. When the status label is stable within the preset time period, the process status of the die casting machine under the status label is determined.
8. A composite sequence forcing and logic association control system for die-casting machines according to claim 6, characterized in that, The triggering conditions include at least one of the following settings: Absolute delay condition: It is set to the length of time that needs to elapse after the die-casting machine system starts; Process conditions: These are the process conditions that the die-casting machine needs to be in. Combination conditions: These are the logical relationships that must be satisfied between multiple detection parameters; Event trigger condition: It is set to the edge change of the preset signal to be detected; The mandatory steps include: The target I / O channel represents the input / output channel that requires a mandatory action. Forced action refers to the level state or signal form applied to the target I / O channel; Timing parameters, including the delay time of the forced step relative to the previous forced step and the duration of the action hold; The step of acquiring the pre-stored forced test sequence and generating the corresponding test instructions includes: Obtain a pre-stored graphical or scripted forced test sequence and compile it into a corresponding instruction list; wherein, each instruction in the instruction list is parsed into an action instruction for the corresponding forced step during execution, and the action instruction is used to control the level state or signal form of the target IO channel.
9. A composite sequence forcing and logic association control system for die-casting machines according to claim 8, characterized in that, The security monitoring and logic reset module is specifically used for: During the execution of the action command, the process status and die-casting machine safety parameters are monitored in real time; When the process status and die-casting machine safety parameters are detected to trigger the preset safety interruption rules, a safety interruption command and a reset command are generated. Based on the safety interruption command, the execution of the current action command is stopped, and a reset command is sent to the IO module to which all target IO channels that have been subjected to forced actions in this forced test sequence belong. At the same time, the interruption event is recorded.
10. An electronic device, comprising: A processor and a memory storing a program, characterized in that the program includes instructions that, when executed by the processor, cause the processor to perform a composite sequence forcing and logical association control method for a die-casting machine according to any one of claims 1 to 5.
Citation Information
Patent Citations
Quality inspection early warning system for impregnated paper production
CN120759151A
Multifunctional test tool and method for EUROMAP interface of injection molding machine
CN120857059A
Multi-device cooperative closed-loop test method and device based on state machine driving and storage medium
CN121255620A
Test case generation method and system based on industrial agent
CN121386734A
