Control method, device and equipment of safety interlocking all-in-one machine and storage medium

By encapsulating the function code snippet of the security interlock all-in-one machine, and calling the function when receiving the startup signal, the construction and calling of the security interlock all-in-one machine control program toolkit is solved, and the efficiency and security of the control program are improved.

CN120295178APending Publication Date: 2025-07-11SHENZHEN AUTOWARE SCI&TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510300658.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-14
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

The existing technology lacks the control program toolkit for the security interlocking machine, and cannot be effectively built and called, resulting in inefficiency of the control program.

Method used

By obtaining the function list of the safety interlocking all-in-one machine, the code segments of static electricity, oil spill, gas phase flow, crane pipe connection, combustible gas and car-sliding alarm functions are encapsulated to form the control program tool kit of the safety interlocking all-in-one machine, and when the start signal is received, the corresponding function is called to send the vehicle loading signal.

Benefits of technology

The construction and call of the security interlocking all-in-one control program toolkit is realized, which improves the development efficiency and security of the control program, and ensures the safety and efficiency of the job.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120295178A_ABST
    Figure CN120295178A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of control, and discloses a control method, device and equipment of a safety interlocking all-in-one machine and a storage medium, and the method comprises the steps: obtaining a function list of the safety interlocking all-in-one machine; reading an identifier of an electrostatic alarm function, an identifier of an oil spilling alarm function, an identifier of a gas phase flow alarm function, an identifier of a crane pipe connection alarm function, an identifier of a combustible gas alarm function and an identifier of a vehicle sliding alarm function in the function list; executing a packaging instruction on the file to obtain a toolkit of a control program of the safety interlocking all-in-one machine; calling a first function, a second function, a third function, a fourth function, a fifth function and a sixth function from the toolkit; when the value returned by the first function, the value returned by the second function, the value returned by the third function, the value returned by the fourth function, the value returned by the fifth function and the value returned by the sixth function are all normal values, a loading allowing signal is sent to the quantitative loading controller. According to the invention, the calling efficiency of the toolkit of the control program can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of control technologies, and particularly to a control method, device, equipment and storage medium for a safety interlock integrated machine. Background Art

[0002] The safety interlock integrated machine is a safety protection device specially designed for the oil delivery system. The safety interlock integrated machine can effectively prevent the oil delivery system from being damaged due to overload, short circuit or other abnormal reasons, and ensure the safe operation of the oil delivery system.

[0003] However, to adjust and optimize the control program of the safety interlock integrated machine, a tool kit for the control program of the safety interlock integrated machine is required. Since there is no tool kit for the control program of the safety interlock integrated machine in the prior art, how to construct the tool kit for the control program of the safety interlock integrated machine and how to call the tool kit are both technical problems that need to be urgently solved. Summary of the Invention

[0004] The present invention provides a control method, device, computer equipment and storage medium for a safety interlock integrated machine to solve the technical problems of how to construct the tool kit for the control program of the safety interlock integrated machine and how to call the tool kit.

[0005] In a first aspect, a control method for a safety interlock integrated machine is provided, including:

[0006] Obtaining a function list of the safety interlock integrated machine;

[0007] Reading the identifiers of the static electricity alarm function, the oil spill alarm function, the gas phase flow alarm function, the crane pipe connection alarm function, the combustible gas alarm function, and the vehicle slipping alarm function in the function list;

[0008] Encapsulating the code segment corresponding to the identifier of the static electricity alarm function to obtain a first function, encapsulating the code segment corresponding to the identifier of the oil spill alarm function to obtain a second function, encapsulating the code segment corresponding to the identifier of the gas phase flow alarm function to obtain a third function, encapsulating the code segment corresponding to the identifier of the crane pipe connection alarm function to obtain a fourth function, encapsulating the code segment corresponding to the identifier of the combustible gas alarm function to obtain a fifth function, and encapsulating the code segment corresponding to the identifier of the vehicle slipping alarm function to obtain a sixth function;

[0009] Saving the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function in a file, and executing a packaging instruction on the file to obtain a tool kit for the control program of the safety interlock integrated machine;

[0010] When receiving the start loading signal sent by the quantitative loading controller, call the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function from the toolkit.

[0011] When the values returned by the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are all normal values, control the sending module to send an allow loading signal to the quantitative loading controller.

[0012] Furthermore, the identifiers of the static electricity alarm function, the oil spill alarm function, the gas flow alarm function, the loading arm connection alarm function, the combustible gas alarm function, and the vehicle slipping alarm function in the read function list include:

[0013] Traverse the function list and access the first function item, the second function item, the third function item, the fourth function item, the fifth function item, and the sixth function item in the function list.

