Device control method, device, electronic device and storage medium
By using area selection and target station selection instructions in Siemens PLC, combined with standard panels and program libraries, automated control of single stations in automobile production lines is achieved, and the problem that the existing technology cannot control single stations separately is solved, improving the problem of the fact that the existing technology cannot control single stations separately. The flexibility and efficiency of the production line.
Patent Information
- Application Number
- CN202210197715.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-02
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2042-03-02
AI Technical Summary
The existing Siemens PLC based on the SICAR standard set by the safety zone cannot automatically control a single station alone, resulting in the inability to realize automated control of a single station.
Through the area selection command and the target station selection command, the candidate station in the area is determined and the target station is selected. The target equipment is controlled according to the control command of the target station, including displaying touch buttons, generating selection commands, and displaying display screens , respond to panel operations, establish a standard panel library and a standard program library, and achieve separate control of the target equipment.
It realizes independent automated control of a single station in the automobile production line, improves the flexibility and efficiency of the production line, and can manually or automatically control the target equipment.
Smart Images

Figure CN115437315B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of automation technology, and in particular to a device control method, apparatus, electronic device and storage medium. Background Art
[0002] In modern industrial production lines, programmable logic controllers (PLCs) are usually used to realize production line automation. Commonly used PLCs include Siemens PLCs, Mitsubishi PLCs, Omron PLCs and Beckhoff PLCs. Among them, Siemens PLCs are the most widely used due to their high reliability and strong applicability.
[0003] For automobile factories or automobile production lines of line suppliers without automation standards, Siemens PLC provides the SICAR standard to achieve standardization of automobile production lines. However, the existing SICAR is based on safety zone settings. For example, if manual mode is selected based on SICAR, the entire safety zone is in manual mode, and a single workstation cannot be manually or automatically controlled separately, resulting in the inability to control a single workstation. Summary of the invention
[0004] The present disclosure provides a device control method, apparatus, electronic device and storage medium, which can realize single-station control.
[0005] In a first aspect, the present disclosure provides a device control method, comprising:
[0006] Determine all candidate workstations in the area according to the area selection instruction, wherein the area selection instruction includes an area identifier, and the area identifier corresponds to the area one by one;
[0007] Determine a target workstation according to a target workstation selection instruction, wherein the target workstation selection instruction includes a target workstation identifier, the target workstation identifier corresponds to the target workstation, and the target workstation is one of all the candidate workstations;
[0008] According to the control instruction of the target workstation, the target device corresponding to the target workstation is controlled.
[0009] Optionally, before determining the target workstation according to the target workstation selection instruction, the method further includes:
[0010] Displaying the touch buttons corresponding to all the candidate workstations;
[0011] In response to a triggering operation on a target touch key corresponding to the target workstation, the target workstation selection instruction is generated.
[0012] Optionally, controlling a target device corresponding to the target workstation according to the control instruction of the target workstation includes:
[0013] According to the control instruction of the target station, a target display screen corresponding to the target station is displayed, wherein the target display screen includes a target panel, and the target panel corresponds to the target device one by one;
[0014] In response to the triggering operation of the target panel, the target device is controlled.
[0015] Optionally, before displaying the target display screen corresponding to the target workstation according to the control instruction of the target workstation, the method further includes:
[0016] Establishing a standard panel library, wherein the standard panel library includes a plurality of standard panels;
[0017] According to the standard panel library, determining the standard panels corresponding to all the devices in all the areas as the target panels;
[0018] According to the target panels corresponding to all the devices, the display screens corresponding to all the workstations are determined.
[0019] Optionally, before controlling the target device in response to the triggering operation of the target panel, the method further includes:
[0020] Establishing a standard program library, wherein the standard program library includes a plurality of standard programs, and the standard programs are used to control the operation of the device;
[0021] A correspondence between the standard program and the standard panel is established so that the standard program controls the device to perform a corresponding action based on a triggering operation of the standard panel.
[0022] Optionally, determining the display screens corresponding to all the workstations respectively according to the target panels corresponding to all the devices respectively includes:
[0023] Overlaying the target panels corresponding to all the devices in the same workstation with the main screen template to obtain the intermediate display screens corresponding to all the workstations;
[0024] The display screens corresponding to all the workstations are determined according to the middle display screen and the position of the target panel in the middle display screen.
[0025] Optionally, the method further includes:
[0026] Pull and aggregate the data streams corresponding to all the candidate workstations;
[0027] The area control instruction is transmitted to the devices corresponding to all the candidate workstations through the data stream, so as to simultaneously control the devices corresponding to all the candidate workstations.
[0028] Optionally, determining all candidate workstations in the area according to the area selection instruction includes:
[0029] According to the regions to which all the workstations in all the regions belong and the region identifier in the region selection instruction, a workstation among all the workstations that matches the region identifier is determined as the candidate workstation.
[0030] In a second aspect, the present disclosure provides an information processing device, including:
[0031] a determination module, configured to determine all candidate workstations in a region according to a region selection instruction, wherein the region selection instruction includes a region identifier, and the region identifier corresponds to the region one by one; and to determine a target workstation according to a target workstation selection instruction, wherein the target workstation selection instruction includes a target workstation identifier, and the target workstation identifier corresponds to the target workstation, and the target workstation is one of all the candidate workstations;
[0032] The control module is used to control the target device corresponding to the target station according to the control instruction of the target station.
[0033] In a third aspect, the present disclosure provides an electronic device, comprising: a processor, wherein the processor is used to execute a computer program stored in a memory, wherein the computer program implements the steps of any one of the methods provided in the first aspect when executed by the processor.
[0034] In a fourth aspect, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of any one of the methods provided in the first aspect.
[0035] In the technical solution provided by the present disclosure, all candidate workstations in the area are determined according to the area selection instruction, the area selection instruction includes the area identifier, and the area identifier corresponds to the area one by one; according to the target workstation selection instruction, the target workstation is determined, the target workstation selection instruction includes the target workstation identifier, the target workstation identifier corresponds to the target workstation, and the target workstation is one of all candidate workstations; according to the control instruction of the target workstation, the target device corresponding to the target workstation is controlled, and the target workstation in the area can be controlled individually, thereby realizing single workstation control. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0038] Figure 1 A schematic diagram of a flow chart of a device control method provided by the present disclosure;
[0039] Figure 2 A schematic diagram of a display screen provided by the present disclosure;
[0040] Figure 3 A flow chart of another device control method provided by the present disclosure;
[0041] Figure 4 A schematic diagram of another display screen provided by the present disclosure;
[0042] Figure 5 A flowchart of another device control method provided by the present disclosure;
[0043] Figure 6 A schematic diagram of another display screen provided by the present disclosure;
[0044] Figure 7 A flowchart of another device control method provided by the present disclosure;
[0045] Figure 8 A flowchart of another device control method provided by the present disclosure;
[0046] Fig. 9 A flowchart of another device control method provided by the present disclosure;
[0047] Fig.10 A schematic diagram of a standard procedure provided for the present disclosure;
[0048] Fig.11 A schematic diagram of a target panel provided by the present disclosure;
[0049] Fig.12 A schematic diagram of a main screen template provided by the present disclosure;
[0050] Fig.13 A schematic diagram of an intermediate display screen provided by the present disclosure;
[0051] Fig.14 A flowchart of another device control method provided by the present disclosure;
[0052] Fig.15A flowchart of another device control method provided by the present disclosure;
[0053] Fig.16 A schematic diagram of the structure of a device control device provided by the present disclosure;
[0054] Fig.17 A schematic diagram of the structure of an electronic device provided by the present invention. DETAILED DESCRIPTION
[0055] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0056] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0057] In an automated production line, the entire production line can be divided into multiple workshops based on the entire production process of the product. Each workshop corresponds to a process section. In addition, based on all process procedures in each process section, each workshop is divided into multiple safety zones. A safety zone can include multiple workstations, each workstation can include multiple process equipment, and multiple process equipment in the same workstation are of the same type of equipment. For example, in an automobile production line, the entire automobile production line is divided into a welding workshop, a stamping workshop, a painting workshop and an assembly workshop, which correspond to the welding process section, the stamping process section, the painting process section and the assembly process section respectively. Taking the welding workshop as an example, the welding workshop can be divided into safety zone 1, safety zone 2 and safety zone 3, wherein safety zone 1 includes workstation 010, safety zone 2 includes workstation 020, workstation 030 and workstation 040, and safety zone 3 includes workstation 050, workstation 060 and workstation 070, wherein workstation 010 includes process equipment 1, workstation 020 includes process equipment 2 and process equipment 2' of the same equipment type, workstation 030 includes process equipment 3 and process equipment 3' of the same equipment type, workstation 040 includes process equipment 4 and process equipment 4' of the same equipment type, workstation 050 includes process equipment 5 and process equipment 5' of the same equipment type, workstation 060 includes process equipment 6, and workstation 070 includes process equipment 7.
[0058] The area in the present disclosure may be the safety zone in the above embodiment, or a single workshop in the above embodiment. If the area in the present disclosure is a safety zone, the area selection instruction is an instruction for selecting the safety zone, that is, an instruction for selecting a part of the area; if the area in the present disclosure is a single workshop, the area selection instruction may be an instruction for selecting the current workshop, that is, an instruction for selecting the entire area. For example, based on the above embodiment, the area selection instruction may be an instruction for selecting safety zone 1, an instruction for selecting safety zone 2, or an instruction for selecting safety zone 3, or an instruction for selecting a welding workshop, and this embodiment does not impose any specific restrictions on this.
[0059] In the present disclosure, all candidate workstations in the area are determined according to the area selection instruction, the area selection instruction includes the area identifier, and the area identifier corresponds to the area one by one; according to the target workstation selection instruction, the target workstation is determined, the target workstation selection instruction includes the target workstation identifier, the target workstation identifier corresponds to the target workstation, and the target workstation is one of all candidate workstations; according to the control instruction of the target workstation, the target device corresponding to the target workstation is controlled, and the target workstation in the area can be controlled individually, thereby realizing single workstation control.
[0060] The present invention is described in detail with several specific implementation methods as follows:
[0061] Figure 1 A schematic diagram of a device control method provided by the present disclosure is shown in FIG. Figure 1 As shown, the steps of the information processing method include:
[0062] S101, determining all candidate workstations in an area according to an area selection instruction.
[0063] The area selection instruction includes an area identifier, and the area identifier corresponds to the area in a one-to-one manner.
[0064] Exemplarily, the area selection instruction can be a selection instruction for a partial area or a selection instruction for the entire area. If the area selection instruction is a selection instruction for a partial area, the candidate workstations are some of all the workstations in the current workshop. If the area selection instruction is a selection instruction for the entire area, the candidate workstations are all the workstations in the current workshop. For example, the current workshop is a welding workshop of an automobile production line. Based on the above embodiment, if the area selection instruction is a selection instruction for safety zone 1, the candidate workstation is workstation 010. If the area selection instruction is a selection instruction for safety zone 2, the candidate workstations are workstations 020, 030, and 040. If the area selection instruction is a selection instruction for safety zone 3, the candidate workstations are workstations 050, 060, and 070. If the area selection instruction is a selection instruction for the entire area, the candidate workstations are workstations 010-070.
[0065] The area selection instruction includes an area identifier, which is used to indicate the currently selected area. For example, if the area identifier is S1, it indicates that the area selection instruction is a selection instruction for safety zone 1. If the area identifier is S2, it indicates that the area selection instruction is a selection instruction for safety zone 2. If the area identifier is S3, it indicates that the area selection instruction is a selection instruction for safety zone 3. If the area identifier is SA, it indicates that the area selection instruction is a selection instruction for the current workshop.
[0066] For example, Figure 2 A schematic diagram of a display screen provided by the present disclosure, such as Figure 2 As shown, select the touch buttons showing safety zone 1, safety zone 2 and safety zone 3 in the interface. Figure 2 The touch button of the current workshop is not directly displayed in the figure, and the area to the right of the manual touch button can be used as the touch button area of the current workshop. That is to say, if the user triggers the touch button of safety zone 1, an area selection instruction for safety zone 1 can be generated, and the area selection instruction for safety zone 1 includes area identification S1; if the user triggers the touch button of safety zone 2, an area selection instruction for safety zone 2 can be generated, and the area selection instruction for safety zone 2 includes area identification S2; if the user triggers the touch button of safety zone 3, an area selection instruction for safety zone 3 can be generated, and the area selection instruction for safety zone 3 includes area identification S3; if the user performs a triggering operation in the touch button area of the current workshop, an area selection instruction for the current workshop can be generated, and the area selection instruction for the current workshop includes area identification SA.
[0067] S102, determining a target workstation according to a target workstation selection instruction.
[0068] The target workstation selection instruction includes a target workstation identifier, the target workstation identifier corresponds to the target workstation, and the target workstation is one of all the candidate workstations.
[0069] Based on actual needs, the user determines a candidate workstation from all candidate workstations as the target workstation. All workstations in the current workshop correspond to a workstation identifier. Based on the target workstation identifier corresponding to the target workstation, a target workstation selection instruction can be generated. Based on the target workstation identifier in the target workstation selection instruction, the candidate workstation corresponding to the target workstation identifier can be determined as the target workstation. For example, if the area selection instruction is the area selection instruction for safety zone 2, the candidate workstations are workstations 020, 030, and 040, wherein the workstation identifier of workstation 020 is P020, the workstation identifier of workstation 030 is P030, and the workstation identifier of workstation 040 is P040. Workstation 020 can be selected from workstations 020, 030, and 040 as the target workstation. Based on the target workstation identifier P020 in the target workstation selection instruction, workstation 020 matching the target workstation identifier P020 can be determined as the target workstation.
[0070] It should be noted that the present disclosure only uses workstation 020 as the target workstation for illustrative purposes. In other embodiments, the target workstation may also be workstation 030 or workstation 040. If the target workstation is workstation 030, the target workstation identifier may be P030. If the target workstation is workstation 040, the target workstation identifier may be P040.
[0071] S103: Control a target device corresponding to the target workstation according to the control instruction of the target workstation.
[0072] Exemplarily, the control instruction may be a control instruction for switching the target workstation from automatic control to manual control, or a control instruction for switching the target workstation from manual control to automatic control; or, it may be a control instruction for causing a target device corresponding to the target workstation to perform an action. For example, the control instruction for causing a target device corresponding to the target workstation to perform an action may be an instruction for controlling the opening of a solenoid valve of the target device, an instruction for controlling the release of a clamp of the target device, etc.
[0073] If the control instruction is a control instruction for switching the target station from automatic control to manual control, all target devices on the target station can be switched from automatic control to manual control according to the control instruction of the target station. If the control instruction is a control instruction for switching the target station from manual control to automatic control, all target devices on the target station can be switched from manual control to automatic control according to the control instruction of the target station. If the control instruction is a control instruction for the target device corresponding to the target station to perform an action, all target devices on the target station can be controlled to perform corresponding actions according to the control instruction of the target station. For example, if the control instruction is a control instruction for opening the solenoid valve of the target device corresponding to the target station, the solenoid valves of all target devices on the target station can be controlled to open according to the control instruction of the target station. For another example, if the control instruction is a control instruction for releasing the clamp on the target station corresponding to the target station, the clamps of all target devices on the target station can be controlled to release according to the control instruction of the target station.
[0074] It should be noted that this embodiment is only an illustrative description of the control instructions of the target workstation and is not intended to limit the control instructions.
[0075] In this embodiment, all candidate workstations in the area are determined according to the area selection instruction, the area selection instruction includes the area identifier, and the area identifier corresponds to the area one-to-one; according to the target workstation selection instruction, the target workstation is determined, the target workstation selection instruction includes the target workstation identifier, the target workstation identifier corresponds to the target workstation, and the target workstation is one of all candidate workstations; according to the control instruction of the target workstation, the target device corresponding to the target workstation is controlled, and the target workstation in the area can be controlled individually, thereby realizing single workstation control.
[0076] Figure 3 A flow chart of another device control method provided by the present disclosure is provided. Figure 3 for Figure 1 Based on the embodiment shown, before executing S102, the following step is also included:
[0077] S201, displaying the touch buttons corresponding to all the candidate workstations.
[0078] For example, the area selection instruction is an area selection instruction for safety zone 2, and the candidate workstations are workstation 020, workstation 030, and workstation 040. Accordingly, the touch button ST020 corresponding to workstation 020, the touch button ST030 corresponding to workstation 030, and the touch button ST040 corresponding to workstation 040 will be displayed on the display screen, such as Figure 4 shown.
[0079] S202: In response to a triggering operation on a target touch key corresponding to the target workstation, generate a target workstation selection instruction.
[0080] For example, if the user wants to select station 020 as the target station, the target touch key to be triggered is determined to be touch key ST020, and the user triggers the target touch key, such as Figure 4 As shown, in response to the user's triggering operation on the touch button ST020 and the workstation identification P020 corresponding to the touch button ST020, a selection instruction for the workstation 020, ie, a target workstation selection instruction, is generated.
[0081] In this embodiment, by displaying the touch keys corresponding to all candidate workstations, and responding to the triggering operation of the target touch key corresponding to the target workstation, a target workstation selection instruction is generated, so that the user can select the target workstation of the device.
[0082] Figure 5 A flowchart of another device control method provided by the present disclosure is shown below. Figure 5 for Figure 1 Based on the illustrated embodiment, a possible implementation method for executing S103 is specifically described as follows:
[0083] S1031, displaying a target display screen corresponding to the target workstation according to the control instruction of the target workstation.
[0084] The target display screen includes a target panel, and the target panel corresponds to the target device one by one;
[0085] Exemplarily, the control instruction is a control instruction for switching the target station from automatic control to manual control. After the user triggers the control instruction of the target station, the manually controlled target screen corresponding to the target station can be displayed according to the control instruction of the target station, that is, the target display screen is displayed. The target display screen includes a target panel, and the number of target panels in the target display screen is the same as the number of target devices in the target station. Each target panel corresponds to a target device, and the user can control the corresponding target device by triggering the target panel.
[0086] Figure 6 Schematic diagram of another display screen provided by the present disclosure. Based on the above embodiment, the target station is station 020. According to the control instruction of station 020 switching from automatic control to manual control, the target display screen displayed is as follows: Figure 6 The process equipment in station 020 includes equipment 2 and equipment 2', and the target display screen includes two target panels, such as Figure 6 As shown, they are target panel 2 and target panel 2', respectively, wherein target panel 2 is used to control device 2, and target panel 2' is used to control device 2'.
[0087] S1032: Control the target device in response to the triggering operation of the target panel.
[0088] For example, Figure 6 As shown, the user can trigger the target panel 2 or the target panel 2'. If the user needs to control the device 2, the target panel 2 is triggered. If the user needs to control the device 2, the target panel 2' is triggered. After the user triggers the target panel 2, in response to the triggering operation on the target panel 2, the control device 2 performs a corresponding action. After the user triggers the target panel 2', in response to the triggering operation on the target panel 2', the control device 2' performs a corresponding action. For example, in response to the triggering operation of the solenoid valve opening option in the target panel 2, the solenoid valve of the control device 2 is opened, and in response to the triggering operation of the clamp release option in the target panel 2', the clamp of the control device 1' is released.
[0089] It should be noted that the present disclosure only exemplifies the trigger operation with the solenoid valve opening option and the trigger operation with the release option, and does not limit the trigger operation of the target panel.
[0090] In this embodiment, the target display screen corresponding to the target workstation is displayed according to the control instructions of the target workstation, and the target display screen includes a target panel, and the target panel corresponds one-to-one to the target device; in response to the trigger operation of the target panel, the target device is controlled, which facilitates the user to manually control a single device.
[0091] Figure 7 A flowchart of another device control method provided by the present disclosure is shown below. Figure 7 for Figure 5 Based on the embodiment shown, before executing S1031, the following step is also included:
[0092] S301, establish a standard panel library.
[0093] The standard panel library includes multiple standard panels.
[0094] Exemplarily, all process equipment on the automobile assembly line are classified into types based on their respective functions. For example, all process equipment on the automobile assembly line can be divided into 14 types, namely safety equipment, alarm, operation box, vehicle type transmission, drive equipment, energy, human machine interface (HMI), manufacturing execution system (MES), interaction between two PLCs, production data, dock reader, robot, sensor, and valve island.
[0095] For each type of process equipment, a standard panel is determined. For example, based on the above embodiment, 14 standard panels can be determined, which are standard panels related to safety equipment, standard panels related to alarms, standard panels related to operation boxes, standard panels related to vehicle model transmission, standard panels related to drive equipment, standard panels related to energy, standard panels related to HMI, standard panels related to MES, standard panels related to interaction between two sets of PLCs, standard panels related to production data, standard panels related to dock readers, standard panels related to robots, standard panels related to sensors, and standard panels related to valve islands. Based on the standard panels corresponding to all types of process equipment, a standard panel library is established. For example, based on the above embodiment, the established standard panel library includes 14 standard panels.
[0096] S302: Determine, according to the standard panel library, the standard panels corresponding to all the devices in all the areas as the target panels.
[0097] According to the types corresponding to all process equipment in all safety zones of the current workshop, the standard panels corresponding to all process equipment in all safety zones of the previous workshop are determined from the standard panel library, and the determined standard panels corresponding to each process equipment are the target panels corresponding to each process equipment. For example, based on the standard panel library in the above embodiment, it can be determined that the target panel corresponding to all process equipment of the safety equipment class in the welding workshop is the standard panel related to the safety equipment, the target panel corresponding to all process equipment of the alarm class is the standard panel related to the alarm, the target panel corresponding to all process equipment of the operation box class is the standard panel related to the operation box, the target panel corresponding to all process equipment of the vehicle type transmission class is the standard panel related to the vehicle type transmission, the target panel corresponding to all process equipment of the drive equipment class is the standard panel related to the drive equipment, the target panel corresponding to all process equipment of the HMI class is the standard panel related to the HMI, the target panel corresponding to all process equipment of the MES class is the standard panel related to the MES, the target panel corresponding to all process equipment of the interaction class between two sets of PLCs is the standard panel related to the interaction between two sets of PLCs, the target panel corresponding to all process equipment of the production data class is the standard panel related to the production data, the target panel corresponding to all process equipment of the reader terminal class is the standard panel related to the reader terminal, the target panel corresponding to all process equipment of the robot class is the standard panel related to the robot, the target panel corresponding to all process equipment of the sensor class is the standard panel related to the sensor, and the target panel corresponding to all process equipment of the valve island class is the standard panel related to the valve island.
[0098] S303: Determine the display screens corresponding to all the workstations according to the target panels corresponding to all the devices.
[0099] Based on the target panels corresponding to each process equipment in all the process equipment in the current workshop determined in the above embodiment and the process equipment corresponding to each workstation, the number of target panels corresponding to each workstation is determined; based on the number of target panels at each workstation and the position of each panel, the display screen corresponding to each workstation is determined.
[0100] For example, station 020 includes equipment 2 and equipment 2', both of which are MES-type process equipment. The display screen corresponding to station 020 includes two target panels, namely target panel 2 and target panel 2'. Figure 6 As shown, the final display screen of the workstation 020 is determined according to the respective positions of the target panel 2 and the target panel 2'.
[0101] In this embodiment, a standard panel library is established, which includes multiple standard panels. According to the standard panel library, the standard panels corresponding to all devices in all areas are determined as target panels. According to the target panels corresponding to all devices, the display screens corresponding to all workstations are determined. The display screens corresponding to each workstation can be automatically generated based on the standard panel library, which shortens the generation time of the display screens and improves the generation efficiency of the display screens.
[0102] Figure 8 A flowchart of another device control method provided by the present disclosure is shown below. Figure 8 for Figure 7 Based on the embodiment shown, before executing S1032, the method further includes:
[0103] S304, establishing a standard program library.
[0104] The standard program library includes a plurality of standard programs, and the standard programs are used to control the actions of the device.
[0105] Exemplarily, based on the control logic of the 14 types of process equipment determined in the above embodiment, standard programs corresponding to the 14 types are determined, wherein the standard programs correspond to the types of process equipment one by one, and based on these 14 standard programs, the corresponding types of process equipment can be controlled to perform corresponding actions. For example, based on the above embodiment, the 14 standard programs can be determined to be standard programs related to safety equipment, standard programs related to alarms, standard programs related to operation boxes, standard programs related to vehicle model transmission, standard programs related to drive equipment, standard programs related to energy, standard programs related to HMI, standard programs related to MES, standard programs related to interaction between two sets of PLCs, standard programs related to production data, standard programs related to dock reading, standard programs related to robots, standard programs related to sensors, and standard programs related to valve islands. Among them, standard programs based on safety equipment can control process equipment of safety equipment type, standard programs based on alarm can control process equipment of alarm type, standard programs based on operation box can control process equipment of operation box type, standard programs based on vehicle type transmission can control process equipment of vehicle type transmission type, standard programs based on drive equipment can control process equipment of drive equipment type, standard programs based on energy can control process equipment of energy type, standard programs based on HMI can control process equipment of HMI type, standard programs based on MES can control process equipment of MES type, standard programs based on interaction between two sets of PLCs can control process equipment of interaction between two sets of PLCs, standard programs based on production data can control process equipment of production data type, standard programs based on reading dock can control process equipment of reading dock type, standard programs based on robots can control process equipment of robots, standard programs based on sensors can control process equipment of sensors type, and standard programs based on valve islands can control process equipment of valve islands type.
[0106] Based on the determined standard programs corresponding to all types of process equipment, a standard program library is established. For example, based on the above embodiment, the established standard program library includes 14 standard programs.
[0107] S305: Establishing a correspondence between the standard program and the standard panel, so that the standard program controls the device to perform a corresponding action based on a triggering operation of the standard panel.
[0108] Establish the correspondence between each standard program in the standard program library and the standard panel in the standard conversion panel library, where the standard program corresponds to the standard panel one by one. The establishment of the correspondence here can be achieved by programming the SIVArc interface of the standard panel in the SIVArc of the Siemens PLC. After the correspondence between the standard program and the standard panel is established, the trigger operation based on the standard panel can trigger the execution of the standard program, and the standard program can control the equipment to perform corresponding actions in the running state.
[0109] In this embodiment, a standard program library is established, which includes multiple standard programs. The standard programs are used to control equipment actions. A correspondence between standard programs and standard panels is established so that the standard programs control the equipment to perform corresponding actions based on the triggering operations of the standard panel. The control of each process equipment can be achieved based on the standard programs in the standard program library. There is no need to write an execution program for each process equipment. The execution program for each process equipment can be automatically generated, which shortens the writing time of the execution program, thereby improving the generation efficiency of the execution program for the process equipment.
[0110] Fig. 9 A flowchart of another device control method provided by the present disclosure is shown below. Fig. 9 for Figure 7 Based on the illustrated embodiment, a possible implementation method for executing S303 is specifically described as follows:
[0111] S3031, superimposing the target panels corresponding to all the devices in the same workstation with the main screen template to obtain the intermediate display screens corresponding to all the workstations.
[0112] For example, the target panel is a standard panel related to MES. The following is an example of a target panel that is a standard panel for MES point information. Based on the point logic between PLC and MES, the standard procedure for MES point information can be determined, such as Fig.10 As shown, for Fig.10 The standard procedure for MES point information shown determines the standard panel for MES point information, such as Fig.11 shown.
[0113] Fig.12 A schematic diagram of a main screen template provided by the present disclosure. The main screen template can be understood as the common part of the display screen corresponding to each workstation. For example, Fig.12 As shown, the main screen template includes an on / off button, an automatic mode button, a start button, a manual button, a display area for all workstations in the current workshop, and a display area for the target panel ( Fig.12 The present embodiment does not impose any specific limitation on this.
[0114] Based on the above embodiment, the target panels of all process equipment in the same workstation are displayed in the target panel display area of the main screen template, so that the target panel and the main screen template are superimposed to obtain the intermediate display screen corresponding to each workstation, such as Fig.13 shown.
[0115] S3032: Determine the display screens corresponding to all the workstations according to the intermediate display screen and the position of the target panel in the intermediate display screen.
[0116] For example, Fig.13 As shown, the target panel display area of each intermediate display screen displays the target panel corresponding to the corresponding workstation, wherein the position of the target panel is adjustable, and the user can adjust the position of the target panel by setting the position information or dragging. The intermediate display screen obtained after adjusting the target facing position is the final display screen corresponding to the workstation.
[0117] In this embodiment, the target panels corresponding to all devices in the same workstation are superimposed on the main screen template to obtain an intermediate display screen corresponding to all workstations; based on the intermediate display screen and the position of the target panel in the intermediate display screen, the display screen corresponding to all workstations is determined, and the position of the target panel in the display screen can be flexibly set, so that the display screen of each workstation has high flexibility.
[0118] On the basis of the above embodiment, a trigger condition for displaying the target panel in the intermediate display screen corresponding to each workstation may be set, and whether to display the target panel is determined based on the trigger condition, thereby further improving the flexibility of the display screen.
[0119] Fig.14 A flowchart of another device control method provided by the present disclosure is shown below. Fig.14 for Figure 1 Based on the embodiment shown, it also includes:
[0120] S104: Pull and aggregate the data streams corresponding to all the candidate workstations.
[0121] After the candidate stations are determined, the data streams of all devices in all the candidate stations are pulled, and the data streams of all devices in all the candidate stations are summarized. For example, based on the above embodiment, if the candidate station is station 010, the data streams of all devices in station 010 are pulled and summarized, if the candidate stations are stations 020-station 040, the data streams of all devices in stations 020-station 040 are pulled and summarized, if the candidate stations are stations 050-station 070, the data streams of all devices in stations 050-station 070 are pulled and summarized, and if the candidate stations are stations 010-station 070, the data streams of all devices in stations 010-station 070 are pulled and summarized.
[0122] S105 , transmitting the area control instruction to the devices corresponding to all the candidate workstations through the data stream, so as to simultaneously control the devices corresponding to all the candidate workstations.
[0123] Exemplarily, the area control instruction may be a partial area control instruction or a full area control instruction. For example, the current workshop is a welding workshop of an automobile production line, and the welding workshop is divided into safety zone 1, safety zone 2, and safety zone 3, wherein safety zone 1 includes workstation 010, safety zone 2 includes workstation 020, workstation 030, and workstation 040, and safety zone 3 includes workstation 050, workstation 060, and workstation 070. If the area control instruction is a partial area control instruction, that is, the area control instruction may be a control instruction of safety zone 1, a control instruction of safety zone 2, or a control instruction of safety zone 3, if the area control instruction is a full area control instruction, that is, the area control instruction may be a control instruction of the current workshop.
[0124] Exemplarily, based on the above embodiment, if the candidate station is station 010, the data streams of all devices in station 010 are pulled and summarized, and the corresponding area control instructions are the control instructions of safety zone 1, then the control instructions of safety zone 1 are sent to all devices in station 010 through the summarized data stream, so that the control instructions based on safety zone 1 can simultaneously control all devices in station 010. If the candidate stations are stations 020-station 040, the data streams of all devices in stations 020-station 040 are pulled and summarized, and the corresponding area control instructions are the control instructions of safety zone 2, then the control instructions of safety zone 2 are sent to all devices in stations 020-station 040 through the summarized data stream, so that the control instructions based on safety zone 2 can simultaneously control all devices in stations 020-station 040. If the candidate stations are stations 050-070, the data streams of all the equipment in stations 050-070 are pulled and summarized, and the corresponding regional control instructions are the control instructions of safety zone 3, then the control instructions of safety zone 3 are sent to all the equipment in stations 050-070 through the summarized data stream, so that all the equipment in stations 050-070 can be controlled simultaneously based on the control instructions of safety zone 3. If the candidate stations are stations 010-070, the data streams of all the equipment in stations 010-070 are pulled and summarized, and the corresponding regional control instructions are the control instructions of the current workshop, then the control instructions of the current workshop are sent to all the equipment in stations 010-070 through the summarized data stream, so that all the equipment in stations 010-070 can be controlled simultaneously based on the control instructions of the current workshop.
[0125] In this embodiment, by pulling and aggregating the data streams corresponding to all the candidate workstations, the area control instructions are transmitted to the devices corresponding to all the candidate workstations through the data stream to simultaneously control the devices corresponding to all the candidate workstations, so that all the workstations in the same area can be controlled at the same time, thereby achieving overall control of all the workstations in the area.
[0126] Fig.15 A flowchart of another device control method provided by the present disclosure is shown below. Fig.15 for Figure 1 Based on the illustrated embodiment, a possible implementation method for executing S101 is specifically described as follows:
[0127] S101', according to the regions to which all the workstations in the region belong and the region identifiers in the region selection instruction, determine the workstations matching the region identifiers among all the workstations as the candidate workstations.
[0128] Exemplarily, all workstations in the current workshop correspond to an area attribute, which is used to indicate the safety zone to which the corresponding workstation belongs. From all the area attributes, the area attribute that matches the area identifier in the area selection instruction is determined, and all workstations corresponding to the matching area attributes are determined to be candidate workstations. For example, based on the above embodiment, the area attribute of workstation 010 is safety zone 1, the area attributes of workstations 020-040 are all safety zone 2, and the area attributes of workstations 050-070 are all safety zone 3.
[0129] If the area selection instruction is a selection instruction for safety zone 1, and the area attribute that matches the area identifier S1 is safety zone 1, then workstation 010 is a candidate workstation; if the area selection instruction is a selection instruction for safety zone 2, and the area attribute that matches the area identifier S2 is safety zone 2, then workstations 020-040 are candidate workstations; if the area selection instruction is a selection instruction for safety zone 3, and the area attribute that matches the area identifier S3 is safety zone 3, then workstations 050-070 are candidate workstations.
[0130] The present disclosure also provides a device control apparatus, Fig.16 A schematic diagram of the structure of a device control device provided by the present disclosure, such as Fig.16 As shown, the equipment control device includes:
[0131] The determination module 110 is used to determine all candidate workstations in the area according to the area selection instruction, the area selection instruction includes an area identifier, and the area identifier corresponds to the area one by one; determine the target workstation according to the target workstation selection instruction, the target workstation selection instruction includes a target workstation identifier, the target workstation identifier corresponds to the target workstation, and the target workstation is one of all the candidate workstations.
[0132] The control module 120 is used to control the target device corresponding to the target station according to the control instruction of the target station.
[0133] Optionally, the equipment control device further includes:
[0134] The display module is used to display the touch buttons corresponding to all the candidate workstations.
[0135] A generating module is used to generate the target station selection instruction in response to a triggering operation on a target touch key corresponding to the target station.
[0136] Optionally, the control module 120 is further used to display a target display screen corresponding to the target workstation according to the control instruction of the target workstation, wherein the target display screen includes a target panel, and the target panel corresponds one-to-one to the target device; and control the target device in response to a trigger operation of the target panel.
[0137] Optionally, the determination module 110 is also used to establish a standard panel library, which includes multiple standard panels; based on the standard panel library, determine that the standard panel corresponding to all the equipment in all the areas is the target panel; based on the target panel corresponding to all the equipment, determine the display screen corresponding to all the workstations.
[0138] Optionally, the determination module 110 is also used to establish a standard program library, which includes multiple standard programs, and the standard programs are used to control the actions of the device; establish a correspondence between the standard programs and the standard panel, so that the standard program controls the device to perform corresponding actions based on the trigger operation of the standard panel.
[0139] Optionally, the determination module 110 is further used to superimpose the target panel corresponding to all the devices in the same workstation with the main screen template to obtain an intermediate display screen corresponding to all the workstations; and determine the display screen corresponding to each of the workstations according to the intermediate display screen and the position of the target panel in the intermediate display screen.
[0140] Optionally, the control module 120 is further used to pull and aggregate the data streams corresponding to all the candidate workstations; and transmit the area control instructions to the devices corresponding to all the candidate workstations through the data streams, so as to simultaneously control the devices corresponding to all the candidate workstations.
[0141] Optionally, the determination module 110 is further configured to determine, according to the regions to which all the workstations in all the regions belong and the region identifiers in the region selection instructions, a workstation among all the workstations that matches the region identifier as the candidate workstation.
[0142] The device provided by the embodiment of the present invention can execute the method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0143] The present disclosure further provides an electronic device, comprising: a processor, wherein the processor is configured to execute a computer program stored in a memory, wherein the computer program implements the steps of the above method embodiment when executed by the processor.
[0144] Fig.17 A schematic diagram of the structure of an electronic device provided by the present disclosure is shown in FIG. Fig.17 A block diagram of an exemplary electronic device suitable for implementing an exemplary embodiment of the present invention is shown. Fig.17 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0145] like Fig.17 As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processor 16).
[0146] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0147] The electronic device 12 typically includes a variety of computer system readable media. These media can be any media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.
[0148] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media (commonly referred to as "hard drives"). A disk drive for reading and writing removable non-volatile disks (such as "floppy disks"), and an optical disk drive for reading and writing removable non-volatile optical disks (such as CD-ROMs, DVD-ROMs, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data media interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the embodiments of the present invention.
[0149] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described in the embodiments of the present invention.
[0150] The processor 16 executes various functional applications and information processing by running at least one program among a plurality of programs stored in the system memory 28 , such as implementing the method embodiment provided by the embodiment of the present invention.
[0151] The present disclosure also provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the steps of the above method embodiment when executed by a processor.
[0152] Any combination of one or more computer-readable media can be used. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, computer-readable storage media can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0153] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0154] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0155] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN) domain, or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0156] The present disclosure also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the steps of implementing the above method embodiments.
[0157] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0158] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A device control method, characterized in that: include: Determine all candidate workstations in the area according to the area selection instruction, wherein the area selection instruction includes an area identifier, and the area identifier corresponds to the area one by one; Determine a target workstation according to a target workstation selection instruction, wherein the target workstation selection instruction includes a target workstation identifier, the target workstation identifier corresponds to the target workstation, and the target workstation is one of all the candidate workstations; Controlling a target device corresponding to the target station according to a control instruction of the target station; Determining all candidate workstations in the area according to the area selection instruction includes: According to the regions to which all the workstations in all the regions belong and the region identifier in the region selection instruction, a workstation among all the workstations that matches the region identifier is determined as the candidate workstation.
2. The method according to claim 1, characterized in that The step of controlling a target device corresponding to the target station according to the control instruction of the target station includes: According to the control instruction of the target station, a target display screen corresponding to the target station is displayed, wherein the target display screen includes a target panel, and the target panel corresponds to the target device one by one; In response to the triggering operation of the target panel, the target device is controlled.
3. The method according to claim 2, characterized in that Before displaying the target display screen corresponding to the target workstation according to the control instruction of the target workstation, the method further includes: Establishing a standard panel library, wherein the standard panel library includes a plurality of standard panels; According to the standard panel library, determining the standard panels corresponding to all the devices in all the areas as the target panels; According to the target panels corresponding to all the devices, the display screens corresponding to all the workstations are determined.
4. The method according to claim 3, characterized in that Before the target device is controlled in response to the triggering operation of the target panel, the method further includes: Establishing a standard program library, wherein the standard program library includes a plurality of standard programs, and the standard programs are used to control the operation of the device; A correspondence between the standard program and the standard panel is established so that the standard program controls the device to perform a corresponding action based on a triggering operation of the standard panel.
5. The method according to claim 3, characterized in that: The step of determining the display screens corresponding to all the workstations according to the target panels corresponding to all the devices respectively includes: Overlaying the target panels corresponding to all the devices in the same workstation with the main screen template to obtain the intermediate display screens corresponding to all the workstations; The display screens corresponding to all the workstations are determined according to the middle display screen and the position of the target panel in the middle display screen.
6. The method according to any one of claims 1 to 5, characterized in that: Also includes: Pull and aggregate the data streams corresponding to all the candidate workstations; The area control instruction is transmitted to the devices corresponding to all the candidate workstations through the data stream, so as to simultaneously control the devices corresponding to all the candidate workstations.
7. A device control device, characterized in that: include: a determination module, configured to determine all candidate workstations in a region according to a region selection instruction, wherein the region selection instruction includes a region identifier, and the region identifier corresponds to the region one by one; and to determine a target workstation according to a target workstation selection instruction, wherein the target workstation selection instruction includes a target workstation identifier, and the target workstation identifier corresponds to the target workstation, and the target workstation is one of all the candidate workstations; A control module, used to control a target device corresponding to the target station according to a control instruction of the target station; The determination module is used to determine, according to the regions to which all the workstations in the region belong and the region identifier in the region selection instruction, a workstation among all the workstations that matches the region identifier as the candidate workstation.
8. An electronic device, characterized in that: include: A processor, wherein the processor is used to execute a computer program stored in a memory, wherein the computer program, when executed by the processor, implements the steps of the method described in any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
