Drawing assistance program, drawing assistance method, drawing assistance device, and drawing assistance system
By implementing the difference extraction function in the drawing auxiliary program, the project data is automatically edited to reflect changes in the attribute data, the problem of inefficient editing in the prior art is solved and the editing efficiency of project data is improved.
Patent Information
- Application Number
- CN202280097758.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-19
- Publication Date
- 2025-02-18
AI Technical Summary
When editing project data, the prior art cannot automatically reflect the addition or deletion of specific elements in the attribute data, resulting in inefficient editing.
By implementing the difference extraction function in the drawing auxiliary program, the differences between attribute data and project data are compared and the difference is edited based on these differences.
It improves the efficiency of project data editing for display control of the screen displayed in a programmable display, and reduces the need for user manual editing.
Smart Images

Figure CN119487566A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a drawing assistance program, a drawing assistance method, a drawing assistance device and a drawing assistance system. Background Art
[0002] The programmable display is connected to a control device such as a PLC (Programmable Logic Controller) to display and operate the status of the device and the connected control device. As a data set constituting the content displayed on the programmable display, for example, project data is used. Project data is data used to display and operate the status of the control device, and is created using a computer installed with drawing software, i.e., a drawing assistance device. The created project data is forwarded from the drawing assistance device to the programmable display. Project data generally does not have a data format that can be read and written by a general editor such as a text editor or a spreadsheet application. Therefore, when the content is to be changed after it is created, its content is changed, for example, via a GUI (Graphical User Interface) of the drawing software.
[0003] At this time, generally speaking, the project data newly created by the drawing software is not the content corresponding to the required specifications of each programmable display. Therefore, the user who created the project data usually edits the content through the GUI etc. of the drawing software for the purpose of changing to the desired specifications. In addition, the user sometimes edits the project data through the GUI etc. for the purpose of using the project data created in the past in accordance with the prescribed required specifications.
[0004] Here, a user who edits project data may create information for editing project data as property data in advance in order to edit project data via a GUI, etc. Property data is different from project data and has a data format that can be read and written by a general editor.
[0005] Various techniques have been proposed for editing project data. For example, Patent Document 1 discloses a technique for creating project data corresponding to the requirements of each programmable display by reflecting the contents of project attribute data including individual setting information matching the requirements of each programmable display to project data that is a commonly used master. In this case, the individual setting information is managed, for example, by setting IDs that are set for objects and background functions included in drawing data constituting the project data.
[0006] Patent Document 1: International Publication No. 2013 / 080332 Summary of the invention
[0007] However, in the above-mentioned Patent Document 1, for example, when a specific element managed by setting an ID is added or deleted in the item attribute data used to edit the item data as the master, the edited content cannot be reflected in the item data. In this case, regarding the addition or deletion of the specific element, the user needs to manually edit and reflect the item data through, for example, a GUI of the drawing software, which has a problem of poor editing efficiency of the item data.
[0008] The present invention is proposed in view of the above situation, and its purpose is to provide a drawing assistance program, a drawing assistance method, a drawing assistance device and a drawing assistance system, which can provide editing efficiency of project data for controlling the display of a screen displayed on a programmable display.
[0009] In order to achieve the above-mentioned purpose, the drawing auxiliary program involved in the present invention enables a computer to implement the following functions: an acquisition function, which acquires attribute data for editing project data, and the project data is created to control the display of a screen displayed in a programmable display; a difference extraction function, which compares the attribute data with the project data and extracts their difference; and an editing function, which edits the project data based on the difference.
[0010] Effects of the Invention
[0011] According to the present invention, it is possible to provide a drawing support program, a drawing support method, a drawing support device, and a drawing support system that can improve the editing efficiency of project data for controlling the display of a screen displayed on a programmable display. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 It is a diagram showing a configuration example of a drawing support system according to an embodiment.
[0013] Figure 2 It is a diagram showing a configuration example of a drawing support device according to an embodiment.
[0014] Figure 3 This is a diagram for explaining the data structure of project data according to the embodiment.
[0015] Figure 4 This is a diagram for explaining the data structure of attribute data according to the embodiment.
[0016] Figure 5 It is a diagram showing an operation example of the drawing assistance device according to the embodiment.
[0017] Figure 6 FIG. 1 is a diagram showing an example of a difference extraction process executed by the drawing support device according to the embodiment.
[0018] Figure 7 It is a diagram showing an example of difference extraction result data according to the embodiment.
[0019] Figure 8 This is a diagram for explaining the relationship among the general editor before editing, attribute data, and item data according to the embodiment.
[0020] Fig. 9 This is a diagram for explaining the relationship among the general editor, attribute data, and item data after editing according to the embodiment.
[0021] Fig.10 It is a diagram showing a configuration example of a drawing support system according to a modification.
[0022] Fig.11 This is a configuration example of a drawing support device according to a modification.
[0023] Fig.12 FIG. 1 is a diagram showing an example of a state monitoring process executed by a drawing support device according to a modification.
[0024] Fig.13 It is a diagram for explaining state monitoring of attribute data according to a modification example.
[0025] Fig.14 This is a diagram showing an example of a notification method when a change in attribute data is detected according to a modification.
[0026] Fig.15 It is a diagram for explaining the complementation processing of attribute data according to the modification example.
[0027] Fig.16 This is a diagram for explaining the attribute data reflection process according to the modification example when there is no item data being edited. DETAILED DESCRIPTION
[0028] Below, while referring to the attached Figure 1 In the following embodiments, parts with the same reference numerals perform the same operations, and duplicate descriptions are appropriately omitted.
[0029] (Implementation Method)
[0030] Figure 1 It is a diagram showing a configuration example of a drawing support system 1 according to an embodiment.
[0031] The drawing assistance system 1 is a system including a drawing assistance device 10 and a programmable display 20. The drawing assistance device 10 and the programmable display 20 are connected to each other so as to be communicable.
[0032] The drawing assistance device 10 is a device that assists in drawing a display screen displayed on the programmable display 20. For example, drawing software for drawing a display screen displayed on the programmable display 20 is installed in the drawing assistance device 10. For example, a user using the drawing software can edit various screens displayed by the programmable display 20 via a GUI (Graphic User Interface).
[0033] The programmable display 20 displays, for example, information on the state of an external device connected to the programmable display 20. In addition, the programmable display 20 receives a predetermined operation and controls the external device according to the received operation. The external device is, for example, a PLC (Programmable Logic Controller).
[0034] Figure 2 1 is a diagram showing a configuration example of a drawing support device 10 according to an embodiment.
[0035] The drawing assisting device 10 includes a processing circuit 11 , an input interface 12 , an output interface 13 , a communication interface 14 , and a storage circuit 15 .
[0036] The processing circuit 11 is a processor that functions as the core of the drawing assisting device 10. The processing circuit 11 implements functions corresponding to the executed program by, for example, executing the program stored in the storage circuit 15. In addition, the processing circuit 11 may also have a storage area for storing at least a part of the data stored in the storage circuit 15.
[0037] The input interface 12 receives various operations input from the operator to the drawing assisting device 10. The input interface 12 is implemented by, for example, a mouse, a keyboard, and a touch panel for inputting instructions by touching the operation surface. The input interface 12 is connected to the processing circuit 11, converts the operation instructions input from the operator into electrical signals, and outputs the electrical signals to the processing circuit 11. In addition, in this specification, the input interface 12 is not limited to physical operation components such as a mouse and a keyboard. For example, an example of the input interface 12 also includes an electrical signal processing circuit, which receives an electrical signal corresponding to an operation instruction input from an external input device, and outputs the electrical signal to the processing circuit 11, wherein the input device is provided separately from the drawing assisting device 10.
[0038] The output interface 13 is connected to the processing circuit 11, and outputs the signal supplied from the processing circuit 11. The output interface 13 is implemented by, for example, a display circuit and an audio device. The display circuit includes, for example, a CRT display, a liquid crystal display, an organic EL display, an LED display, and a plasma display. The audio device includes, for example, a speaker. In addition, the audio device may also include an output circuit that outputs an audio signal to the outside. In addition, the output interface 13 may also be implemented as a touch panel or a touch screen together with the input interface 12.
[0039] The communication interface 14 transmits and receives data to and from an external device. Any communication standard can be used between the communication interface 14 and the external device. Specifically, the communication interface 14 transmits and receives various data to and from the programmable display 20, for example.
[0040] The storage circuit 15 includes a magnetic or optical recording medium, or a recording medium such as a semiconductor memory that can be read by a processor. In addition, the storage circuit 15 can also be a drive device that reads and writes various information between a CD-ROM drive, a DVD drive, and a portable storage medium such as a flash memory. In addition, the storage circuit 15 does not necessarily have to be implemented by a single storage device. For example, the storage circuit 15 can also be implemented by multiple storage devices.
[0041] The storage circuit 15 stores, for example, Figure 2 Project data 16 and attribute data 17 are shown.
[0042] The project data 16 is data for controlling the display of the screen displayed in the programmable display. The project data 16 includes, for example, information related to the project setting, information related to the displayed screen, information related to the background function, etc. The project data 16 is created by, for example, the drawing software installed in the drawing assistance device 10. The created project data 16 is forwarded from the drawing assistance device 10 to the programmable display 20. The project data 16 forwarded to the programmable display 20 is read and expanded by, for example, the display program possessed by the programmable display 20, and directly participates in the display control of the screen displayed in the programmable display 20. In addition, the created project data 16 is stored in the storage circuit 15, and can be re-imported and reused by, for example, the drawing software. The project data 16 imported into the drawing software is displayed on the screen via, for example, the output interface 13. In addition, the project data 16 does not have a data format that can be read and written by a general editor such as a text editor or a spreadsheet application, and is, for example, data that can be edited on a GUI possessed by the drawing software.
[0043] Figure 3 It is a diagram for explaining the data structure of the project data 16 according to the embodiment. Figure 3The project data 16 shown is composed of elements related to various functions for controlling the screen display (hereinafter referred to as functional elements). Specifically, for example, functional element 161 related to project setting, functional element 162 related to screen group, and functional element 163 related to background function are cited. In addition, the functional elements are composed of a hierarchical structure. For example, functional element 161 includes functional element 1611 related to monitoring target information. In addition, functional element 162 includes functional elements 1621 and 1622 related to the screen. In addition, functional element 163 includes functional element 1631 related to alarm function and functional element 1632 related to recipe function. Furthermore, functional element 1621 includes functional element 1623 related to screen setting and functional element 1624 related to object group. Furthermore, functional element 1624 includes functional elements 1625 and 1626 related to each object. In Figure 3 It can be seen that the functional elements 1622, 1631, and 1632 also have the same hierarchical structure. In addition, each functional element is associated with image data, various setting information, etc. according to its role and function.
[0044] In addition, if Figure 3 As shown in FIG. 1 , each functional element is assigned a “function name” and a “No.”. And, the functional element recognizes, for example, a combination of “function name” and “No.” as an identifier. Specifically, Figure 3 The functional element 1624 shown shows that the name of the object, i.e., "Function Name" is "Light", "No." is "10001", and the identifier is "Light 10001". Hereinafter, the identifier represented by "Function Name + No." indicating the index number of the function is referred to as the functional element ID. In addition, the functional element ID shows an example of a combination of a character string and a numerical value, but is not limited to this. The functional element ID may be composed of only numerical values, or may include other symbols.
[0045] In addition, information addition, update, and deletion are performed for each functional element in the project data 16. That is, the functional element is a data set that becomes an editing object in the project data 16. In addition, editing of project data is processing in functional element units, and at least includes adding functional elements to project data, updating the content of functional elements included in project data, and deleting functional elements included in project data.
[0046] The attribute data 17 is data used to edit the project data 16. The attribute data 17 includes text data other than template data such as image data and design themes in the data group constituting the project data 16. Unlike the project data 16, the attribute data 17 has a data format that can be read and written by a general editor. Specifically, the attribute data 17 has, for example, information in a record format that associates the following information, namely: a functional element ID, a property name representing an editable property (attribute) of the functional element determined by the functional element ID, and a property value set for the property. The file format of the attribute data 17 is, for example, text, CSV, XML, HTML, JSON, etc. In addition, the file format of the attribute data 17 is not limited as long as the corresponding relationship between the functional element, the property name, and the property value can be recognized by the drawing software.
[0047] In addition, the attribute data 17 can include the target range information. The target range information can limit the range of the project data to be edited by importing the attribute data. In addition, the target range information can be omitted.
[0048] Figure 4 1 is a diagram for explaining the data structure of the project data 17 involved in the embodiment. Figure 4 As shown, the attribute data 17 has text data. Figure 4 In the illustrated attribute data 17 , the target range for editing the project data 16 is limited by the target range information.
[0049] Figure 4 The range R1 shown contains the object range information. Figure 4 In the range R1 shown, it is shown that the parent group to be edited is the functional element with the identifier "screen 101". In addition, it is shown that the function names of the functions to be edited are "light" and "numerical value display".
[0050] Figure 4 The range R2 shown contains information representing a set of records related to the functional element. Specifically, Figure 4 The range R2 shown includes information indicating a record set, which is obtained by associating, for example, the function name, number, characteristic name, and characteristic value of the items constituting the record. Specifically, for example, it includes records such as "Function name: light", "No.: 10001", "Characteristic name: screen", and "Characteristic value: screen 101". In addition, the function element ID of the record is "light 10001" with the number added to the function name. In addition, in the attribute data 17, there may be multiple records corresponding to one function element ID, for example, according to Figure 4, as the second record corresponding to the functional element ID "Light 10001", a record including "Function name: Light", "No.: 10001", "Characteristic name: Equipment", and "Characteristic value: Y1" is included. As other records have the same data structure, description thereof is omitted.
[0051] The storage circuit 15 reads out the stored data according to the control from the processing circuit 11. For example, the storage circuit 15 reads out the stored program according to the control from the processing circuit 11. In addition, the storage circuit 15 reads out the project data 16, the attribute data 17 and other stored various data according to the control from the processing circuit 11.
[0052] The processing circuit 11 according to the present embodiment executes the program according to the present embodiment, thereby editing, for example, Figure 3 The project data 16 is shown. Specifically, the processing circuit 11 realizes the acquisition function 111, the difference extraction function 112, and the editing function 113 by executing a program stored in the storage circuit 15, for example.
[0053] The acquisition function 111 is a function of acquiring attribute data 17 for editing project data. In the acquisition function 111, the processing circuit 11 acquires the attribute data 17, for example, starting from the operation of the user. Specifically, the user creates the attribute data 17 by any method such as using a general editor or a tool that converts a design document into the form of attribute data, and performs an operation of inputting the created attribute data 17 into the drawing support device 10. At this time, the project data 16 to be the object of reflecting the content of the attribute data 17 is read into the drawing software, for example, so that the processing circuit 11 can refer to it. When the input operation of the attribute data 17 is performed, the processing circuit 11 acquires the input attribute data 17.
[0054] The difference extraction function 112 is a function for comparing the item data 16 with the corresponding attribute data 17 and extracting the difference. In the difference extraction function 112, the processing circuit 11 extracts the difference between the item data 16 and the attribute data 17 using, for example, an ID that can be commonly identified by the item data 16 and the attribute data 17. The ID is, for example, a functional element ID.
[0055] The editing function 113 is a function for editing the project data 16 based on the difference between the project data 16 and the attribute data 17 extracted by the execution of the difference extraction function 112. In the editing function 113, the processing circuit 11 adds the functional element to the project data 16, for example, when only the attribute data 17 includes a predetermined functional element. Specifically, the processing circuit 11 reflects the recorded information related to the predetermined functional element included in the attribute data 17 in the project data 16 in association with the image data, various setting information, etc., as needed. Thus, the content of the predetermined functional element is added to the project data 16. In addition, the processing circuit 11 updates the content of the project data 16 with the content of the attribute data 17, for example, when both the project data 16 and the attribute data 17 include the predetermined functional element. In addition, the processing circuit 11 deletes the functional element from the project data 16, for example, when only the project data 16 includes a functional element with a specific ID.
[0056] The operation of the drawing assisting device 10 configured as described above will be described according to the processing flow of the processing circuit 11 . Figure 5 It is a diagram showing an operation example of the drawing assistance device 10 according to the embodiment. Figure 6 FIG. 1 is a diagram showing an example of a difference extraction process performed by the drawing support device 10 according to the embodiment. Figure 5 Flowchart of Figure 6 The process Figure 1 While explaining.
[0057] In this operation example, the project data 16 created at a predetermined time is read into the drawing software, and the content of the corresponding attribute data 17 is reflected on the project data 16. At this time, the attribute data 17 is imported into the drawing software, for example, starting from the operation of the user. In addition, the user creates the attribute data 17 in advance by an arbitrary method, and once reflects its content on the project data 16. And, after reflecting it on the project data 16, the user performs a predetermined editing process on the attribute data 17. And, the user performs an operation of inputting the edited attribute data 17 to the drawing software. And, if the input operation of the edited attribute data 17 is performed, the processing circuit 11 executes the acquisition function 111.
[0058] The target range information included in the edited attribute data 17 indicates that the parent group to be edited is "screen 101" and the function to be edited is "light". The target range information is information indicating which functional element group among the functional elements included in the project data 16 is to be edited. In addition, information representing a record set related to the functional elements included in the edited attribute data 17 includes records such as “Function name: Light”, “No.: 10001”, “Characteristic name: Screen”, and “Characteristic value: Screen 101”, records such as “Function name: Light”, “No.: 10001”, “Characteristic name: Equipment”, and “Characteristic value: Y1”, records such as “Function name: Light”, “No.: 10001”, “Characteristic name: Color”, and “Characteristic value: Red”, records such as “Function name: Light”, “No.: 10002”, “Characteristic name: Screen”, and “Characteristic value: Screen 101”, records such as “Function name: Light”, “No.: 10002”, “Characteristic name: Equipment”, and “Characteristic value: Y2”, and records such as “Function name: Light”, “No.: 10002”, “Characteristic name: Color”, and “Characteristic value: Red”.
[0059] In addition, in the lower layer of the parent group "Screen 101", there is, for example Figure 3 The functional element ID shown is the functional element of the "target group 3001", but by setting the target function to "light", it is possible to limit and specify the functional element that is one layer below the functional element with the functional element ID "target group 3001".
[0060] In addition, as information included in the project data 16 after reflecting the attribute data 17 before editing, that is, the content of the attribute data 17 newly created by the user as described above, the functional elements whose functional element ID is "screen 101" and whose function is "light" corresponding to the parent group that becomes the editing object only include the functional elements with functional element IDs "light 10001" and "light 10003".
[0061] That is, the information representing the record set related to the functional elements included in the attribute data 17 before editing includes records such as “Function name: Light”, “No.: 10001”, “Characteristic name: Screen”, and “Characteristic value: Screen 101”, records such as “Function name: Light”, “No.: 10001”, “Characteristic name: Equipment”, and “Characteristic value: Y1”, records such as “Function name: Light”, “No.: 10001”, “Characteristic name: Color”, and “Characteristic value: Red”, records such as “Function name: Light”, “No.: 10003”, “Characteristic name: Screen”, and “Characteristic value: Screen 101”, records such as “Function name: Light”, “No.: 10003”, “Characteristic name: Equipment”, and “Characteristic value: Y3”, records such as “Function name: Light”, “No.: 10003”, “Characteristic name: Color”, and “Characteristic value: Red”.
[0062] exist Figure 5 In the process of inputting the edited attribute data 17, the processing circuit 11 executes the acquisition function 111 to acquire the input attribute data 17 (step S1). At this time, the processing circuit 11 extracts the functional elements of the range that matches the object range information of the attribute data 17 from the project data 16, for example. Specifically, the functional elements having the functional element ID including the function name "light" are extracted from the functional elements included in the functional elements whose functional element ID is "screen 101" as the parent group.
[0063] When the processing circuit 11 obtains the attribute data 17, it executes the difference extraction function 112 to compare the project data 16 with the attribute data 17 and extract the difference (step S2). Specifically, the processing circuit 11 compares the project data 16 with the attribute data 17 based on the functional element ID that identifies the functional element constituting the project data 16 and extracts the difference. Figure 6 The specific flow of the difference extraction process will be described below.
[0064] exist Figure 6 In the process, the processing circuit 11 reads out one function element in the attribute data 17 based on the function element ID (step S21). Specifically, the processing circuit 11 reads out a record such as "function name: light", "No.: 10001", "characteristic name: screen", and "characteristic value: screen 101". In addition, for a record such as "function name: light", "No.: 10001", "characteristic name: device", and "characteristic value: Y1", and a record such as "function name: light", "No.: 10001", "characteristic name: color", and "characteristic value: red", since the "function name" and "No." are the same, that is, the function element ID is the same, they are treated as confirmed records in the subsequent processing.
[0065] When the processing circuit 11 reads out the record "Function name: Light", "No.: 10001", "Characteristic name: Screen", and "Characteristic value: Screen 101", it searches the project data 16 for a functional element corresponding to the functional element determined by the read record (step S22). Specifically, the processing circuit 11 searches the project data 16 for a functional element whose functional element ID is "Light 10001".
[0066] Then, the processing circuit 11 determines whether there is a functional element corresponding to the project data 16 (step S23). At this time, since the functional element with the functional element ID "Light 10001" exists in the project data 16 (Yes in step S23), the processing circuit 11 stores the fact that the functional element read from the attribute data 17 "exists in both data" (step S24). Specifically, the processing circuit 11 creates differential extraction result data, and sets the functional element ID and comparison result as items constituting the record. The processing circuit 11 stores, for example, records such as "Functional element ID: Light 10001" and "Comparison result: exists in both data" in the differential extraction result data. In addition, the differential extraction result data is created for each differential extraction process, for example.
[0067] After executing step S24, the processing circuit 11 determines whether there is an unconfirmed functional element in the attribute data 17 (step S26). At this time, since an unconfirmed record corresponding to the functional element whose functional element ID is "light 10002" remains in the attribute data 17, the processing circuit 11 determines that there is an unconfirmed functional element in the attribute data 17 (Yes in step S26), and reads out one unconfirmed functional element in the attribute data 17 based on the functional element ID (step S21). Specifically, the processing circuit 11 reads out records such as "Function name: light", "No.: 10002", "Characteristic name: screen", and "Characteristic value: screen 101". In addition, for records such as "Function name: Light", "No.: 10002", "Characteristic name: Equipment" and "Characteristic value: Y2", and records such as "Function name: Light", "No.: 10002", "Characteristic name: Color" and "Characteristic value: Red", since the "Function name" and "No." are the same, that is, the function element ID is the same, they are treated as confirmed records in subsequent processing.
[0068] When the processing circuit 11 reads out the record "Function name: Light", "No.: 10002", "Characteristic name: Screen", and "Characteristic value: Screen 101", it searches the project data 16 for a functional element corresponding to the functional element determined by the read record (step S22). Specifically, the processing circuit 11 searches the project data 16 for a functional element whose functional element ID is "Light 10002".
[0069] Then, the processing circuit 11 determines whether there is a functional element corresponding to the project data 16 (step S23). At this time, since the functional element with the functional element ID "lamp 10002" does not exist in the project data 16 (No in step S23), the processing circuit 11 stores the fact that the functional element read from the attribute data 17 "exists only in the attribute data" (step S25). Specifically, the processing circuit 11 stores, for example, records such as "functional element ID: lamp 10002" and "comparison result: exists only in the attribute data" in the difference extraction result data.
[0070] After executing step S25, the processing circuit 11 determines whether there is an unconfirmed functional element in the attribute data 17 (step S26). At this time, since there is no unconfirmed record remaining in the attribute data 17, the processing circuit 11 determines that there is no unconfirmed functional element in the attribute data 17 (No in step S26), and reads out one functional element in the project data 16 based on the functional element ID (step S27). Specifically, the processing circuit 11 reads out the functional element whose functional element ID is "Light 10001" in the editing target range of the parent group "Screen 101" that is the editing target in the project data 16 and the function "Light" that is the editing target.
[0071] The processing circuit 11 determines whether the functional element read from the project data 16 also exists in the attribute data 17 (step S28). Specifically, the processing circuit 11 determines whether the read functional element is determined to be "existing in both data" in step S23. In this case, the functional element with the functional element ID "lamp 10001" is determined to be "existing in both data" in step S23, so the processing circuit 11 determines that the functional element with the functional element ID "lamp 10001" also exists in the attribute data 17 (Yes in step S28), and determines whether there is an unconfirmed functional element in the project data 16 (step S30).
[0072] At this time, since an unconfirmed function element with a function element ID of "Light 10003" remains in the project data 16, the processing circuit 11 determines that there is an unconfirmed function element in the project data 16 (Yes in step S30), and reads out one unconfirmed function element in the project data 16 based on the function element ID (step S27). Specifically, the processing circuit 11 reads out the function element with a function element ID of "Light 10003" in the editing target range of the parent group "Screen 101" and the function "Light" in the project data 16.
[0073] The processing circuit 11 determines whether the function element read from the project data 16 also exists in the attribute data 17 (step S28). Specifically, the processing circuit 11 determines whether the read function element is determined to be "present in both data" in step S23. At this time, since the function element with the function element ID "lamp 10003" is not determined to be "present in both data" in step S23, the processing circuit 11 determines that the function element with the function element ID "lamp 10003" does not exist in the attribute data 17 (No in step S28), and stores the fact that the read function element "exists only in the project data" (step S29). Specifically, the processing circuit 11 stores records such as "function element ID: lamp 10003" and "comparison result: exists only in the project data" in the difference extraction result data.
[0074] After executing step S29, the processing circuit 11 determines whether there are any unconfirmed functional elements in the project data 16 (step S30). At this time, since there are no unconfirmed functional elements remaining in the project data 16, the processing circuit 11 determines that there are no unconfirmed functional elements in the project data 16 (No in step S30), and ends the difference extraction process.
[0075] Figure 7 FIG. 1 is a diagram showing an example of difference extraction result data according to an embodiment of the present invention. Figure 7 It can be seen that the function element of function element ID "Light 10001" "exists in both data". In addition, it can be seen that the function element of function element ID "Light 10002" "exists only in attribute data". In addition, it can be seen that the function element of function element ID "Light 10003" "exists only in project data".
[0076] Afterwards, return Figure 5 The description starts from step S3.
[0077] exist Figure 5In the example, the processing circuit 11 executes the editing function 113 after executing the difference extraction process, for example, editing the project data 16 based on the created difference extraction result data.
[0078] The processing circuit 11 creates the difference extraction process in step S2, for example. Figure 7 One record is read out from the difference extraction result data shown (step S3). Specifically, the processing circuit 11 reads out a record whose functional element ID is "lamp 10001" from the difference extraction result data.
[0079] The processing circuit 11 refers to the comparison result item of the read record (step S4). Specifically, the processing circuit 11 refers to the content of the comparison result item of the record whose functional element ID is "lamp 10001".
[0080] Since the content of the comparison result item of the record with the functional element ID "Light 10001" is "existing in both data" ("existing in both data" in step S4), the processing circuit 11 updates the functional element of the project data 16 with the content of the functional element of the attribute data 17 (step S6). Specifically, the processing circuit 11 updates the content of the functional element included in the project data 16 with the content of the attribute data 17 for the functional element with the functional element ID "Light 10001". In addition, the processing circuit 11 checks in advance whether the content of the functional element to be updated has changed, and may skip the update process if there is no change.
[0081] After executing step S6, the processing circuit 11 determines whether there are unconfirmed records in the difference extraction result data (step S8). At this time, since unconfirmed records with functional element IDs "lamp 10002" and "lamp 10001" remain in the difference extraction result data, the processing circuit 11 determines that there are unconfirmed functional elements in the difference extraction result data (Yes in step S8), and reads out one unconfirmed record from the difference extraction result data (step S3). Specifically, the processing circuit 11 reads out a record with a functional element ID of "lamp 10002" from the difference extraction result data.
[0082] The processing circuit 11 refers to the comparison result item of the read record (step S4). Specifically, the processing circuit 11 refers to the content of the comparison result item of the record whose functional element ID is "light 10002".
[0083] Since the content of the comparison result item of the record with the function element ID "Light 10002" is "existing only in the attribute data" ("existing only in the attribute data" in step S4), the processing circuit 11 adds the function element corresponding to the function element ID "Light 10002" to the item data 16 (step S5). Specifically, the processing circuit 11 newly reflects the content of the record "Function name: Light", "No.: 10002", "Characteristic name: Screen" and "Characteristic value: Screen 101" included in the attribute data 17 in the item data 16.
[0084] After executing step S5 , the processing circuit 11 determines whether there is an unconfirmed record in the difference extraction result data (step S8 ).
[0085] At this time, since an unconfirmed record with the functional element ID "lamp 10001" remains in the difference extraction result data, the processing circuit 11 determines that there is an unconfirmed functional element in the difference extraction result data (Yes in step S8), and reads one unconfirmed record from the difference extraction result data (step S3). Specifically, the processing circuit 11 reads a record with the functional element ID "lamp 10003" from the difference extraction result data.
[0086] The processing circuit 11 refers to the comparison result item of the read record (step S4). Specifically, the processing circuit 11 refers to the content of the comparison result item of the record whose functional element ID is "light 10003".
[0087] Since the content of the comparison result item of the record with the functional element ID "Light 10003" is "existing only in the project data" ("existing only in the project data" in step S4), the processing circuit 11 deletes the functional element corresponding to the functional element ID "Light 10003" from the project data 16 (step S7). Specifically, the processing circuit 11 deletes the associated information such as the characteristic name and characteristic value associated with the functional element ID "Light 10003" contained in the project data 16.
[0088] After executing step S5, the processing circuit 11 determines whether there are unconfirmed records in the difference extraction result data (step S8). At this time, since there are no unconfirmed records remaining in the difference extraction result data, the processing circuit 11 determines that there are no unconfirmed functional elements in the difference extraction result data (No in step S8), and ends the processing.
[0089] Next, the flow of reflecting the contents of the newly created attribute data in the item data, changing the contents of the newly created attribute data, and reflecting the changed contents in the item data will be described.
[0090] In the following description, the parent group to be edited in the project data 16 is "screen 101", and the function to be edited is "light". In addition, the information indicating the record set related to the functional element included in the attribute data 17 before editing and the information indicating the record set related to the functional element included in the attribute data 17 after editing are the same as those described as the premise of the above-mentioned operation example and the description of the difference extraction process.
[0091] Figure 8 1 is a diagram for explaining the relationship between the attribute data 17 and the item data 16 before editing according to the embodiment. Figure 8 , there are shown a screen showing the contents of the attribute data 17 displayed via the general editor, a csv file output as the attribute data 17, and a screen showing the contents of the project data 16 displayed via the drawing software.
[0092] according to Figure 8 , edit the information used to output to the attribute data 17 through the general editor, and create the attribute data 17. Figure 8 As shown, for example, the timestamp of creating the attribute data 17 is "2022 / 8 / 1 13:00", and the file path of the saved attribute data is "D:\Work\HMIDesign\PD.csv".
[0093] In addition, according to Figure 8 The newly created attribute data 17 is, for example, imported into the drawing software by the processing circuit 11. The content of the imported attribute data 17 is, for example, Figure 5 as well as Figure 6 The processing shown is reflected in the project data 16. Figure 8 , the result of reflecting the content of the newly created attribute data 17 in the project data 16 is that two images are displayed, namely, a function element related to the device "Y1" and the light display of "red" color, and a function element related to the device "Y3" and the light display of "red" color, which are included in the function element representing the function element ID "Screen 101". It can be seen that the "No." of the two function elements related to the light display is as follows: Figure 8 "10001" and "10003" are shown, and the functional element IDs are "Light 10001" and "Light 10003".
[0094] Fig. 9 1 is a diagram for explaining the relationship between edited attribute data and item data according to an embodiment of the present invention. Fig. 9 , there are shown a screen showing the contents of the attribute data 17 displayed via the general editor, a csv file output as the attribute data 17, and a screen showing the contents of the project data 16 displayed via the drawing software.
[0095] according to Fig. 9 First, in the general editor Figure 8 The content of the newly created attribute data 17 is edited. The edited content is the addition of records related to the functional element ID "Light 10002" and the deletion of records related to the functional element ID "Light 10003". The edited result is output to the attribute data 17, and the edited attribute data 17 is created. Fig. 9 As shown in FIG. 1 , for example, the timestamp of creating the edited attribute data 17 is “2022 / 8 / 2 14:00”, and the file path of the saved attribute data is “D:\Work\HMIDesign\PD.csv”. Figure 8 The newly created attribute data 17 is overwritten by the edited attribute data 17.
[0096] In addition, according to Fig. 9 The newly created attribute data 17 is, for example, imported into the drawing software by the processing circuit 11. The content of the imported attribute data 17 is, for example, Figure 5 as well as Figure 6 The processing shown is reflected in the project data 16. Fig. 9 The result of the edited attribute data 17 being reflected in the project data 16 is that an image of a function element (function element ID "light 10002") related to the device "Y2" and the "red" light display included in the function element representing the function element ID "screen 101" is added. Fig. 9 As a result of the content of the edited attribute data 17 being reflected in the project data 16, one image of the functional element (functional element ID "light 10003") related to the device "Y3" and the "red" light display contained in the functional element representing the functional element ID "screen 101" is deleted.
[0097] As described above, even if the newly created attribute data 17 is subsequently edited and some functional elements are deleted, the attribute data 17 can still be saved by executing Figure 5 as well as Figure 6 By performing the processing shown, the edited content can be reflected in the project data 16 without manual operation by the user.
[0098] According to the above embodiment, the processing circuit 11 obtains the attribute data 17 used to edit the project data 16 created to control the display of the screen displayed on the programmable display 20. The processing circuit 11 compares the attribute data 17 with the project data 16 and extracts the difference. The processing circuit 11 edits the project data 16 based on the extracted difference.
[0099] Thus, for example, even if a change such as adding or deleting a functional element is made to the attribute data 17 after the content of the attribute data 17 is once reflected in the project data 16, the changed content can be reflected in the project data 16 without manual operation by the user.
[0100] Therefore, according to this embodiment, the editing efficiency of the project data for controlling the display of the screen displayed on the programmable display can be improved.
[0101] (Variation Example)
[0102] The above is a description of the embodiment of the present invention, but various modifications and applications are possible when implementing the present invention. Specifically, in the above embodiment, a description is given of a case where the difference between the edited attribute data and the project data is extracted, and the project data is edited based on the extracted difference. In a modification, a description is given of a case where the attribute data is regularly monitored and the state of the attribute data is changed, and the change is notified to the outside. In addition, in a modification, a description is given of a case where part of the information included in the attribute data is missing, and the missing information is supplemented. In addition, in a modification, a description is given of a case where, even if there is no project data to be edited, new project data is created upon receiving input of attribute data, and the content of the attribute data is reflected in the newly created project data.
[0103] Fig.10 It is a diagram showing a configuration example of a drawing support system 1A according to a modification.
[0104] The drawing support system 1A is a system including a drawing support device 10A and a programmable display 20. The drawing support device 10A and the programmable display 20 are connected to each other so as to be communicable.
[0105] Fig.11 1 is a diagram showing a configuration example of a drawing support device 10A according to a modification.
[0106] The drawing assisting device 10A includes a processing circuit 11A, an input interface 12 , an output interface 13 , a communication interface 14 , and a storage circuit 15 .
[0107] The processing circuit 11A according to the modification example executes the program according to the modification example to edit, for example, Figure 3 Specifically, the processing circuit 11A realizes the acquisition function 111, the difference extraction function 112, the editing function 113, the monitoring function 114, the supplementation function 115, and the creation function 116 by executing a program stored in the storage circuit 15, for example.
[0108] The acquisition function 111 , the difference extraction function 112 , and the editing function 113 are the same as those in the above-described embodiment, and thus description thereof will be omitted.
[0109] The monitoring function 114 is a function for periodically monitoring the attribute data 17, and notifying the external of the change when the state of the attribute data 17 is changed. In the monitoring function 114, the processing circuit 11A refers to the attribute data 17 at a predetermined time interval stored in the storage circuit 15. At this time, the processing circuit 11A stores, for example, information of the monitoring target in association with the project data 16 to be edited. The information of the monitoring target is, for example, the file path of the attribute data 17 and the timestamp of the last update date and time.
[0110] Processing circuit 11A refers to the file path storing attribute data 17 at predetermined intervals, for example. Processing circuit 11A also obtains, for example, time stamp information of attribute data 17. If the obtained time stamp information is updated, processing circuit 11A notifies the user of the change, for example, via output interface 13.
[0111] Furthermore, when the attribute data 17 has been deleted, for example, the processing circuit 11A notifies the user of the deletion of the attribute data 17 via the output interface 13 or the like.
[0112] Furthermore, in the monitoring function 114 , when the state of the attribute data 17 is changed, the processing circuit 11A may notify the acquisition function 111 , the difference extraction function 112 , and the editing function 113 of the change content, for example, and reflect it in the item data 16 to be edited.
[0113] The complement function 115 is a function for, for example, complementing the missing information when part of the information included in the attribute data is missing when the content of the project data is updated. In the complement function 115, the processing circuit 11A receives the input of the attribute data 17, for example, via the input interface 12. The processing circuit 11A obtains the content of the input attribute data 17. At this time, if the processing circuit 11A determines that part of the information of the acquired attribute data 17 is missing, the processing circuit 11A complements the missing information by a predetermined method and updates the content of the attribute data 17.
[0114] The new creation function 116 is a function of creating new item data even when the item data to be edited does not exist, for example, when the input of attribute data is received, and reflecting the content of the attribute data in the newly created item data. In the new creation function 116, the processing circuit 11A receives the input of the attribute data 17, for example, via the input interface 12. At this time, the processing circuit 11A refers to the storage circuit 15 or a memory reserved for the drawing software, for example, to determine whether there is the item data 16 to be edited. When the processing circuit 11A determines that there is no item data 16 to be edited, the processing circuit 11A creates the item data 16. The processing circuit 11A reflects the content of the received attribute data 17 in the newly created item data 16.
[0115] The operation of the drawing assisting device 10A configured as described above will be described according to the processing flow of the processing circuit 11A. Fig.12 FIG. 1 is a diagram showing an example of a state monitoring process performed by the drawing support device 10A according to a modification. Fig.12 The process Figure 1 In addition, in this operation example, in the monitoring function 114, the processing circuit 11A refers to the attribute data 17 at a plurality of pre-set times or at a predetermined time interval starting from a predetermined time. In addition, a timestamp is given to the attribute data 17, and whenever the content of the attribute data 17 is updated, the value of the timestamp is updated with the time when the content is updated.
[0116] exist Fig.12 In the process, when, for example, a preset time has come, the processing circuit 11A refers to the attribute data 17 stored in the storage circuit 15 (step S1A).
[0117] Processing circuit 11A determines whether the state of attribute data 17 has changed (step S2A). Specifically, processing circuit 11A obtains a time stamp assigned to attribute data 17, compares the stored time stamp value with the obtained time stamp value, and determines whether there is a difference.
[0118] When the processing circuit 11A determines that there is a difference between the value of the stored timestamp and the value of the acquired timestamp and that the state of the attribute data 17 has changed (step S2A: Yes), the processing circuit 11A notifies the user of the change of the attribute data 17, for example, via the output interface 13 (step S3A). Then, the processing circuit 11A ends the processing and waits until the next time set in advance. When the next time set in advance comes, the processing circuit 11A executes step S1A again.
[0119] When the processing circuit 11A determines that there is no difference between the value of the stored timestamp and the value of the acquired timestamp and that the state of the attribute data 17 has not changed (step S2A: No), the processing ends and waits until the next preset time. When the next preset time comes, the processing circuit 11A executes step S1A again.
[0120] Fig.13 FIG. 1 is a diagram for explaining the state monitoring of the attribute data 17 according to the modification. Fig.13 In the figure shown, first, for example, the content of the attribute data 17 stored in the storage circuit 15 is reflected in the project data 16 on the drawing software. Then, by executing the monitoring function 114, the processing circuit 11A waits until, for example, a preset first time (t=t1). Then, when the preset first time comes, the processing circuit 11A refers to the attribute data 17. At this time, since the attribute data 17 has not been changed, the processing circuit 11A ends the reference processing and waits until the next preset second time (t=t2>t1).
[0121] Then, when the preset second time comes, the processing circuit 11A refers to the attribute data 17. At this time, since the attribute data 17 has not been changed, the processing circuit 11A ends the reference process and waits until the next preset third time (t=t3>t2).
[0122] At this time, if Fig.13 As shown, between the second time and the third time, for example, the record related to the function element with the function element ID “light 10002” is deleted from the attribute data 17 .
[0123] When the third time set in advance comes, the processing circuit 11A refers to the attribute data 17. At this time, since the attribute data 17 is changed, the change of the attribute data 17 is detected and notified to the user through the output interface 13, for example.
[0124] Fig.14 1 is a diagram showing an example of a notification method when a change in attribute data 17 is detected according to a modification. Fig.14 An example of notification to the user is described. Fig.14 FIG. 1 shows an example of an editing window of drawing software displayed on a display as an example of the output interface 13. Fig.14 , "There are unreflected changes in the attribute data" is displayed on the screen 101. Examples of the display method include badge display and pop-up window. In addition, at this time, the processing circuit 11A may also notify the difference extraction result.
[0125] according to Fig.14, the user can notice that the attribute data 17 has been changed, specifically, that the setting of the screen 101 has been changed. That is, the user can notice that after the content of the attribute data 17 has been reflected in the project data 16, the attribute data 17 has been edited again, so that there is a mismatch between the attribute data 17 and the project data 16. Therefore, it is possible to prevent the omission of reflecting the changed content of the attribute data 17 after the edit in the project data 16.
[0126] Next, in a modified example, a case where the missing information is supplemented when part of the information included in the attribute data 17 is missing will be described. In the modified example, when there are incomplete settings in the records related to the functional elements included in the attribute data 17, the settings may be supplemented when the data is imported into the drawing software and then reflected in the project data 16.
[0127] Fig.15 1 is a diagram for explaining the completion processing of the attribute data 17 according to the modification example. Fig.15 In the example, there is an example in which the item data 16 having the number "10001" not used for the "numerical value display" function is added to the item data 16 without setting the number. Fig.15 In the completion function 115, if the attribute data 17 is input, the processing circuit 11A, for example, completes the record of the function name "numerical display" as if "10001" is set as the value of No., and reflects the information of the record related to the function element ID "numerical display 10001" in the project data 16.
[0128] In addition, Fig.15 For example, the example in FIG. 1 shows an example in which the standard setting color of a lamp is "red" and a functional element without a set color is added to the item data 16. Fig.15 In the complement function 115, the processing circuit 11A considers that "red" is set as the value of the characteristic value for a record such as "Function name: light", "No.: 10001", "Characteristic name: color", and "Characteristic value: blank" in the input attribute data 17, and complements it, and reflects the information of the record related to the function element ID "light 10001" in the item data 16. In addition, for example, the processing circuit 11A considers that "Function name: light", "No.: 10002", "Characteristic name: color", and "Characteristic value: red" exist, and complements it, and reflects the information of the record related to the function element ID "light 10002" in the item data 16, even though there is no record of "Characteristic name: color".
[0129] Thus, the user can add a functional element without checking which No. of which function is not used and setting it in the project data 16, or checking the characteristic values that can be set for each characteristic of the functional element and setting it. Therefore, the editing work of the attribute data 17 performed by the user can be assisted, and the editing efficiency of the project data for controlling the display of the screen displayed on the programmable display can be improved.
[0130] Finally, in a modified example, even when the item data to be edited does not exist, new item data is created upon receiving input of attribute data, and the contents of the attribute data are reflected in the newly created item data.
[0131] Fig.16 1 is a diagram for explaining the reflection processing of the attribute data 17 when there is no item data 16 being edited according to the modification example. Fig.16 2 shows a situation in which the attribute data 17 is input by a drag-and-drop operation performed by the user with respect to the drawing window W1 in which the item data 16 being edited does not exist.
[0132] At this time, in the new creation function 116, even if the item data 16 being edited does not exist in the drawing software, the processing circuit 11A creates new item data 16 corresponding to the inputted attribute data 17 when the attribute data 17 is inputted, and reflects the content of the attribute data 17 in the newly created item data 16. Thus, for example, even if the user edits the created attribute data 17 and the item data 16 reflecting the attribute data 17 before the editing does not exist, the user's workload of preparing the item data 16 corresponding to the edited attribute data 17 can be reduced.
[0133] In the above embodiment, the drawing assisting device 10 includes the output interface 13 , but the present invention is not limited thereto. Specifically, the output interface 13 may be external to the drawing assisting device 10 , and the drawing assisting device 10 may not include the output interface 13 .
[0134] In the above embodiment, the item data 16 before the change is applied to the edited attribute data 17 is the item data that reflects the content of the attribute data 17 created by the user in advance by an arbitrary method, but the present invention is not limited thereto. The item data 16 before the change is applied may be item data such as master data created by a predetermined method, or may be item data 16 created in the past by an arbitrary method.
[0135] Furthermore, by applying an operating program that defines the operation of the drawing assisting device 10 according to the above-described embodiment to an existing personal computer or information terminal device, the personal computer or information terminal device can be made to function as the drawing assisting device 10 according to the embodiment.
[0136] The method of distributing such a program is arbitrary, and for example, the program may be distributed by being stored in a computer-readable recording medium such as a CD-ROM (Compact Disc Read Only Memory), a DVD (Digital Versatile Disc), or a memory card, or distributed via a communication network such as the Internet.
[0137] The present invention can be set to various embodiments and variations without departing from the broad spirit and scope of the present invention. In addition, the above-mentioned embodiments are used to illustrate the present invention, but not to limit the scope of the present invention. That is, the scope of the present invention is not represented by the embodiments, but by the claims. Moreover, various variations applied within the scope of the claims and within the scope of the disclosure equivalent thereto are deemed to fall within the scope of the present invention.
[0138] Industrial Applicability
[0139] According to the present invention, it is possible to provide a drawing support program, a drawing support method, a drawing support device, and a drawing support system that can improve the editing efficiency of project data for controlling the display of a screen displayed on a programmable display.
[0140] Description of the label
[0141] 1. 1A drawing assistance system, 10. 10A drawing assistance device, 11. 11A processing circuit, 111 acquisition function, 112 difference extraction function, 113 editing function, 114 monitoring function, 115 completion function, 116 new creation function, 12 input interface, 13 output interface, 14 communication interface, 15 storage circuit, 16 project data, 17 attribute data, 20 programmable display.
Claims
1. A drawing assistance program that enables a computer to achieve the following functions: an acquisition function for acquiring attribute data for editing project data created to control display of a screen displayed on a programmable display; A difference extraction function, which compares the attribute data with the item data and extracts their difference; as well as An editing function edits the project data based on the difference.
2. The drawing assistance program according to claim 1, wherein: The difference is extracted based on an identifier that specifies a functional element constituting the project data.
3. The drawing assistance program according to claim 2, wherein: The editing function deletes the functional element having the predetermined identifier from the item data when the functional element having the predetermined identifier is included only in the item data.
4. The drawing assistance program according to any one of claims 1 to 3, wherein: The computer is further caused to realize a monitoring function of referring to the attribute data at predetermined time intervals and, when the content of the attribute data is changed, notifying the outside of the change.
5. The drawing assistance program according to any one of claims 1 to 4, wherein: The computer is also enabled to implement a completion function, which is to complete the missing information when there is missing information in the attribute data.
6. The drawing assistance program according to any one of claims 1 to 4, wherein: The computer is further caused to realize a new creation function of creating new item data corresponding to the attribute data when the attribute data is received and when the item data to be compared does not exist.
7. A drawing assistance method, wherein: Acquires attribute data for editing project data created to control the display of a screen displayed on a programmable display, comparing the attribute data with the item data and extracting their differences, The project data is edited based on the difference.
8. A drawing assisting device, comprising: an acquisition unit that acquires attribute data for editing project data created to control display of a screen displayed on the programmable display; a difference extracting unit that compares the attribute data with the item data and extracts a difference therebetween; and An editing unit edits the project data based on the difference.
9. A drawing assistance system, comprising: Programmable display; and The drawing assisting device as claimed in claim 8.
Citation Information
Patent Citations
Project data creation device and programmable display unit
WO2013080332A1
Project data creation device and programmable display unit
CN103250108A
Rendering assistance device, display device, rendering assistance method, and computer program
CN113348440A
Editor device and recording medium with recorded editor program
JP2002091558A
Information processor, information processing method and information processing program
JP2008217573A