State transition control method, device and system for automatic loading station
An automated loading station control method that acquires condition parameters and status operation tags solves the scalability and response speed problems of traditional loading stations, achieves efficient and reliable status transition control, and improves the robustness and maintainability of the system.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-16
- Publication Date
- 2026-04-07
AI Technical Summary
Traditional automated loading stations suffer from insufficient scalability, limited response speed, and poor robustness when dealing with complex state logic and frequent state transitions.
By acquiring condition parameters, the current operating status of the automated loading station is determined, and corresponding instructions are executed based on the status operation label, thereby achieving modular and efficient status transition control.
It improves the control efficiency, reliability, and maintainability of automated loading stations, ensures the accuracy and orderliness of operation, reduces CPU execution time, and enhances the robustness of the system.
Smart Images

Figure CN121806592A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the field of industrial automation production, and in particular to a control method, device and system for an automated loading station. BACKGROUND
[0002] In the fine chemical and pharmaceutical industries, automated loading stations are key links in the production process, responsible for accurate material discharge and transfer. The stable and efficient operation of these automated loading stations directly affects product quality and production efficiency.
[0003] Traditional automation control methods often have some limitations when dealing with complex state logic and frequent state transitions, such as insufficient independence of running logic and state management logic, low module level, and therefore insufficient scalability, limited response speed, and poor robustness.
[0004] Therefore, there is an urgent need in the prior art for a more structured, modular, easy-to-understand and manage, and fast-responding control method to improve the control efficiency, reliability and maintainability of automated loading stations. SUMMARY
[0005] To solve the above technical problems, embodiments of the present application provide a state transition control method, device and system for an automated loading station to solve some or all of the above technical problems.
[0006] The present application first provides a state transition control method for an automated loading station, comprising the following steps:
[0007] Obtaining condition parameters, the condition parameters representing logical conditions that need to be met by each running state of the automated loading station;
[0008] Based on the condition parameters, determining the current running state of the automated loading station, the running state including at least one of fault, shutdown, idle, replenishment, and discharge;
[0009] Based on the current running state of the automated loading station, determining different state running labels;
[0010] Based on the state running labels, executing corresponding instructions to complete corresponding actions.
[0011] The present application also provides a state transition control device for an automated loading station, comprising:
[0012] A parameter acquisition module, the parameter acquisition module acquires condition parameters, the condition parameters representing logical conditions that need to be met by each running state of the automated loading station;
[0013] The operating status acquisition module makes a judgment based on the condition parameters to obtain the current operating status of the automated loading station. The operating status includes at least one of fault, shutdown, idle, replenishment, and unloading.
[0014] The status operation tag acquisition module determines the current operation status of the loading station and points to different status operation tags.
[0015] The execution module executes corresponding instructions based on the status running label to complete the corresponding action.
[0016] In addition, this application also provides a state transition control system for an automated loading station, including an automated loading station and a control device connected thereto, wherein the control device is provided with a processor, which is used to execute instructions to implement the methods described in the preceding embodiments.
[0017] According to the method, apparatus, and system of this application embodiments, by acquiring condition parameters, the current operating status of the automated loading station is determined based on the condition parameters. Then, based on the operating status, different status operation tags are pointed to, and corresponding instructions are executed based on the different status operation tags to complete the corresponding actions. It can be seen that the method, apparatus, and system first define a series of clear operating states for the automated loading station to comprehensively cover its work cycle and possible abnormal situations. Based on the defined operating states, a hierarchical and prioritized status operation logic is implemented to ensure that the operation of the loading station can be carried out accurately and orderly according to real-time conditions. This structure is highly modular, has a fast response speed, and is easy to manage. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings.
[0019] Figure 1 This is a schematic diagram of an automated loading station system architecture according to an embodiment of the present invention;
[0020] Figure 2 This is a flowchart of a state transition control method for an automated loading station according to an embodiment of this application;
[0021] Figure 3 This is a state transition diagram according to an embodiment of the present invention;
[0022] Figure 4This is a schematic diagram of the structure of a state transition control device for an automated loading station according to an embodiment of this application.
[0023] List of reference numerals in the attached diagram:
[0024] S100, State transition control method for automated loading stations (S100)
[0025] S101. Obtain condition parameters, wherein the condition parameters represent the logical conditions that each operating state of the automated loading station needs to meet;
[0026] S102. Based on the condition parameters, a judgment is made to obtain the current operating status of the automated loading station. The operating status includes at least one of fault, shutdown, idle, replenishment, and unloading.
[0027] S103. Based on the current operating status of the automated loading station, a judgment is made to point to different operating status labels;
[0028] S104. Based on the status operation tag, execute the corresponding instructions to complete the corresponding action;
[0029] 1. Automated loading station;
[0030] 2. Control equipment;
[0031] 3. Feeding equipment;
[0032] 11, 12, 13 Feeding equipment;
[0033] 100 Automated Loading Station Status Transition Control Device
[0034] 101 Parameter Acquisition Module
[0035] 102 Running Status Acquisition Module
[0036] 103 Status Running Tag Acquisition Module
[0037] 104 Execution Module
[0038] a. Fault; b. Shutdown; c. Idle; d. Replenishment;
[0039] e. Feed the material to A;
[0040] f. Feed the material to B;
[0041] g. Discharge material to C; Detailed Implementation
[0042] To enable those skilled in the art to better understand the technical solutions in the embodiments of this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be noted that the described embodiments are only some embodiments of the embodiments of this application, and not all embodiments.
[0043] First aspect
[0044] Figure 1 This is a schematic diagram of the structure of an automated loading station system according to an embodiment of the present invention;
[0045] like Figure 1 As shown, an automated loading station system according to an embodiment of this application includes an automated loading station 1 and a control device 2 connected to the automated loading station 1. The control device 2 is equipped with a processor for executing instructions to implement a state transition control method for the automated loading station 1 based on this embodiment of the application. This state transition control method will be described in detail later. It should be noted that the control device 3 can exist as an independent hardware device, or it can be integrated into the automated loading station or other devices in the system (e.g., the controller in the feeding device or unloading device). Of course, the control device can also exist in the form of a remote server, and there is no strict limitation here.
[0046] According to another embodiment of this application, the automated loading station system further includes a feeding device 3 located upstream of and connected to the automated loading station, and unloading devices (11, 12, 13) located downstream of and connected to the automated loading station. A control device 2 is connected to the feeding device 3 and the unloading devices (11, 12, 13) respectively to receive signals from these devices and send control commands to them. Further, the feeding device includes upstream feeding pipelines and valves, and the unloading device includes pipelines for the liquid material in the automated loading station to flow downstream and corresponding valves. Figure 1 As shown, it includes three downstream feeding branches: A, B, and C.
[0047] Second aspect
[0048] Figure 2 This is a flowchart of a state transition control method for an automated loading station according to an embodiment of this application; as follows: Figure 2 As shown, an automated loading station state transition control method according to an embodiment of this application includes:
[0049] S101. Obtain condition parameters, wherein the condition parameters represent the logical conditions that each operating state of the automated loading station needs to meet;
[0050] According to one embodiment of this application, the condition parameter is derived from at least one of instrument status, operator operation instructions, and device request signals.
[0051] Specifically, the condition parameters can come from instrument malfunctions or alarms in the system, start or stop operation commands input by the operator on the human-machine interface, an electrical signal from a sensor in the downstream equipment that is closed or open, feedback signals from the current material station that does not meet the feeding amount, etc. Of course, these condition parameters also include various other parameters involved in the operation of the automated loading station. Those skilled in the art can make certain extensions according to the actual application scenario, which will not be elaborated here.
[0052] S102. Based on the condition parameters, a judgment is made to obtain the current operating status of the loading station, the operating status including at least one of fault, shutdown, idle, replenishment, and unloading;
[0053] Specifically, a series of operating states are defined for the automated loading station, and these operating states can be:
[0054] Fault a: The system has detected a fault or abnormality, requiring manual intervention or troubleshooting.
[0055] b: The system is in a shut-down or non-running state.
[0056] Idle c: The system is in standby mode, waiting to receive new material feeding tasks.
[0057] Material replenishment d: The automated loading station is performing material replenishment operations.
[0058] Material feeding: Material is being fed from the bottling area to the downstream area;
[0059] According to another possible embodiment of this application, based on the obtained condition parameters, it is first determined whether the operating state is "fault". If not, it is then determined whether the operating state is "off", "idle" or "replenishing". If none of the above condition parameters are met, it is then determined whether the operating state is set to feed to A (e), feed to B (f), or feed to (g).
[0060] According to one embodiment of this application, the operating state includes respective entry and exit conditions.
[0061] Figure 3 This is a running state transition diagram in a state transition control method according to an embodiment of this application;
[0062] like Figure 3 As shown, the transition relationships between the various operating states include:
[0063] Fault a: In any state, if the equipment malfunctions (including instrument failure, alarm, etc.), the program will automatically switch to the fault state. After the fault is cleared, the operator must manually shut it down first.
[0064] Close (b): In any state, the operator can shut down the device via the human-machine interface, which is suitable for some emergency operations; if there is a equipment malfunction, the program will automatically switch to the fault state; or the operator can enter the fault state through operation.
[0065] Idle c: The operator can manually switch to idle state when the device is off; or it can enter idle state after the replenishment d / feeding to A / feeding to B / feeding to C program is completed during automatic program execution; when the device malfunctions or alarms, it will automatically switch from this state to fault state, or the program will automatically set to the corresponding running state when it detects any request signal for replenishment / feeding to A / feeding to B / feeding to C.
[0066] Replenishment d: When the material level in the feeding station is insufficient or there is a low material level alarm, the program automatically enters this state from idle to execute the replenishment program. After replenishment is completed, the program switches back to idle from this state. If the equipment malfunctions or alarms during the execution of this state, the program will automatically switch back to fault state.
[0067] Feeding to A / Feeding to B / Feeding to C: When a downstream branch issues a feeding request, the program automatically enters this state from idle to execute the feeding procedure. After feeding is completed, the program switches back to idle from this state. If the equipment malfunctions or alarms during execution in this state, the program will automatically switch back to fault state.
[0068] As can be seen, each running state has its own entry and exit conditions during the entire program execution process. Different running states are transitioned and switched based on these different entry and exit conditions. This state-transition-based control method makes the program's execution path clear and controllable, greatly enhancing the system's robustness. Even in unexpected situations, it can be handled through predefined fault states and recovery logic.
[0069] According to another embodiment of this application, the step of determining the current operating status of the automated loading station based on the condition parameters is implemented using the CASE statement. The CASE statement provides a more direct and faster jump method. This significantly reduces CPU execution time, thereby improving the response speed of the control system.
[0070] S103. Based on the current operating status of the loading station, determine the operating status and point to different status tags.
[0071] Status operation tags are used to characterize the actions that the loading station will perform; specifically, status operation tags can include shutdown operation tags, idle operation tags, replenishment operation tags, and unloading operation tags; among them, unloading operation tags can be further divided into unloading to A operation tags, unloading to B operation tags, and unloading to C operation tags, depending on the actual situation.
[0072] According to another embodiment of this application, a series of Boolean flags are set, and different Boolean flags are activated according to the current operating state of the loading station obtained above. Based on the different activated Boolean flags, different operating status labels are pointed to.
[0073] Specifically, Boolean flags can include fault flags, off flags, idle flags, replenishment flags, and unloading flags. When the current operating state is determined to be closed, only the closed flag is set to TRUE, and all other flags are set to FALSE; when the current operating state is determined to be faulty, only the fault flag is set to TRUE, and all other flags are set to FALSE; when the current operating state is determined to be idle, only the idle flag is set to TRUE, and all other flags are set to FALSE; when the current operating state is determined to be replenishing, only the replenishing flag is set to TRUE, and all other flags are set to FALSE; when the current operating state is determined to be unloading to A, only the unloading to A flag is set to TRUE, and all other flags are set to FALSE; when the current operating state is determined to be unloading to A, only the unloading to B flag is set to TRUE, and all other flags are set to FALSE; when the current operating state is determined to be unloading to C, only the unloading to C flag is set to TRUE, and all other flags are set to FALSE.
[0074] According to another embodiment of this application, when the current operating state value is determined to be "0" (a defined state for resetting the flag bit), all flag bits related to a specific operating state (such as fault flag bit, shutdown flag bit, idle flag bit, replenishment flag bit, and unloading flag bit) are set to FALSE.
[0075] In this step, by setting different Boolean flags to point to different running status labels, the readability and maintainability of the program are further improved, and it adapts to the PLC's scan cycle execution, ensuring that all necessary conditions have been evaluated before a jump occurs, which helps prevent race conditions or unexpected jumps.
[0076] S104. Based on the status operation tag, execute the corresponding instructions to complete the corresponding actions; the instructions include at least one of closing all valves, automatically replenishing materials, and discharging materials.
[0077] In this step, for different status tags, corresponding instructions are set, and the execution of these instructions is used to complete the corresponding operations.
[0078] According to another embodiment of this application, the instructions include at least one of switching a valve, starting or stopping a motor, PID auto-start, PID cumulative reset, PID timing start, and PID reset.
[0079] For example, the instruction to open the feeding valve is: open the valve in the feeding equipment, so that the material is sent to the tank of the automated loading station through the pipeline in the feeding equipment; the instruction to open the discharging valve is: open the valve in the discharging equipment, so that the material is sent to the tank in the discharging equipment through the pipeline in the discharging equipment, and so on.
[0080] According to another embodiment of this application, this step is implemented by an encapsulated subroutine or function.
[0081] For the above steps of executing corresponding instructions based on the state running label, by setting the running logic, the control of the program is assigned to the specific logic that handles the current active running state, which helps to realize modular and structured control logic, so that the action logic of each state can be written and maintained independently.
[0082] According to some embodiments of this application, SCL (Structured Control Language) code is used to construct a robust architecture for the control program. SCL is a high-level programming language that, compared to traditional graphical programming languages (such as ladder diagrams (LAD), statement lists (STL), function block diagrams (CFC), or sequential function charts (SFC), is closer to text-based programming and has stronger expressive power and better modularity.
[0083] Third aspect
[0084] According to a third aspect of this application, a state transition control device 100 for an automated loading station is provided, comprising: a parameter acquisition module 101, an operating state acquisition module 102, a state operating tag acquisition module 103, and an execution module 104. The parameter acquisition module 100 is used to acquire condition parameters, which characterize the logical conditions that each operating state of the automated loading station needs to satisfy. The operating state acquisition module 102 makes a judgment based on the condition parameters to obtain the current operating state of the automated loading station, which includes at least one of fault, shutdown, idle, replenishment, and unloading. The state operating tag acquisition module 103 makes a judgment based on the current operating state of the loading station to point to different state operating tags. The execution module 104 executes corresponding instructions based on the state operating tags to complete the corresponding actions.
[0085] According to another embodiment of this application, the condition parameter is derived from at least one of instrument status, operator operation instructions, or device request signals.
[0086] According to another embodiment of this application, the instructions include at least one of switching a valve, starting or stopping a motor, PID auto-start, PID cumulative reset, PID timing start, and PID timing reset.
[0087] According to another embodiment of this application, the operating state includes respective entry and exit conditions; specifically including:
[0088] Fault a: In any state, if the equipment malfunctions (including instrument failure, alarm, etc.), the program will automatically switch to the fault state. After the fault is cleared, the operator must manually shut it down first.
[0089] Close (b): In any state, the operator can shut down the device via the human-machine interface, which is suitable for some emergency operations; if there is a equipment malfunction, the program will automatically switch to the fault state; or the operator can enter the fault state through operation.
[0090] Idle c: The operator can manually switch to idle from the off state; or it can enter the idle state after the replenishment / unloading to A / unloading to B / unloading to C program is completed during the automatic execution of the program; when the equipment malfunctions or alarms, it will automatically switch from this state to fault, or the program will automatically set to the corresponding running state when it detects any request signal for replenishment / unloading to A / unloading to B / unloading to C.
[0091] Replenishment d: When the material level in the feeding station is insufficient or there is a low material level alarm, the program automatically enters this state from idle to execute the replenishment program. After replenishment is completed, the program switches back to idle from this state. If the equipment malfunctions or alarms during the execution of this state, the program will automatically switch back to fault state.
[0092] Feeding to A (e) / Feeding to B (f) Feeding to C (g): When the downstream branch issues a feeding request, the program automatically enters this state from idle to execute the feeding program. After feeding is completed, the program switches from this state to idle. If the equipment malfunctions or alarms during the execution of this state, the program will automatically switch from this state to fault.
[0093] Based on the above embodiments, according to another embodiment of this application, a Boolean flag setting module is further included. The Boolean flag setting module is used to set a series of Boolean flags, activate different Boolean flags based on the current operating state of the automated loading station, and point to different operating status labels based on the different activated Boolean flags.
[0094] The contents of this device embodiment and the aforementioned method embodiments belong to the same inventive concept. The beneficial effects of the contents of this device embodiment and the aforementioned method embodiments are the same as the beneficial effects of the corresponding embodiments of the aforementioned methods. Therefore, they can be understood according to the embodiments of the methods described above, and will not be repeated here.
[0095] The present invention has been shown and described in detail above with reference to the accompanying drawings and preferred embodiments. However, the present invention is not limited to these disclosed embodiments. Based on the above embodiments, those skilled in the art will know that more embodiments of the present invention can be obtained by combining the code review methods in the different embodiments. These embodiments are also within the protection scope of the present invention.
Claims
1. A state transition control method (S100) for an automated loading station (1), characterized in that, Includes the following steps: S101. Obtain condition parameters, wherein the condition parameters represent the logical conditions that each operating state of the automated loading station needs to meet; S102. Based on the condition parameters, a judgment is made to obtain the current operating status of the automated loading station. The operating status includes at least one of fault, shutdown, idle, replenishment, and unloading. S103. Based on the current operating status of the automated loading station, a judgment is made to point to different operating status labels; S104. Based on the status operation tag, execute the corresponding instructions to complete the corresponding action.
2. The method according to claim 1, characterized in that, The condition parameters are derived from at least one of the instrument status, operator operation instructions, or device request signals.
3. The method according to claim 1, characterized in that, The instructions include at least one of the following: valve switching, motor starting / stopping, PID auto-start, PID cumulative reset, PID timing start, and PID timing reset.
4. The method according to claim 1, characterized in that, The operating states include their respective entry and exit conditions.
5. The method according to claim 1, characterized in that, The determination is based on the current operating status of the automated loading station to obtain the corresponding operating status label, and further includes: setting a series of Boolean flags, activating different Boolean flags based on the current operating status of the automated loading station, and pointing to different operating status labels based on the different activated Boolean flags.
6. The method according to claim 5, characterized in that, The Boolean flags include at least one of the following: fault flag, shut-off flag, idle flag, replenishment flag, and unloading flag.
7. The method according to claim 1, characterized in that, The CASE statement is used to make judgments based on conditional parameters in order to obtain the current operating status of the automated loading station; Furthermore, the execution of corresponding instructions based on the state-based running tag is implemented through encapsulated subroutines or functions.
8. A state transition control device (100) for an automated loading station, characterized in that, include: The parameter acquisition module (101) acquires condition parameters, which represent the logical conditions that each operating state of the automated loading station needs to meet. The operating status acquisition module (102) makes a judgment based on the condition parameters to obtain the current operating status of the automated loading station. The operating status includes at least one of fault, shutdown, idle, replenishment, and unloading. The status operation tag acquisition module (103) determines the status operation tag based on the current operation status of the loading station and points to different status operation tags. The execution module (104) executes corresponding instructions based on the status running label to complete the corresponding action.
9. A state transition control device (100) for an automated loading station according to claim 8, characterized in that, It also includes a Boolean flag setting module, which is used to set a series of Boolean flags, activate different Boolean flags based on the current operating status of the automated loading station, and point to different status operation labels based on the different activated Boolean flags.
10. A state transition control system (200) for an automated loading station, characterized in that, It includes an automated loading station (1) and a control device (2) connected thereto, wherein the control device (2) is provided with a processor for executing instructions to implement the method as described in claims 1 to 7.