[0014] Extract the identifier of the static electricity alarm function from the first function item, extract the identifier of the oil spill alarm function from the second function item, extract the identifier of the gas flow alarm function from the third function item, extract the identifier of the loading arm connection alarm function from the fourth function item, extract the identifier of the combustible gas alarm function from the fifth function item, and extract the identifier of the vehicle slipping alarm function from the sixth function item.

[0015] Furthermore, encapsulating the code segment corresponding to the identifier of the static electricity alarm function to obtain the first function, encapsulating the code segment corresponding to the identifier of the oil spill alarm function to obtain the second function, encapsulating the code segment corresponding to the identifier of the gas flow alarm function to obtain the third function, encapsulating the code segment corresponding to the identifier of the loading arm connection alarm function to obtain the fourth function, encapsulating the code segment corresponding to the identifier of the combustible gas alarm function to obtain the fifth function, and encapsulating the code segment corresponding to the identifier of the vehicle slipping alarm function to obtain the sixth function, includes:

[0016] Obtain the code segment corresponding to the identifier of the static electricity alarm function, the code segment corresponding to the identifier of the oil spill alarm function, the code segment corresponding to the identifier of the gas flow alarm function, the code segment corresponding to the identifier of the loading arm connection alarm function, the code segment corresponding to the identifier of the combustible gas alarm function, and the code segment corresponding to the identifier of the vehicle slipping alarm function.

[0017] Encapsulate the code segments corresponding to the identifiers of the electrostatic alarm function to obtain the first function, encapsulate the code segments corresponding to the identifiers of the oil spill alarm function to obtain the second function, encapsulate the code segments corresponding to the identifiers of the gas flow alarm function to obtain the third function, encapsulate the code segments corresponding to the identifiers of the loading arm connection alarm function to obtain the fourth function, encapsulate the code segments corresponding to the identifiers of the combustible gas alarm function to obtain the fifth function, and encapsulate the code segments corresponding to the identifiers of the vehicle rolling alarm function to obtain the sixth function.

[0018] Further, save the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function in a file, and execute the packaging instruction on the file to obtain a tool package for the control program of the safety interlock integrated machine, including:

[0019] Use test cases to test the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function. When the test results of the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are all target results, save the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function in a file;

[0020] According to the packaging instruction, perform a packaging operation on the file to obtain a tool package for the control program of the safety interlock integrated machine.

[0021] Further, when receiving the start loading signal sent by the quantitative loading controller, call the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function from the tool package, including:

[0022] When receiving the start loading signal sent by the quantitative loading controller, load the tool package according to the storage address of the tool package;

[0023] Call the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function from the tool package.

[0024] Further, when the values returned by the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are all normal values, control the sending module to send an allow loading signal to the quantitative loading controller, including:

[0025] When the values returned by the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are all normal values, generate an allow loading signal;

[0026] The control sending module sends an allow-loading signal to the quantitative loading controller.

[0027] Further, after the control sending module sends an allow-loading signal to the quantitative loading controller when the values returned by the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are all normal values, the control method of the safety interlock integrated machine includes:

[0028] Store the values returned by the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function in the storage area, and create an access interface for the storage area.

[0029] In a second aspect, a control device for a safety interlock integrated machine is provided, including:

[0030] An acquisition module for acquiring the function list of the safety interlock integrated machine;

[0031] A reading module for reading the identifiers of the static electricity alarm function, the oil spill alarm function, the gas phase flow alarm function, the loading arm connection alarm function, the combustible gas alarm function, and the vehicle rolling alarm function in the function list;

[0032] An encapsulation module for encapsulating the code segments corresponding to the identifiers of the static electricity alarm function to obtain a first function, encapsulating the code segments corresponding to the identifiers of the oil spill alarm function to obtain a second function, encapsulating the code segments corresponding to the identifiers of the gas phase flow alarm function to obtain a third function, encapsulating the code segments corresponding to the identifiers of the loading arm connection alarm function to obtain a fourth function, encapsulating the code segments corresponding to the identifiers of the combustible gas alarm function to obtain a fifth function, and encapsulating the code segments corresponding to the identifiers of the vehicle rolling alarm function to obtain a sixth function;

[0033] A saving module for saving the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function in a file, and executing a packaging instruction on the file to obtain a tool kit for the control program of the safety interlock integrated machine;

[0034] An input module for, when receiving a start-loading signal sent by the quantitative loading controller, calling the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function from the tool kit;

[0035] A control module for, when the values returned by the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are all normal values, controlling the sending module to send an allow-loading signal to the quantitative loading controller.

[0036] In a third aspect, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the control method of the above-mentioned safety interlock integrated machine are implemented.

[0037] In a fourth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the control method of the above-mentioned safety interlock integrated machine are implemented.

[0038] The present application provides a control method, device, computer device, and storage medium for a safety interlock integrated machine. The beneficial effects are in two aspects. On the one hand, the first function, second function, third function, fourth function, fifth function, and sixth function are saved in a file, and a packaging instruction is executed on the file to obtain a tool kit for the control program of the safety interlock integrated machine, thus solving the problem of how to construct the tool kit for the control program. On the other hand, when a start loading signal sent by a quantitative loading controller is received, the first function, second function, third function, fourth function, fifth function, and sixth function are called from the tool kit. When the values returned by the first function, second function, third function, fourth function, fifth function, and sixth function are all normal values, the control sending module sends an allow loading signal to the quantitative loading controller, solving the problem of how to call the tool kit for the control program and being beneficial to improving the calling efficiency of the tool kit for the control program. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0040] Figure 1 is a schematic diagram of the application environment of the control method of the safety interlock integrated machine in an embodiment of the present invention;

[0041] Figure 2 is a flowchart of the control method of the safety interlock integrated machine provided by an embodiment of the present invention;

[0042] Figure 3 is Figure 2 the flowchart of step S23 in

[0043] Figure 4 is Figure 2 the flowchart of step S25 in

[0044] Figure 5 is Figure 2 a schematic flowchart of step S26 in

[0045] Figure 6 a schematic structural diagram of a control device of a safety interlock integrated machine in an embodiment of the present invention;

[0046] Figure 7 a schematic structural diagram of a computer device in an embodiment of the present invention. Specific embodiments

[0047] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0048] Please refer to Figure 1 , Figure 1 is an application environment schematic diagram of a control method of a safety interlock integrated machine in an embodiment of the present invention. The control method of the safety interlock integrated machine provided by the embodiments of the present invention can be applied to an application environment such as Figure 1 where the client communicates with the server through a network.

[0049] The server obtains the function list of the safety interlock integrated machine through the client;

[0050] Read the identifiers of the static electricity alarm function, oil spill alarm function, gas flow alarm function, loading arm connection alarm function, combustible gas alarm function, and vehicle rolling alarm function in the function list;

[0051] Encapsulate the code segment corresponding to the identifier of the static electricity alarm function to obtain a first function, encapsulate the code segment corresponding to the identifier of the oil spill alarm function to obtain a second function, encapsulate the code segment corresponding to the identifier of the gas flow alarm function to obtain a third function, encapsulate the code segment corresponding to the identifier of the loading arm connection alarm function to obtain a fourth function, encapsulate the code segment corresponding to the identifier of the combustible gas alarm function to obtain a fifth function, and encapsulate the code segment corresponding to the identifier of the vehicle rolling alarm function to obtain a sixth function;

[0052] Save the first function, second function, third function, fourth function, fifth function, and sixth function in a file, and execute a packaging instruction on the file to obtain a tool kit for the control program of the safety interlock integrated machine;

[0053] When receiving the start loading signal sent by the quantitative loading controller, call the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function from the toolkit.

[0054] When the values returned by the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are all normal values, control the sending module to send an allow loading signal to the quantitative loading controller.

[0055] In the solution implemented by the above control method, device, equipment and medium of the safety interlock integrated machine, the beneficial effects are in two aspects. On the one hand, save the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function in a file, and execute the packaging instruction on the file to obtain the toolkit of the control program of the safety interlock integrated machine, thus solving the problem of how to construct the toolkit of the control program. On the other hand, when receiving the start loading signal sent by the quantitative loading controller, call the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function from the toolkit. When the values returned by the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are all normal values, control the sending module to send an allow loading signal to the quantitative loading controller, solving the problem of how to call the toolkit of the control program, which is beneficial to improving the calling efficiency of the toolkit of the control program.

[0056] Among them, the device running the client is simply referred to as: client device.

[0057] Among them, the device running the server is simply referred to as: server device.

[0058] Among them, the client device includes but is not limited to a safety interlock integrated machine, a smart phone, a personal computer, a vehicle networking terminal, a tablet computer and a portable wearable device.

[0059] Among them, the server device can be implemented by an independent server or a server cluster composed of multiple servers. The present invention will be described in detail below through specific embodiments.

[0060] Please refer to Figure 2 , Figure 2 which is a flowchart of a control method for a safety interlock integrated machine provided by an embodiment of the present invention, including the following steps:

[0061] S21, obtain the function list of the safety interlock integrated machine;

[0062] Exemplarily, obtaining the function list of the safety interlock integrated machine includes:

[0063] Get the device model of the safety interlock integrated device and the function list corresponding to the device model.

[0064] S22, reading the identification of the static electricity alarm function, the identification of the oil overflow alarm function, the identification of the gas phase flow alarm function, the identification of the crane pipe connection alarm function, the identification of the flammable gas alarm function, and the identification of the slipping alarm function in the function list;

[0065] Among them, the identification of the static alarm function, the identification of the oil overflow alarm function, the identification of the gas phase flow alarm function, the identification of the crane pipe connection alarm function, the identification of the flammable gas alarm function, and the identification of the slip alarm function in the reading function list include:

[0066] Traverse the function list and access the first function item, the second function item, the third function item, the fourth function item, the fifth function item, and the sixth function item in the function list;

[0067] The identifier of the electrostatic alarm function is extracted from the first function item, the identifier of the oil spill alarm function is extracted from the second function item, the identifier of the gas flow alarm function is extracted from the third function item, the identifier of the crane pipe connection alarm function is extracted from the fourth function item, the identifier of the flammable gas alarm function is extracted from the fifth function item, and the identifier of the slipping car alarm function is extracted from the sixth function item.

[0068] Among them, the static electricity alarm function is a function of the safety interlocking machine. The static electricity alarm function monitors the static electricity charge in the equipment or working environment in real time through the built-in static electricity detection device. When the static electricity charge exceeds the preset safety threshold, the static electricity alarm function will immediately trigger the alarm mechanism, and warn the user through the indicator light and voice to remind him that there is a risk of static electricity accumulation, and link the safety interlocking machine to take corresponding safety measures, such as cutting off the power supply and stopping the operation.

[0069] Among them, the oil spill alarm function is a function of the safety interlocking machine. The oil spill alarm function is a safety monitoring mechanism that monitors the oil level or leakage in real time through sensors installed in the oil delivery system or other equipment and environments involving oil leakage. When the oil level is abnormally high or leakage occurs, and reaches the preset alarm threshold, the oil spill alarm function will immediately trigger the alarm mechanism, send a warning signal to the user in the form of indicator lights or voice, and link the safety interlocking machine to take corresponding safety measures, such as cutting off the power supply and stopping the operation.

[0070] Among them, the gas phase flow alarm function is a function of the safety interlock integrated machine. The gas phase flow alarm function monitors the gas flow in the gas phase pipeline in real time through the flow sensor installed on the gas phase pipeline. When the monitored gas flow is abnormal, exceeds the preset safety range or is lower than the minimum flow required to maintain normal operation, the gas phase flow alarm function will immediately trigger the alarm mechanism, send a warning signal to the user in the form of indicator lights or voice, and link the safety interlock integrated machine to take corresponding safety measures, such as cutting off the power supply and stopping the operation.

[0071] Among them, the crane pipe connection alarm function is a function of the safety interlocking machine. The crane pipe connection alarm function is a safety monitoring function used to monitor the connection status of the crane pipe with tank trucks, storage tanks and other equipment. The crane pipe connection alarm function monitors the connection status between the crane pipe and the connected equipment in real time through the sensor installed at the crane pipe connection. When an abnormal connection is detected, such as the crane pipe is not connected correctly, the connection is loose or falls off, the crane pipe connection alarm function will immediately trigger the alarm mechanism, send a warning signal to the user in the form of an indicator light or voice, and link the safety interlocking machine to take corresponding safety measures, such as cutting off the power supply and stopping the operation.

[0072] Among them, the combustible gas alarm function is a monitoring function of the safety interlock integrated machine. The combustible gas alarm function monitors the combustible gas concentration in the working environment in real time through the built-in combustible gas sensor. When the monitored combustible gas concentration reaches or exceeds the preset alarm threshold, the combustible gas alarm function will immediately trigger the alarm mechanism, and send a warning signal to the user in the form of an indicator light or voice to remind the user of the risk of combustible gas leakage on site, and link the safety interlock integrated machine to take corresponding safety measures, such as cutting off the power supply and starting the exhaust system.

[0073] Among them, the vehicle slip alarm function is a monitoring function of the safety interlocking machine. The vehicle slip alarm function is used to monitor the movement of the vehicle during loading and unloading operations. When the vehicle moves unexpectedly during loading and unloading, the vehicle slip alarm function will detect this movement through the built-in sensor and immediately trigger the alarm mechanism. The alarm signal sends a warning signal to the user in the form of an indicator light or voice, and the safety interlocking machine is linked to take corresponding safety measures, such as cutting off the power supply and stopping the operation.

[0074] S23. Package the code segments corresponding to the identifiers of the static electricity alarm function to obtain a first function, package the code segments corresponding to the identifiers of the oil spill alarm function to obtain a second function, package the code segments corresponding to the identifiers of the gas phase flow alarm function to obtain a third function, package the code segments corresponding to the identifiers of the loading arm connection alarm function to obtain a fourth function, package the code segments corresponding to the identifiers of the combustible gas alarm function to obtain a fifth function, and package the code segments corresponding to the identifiers of the vehicle rolling alarm function to obtain a sixth function;

[0075] Among them, the first function promotes the reusability of the code segments corresponding to the identifiers of the static electricity alarm function.

[0076] Among them, the second function promotes the reusability of the code segments corresponding to the identifiers of the oil spill alarm function.

[0077] Among them, the third function promotes the reusability of the code segments corresponding to the identifiers of the gas phase flow alarm function.

[0078] Among them, the fourth function promotes the reusability of the code segments corresponding to the identifiers of the loading arm connection alarm function.

[0079] Among them, the fifth function promotes the reusability of the code segments corresponding to the identifiers of the combustible gas alarm function.

[0080] Among them, the sixth function promotes the reusability of the code segments corresponding to the identifiers of the vehicle rolling alarm function.

[0081] S24. Save the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function in a file, and execute the packaging instruction on the file to obtain a tool package for the control program of the safety interlock integrated machine;

[0082] Among them, the step of saving the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function in a file and executing the packaging instruction on the file to obtain a tool package for the control program of the safety interlock integrated machine includes:

[0083] Use test cases to test the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function. When the test results of the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are all target results, save the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function in a file;

[0084] Execute the packaging operation on the file according to the packaging instruction to obtain a tool package for the control program of the safety interlock integrated machine.

[0085] Among them, when the test results of the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are all target results, it indicates that the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function in the toolkit have all been tested, which can ensure the reliability of the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function.

[0086] Among them, according to the packaging instruction, a packaging operation is performed on the file to obtain a toolkit for the control program of the safety interlock integrated machine. By using the toolkit, the control program can be written, debugged, and optimized more quickly, thus improving the development efficiency of the control program.

[0087] S25, when receiving the start loading signal sent by the quantitative loading controller, call the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function from the toolkit;

[0088] Among them, the start loading signal is the signal to start loading. The start loading signal can clearly indicate the start of the loading operation.

[0089] S26, when the values returned by the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are all normal values, the control sending module sends an allow loading signal to the quantitative loading controller.

[0090] Among them, the allow loading signal is the signal to allow loading. Through the allow loading signal, the quantitative loading controller can clearly know that it can now start the loading operation safely, thus avoiding the risks brought by blindly starting the operation due to unmet conditions and improving the safety and efficiency of the operation.

[0091] Among them, the start loading signal and the allow loading signal are different digital signals. For example, the start loading signal is 11 and the allow loading signal is 111. For example, the start loading signal is 01 and the allow loading signal is 011.

[0092] Among them, the control sending module sends an allow loading signal to the quantitative loading controller, including:

[0093] The sending module of the control safety interlock integrated machine sends an allow loading signal to the quantitative loading controller.

[0094] Among them, after the control sending module sends an allow loading signal to the quantitative loading controller when the values returned by the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are all normal values, the control method of the safety interlock integrated machine includes:

[0095] Store the values returned by the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function into a storage area, and create an access interface for the storage area.

[0096] In the embodiments of the present invention, the beneficial effects are in two aspects. On the one hand, the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are saved in a file, and a packaging instruction is executed on the file to obtain a tool kit for the control program of the safety interlock integrated machine, thus solving the problem of how to construct the tool kit for the control program. On the other hand, when a start loading signal sent by the quantitative loading controller is received, the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are called from the tool kit. When the values returned by the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are all normal values, the control sending module sends an allowed loading signal to the quantitative loading controller, solving the problem of how to call the tool kit for the control program, which is beneficial to improving the calling efficiency of the tool kit for the control program.

[0097] Please refer to Figure 3 , Figure 3 is Figure 2 the schematic flowchart of step S23 in

[0098] S31, obtain the code segments corresponding to the identifiers of the static electricity alarm function, the oil spill alarm function, the gas flow alarm function, the loading arm connection alarm function, the combustible gas alarm function, and the vehicle rolling alarm function;

[0099] Exemplarily, obtaining the code segments corresponding to the identifiers of the static electricity alarm function, the oil spill alarm function, the gas flow alarm function, the loading arm connection alarm function, the combustible gas alarm function, and the vehicle rolling alarm function includes:

[0100] Obtain a first query statement, replace the placeholder in the first query statement with the identifier of the static electricity alarm function, and select the first query statement carrying the identifier of the static electricity alarm function as the first query request;

