CN114594723A - Data control method and device based on PLC (programmable logic controller) equipment, storage medium and terminal equipment - Google Patents

Data control method and device based on PLC (programmable logic controller) equipment, storage medium and terminal equipment Download PDF

Info

Publication number
CN114594723A
CN114594723A CN202210234521.8A CN202210234521A CN114594723A CN 114594723 A CN114594723 A CN 114594723A CN 202210234521 A CN202210234521 A CN 202210234521A CN 114594723 A CN114594723 A CN 114594723A
Authority
CN
China
Prior art keywords
trigger condition
logic
preset trigger
plc
logic unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210234521.8A
Other languages
Chinese (zh)
Inventor
王腾飞
丁华
杨贵林
于光夫
姚建平
吴集全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Xitumeng Digital Technology Co ltd
Original Assignee
Zhejiang Xitumeng Digital Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Xitumeng Digital Technology Co ltd filed Critical Zhejiang Xitumeng Digital Technology Co ltd
Priority to CN202210234521.8A priority Critical patent/CN114594723A/en
Publication of CN114594723A publication Critical patent/CN114594723A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/054Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/14Plc safety
    • G05B2219/14092Display menu and its code, sense code, compare with registered code
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The embodiment of the application provides a data control method, a data control device, a storage medium and a terminal device based on a PLC device, wherein the method comprises the following steps: loading a preset control program, wherein the control program comprises a plurality of logic units which are associated together according to an execution sequence, and inserting a monitoring logic code between two adjacent logic units, and the monitoring logic code is used for detecting whether a preset trigger condition is met or not when the execution of the prior logic unit is finished, and triggering the subsequent logic unit to start executing when the preset trigger condition is met; and sequentially executing a plurality of logic units according to the execution sequence, and controlling the PLC equipment to suspend working when a certain logic unit does not meet the preset trigger condition. According to the embodiment of the application, the monitoring logic code is added, when a certain logic block does not meet the preset triggering condition, the current logic block can control the PLC equipment to pause based on the own safety control strategy, and the PLC equipment is different from an emergency stop button physical brake, so that the impact on the physical safety damage of the PLC equipment is avoided.

Description