[0101] Obtain a second query statement, replace the placeholder in the second query statement with the identifier of the oil spill alarm function, and select the second query statement carrying the identifier of the oil spill alarm function as the second query request;

[0102] Obtain the third query statement, replace the placeholder in the third query statement with the identifier of the gas phase flow alarm function, and select the third query statement carrying the identifier of the gas phase flow alarm function as the third query request;

[0103] Obtain the fourth query statement, replace the placeholder in the fourth query statement with the identifier of the loading arm connection alarm function, and select the fourth query statement carrying the identifier of the loading arm connection alarm function as the fourth query request;

[0104] Obtain the fifth query statement, replace the placeholder in the fifth query statement with the identifier of the combustible gas alarm function, and select the fifth query statement carrying the identifier of the combustible gas alarm function as the fifth query request;

[0105] Obtain the sixth query statement, replace the placeholder in the sixth query statement with the identifier of the vehicle rolling alarm function, and select the sixth query statement carrying the identifier of the vehicle rolling alarm function as the sixth query request;

[0106] Concatenate the first query request, the second query request, the third query request, the fourth query request, the fifth query request, and the sixth query request to obtain the target query request, and send the target query request to the database;

[0107] Receive the target query result returned by the database according to the target query request. In the target query result, obtain the code segment corresponding to the identifier of the static electricity alarm function, the code segment corresponding to the identifier of the oil spill alarm function, the code segment corresponding to the identifier of the gas phase flow alarm function, the code segment corresponding to the identifier of the loading arm connection alarm function, the code segment corresponding to the identifier of the combustible gas alarm function, and the code segment corresponding to the identifier of the vehicle rolling alarm function.

[0108] S32, encapsulate the code segment corresponding to the identifier of the static electricity alarm function to obtain the first function, encapsulate the code segment corresponding to the identifier of the oil spill alarm function to obtain the second function, encapsulate the code segment corresponding to the identifier of the gas phase flow alarm function to obtain the third function, encapsulate the code segment corresponding to the identifier of the loading arm connection alarm function to obtain the fourth function, encapsulate the code segment corresponding to the identifier of the combustible gas alarm function to obtain the fifth function, and encapsulate the code segment corresponding to the identifier of the vehicle rolling alarm function to obtain the sixth function.

[0109] In the embodiments of the present invention, after the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are written and tested, the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function can be repeatedly called in different programs or different parts of the program without being rewritten, thus saving development time and reducing the possibility of errors.

[0110] Please refer toFigure 4 , Figure 4 is Figure 2 a schematic flowchart of step S25 in

[0111] S41. When receiving the start loading signal sent by the quantitative loading controller, load the tool kit according to the storage address of the tool kit;

[0112] S42. Call the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function from the tool kit.

[0113] In the embodiment of the present invention, calling the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function from the tool kit ensures that these functions are only called when the start loading signal is received, avoiding unnecessary calculations and resource waste.

[0114] Please refer to Figure 5 , Figure 5 is Figure 2 a schematic flowchart of step S26 in

[0115] S51. When the values returned by the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are all normal values, generate an allow loading signal;

[0116] S52. Control the sending module to send the allow loading signal to the quantitative loading controller. Among them, controlling the sending module to send the allow loading signal to the quantitative loading controller includes:

[0117] Controlling the sending module of the safety interlock integrated machine to send the allow loading signal to the quantitative loading controller.

[0118] In the embodiment of the present invention, when the values returned by the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are all normal values, an allow loading signal is generated, ensuring the reliability of the generated allow loading signal.

[0119] Please refer to Figure 6 , Figure 6 is a schematic structural diagram of the control device of the safety interlock integrated machine in an embodiment of the present invention, as Figure 6 shown. The control device of the safety interlock integrated machine includes an acquisition module 101, a reading module 102, a packaging module 103, a storage module 104, an input module 105, and a control module 106. The detailed description of each functional module is as follows:

[0120] An acquisition module 101, configured to acquire a function list of a safety interlock integrated machine;

[0121] A reading module 102, configured to read the identifiers of the static electricity alarm function, the oil spill alarm function, the gas phase flow alarm function, the loading arm connection alarm function, the combustible gas alarm function, and the vehicle rolling alarm function in the function list;

[0122] An encapsulation module 103, configured to encapsulate the code segments corresponding to the identifiers of the static electricity alarm function to obtain a first function, encapsulate the code segments corresponding to the identifiers of the oil spill alarm function to obtain a second function, encapsulate the code segments corresponding to the identifiers of the gas phase flow alarm function to obtain a third function, encapsulate the code segments corresponding to the identifiers of the loading arm connection alarm function to obtain a fourth function, encapsulate the code segments corresponding to the identifiers of the combustible gas alarm function to obtain a fifth function, and encapsulate the code segments corresponding to the identifiers of the vehicle rolling alarm function to obtain a sixth function;

[0123] A saving module 104, configured to save the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function in a file, and execute a packaging instruction on the file to obtain a tool package of the control program of the safety interlock integrated machine;

[0124] An input module 105, configured to, when receiving a start loading signal sent by a quantitative loading controller, call the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function from the tool package;

[0125] A control module 106, configured to, when the values returned by the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are all normal values, control a sending module to send an allow loading signal to the quantitative loading controller.

[0126] In the embodiment of the present invention, the beneficial effects are in two aspects. On the one hand, the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are saved in a file, and a packaging instruction is executed on the file to obtain a tool package of the control program of the safety interlock integrated machine, so as to solve the problem of how to construct the tool package of the control program. On the other hand, when receiving a start loading signal sent by the quantitative loading controller, the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are called from the tool package. When the values returned by the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are all normal values, the control sending module to send an allow loading signal to the quantitative loading controller, which solves the problem of how to call the tool package of the control program and is beneficial to improving the calling efficiency of the tool package of the control program.

[0127] For the specific limitations of the control device of the safety interlock integrated machine, reference can be made to the limitations of the control method of the safety interlock integrated machine in the above text, which will not be elaborated here.

[0128] Each module in the above control device of the safety interlock integrated machine can be implemented in whole or in part by software, hardware, and their combination. Each of the above modules can be embedded in the processor of the computer device in hardware form or be independent of it, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each of the above modules.

[0129] Please refer to Figure 7 , Figure 7 FIG. is a schematic structural diagram of a computer device in an embodiment of the present invention. In one embodiment, a computer device is provided. The computer device is a server device or a client device, and its internal structure diagram can be as Figure 7 shown.

[0130] The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with external devices. When the computer program is executed by the processor, it can implement the functions or steps of a control method of a safety interlock integrated machine.

[0131] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor.

[0132] It should be noted that for the functions or steps that can be achieved by the above computer-readable storage medium or computer device, reference can be made to the relevant descriptions in the foregoing method embodiments. To avoid repetition, they will not be described one by one here.

[0133] The above-mentioned processor may be a general-purpose processor, including a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), and a Network Processor (NP); it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.

[0134] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure, enabling those skilled in the art to practice them. In this article, what each embodiment focuses on may be the differences from other embodiments, and the same or similar parts among the various embodiments may be referred to each other. For the methods disclosed in the embodiments, if they correspond to the method parts disclosed in the embodiments, the relevant parts may be referred to the description of the method parts.

[0135] Those skilled in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed in this article can be implemented by electronic hardware, or by a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner may depend on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of the embodiments of the present disclosure. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein.

Claims

1. A control method for a safety interlock integrated machine, characterized in that, Including: Obtain the function list of the safety interlock integrated machine; Read the identifiers of the static electricity alarm function, oil spill alarm function, gas phase flow alarm function, loading arm connection alarm function, combustible gas alarm function, and vehicle rolling alarm function in the function list; Encapsulate the code segment corresponding to the identifier of the static electricity alarm function to obtain the first function, encapsulate the code segment corresponding to the identifier of the oil spill alarm function to obtain the second function, encapsulate the code segment corresponding to the identifier of the gas phase flow alarm function to obtain the third function, encapsulate the code segment corresponding to the identifier of the loading arm connection alarm function to obtain the fourth function, encapsulate the code segment corresponding to the identifier of the combustible gas alarm function to obtain the fifth function, and encapsulate the code segment corresponding to the identifier of the vehicle rolling alarm function to obtain the sixth function; Save the first function, second function, third function, fourth function, fifth function, and sixth function in a file, and execute the packaging instruction on the file to obtain the tool package of the control program of the safety interlock integrated machine; When receiving the start loading signal sent by the quantitative loading controller, call the first function, second function, third function, fourth function, fifth function, and sixth function from the tool package; When the values returned by the first function, second function, third function, fourth function, fifth function, and sixth function are all normal values, control the sending module to send an allow loading signal to the quantitative loading controller.

2. The control method of the safety interlock integrated machine according to claim 1, characterized in that, The reading of the identifiers of the static electricity alarm function, oil spill alarm function, gas phase flow alarm function, loading arm connection alarm function, combustible gas alarm function, and vehicle rolling alarm function in the function list includes: Traverse the function list and access the first function item, second function item, third function item, fourth function item, fifth function item, and sixth function item in the function list; Extract the identifier of the static electricity alarm function from the first function item, extract the identifier of the oil spill alarm function from the second function item, extract the identifier of the gas phase flow alarm function from the third function item, extract the identifier of the loading arm connection alarm function from the fourth function item, extract the identifier of the combustible gas alarm function from the fifth function item, and extract the identifier of the vehicle rolling alarm function from the sixth function item.

3. The control method of the safety interlock integrated machine according to claim 1, characterized in that, The encapsulating the code segment corresponding to the identifier of the static electricity alarm function to obtain the first function, encapsulating the code segment corresponding to the identifier of the oil spill alarm function to obtain the second function, encapsulating the code segment corresponding to the identifier of the gas phase flow alarm function to obtain the third function, encapsulating the code segment corresponding to the identifier of the loading arm connection alarm function to obtain the fourth function, encapsulating the code segment corresponding to the identifier of the combustible gas alarm function to obtain the fifth function, and encapsulating the code segment corresponding to the identifier of the vehicle rolling alarm function to obtain the sixth function includes: Obtain the code segments corresponding to the identifiers of the static electricity alarm function, the oil spill alarm function, the gas flow alarm function, the loading arm connection alarm function, the combustible gas alarm function, and the vehicle rolling alarm function; Encapsulate the code segments corresponding to the identifiers of the static electricity alarm function to obtain the first function, encapsulate the code segments corresponding to the identifiers of the oil spill alarm function to obtain the second function, encapsulate the code segments corresponding to the identifiers of the gas flow alarm function to obtain the third function, encapsulate the code segments corresponding to the identifiers of the loading arm connection alarm function to obtain the fourth function, encapsulate the code segments corresponding to the identifiers of the combustible gas alarm function to obtain the fifth function, and encapsulate the code segments corresponding to the identifiers of the vehicle rolling alarm function to obtain the sixth function.

4. The control method of the safety interlock integrated machine according to claim 1, wherein Save the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function in a file, and execute the packaging instruction on the file to obtain a tool package for the control program of the safety interlock integrated machine, including: Use test cases to test the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function. When the test results of the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are all target results, save the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function in a file; According to the packaging instruction, perform a packaging operation on the file to obtain a tool package for the control program of the safety interlock integrated machine.

5. The control method of the safety interlock integrated machine according to claim 1, characterized in that, When receiving the start loading signal sent by the quantitative loading controller, call the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function from the tool package, including: When receiving the start loading signal sent by the quantitative loading controller, load the tool package according to the storage address of the tool package; Call the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function from the tool package.

6. The control method of the safety interlock integrated machine according to claim 1, characterized in that, When the values returned by the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are all normal values, control the sending module to send an allow loading signal to the quantitative loading controller, including: When the values returned by the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are all normal values, generate an allow loading signal; Control the sending module to send an allow loading signal to the quantitative loading controller.

7. The control method of the safety interlock integrated machine according to claim 1, characterized in that After controlling the sending module to send an allow loading signal to the quantitative loading controller when the values returned by the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are all normal values, the control method of the safety interlock integrated machine includes: Store the values returned by the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function in a storage area, and create an access interface for the storage area.

8. A control device for a safety interlock integrated machine, characterized in that, Including: An acquisition module for acquiring the function list of the safety interlock integrated machine; A reading module for reading the identifiers of the static electricity alarm function, the oil spill alarm function, the gas phase flow alarm function, the loading arm connection alarm function, the combustible gas alarm function, and the vehicle rollback alarm function in the function list; A packaging module for packaging the code segments corresponding to the identifiers of the static electricity alarm function to obtain a first function, packaging the code segments corresponding to the identifiers of the oil spill alarm function to obtain a second function, packaging the code segments corresponding to the identifiers of the gas phase flow alarm function to obtain a third function, packaging the code segments corresponding to the identifiers of the loading arm connection alarm function to obtain a fourth function, packaging the code segments corresponding to the identifiers of the combustible gas alarm function to obtain a fifth function, and packaging the code segments corresponding to the identifiers of the vehicle rollback alarm function to obtain a sixth function; A saving module for saving the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function in a file, and executing a packaging instruction on the file to obtain a tool kit for the control program of the safety interlock integrated machine; An input module for calling the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function from the tool kit when receiving a start loading signal sent by the quantitative loading controller; A control module for controlling the sending module to send an allowed loading signal to the quantitative loading controller when the values returned by the first function, the second function, the third function, the fourth function, the fifth function, and the sixth function are all normal values.

9. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the control method of the safety interlock integrated machine according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the control method of the safety interlock integrated machine according to any one of claims 1 to 7.