Data control method and device based on PLC (programmable logic controller) equipment, storage medium and terminal equipment
Technical Field
The present application relates to the field of electronic communications technologies, and in particular, to a data control method and apparatus based on a PLC device, a storage medium, and a terminal device.
Background
When a digital twinning technology is applied at a manufacturing end, the data of a PLC device end can be only relatively safely input to a twinning system upwards, the data of the device can be acquired and simulated and analyzed by the twinning system, and a decision control instruction made after the simulation analysis cannot be input downwards to the device for safe automatic execution.
The current equipment controls the execution of the PLC instruction, which is usually triggered once based on the completion of one job by the PLC equipment, and continuously executes until the current job is completed, for example, when the mechanical arm carrying equipment is started to carry a material to lift the material from a position a by an X height, and the mechanical arm returns to a position a by rotating clockwise by an angle Y to a position B. The logic control command and the control command are linked based on an overall closed loop of a work task. The execution is started, the complete body closed-loop logic is required to be completely executed to be ended, and if the execution process action needs to be interrupted or changed, the sensor is powered off or the operation software is immediately realized only in a field physical mode, so that the physical safety damage of equipment caused by inertia, pulse and other reasons can be caused.
Disclosure of Invention
The embodiment of the application provides a data control method, a data control device, a storage medium and a terminal device based on PLC (programmable logic controller), wherein a minimum work task closed-loop program is disassembled into an executive program of minimum closed-loop actions and is kept in a minimum logic block with control parameters, a monitoring logic code allowing real-time variables is added between the program logic blocks between the minimum closed-loop actions for detecting whether a preset trigger condition is met or not when the execution of a previous logic block is finished, and triggering a subsequent logic block to start executing when the preset trigger condition is met, and when a certain logic block does not meet the preset trigger condition, the current logic block can control the PLC device to pause based on a safety control strategy of the current logic block, which is different from a physical brake of an emergency stop button, so that the impact on the physical safety damage of the PLC device is avoided.
An embodiment of the present application provides a data control method based on a PLC device, including:
loading a preset control program, wherein the control program comprises a plurality of logic units which are associated together according to an execution sequence, and inserting a monitoring logic code between two adjacent logic units, wherein the monitoring logic code is used for detecting whether a preset trigger condition is met or not when the execution of a previous logic unit is finished, and triggering the subsequent logic unit to start executing when the preset trigger condition is met;
and sequentially executing the plurality of logic units according to the execution sequence, and controlling the PLC equipment to pause when a certain logic unit does not meet the preset trigger condition.
In the data control method based on the PLC device according to the embodiment of the present application, the method further includes:
receiving a parameter modification request based on a digital twin system which is in communication connection with the PLC equipment in advance;
analyzing the parameter modification request to obtain a control parameter;
and modifying the preset trigger condition according to the control parameter.
In the data control method based on the PLC device according to the embodiment of the present application, the digital twin system performs the coverage processing without performing the sequential accumulation control on the same control parameter sent at different times.
In the data control method based on the PLC device according to the embodiment of the present application, the digital twin system modifies the preset trigger condition through a system interface in real time, and after the control parameter is changed, only the judgment of the latest preset trigger condition is performed.
In the data control method based on a PLC device according to an embodiment of the present application, the controlling the PLC device to suspend operating when there is a logic unit that does not satisfy the preset trigger condition includes:
and when one logic unit does not meet the preset trigger condition, controlling the PLC equipment to pause based on a safety control strategy corresponding to the preset trigger condition.
In the data control method based on the PLC device according to the embodiment of the present application, the method further includes:
and when a certain logic unit meets the preset trigger condition, controlling the subsequent logic unit to trigger and execute after a preset time interval.
In the data control method based on the PLC equipment, the PLC equipment is a mechanical arm.
Correspondingly, another aspect of the embodiments of the present application further provides a data control apparatus based on a PLC device, including:
the device comprises a loading module, a judging module and a control module, wherein the loading module is used for loading a preset control program, the control program comprises a plurality of logic units which are related together according to an execution sequence, a monitoring logic code is inserted between every two adjacent logic units, and the monitoring logic code is used for detecting whether a preset trigger condition is met or not when the execution of the prior logic unit is finished and triggering the subsequent logic unit to start executing when the preset trigger condition is met;
and the execution module is used for sequentially executing the plurality of logic units according to the execution sequence, and controlling the PLC equipment to suspend working when a certain logic unit does not meet the preset trigger condition.
Accordingly, another aspect of the embodiments of the present application further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform the data control method based on the PLC device as described above.
Correspondingly, another aspect of the embodiments of the present application further provides a terminal device, including a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions to execute the PLC device-based data control method as described above.
The embodiment of the application provides a data control method, a data control device, a storage medium and a terminal device based on a PLC (programmable logic controller), wherein the method loads a preset control program, the control program comprises a plurality of logic units which are associated together according to an execution sequence, a monitoring logic code is inserted between every two adjacent logic units, and the monitoring logic code is used for detecting whether a preset trigger condition is met or not when the execution of the previous logic unit is finished and triggering the subsequent logic unit to start executing when the preset trigger condition is met; and sequentially executing the plurality of logic units according to the execution sequence, and controlling the PLC equipment to pause when a certain logic unit does not meet the preset trigger condition. The embodiment of the application breaks a minimum work task closed-loop program into a minimum closed-loop action execution program and keeps a minimum logic block with control parameters, a monitoring logic code allowing a real-time variable is added between the minimum closed-loop action program logic blocks and used for detecting whether a preset trigger condition is met or not when the execution of a previous logic block is finished, the subsequent logic block is triggered to start executing when the preset trigger condition is met, when a certain logic block does not meet the preset trigger condition, the current logic block can control PLC equipment to suspend working based on a safety control strategy of the current logic block, the method is different from an emergency stop button physical brake, and physical safety damage impact on the PLC equipment is avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic flowchart of a data control method based on a PLC device according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a data control apparatus based on a PLC device according to an embodiment of the present application.
Fig. 3 is another schematic structural diagram of a data control apparatus based on a PLC device according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
The embodiment of the application provides a data control method based on a PLC device, and the data control method based on the PLC device can be applied to terminal equipment. The terminal equipment can be equipment such as a computer.
When a digital twinning technology is applied at a manufacturing end, the data of a PLC device end can be only relatively safely input to a twinning system upwards, the data of the device can be acquired and simulated and analyzed by the twinning system, and a decision control instruction made after the simulation analysis cannot be input downwards to the device for safe automatic execution.
The current equipment controls the execution of the PLC instruction, which is usually triggered once based on the completion of one job by the PLC equipment, and continuously executes until the current job is completed, for example, when the mechanical arm carrying equipment is started to carry a material to lift the material from a position a by an X height, and the mechanical arm returns to a position a by rotating clockwise by an angle Y to a position B. The logic control command and the control command are linked based on an overall closed loop of a work task. The execution is started, the complete body closed-loop logic is required to be completely executed to be ended, and if the execution process action needs to be interrupted or changed, the sensor is powered off or the operation software is immediately realized only in a field physical mode, so that the physical safety damage of equipment caused by inertia, pulse and other reasons can be caused.
In order to solve the above technical problem, an embodiment of the present application provides a data control method based on a PLC device. By utilizing the data control method based on the PLC equipment provided by the embodiment of the application, the minimum work task closed-loop program is divided into the execution program of the minimum closed-loop action and is kept in a minimum logic block together with the control parameters, a monitoring logic code allowing a real-time variable is added between the program logic blocks between the minimum closed-loop actions for detecting whether the execution of the prior logic block meets the preset trigger condition or not, and the subsequent logic block is triggered to start executing when the preset trigger condition is met, when a certain logic block does not meet the preset trigger condition, the current logic block can control the PLC equipment to pause based on the own safety control strategy, the method is different from the physical brake of an emergency stop button, and the impact of physical safety damage to the PLC equipment is avoided.
Referring to fig. 1, fig. 1 is a schematic flowchart of a data control method based on a PLC device according to an embodiment of the present disclosure. The data control method based on the PLC equipment is applied to terminal equipment. The method may comprise the steps of:
step 101, loading a preset control program, wherein the control program comprises a plurality of logic units which are associated together according to an execution sequence, and inserting a monitoring logic code between two adjacent logic units, and the monitoring logic code is used for detecting whether a preset trigger condition is met or not when the execution of a previous logic unit is finished, and triggering the subsequent logic unit to start executing when the preset trigger condition is met.
In this embodiment, the plurality of logic units may be configured to activate a PLC device, such as a robot arm, to control the robot arm to lift an item from a to a height X, turn clockwise to a position B by an angle Y, and return the robot arm to position a. Wherein each process of the robot arm is controlled by a logic unit. According to the scheme, the control program in the original closed-loop state is disassembled into the execution program of the minimum closed-loop action and is kept in the minimum logic unit together with the control parameters, and the monitoring logic code is inserted between the two adjacent logic units, so that whether the execution of the prior logic unit meets the preset triggering condition when the action is finished can be detected in real time, and the subsequent logic unit is triggered to start executing when the preset triggering condition is met. Once a certain logic unit does not meet the preset triggering condition, the current logic block controls the PLC equipment to pause working based on the safety control strategy of the logic block, the control program is based on an integral closed-loop program, the control program is different from the control program adopted in the prior art, once the program starts to be executed, the complete closed-loop logic is required to be completely executed to be ended, and once the triggering condition is met, the mechanical arm executes control instructions such as clamping, lifting and turning without interruption. In the execution process, when the emergency stop and safety protection active stop control instruction is executed, the execution of a safety interruption program cannot be guaranteed, and generally, physical measures are directly adopted to stop mechanical movement, so that physical impact on equipment can be caused, and the safety of the equipment can be damaged. That is, the prior art lacks a monitoring link for a control node, and cannot perform a self-checking operation once after a process is executed, so that the safety is not high.
And 102, sequentially executing the plurality of logic units according to the execution sequence, and controlling the PLC equipment to suspend working when a certain logic unit does not meet the preset trigger condition.
In this embodiment, a plurality of logic units are sequentially executed according to an execution sequence, execution results of the logic units are monitored simultaneously, and when a certain logic unit does not meet the preset trigger condition, the PLC device is controlled to suspend based on a safety control strategy corresponding to the preset trigger condition.
In some embodiments, the method further comprises:
receiving a parameter modification request based on a digital twin system which is in communication connection with the PLC equipment in advance;
analyzing the parameter modification request to obtain a control parameter;
and modifying the preset trigger condition according to the control parameter.
In this embodiment, the control parameter in the preset trigger condition is a variable (set to be boolean and default) that can be defined by an external system (i.e., a digital twin system) in real time, and participates in controlling whether to continue with the next minimum action program when the minimum action program logic is executed. The control parameter satisfies the judgment only when necessary conditions are satisfied outside the minimum operation program, and the judgment of the input of the abnormal signal as the protection program is not allowed. The digital twin body carries out the covering treatment under the same control parameter sent out at different time without carrying out the time sequence accumulation control.
The digital twin system carries out real-time parameter change (yes/no) on the control parameters through a system interface (OPC UA, http and other modes), only the latest trigger condition judgment after the parameter change is effected, and the control instruction participates as a necessary incomplete condition for PLC program execution.
In some embodiments, the method further comprises:
and when a certain logic unit meets the preset trigger condition, controlling the subsequent logic unit to trigger and execute after a preset time interval.
In the embodiment, the triggering execution of the subsequent logic unit is controlled after the interval of the preset time length, so that the logic unit has time delay performance, the execution of the equipment after the inertia release is allowed, and the physical safety damage of the equipment is greatly reduced.
All the above optional technical solutions may be combined arbitrarily to form optional embodiments of the present application, and are not described herein again.
In particular implementation, the present application is not limited by the execution sequence of the described steps, and some steps may be performed in other sequences or simultaneously without conflict.
As can be seen from the above, the data control method based on the PLC device provided in the embodiment of the present application loads a preset control program, where the control program includes a plurality of logic units associated together according to an execution sequence, and inserts a monitoring logic code between two adjacent logic units, where the monitoring logic code is used to detect whether a previous logic unit meets a preset trigger condition after the previous logic unit is executed, and trigger a subsequent logic unit to start execution when the preset trigger condition is met; and sequentially executing the plurality of logic units according to the execution sequence, and controlling the PLC equipment to pause when a certain logic unit does not meet the preset trigger condition. By utilizing the data control method based on the PLC equipment, provided by the embodiment of the application, the minimum work task closed-loop program is divided into the execution program of the minimum closed-loop action and is kept in a minimum logic block together with the control parameters, a monitoring logic code allowing real-time variables is added between the program logic blocks between the minimum closed-loop actions and is used for detecting whether the execution of the prior logic block meets the preset trigger condition or not, the subsequent logic block is triggered to start executing when the preset trigger condition is met, and when a certain logic block does not meet the preset trigger condition, the current logic block can control the PLC equipment to pause on the basis of the safety control strategy of the current logic block, the method is different from the physical brake of an emergency stop button, and the impact of physical safety damage to the PLC equipment is avoided.
The embodiment of the application also provides a data control device based on the PLC equipment, and the data control device based on the PLC equipment can be integrated in the terminal equipment. The terminal equipment can be equipment such as a smart phone and a tablet computer.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a data control apparatus based on a PLC device according to an embodiment of the present disclosure. The PLC device-based data control apparatus 30 may include:
the loading module 31 is configured to load a preset control program, where the control program includes a plurality of logic units associated together according to an execution sequence, and a monitoring logic code is inserted between two adjacent logic units, where the monitoring logic code is configured to detect whether a preset trigger condition is met when a previous logic unit is executed, and trigger a subsequent logic unit to start execution when the preset trigger condition is met;
and the execution module 32 is configured to sequentially execute the plurality of logic units according to the execution sequence, and control the PLC device to suspend when a certain logic unit does not meet the preset trigger condition.
In some embodiments, the apparatus further comprises a modification module for receiving a parameter modification request based on a digital twin system that is communicatively connected with the PLC device in advance; analyzing the parameter modification request to obtain a control parameter; and modifying the preset trigger condition according to the control parameter.
In some embodiments, the digital twin system performs the overlay process without timing accumulation control for the same control parameter issued at different times.
In some embodiments, the digital twin system modifies the preset trigger condition through a system interface in real time, and after the control parameter is changed, only the determination of the next closest preset trigger condition is performed.
In some embodiments, the executing module 32 is configured to control the PLC device to suspend based on a safety control policy corresponding to the preset trigger condition when there is a certain logic unit that does not meet the preset trigger condition.
In some embodiments, the apparatus further includes a delay module, configured to control, when there is a certain logic unit that meets the preset trigger condition, to trigger execution of a subsequent logic unit after a preset time interval.
In specific implementation, the modules may be implemented as independent entities, or may be combined arbitrarily and implemented as one or several entities.
As can be seen from the above, the data control apparatus 30 based on a PLC device provided in the embodiment of the present application loads a preset control program through the loading module 31, where the control program includes a plurality of logic units associated together according to an execution sequence, and inserts a monitoring logic code between two adjacent logic units, where the monitoring logic code is used to detect whether a preset trigger condition is met when the execution of a previous logic unit is finished, and trigger a subsequent logic unit to start executing when the preset trigger condition is met; the execution module 32 sequentially executes the plurality of logic units according to the execution sequence, and controls the PLC device to suspend when a certain logic unit does not satisfy the preset trigger condition.
Referring to fig. 3, fig. 3 is another schematic structural diagram of a PLC device-based data control apparatus according to an embodiment of the present disclosure, in which the PLC device-based data control apparatus 30 includes a memory 120, one or more processors 180, and one or more applications, where the one or more applications are stored in the memory 120 and configured to be executed by the processor 180; the processor 180 may include a loading module 31, and an execution module 32. For example, the structures and connection relationships of the above components may be as follows:
the memory 120 may be used to store applications and data. The memory 120 stores applications containing executable code. The application programs may constitute various functional modules. The processor 180 executes various functional applications and data processing by running the application programs stored in the memory 120. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may also include a memory controller to provide the processor 180 with access to the memory 120.
The processor 180 is a control center of the device, connects various parts of the entire terminal using various interfaces and lines, performs various functions of the device and processes data by running or executing an application program stored in the memory 120 and calling data stored in the memory 120, thereby monitoring the entire device. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like.
Specifically, in this embodiment, the processor 180 loads the executable code corresponding to the process of one or more application programs into the memory 120 according to the following instructions, and the processor 180 runs the application programs stored in the memory 120, thereby implementing various functions:
the loading module 31 is configured to load a preset control program, where the control program includes a plurality of logic units associated together according to an execution sequence, and a monitoring logic code is inserted between two adjacent logic units, where the monitoring logic code is configured to detect whether a preset trigger condition is met when a previous logic unit is executed, and trigger a subsequent logic unit to start execution when the preset trigger condition is met;
and the execution module 32 is configured to sequentially execute the plurality of logic units according to the execution sequence, and control the PLC device to suspend operation when a certain logic unit does not meet the preset trigger condition.
In some embodiments, the apparatus further comprises a modification module for receiving a parameter modification request based on a digital twin system that is communicatively connected with the PLC device in advance; analyzing the parameter modification request to obtain a control parameter; and modifying the preset trigger condition according to the control parameter.
In some embodiments, the digital twin system performs the overlay process without timing accumulation control for the same control parameter issued at different times.
In some embodiments, the digital twin system modifies the preset trigger condition through a system interface in real time, and after the control parameter is changed, only the determination of the next closest preset trigger condition is performed.
In some embodiments, the execution module 32 is configured to, when there is a logic unit that does not satisfy the preset trigger condition, control the PLC device to suspend based on a safety control policy corresponding to the preset trigger condition.
In some embodiments, the apparatus further includes a delay module, configured to control, when there is a certain logic unit that meets the preset trigger condition, to trigger execution of a subsequent logic unit after a preset time interval.
The embodiment of the application also provides the terminal equipment. The terminal equipment can be equipment such as a smart phone, a computer and a tablet computer.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a terminal device provided in an embodiment of the present application, where the terminal device may be used to implement the PLC device-based data control method provided in the foregoing embodiment. The terminal device 1200 may be a smart phone or a tablet computer.
As shown in fig. 4, the terminal device 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more computer-readable storage media (only one shown in the figure), an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more processing cores (only one shown in the figure), and a power supply 190. Those skilled in the art will appreciate that the terminal device 1200 configuration shown in fig. 4 does not constitute a limitation of terminal device 1200, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components. Wherein:
the RF circuit 110 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuitry 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuitry 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network.
The memory 120 may be configured to store a software program and a module, such as a program instruction/module corresponding to the PLC device-based data control method in the foregoing embodiment, and the processor 180 executes various functional applications and data processing by operating the software program and the module stored in the memory 120, and may automatically select a vibration alert mode according to a current scene where the terminal device is located to perform data control based on the PLC device, so as to ensure that not only a scene such as a conference is not disturbed, but also a user can sense an incoming call, and improve intelligence of the terminal device. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 120 may further include memory located remotely from the processor 180, which may be connected to the terminal device 1200 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphic user interfaces of the terminal apparatus 1200, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 4, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The terminal device 1200 may also include at least one sensor 150, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the terminal device 1200 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor may detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile phone is stationary, and may be used for applications of recognizing gestures of a mobile phone (e.g., horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (e.g., pedometer, tapping), and the like, and as for the terminal device 1200, other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like may be further configured, which are not described herein again.
The audio circuitry 160, speaker 161, microphone 162 may provide an audio interface between the user and the terminal device 1200. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuitry 160 may also include an earbud jack to provide communication of peripheral headphones with the terminal device 1200.
The terminal device 1200, which may assist the user in sending and receiving e-mails, browsing web pages, accessing streaming media, etc., through the transmission module 170 (e.g., Wi-Fi module), provides the user with wireless broadband internet access. Although fig. 4 shows the transmission module 170, it is understood that it does not belong to the essential constitution of the terminal device 1200, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal device 1200, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the terminal device 1200 and processes data by running or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the mobile phone. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
Terminal device 1200 also includes a power supply 190 for powering the various components, which in some embodiments may be logically coupled to processor 180 via a power management system to manage power discharge and power consumption via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal device 1200 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the display unit 140 of the terminal device 1200 is a touch screen display, and the terminal device 1200 further includes a memory 120, and one or more programs, wherein the one or more programs are stored in the memory 120, and the one or more programs configured to be executed by the one or more processors 180 include instructions for:
the method comprises the steps of loading an instruction, wherein the instruction is used for loading a preset control program, the control program comprises a plurality of logic units which are related together according to an execution sequence, monitoring logic codes are inserted between every two adjacent logic units, and the monitoring logic codes are used for detecting whether a preset trigger condition is met or not when the execution of the previous logic unit is finished and triggering the subsequent logic unit to start executing when the preset trigger condition is met.
And the execution instruction is used for sequentially executing the plurality of logic units according to the execution sequence, and controlling the PLC equipment to suspend working when a certain logic unit does not meet the preset trigger condition.
In some embodiments, the program further comprises modification instructions for receiving a parameter modification request based on a digital twin system that is communicatively coupled to the PLC device in advance; analyzing the parameter modification request to obtain a control parameter; and modifying the preset trigger condition according to the control parameter.
In some embodiments, the digital twin system performs the overlay process without timing accumulation control for the same control parameter issued at different times.
In some embodiments, the digital twin system modifies the preset trigger condition through a system interface in real time, and after the control parameter is changed, only the determination of the next closest preset trigger condition is performed.
In some embodiments, the execution instruction is configured to control the PLC device to suspend based on a safety control policy corresponding to the preset trigger condition when there is a certain logic unit that does not satisfy the preset trigger condition.
In some embodiments, the program device further includes a delay instruction, configured to control a subsequent logic unit to trigger execution after a preset time interval when there is a certain logic unit that meets the preset trigger condition.
The embodiment of the application also provides the terminal equipment. The terminal equipment can be equipment such as a smart phone and a computer.
As can be seen from the above, an embodiment of the present application provides a terminal device 1200, where the terminal device 1200 executes the following steps:
an embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer executes the data control method based on the PLC device according to any of the above embodiments.
It should be noted that, for the data control method based on the PLC device described in this application, a person skilled in the art may understand that all or part of the process for implementing the data control method based on the PLC device described in this application may be completed by controlling the relevant hardware through a computer program, where the computer program may be stored in a computer readable storage medium, such as a memory of the terminal device, and executed by at least one processor in the terminal device, and the process of executing the process may include the process of the embodiment of the data control method based on the PLC device described above. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the data control apparatus based on PLC device in the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The data control method, device, storage medium and terminal device based on the PLC device provided in the embodiments of the present application are described in detail above. The principle and the embodiment of the present application are explained by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A data control method based on PLC equipment is characterized by comprising the following steps:
loading a preset control program, wherein the control program comprises a plurality of logic units which are associated together according to an execution sequence, and inserting a monitoring logic code between two adjacent logic units, wherein the monitoring logic code is used for detecting whether a preset trigger condition is met or not when the execution of a previous logic unit is finished, and triggering the subsequent logic unit to start executing when the preset trigger condition is met;
and sequentially executing the plurality of logic units according to the execution sequence, and controlling the PLC equipment to pause when a certain logic unit does not meet the preset trigger condition.
2. The data control method of claim 1, wherein the method further comprises:
receiving a parameter modification request based on a digital twin system which is in communication connection with the PLC equipment in advance;
analyzing the parameter modification request to obtain a control parameter;
and modifying the preset trigger condition according to the control parameter.
3. The data control method of claim 1, wherein the digital twin system performs the overlay process without performing the timing accumulation control for the same control parameter issued at different times.
4. The data control method as claimed in claim 1, wherein the digital twin system modifies the preset trigger condition through a system interface in real time, and only the determination of the next closest preset trigger condition is performed after the control parameter is modified.
5. The data control method of claim 1, wherein the controlling the PLC device to suspend operating when there is a certain logic unit that does not satisfy the preset trigger condition comprises:
and when one logic unit does not meet the preset trigger condition, controlling the PLC equipment to pause based on a safety control strategy corresponding to the preset trigger condition.
6. The data control method of claim 1, wherein the method further comprises:
and when a certain logic unit meets the preset trigger condition, controlling the subsequent logic unit to trigger and execute after a preset time interval.
7. The application deployment method of claim 6 wherein the PLC device is a robotic arm.
8. A data control device based on PLC equipment is characterized by comprising:
the device comprises a loading module, a judging module and a control module, wherein the loading module is used for loading a preset control program, the control program comprises a plurality of logic units which are related together according to an execution sequence, a monitoring logic code is inserted between every two adjacent logic units, and the monitoring logic code is used for detecting whether a preset trigger condition is met or not when the execution of the prior logic unit is finished and triggering the subsequent logic unit to start executing when the preset trigger condition is met;
and the execution module is used for sequentially executing the plurality of logic units according to the execution sequence, and controlling the PLC equipment to suspend working when a certain logic unit does not meet the preset trigger condition.
9. A computer-readable storage medium storing a plurality of instructions, the instructions being suitable for being loaded by a processor to perform the PLC device-based data control method according to any one of claims 1 to 7.
10. A terminal device, comprising a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the PLC device-based data control method according to any one of claims 1 to 7.
CN202210234521.8A 2022-03-10 2022-03-10 Data control method and device based on PLC (programmable logic controller) equipment, storage medium and terminal equipment Pending CN114594723A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210234521.8A CN114594723A (en) 2022-03-10 2022-03-10 Data control method and device based on PLC (programmable logic controller) equipment, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210234521.8A CN114594723A (en) 2022-03-10 2022-03-10 Data control method and device based on PLC (programmable logic controller) equipment, storage medium and terminal equipment

Publications (1)

Publication Number Publication Date
CN114594723A true CN114594723A (en) 2022-06-07

Family

ID=81808722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210234521.8A Pending CN114594723A (en) 2022-03-10 2022-03-10 Data control method and device based on PLC (programmable logic controller) equipment, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN114594723A (en)

Similar Documents

Publication Publication Date Title
CN106131345B (en) Control method and device of proximity sensor and mobile terminal
WO2019047973A1 (en) Terminal operating method and terminal, and computer readable storage medium
CN110691168B (en) Screen control method and device of mobile terminal and storage medium
CN114428546A (en) Background application cleaning method and device, storage medium and terminal equipment
CN112929492B (en) Control method, control device, storage medium and mobile terminal
CN107608521B (en) Touch screen failure processing method, storage medium and mobile terminal
CN111596793B (en) Anti-misoperation method and system, storage medium and terminal equipment
CN113253964A (en) Data management method, device, equipment and storage medium
CN112199246A (en) Terminal testing method and device, storage medium and mobile terminal
CN110471870B (en) Multi-system operation method and device, electronic equipment and storage medium
CN114594723A (en) Data control method and device based on PLC (programmable logic controller) equipment, storage medium and terminal equipment
CN111045737A (en) Equipment identifier acquisition method and device, terminal equipment and storage medium
CN111342519B (en) Charging control method and device, storage medium and mobile terminal
US11914813B2 (en) Ranging method and apparatus thereof, storage medium, and terminal device
CN115348256A (en) Posting data downloading method and device, storage medium and electronic equipment
CN114338770A (en) Cross-block-chain data processing method and device, storage medium and terminal equipment
CN111026456B (en) Application management method and device, storage medium and electronic equipment
CN116414630A (en) Device testing method, device, electronic device and computer readable storage medium
CN106850985B (en) Control method, device and the mobile terminal of mobile terminal sensor
CN111078428A (en) Remote control method and device, storage medium and terminal equipment
CN110046063B (en) Device and method for restoring factory settings of mobile terminal and storage medium
CN112532791B (en) Unlocking method and device of mobile terminal, storage medium and mobile terminal
CN112114649B (en) Temperature adjusting method and device, storage medium and mobile terminal
CN109995441B (en) Communication information processing method, device and storage medium
CN104951378A (en) Control method and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination