Program, screen design device, and screen design method

The screen design device simplifies the process of replacing individual components with grouped components by associating them with pre-defined templates, automating arrangement and attribute setting, thereby reducing user burden and enhancing design efficiency.

WO2026234782A1PCT designated stage Publication Date: 2026-11-12MITSUBISHI ELECTRIC CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2025/016927
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-05-08
Publication Date
2026-11-12

AI Technical Summary

Technical Problem

Existing screen design systems burden users with the need to individually arrange and set attributes for each component on a programmable display, and replacing a single component with a group of components with predefined attributes is cumbersome, especially when multiple components are involved.

Method used

A screen design device and method that allows users to associate individually placed components with pre-registered combination component templates, converting them into a single combined component with predefined attributes through association and conversion means, using a drag-and-drop interface or button-based conversion.

Benefits of technology

Facilitates easy replacement of individual components with a group of components having assigned attributes, reducing user effort and simplifying the screen design process by automating the arrangement and attribute setting of multiple components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2025016927_12112026_PF_FP_ABST
    Figure JP2025016927_12112026_PF_FP_ABST
Patent Text Reader

Abstract

A screen design device (10) comprises an association unit (102) and a conversion unit (103). The association unit (102) associates at least one placed component that is placed on a screen with a combined component template registered in advance, the combined component template including information indicating a set of a plurality of components and attribute information relating to the set. The conversion unit (103) converts the at least one placed component into a combined component on the basis of the associated combined component template.
Need to check novelty before this filing date? Find Prior Art

Description

Program, screen design device, and screen design method

[0001] The present disclosure relates to a program, a screen design device, and a screen design method.

[0002] The screen of a programmable display is designed by a user using screen design software. Using the screen design software, the user performs screen design by arranging components used when operating the programmable display on the screen, and setting attributes of the arranged components.

[0003] On the screen of a programmable display, a plurality of components are often arranged collectively. For example, it is common practice to arrange a switch component, and arrange a display component in which text describing the switch is set as an attribute in the vicinity of the switch component. When arranging a plurality of components, arranging the components one by one and setting the attributes of the arranged components imposes a heavy burden on the user. Therefore, it is convenient to be able to handle a combination of a plurality of components as a single collective unit.

[0004] Patent Document 1 discloses a screen design support tool having a function of grouping a plurality of components and predefining them as a single component group. By predefining a component group in which attributes such as component color, component outline thickness, and font used for character display are set, it is possible to automatically perform the arrangement and attribute setting of each component belonging to the component group simply by selecting a required one from the defined component groups.

[0005] Japanese Unexamined Patent Application Publication No. 10-198557

[0006] However, when it is desired to replace at least one component individually arranged on the screen without using a component group with a component group, it is necessary to delete the component arranged on the screen, then arrange the component group anew and set its attributes, which is troublesome for the user. Not only when there are a plurality of components arranged on the screen, but even when there is only one component arranged on the screen, there are cases where it is desired to replace that single component with a group of components with set attributes, and such cases also cause trouble for the user.

[0007] In view of the above circumstances, the purpose of this disclosure is to provide a program, a screen design apparatus, and a screen design method that can easily replace at least one component individually placed on a screen with a group of components with assigned attributes.

[0008] To achieve the above objectives, the program relating to this disclosure causes a computer to function as: association means for associating at least one placed component on a screen with a pre-registered combination component template which includes information indicating a set of multiple components and attribute information relating to the set; and conversion means for converting the at least one placed component into a combination component based on the associated combination component template.

[0009] According to this disclosure, at least one component individually placed on the screen can be easily replaced with a group of components with assigned attributes.

[0010] A diagram showing the overall configuration of the screen design system according to the embodiment of this disclosure. A diagram showing an example of a design screen displayed by the screen design device according to the embodiment of this disclosure. A diagram showing an example of a design screen displayed by the screen design device according to the embodiment of this disclosure. A diagram showing an example of a directed graph construction in the screen design device according to the embodiment of this disclosure. A diagram showing an example of a directed graph construction in the screen design device according to the embodiment of this disclosure. A diagram showing an example of a directed graph construction in the screen design device according to the embodiment of this disclosure. A diagram showing an example of a directed graph construction in the screen design device according to the embodiment of this disclosure. A diagram showing an example of a directed graph construction in the screen design device according to the embodiment of this disclosure. A diagram showing an example of a directed graph construction in the screen design device according to the embodiment of this disclosure. A diagram showing an example of directed graph construction in a screen design device according to the embodiment of the disclosure. A diagram showing an example of automatic graph construction by a screen design device according to the embodiment of the disclosure. A diagram showing an example of a combination component template generation screen in a screen design device according to the embodiment of the disclosure. A diagram showing an example of a combination component template generation screen in a screen design device according to the embodiment of the disclosure. A diagram showing an example of the hardware configuration of a screen design device according to the embodiment of the disclosure. A flowchart showing an example of component conversion processing by a screen design device according to the embodiment of the disclosure. A diagram showing an example of placed components in a screen design device according to a modified example 2 of the embodiment of the disclosure, where attributes related to project settings are not set. A diagram showing an example of a combination component in a screen design device according to a modified example 2 of the embodiment of the disclosure, where attributes related to project settings are set. A diagram showing an example of a label structure in a screen design device according to a modified example 3 of the embodiment of the disclosure.

[0011] Hereinafter, embodiments of the screen design apparatus according to this disclosure applied to a screen design system will be described with reference to the drawings. In each drawing, the same or equivalent parts are denoted by the same reference numerals.

[0012] (Embodiment) The screen design system 1 according to the embodiment will be described with reference to Figure 1. The screen design system 1 is a screen design system that designs the screen to be displayed on the programmable display 20 using a screen design device 10. The programmable display 20 is a programmable display that communicates with and manages the control device 30. The screen design device 10 is a screen design device that designs the screen to be displayed on the programmable display 20 based on user operations. The screen design device 10 transmits information about the screen designed by the user to the programmable display 20, thereby reflecting the screen designed by the user on the programmable display 20.

[0013] The programmable display unit 20 is installed, for example, at the production site together with a control device 30 that is connected via communication. Workers at the production site manage the control device 30 through the screen displayed on the programmable display unit 20. The screen displayed on the programmable display unit 20 is designed by a screen design device 10. The screen displayed on the programmable display unit 20 includes, for example, components for displaying information about the control device 30, and components for operating the control device 30.

[0014] The screen design device 10 is, for example, a personal computer on which engineering tool programs are installed. The screen design device 10 is communicably connected to the programmable display 20, for example, via a factory network. A user of the screen design device 10 operates the screen design device 10 to design a screen to be displayed on the programmable display 20. In particular, the screen design device 10 has a function to convert at least one individually placed component on the screen into a single combined component. Hereinafter, individually placed components will simply be referred to as placed components. The number of placed components to be converted may be one, but for ease of understanding, in the following explanation, it will be assumed that there are multiple placed components to be converted. The screen design device 10 is an example of a screen design device according to this disclosure.

[0015] Referring to Figure 2, we will briefly explain the function of combining multiple placed parts into a single combined part. The user designs the screen displayed on the programmable display 20 by placing parts in the design screen area RG. In Figure 2, the user has already placed parts A to F one by one in the design screen area RG. Here, "placing one by one" means placing each of parts A to F individually, rather than placing a combined part.

[0016] A combined component is defined as a collection of multiple components to which unique attribute information has been added, allowing it to be treated as a single component. In this respect, it differs from simply collecting multiple placed components and treating them as a single unit, either temporarily or permanently. An example of simply collecting multiple placed components and treating them as a single unit is a system that allows multiple placed components to be moved while maintaining their relative positions or to have their attribute settings changed all at once by selecting them. An example of simply collecting multiple placed components and treating them as a single unit is a system that sets multiple placed components as a single group. Combined components are generated based on a combined component template. A combined component template includes information indicating which components the collection consists of, as well as attribute information related to the collection, such as the size, positional relationship, color, font information of each component, and device settings. Note that the device referred to here refers to a specific memory area in a programmable logic controller, programmable display, etc.

[0017] The following example describes how to convert parts A, B, and C, which are individually placed parts A through F, into a single combined part. First, the user selects parts A, B, and C, which are already placed parts that they want to convert into a single combined part, from the design screen area RG. In the example shown in Figure 2, parts A, B, and C are selected together as the source placed parts for conversion in the selection area SB indicated by the dashed line. Alternatively, after selecting parts A, B, and C, it is also possible to set them as a single group and then select the group to select parts A, B, and C as the source for conversion.

[0018] Next, the user selects the target combination component template from the multiple combination component templates displayed in the template area RT. In Figure 2, the fact that the border line TB1 of combination component template T1 is thicker than the border line TB2 of combination component template T2 indicates that the user has selected combination component template T1. When selecting a combination component template, it is preferable for the user to select the combination component template that is closest to the set of multiple placed components selected in the design screen area RG. Here, "closest" means that the types of components used, the positional relationships between components, etc., are the same or similar. Note that the user may select the target combination component template before selecting the source components from the design screen area RG.

[0019] The user can then select multiple placed parts to be converted from the design screen area RG, select a combination part template to be converted from the template area RT, and then press the convert button B on the screen to convert the multiple placed parts selected from the design screen area RG into a combination part generated based on the combination part template selected from the template area RT. In the example in Figure 2, three placed parts, part A, part B, and part C, can be converted into a single combination part generated based on the combination part template T1.

[0020] During this conversion, the attributes of the target combination component are determined based on the attributes of the placed components in the source. However, how the attributes are determined depends on the settings of the combination component template. For example, in the combination component template T1 shown in Figure 2, if the attributes such as the color and font of each component are set to be freely changeable, then the attributes such as the color and font of each component in the target combination component should be the same as those of each placed component in the source. On the other hand, for example, in the combination component template T1, if the attributes such as the color and font of each component are predetermined in the template and cannot be changed for the purpose of unifying the appearance, then the attributes such as the color and font of each placed component in the source will be ignored during the conversion.

[0021] In the example shown in Figure 2, the user specifically selected multiple placed components to be converted from the design screen area RG. Alternatively, the multiple placed components to be converted may be selected in the following way.

[0022] First, the user selects the target combination component template T1 from the template area RT. Next, as shown in Figure 3, the user drags and drops the selected combination component template T1 into the area within the design screen area RG where the source components are located, as indicated by the thick dashed arrow in Figure 3. This drag-and-drop operation automatically converts the components located near the end of the drag-and-drop operation into combination components based on the selected combination component template T1 without having to press the convert button B.

[0023] In both the example shown in Figure 2 and the example shown in Figure 3, attributes are appropriately set for the combined components during the conversion. This allows the user to easily replace components placed individually on the screen with a group of components with assigned attributes, compared to the case where multiple individually placed components are deleted one by one before placing the combined components on the screen and setting their attributes.

[0024] As shown in Figure 4, similar to the case shown in Figure 2, the user can select multiple placed components to be converted from the design screen area RG, and then, similar to the case shown in Figure 3, drag and drop the selected combination component template into the area where the selected placed components are located, thereby converting the multiple placed components individually located in the design screen area RG into a combination component.

[0025] Furthermore, in the examples shown in Figures 3 and 4, instead of the conversion being performed automatically in response to the drag-and-drop operation, the conversion may be performed by the user pressing the convert button B after the drag-and-drop operation.

[0026] In the example shown in Figure 2, when the user selects multiple placed parts to be converted, the screen design device 10 may automatically select the combination part template that is most similar to the selected combination of placed parts as the destination combination part template. For example, in the example shown in Figure 2, the screen design device 10 may automatically select combination part template T1, which is the combination part template that is closest to the selected combination of parts A, B, and C, as the destination combination part template.

[0027] In the examples shown in Figures 2, 3, and 4, the screen design device 10 may cancel the conversion if the similarity between the combination of multiple pre-placed parts selected as the source and the combination part template selected as the destination is below a threshold. For example, in the example shown in Figure 2, if combination part template T2 is selected instead of combination part template T1, the types of parts used are the same (parts A, B, and C), but the arrangement of the parts is different. Therefore, it is assumed that the similarity between the combination of parts A, B, and C selected as the source and the combination part template T2 selected as the destination will be below a threshold. In this case, the screen design device 10 cancels the conversion. Also, if combination part template T2 is selected as the destination and the combination of parts D, E, and F is selected as the source, the positional relationship of the parts is the same, but the types of parts are different, so the similarity will again be below a threshold, and the conversion will be canceled. It is preferable that the threshold is settable by the user.

[0028] In both the example shown in Figure 2 and the example shown in Figure 4, the user selected multiple pre-placed parts individually located in the design screen area RG, but the screen design device 10 may automatically select multiple pre-placed parts. For example, it may refer to a combination part template, search the design screen area RG for a part arrangement similar to the combination of parts in the combination part template, and automatically select the pre-placed parts related to a similar part arrangement when one is found.

[0029] Referring again to Figure 1, the functional configuration of the screen design device 10 will be explained. The screen design device 10 comprises a control unit 100, a storage unit 110, an input unit 120, a display unit 130, and a communication unit 140.

[0030] The input unit 120 receives user input operations and outputs a signal corresponding to the input operation to the control unit 100. The input unit 120 includes, for example, input devices such as a keyboard, mouse, or touchscreen.

[0031] The display unit 130 displays the screen necessary for the user to design the screen, based on the control of the control unit 100. The display unit 130 includes, for example, a display device such as a liquid crystal display or a touch screen.

[0032] The communication unit 140 communicates with the programmable display 20. In particular, the communication unit 140 transmits information about the screen designed by the user to the programmable display 20. As a result, the screen designed by the user is reflected on the programmable display 20.

[0033] The memory unit 110 stores project data related to the screen design of the programmable display unit 20. The project data includes data indicating where each component is located on the screen, what attributes are set for each component, and which model of programmable display unit the screen will display. The memory unit 110 also stores library data in which multiple combination component templates are registered. Combination component templates are registered in the library data in advance, for example, by the manufacturer of the screen design device 10. It is also possible to generate new combination component templates and register them in the library data, as will be described later. As mentioned above, a combination component template includes information indicating a set of multiple components and attribute information related to that set.

[0034] The control unit 100 comprehensively controls the screen design device 10. In addition to the functions described later, the screen design device 10 provides a user interface for operating the screen design device 10 by displaying a screen on the display unit 130 that corresponds to an operation by the user via the input unit 120. Furthermore, for example, when the user performs an operation to apply the designed screen to the programmable display 20, the control unit 100 transmits information about the designed screen to the programmable display 20 via the communication unit 140.

[0035] The control unit 100 includes a screen design unit 101, an association unit 102, a conversion unit 103, and a template generation unit 104.

[0036] The screen design unit 101 oversees functions related to user-defined screen design. For example, the various functions of the design screens shown in Figures 2, 3, and 4 are implemented by the screen design unit 101. The screen design unit 101 specifically includes functions such as the ability for the user to place components in the design screen area RG, the ability to select multiple already placed components in the design screen area RG as the source for conversion, the ability to display multiple combination component templates included in the library data in the template area RT, and the ability to select a combination component template displayed in the template area RT as the destination for conversion.

[0037] The association unit 102 associates the selected multiple placed parts with the selected combination part template when the screen design unit 101 selects multiple placed parts placed in the design screen area RG as the source for conversion, and a combination part template displayed in the template area RT as the destination for conversion. Furthermore, as shown in Figure 3, when a user performs a drag-and-drop operation on a combination part template, the association unit 102 identifies multiple placed parts near the end point of the drag-and-drop operation as multiple placed parts to be associated, and associates the identified multiple placed parts with the selected combination part template. The association unit 102 is an example of the association means according to this disclosure.

[0038] Furthermore, the association unit 102 associates the multiple placed parts selected by the user with the newly generated combination part template when the template generation unit 104 (described later) generates a new combination part template based on the multiple placed parts selected by the user.

[0039] The conversion unit 103 converts a plurality of placed parts linked by the association unit 102 into a combination part based on the combination part template linked by the association unit 102. Specifically, first, the conversion unit 103 generates a combination part based on the linked combination part template and sets attributes on the generated combination part as needed. For example, if an attribute is set on the placed part before conversion and it is appropriate to set that attribute on the combination part after conversion, the attribute is set on the generated combination part. Next, the conversion unit 103 deletes the plurality of placed parts before conversion from the design screen area RG and places the generated combination part with the set attributes in the position where the plurality of placed parts before conversion were placed. In this way, a plurality of placed parts can be converted into a combination part based on the combination part template. The conversion unit 103 is an example of a conversion means according to this disclosure.

[0040] Furthermore, the conversion unit 103 calculates the similarity between the associated multiple placed parts and the associated combination part template, and stops the conversion if the similarity is below a threshold. The similarity can be calculated, for example, as follows.

[0041] As an example, it is conceivable to construct a directed graph, as described below, for each of the multiple placed parts and the combined part template, based on the arrangement of the parts, and then calculate the similarity between the multiple placed parts and the combined part template based on the directed graph. First, for simplicity, we will describe the directed graph when there are no overlapping parts and each part is arranged as shown in Figure 5. Hereafter, the directed graph constructed from multiple placed parts will simply be referred to as the directed graph of placed parts.

[0042] In constructing a directed graph, each component is regarded as a node. First, an appropriate reference component is arbitrarily selected. Here, it is assumed that component B is selected as the reference.

[0043] Next, when another component exists in the upward direction with component B as the reference, said other component is selected. Specifically, when component B is arbitrarily moved upward, if there is a portion overlapping with another component, said other component is selected. When there are multiple components to be selected, the component closest to component B among them is selected. In the example shown in FIG. 5, component A is selected. Note that the "component closest to component B" referred to herein is, more strictly, component α as follows: a component α that has an overlapping portion with component B when component B is moved upward, and such that when component B is moved upward to component α, the overlapping portion of component B does not pass through any other component, is the "component closest to component B".

[0044] Next, the selected component A and component B are connected by an edge. Since a directed graph is constructed, the edge has a direction. The edge is connected such that the upper component is the start point and the lower component is the end point. Note that as a reference point for determining the positional relationship of components, for example, the position of the center of gravity of a component can be adopted. In the example shown in FIG. 5, since the position of the center of gravity of component A is above the position of the center of gravity of component B, the edge is connected from component A to component B. The solid-line arrow shown in FIG. 5 is the edge related to the downward direction. Edges related to the right direction, which will be described later, are indicated by dotted-line arrows.

[0045] Next, with component B still as the reference, the same processing is performed for the remaining three directions, that is, the downward direction, the left direction, and the right direction. For example, in the example shown in FIG. 5, component C is selected for the right direction. Then, for the edge related to the right direction, the edge is connected such that the component on the left is the start point and the component on the right is the end point. In the example shown in FIG. 5, the edge is connected from component B to component C. At this point, the edge connecting the initially selected component B and component A is connected, and the edge connecting component B and component C is also connected.

[0046] For all components other than component B, edges are similarly connected in each direction. For example, when component D is used as a reference, the closest component in the left direction is component C, and an edge is connected from component C on the left to component D on the right. However, edges that already exist between components are not connected redundantly. As a result, edges are connected between the respective components as shown in Figure 5. This edge connection relationship between the components forms a directed graph.

[0047] Next, a case where there is an overlapping portion between components will be described with reference to Figure 8. In the example shown in Figure 8, component A and component B partially overlap, and component C, component D, and component E are all entirely contained within component A. Hereinafter, a component that contains other components is referred to as a parent component. In the example shown in Figure 8, component A is the parent component of component C, component D, and component E.

[0048] For component A and component B that partially overlap, they are treated as being adjacent to each other, and a directed graph is constructed in the same manner as described above. As a result, as shown in Figure 8, a directed graph in which component A and component B are connected by a downward edge is constructed. In Figure 8, the endpoints of the edge are highlighted with black circles to emphasize that partially overlapping component A and component B are connected.

[0049] For component C, component D, and component E contained in component A, a directed graph is constructed independently of component A which is the parent component. That is, targeting only component C, component D, and component E, a directed graph separate from the directed graph composed of component A and component B is constructed. Then, component A which is the parent component is associated with the directed graph constructed from component C, component D, and component E. By constructing the directed graph and associating it with the parent component in this manner, similarity determination of the directed graph including the inclusion relationship can be performed, as will be described later.

[0050] Furthermore, in the graph construction described above, there are cases other than the inclusion case described above where not all parts are connected in a single directed graph. For example, in the example shown in Figure 6, even if parts A and B are moved straight in one direction (up, down, left, or right), they do not overlap with parts C and D. Therefore, in the graph construction described above, edges are not connected from parts A and B to parts C and D. As a result, in the example shown in Figure 6, two directed graphs are constructed. In such cases, it is conceivable to connect the closest parts in each directed graph with edges. For example, it is conceivable to connect parts whose vertices or edges are closest in distance to each other with an edge corresponding to the longer of the horizontal distance and the vertical distance. In the example shown in Figure 6, the distance between parts B and C is the shortest, and the horizontal distance is longer than the vertical distance, so an additional edge is connected to part C in the right direction from part B, as shown in Figure 7.

[0051] Next, we will explain how to calculate the similarity between placed parts and a combination part template based on the directed graph of placed parts and the directed graph of the combination part template constructed in this way. First, we solve the maximum common subgraph problem for the two directed graphs to identify the maximum common subgraph of the two directed graphs. Next, we calculate the similarity between multiple placed parts and a combination part template, taking into account the following factors. However, a similarity of 100 is defined as the similarity when multiple placed parts and a combination part template are a perfect match, and a lower value indicates lower similarity. If the similarity is below a threshold, the transformation will be stopped. (i) Differences from the maximum common subgraph in each directed graph. (ii) Differences from the maximum common subgraph when vertical edges and horizontal edges are treated as different. (iii) Differences in part types. (iv) Differences in whether or not a part in the maximum common subgraph contains other parts. (v) If a part in the maximum common subgraph contains other parts, the similarity of the directed graphs of the contained parts.

[0052] Below, an example of similarity calculation will be explained with reference to Figures 9, 10, 11, and 12. However, it will be assumed that the types of parts are all the same in Figures 9, 10, and 12. Also, in all of Figures 9, 10, 11, and 12, a directed graph has already been constructed and edges are shown.

[0053] In the example shown in Figure 9, although the direction of edge connections differs, the directed graphs themselves are isomorphic, and therefore their maximum common subgraph is isomorphic to each directed graph. Consequently, there is no difference in (i) above. However, since the edges differ in the rightward and downward directions, there is a difference in (ii) above. Therefore, the difference in edges is taken into account when calculating the similarity. Generally, it is preferable to determine that parts are not similar when their positional relationships differ significantly, so in Figure 9, the calculated similarity score is small.

[0054] In the example shown in Figure 10, although the direction of edge connections is the same, the number of parts is different. Because the number of parts is different, the number of nodes and edges is also different. In this case, the maximum common subgraph is formed by connecting two nodes downwards. The directed graph of the combined part template is isomorphic to the maximum common subgraph. On the other hand, the directed graph of the placed parts is not isomorphic to the maximum common subgraph, and there are three extra nodes and edges compared to the maximum common subgraph. Therefore, there is a difference in (i) above, and the difference from the maximum common subgraph is taken into consideration when calculating the similarity. Generally, it is preferable to determine that parts are not similar when the number of parts is significantly different, so in Figure 10, the calculated similarity will be small.

[0055] In the example shown in Figure 11, the type of component is X for component A of the placed components, and for components P, Q, and R of the combination component template, while the types of components are Y and Z for the placed components B and C, respectively. Regarding (i) above, since the directed graphs are isomorphic, their maximum common subgraph is isomorphic to the respective directed graphs. Therefore, there is no difference regarding (i) above. Also, regarding (ii) above, there is no difference in the vertical and horizontal edges. However, regarding (iii) above, when comparing component B and component C with component Q and component R, which are the corresponding nodes in the maximum common subgraph, the types of components are different in both cases. Therefore, there is a difference regarding (iii) above, and the difference in component types is taken into account when calculating the similarity. Generally, it is preferable to determine that components are not similar when their types are significantly different, so in Figure 11, the calculated similarity score will be small.

[0056] In the example shown in Figure 12, part A contains parts C and D, and part P contains parts S, T and U.

[0057] First, we compare the outer components, parts A and B, with parts P, Q, and R. The portions from part P to part Q, from part R to part Q, and from part P to part R are isomorphic to the portion from part A to part B, i.e., the directed graph of the placed parts. Therefore, the maximum common subgraph is isomorphic to the directed graph of the placed parts. Consequently, the directed graph of the combination part template differs from the maximum common subgraph with respect to (i) above.

[0058] Regarding (ii) above, the edge type for the portion from component P to component R differs from that of the maximum common subgraph, while the edge type for the portions from component P to component Q and from component R to component Q matches that of the maximum common subgraph.

[0059] Regarding (iv) above, we compare each of the parts from part P to part Q, from part R to part Q, and from part P to part R with the part from part A to part B, which is the same type of part.

[0060] Regarding the comparison between the portion from part P to part Q and the portion from part A to part B, both part P and part A contain other parts, while both part Q and part B do not contain other parts. Therefore, in these comparisons, there is no difference in whether the part in the maximum common part graph contains other parts or not. The same applies to the comparison between the portion from part P to part R and the portion from part A to part B.

[0061] On the other hand, regarding the comparison between the portion from component R to component Q and the portion from component A to component B, component R does not contain other components, while component A does. Therefore, in this respect, there is a difference in whether or not the component in the maximum common subgraph contains other components. Consequently, the portion from component R to component Q differs from the maximum common subgraph.

[0062] Regarding (v) above, in the directed graph of placed parts, part A contains other parts. In the maximum common subgraph, part P is the part that corresponds to part A, including matching edge types and whether or not it contains other parts. Focusing on part P, part P contains other parts. However, the directed graph of the parts it contains differs from the directed graph of the parts that part A contains. Therefore, regarding (v) above, the similarity of the directed graphs of the parts that part P contains is calculated taking this difference into account.

[0063] Based on the above, in Figure 12, there is a significant difference between the placed parts and the combination part template, so the calculated similarity score will be small.

[0064] Furthermore, even if the placement of parts appears different, the directed graphs may be identical. For example, the directed graph in the part placement shown in Figure 13 is identical in shape to the directed graph in the part placement shown in Figure 5. The edge types also match. Therefore, in calculating similarity based on the directed graph, the similarity between multiple placed parts and the combined part template is calculated as 100. For example, if the parts are arranged as shown in Figure 5 in the source of the conversion, and the parts are arranged as shown in Figure 13 in the target combined part template, the similarity exceeds the threshold, and the conversion is performed. In this way, even if the positional relationships of multiple parts placed by the user are not aligned, they can be converted into a combined part with aligned positional relationships.

[0065] Furthermore, according to the criteria (i)-(v) above, even if there is a difference in the number of parts between multiple placed parts and a combination part template, if the differences in other aspects are small, it may still be eligible for conversion. In this case, the parts that are not present in the placed parts will be supplemented from the combination part template during the conversion. For example, in the example shown in Figure 14, according to the criteria (i)-(v) above, the only difference between the placed parts and the combination part template is that of parts U and V. Therefore, it may be eligible for conversion. In this case, since the placed parts do not contain parts corresponding to parts U and V, parts U and V will be supplemented during the conversion.

[0066] Similarly, in the example shown in Figure 12, depending on the method for calculating similarity and the setting of the threshold, the similarity between multiple placed parts and the combined part template may exceed the threshold and become subject to conversion. In this case, parts R and U will be added during the conversion.

[0067] The conversion unit 103 can construct a directed graph for each of the associated multiple placed parts and associated combination part templates, and calculate the similarity between the constructed directed graphs.

[0068] In addition to calculating similarity based on the directed graph described above, the conversion unit 103 may, for example, treat the arrangement of parts as an image and calculate similarity by image comparison.

[0069] Furthermore, the similarity calculation described above can be used not only for conversion by the conversion unit 103, but also for automatic selection by the screen design unit 101 as shown in Figure 3. First, the screen design unit 101 constructs a directed graph for the combination component template T1. Next, the screen design unit 101 performs similarity determination on placed components that are within a certain range from the drag-and-drop position, while constructing a directed graph as described below.

[0070] The construction of a directed graph of placed components and the similarity determination process will be explained in detail. First, the screen design unit 101 constructs a directed graph of placed components, with the component closest to the drop position as the sole node. Next, the directed graph of placed components constructed at this stage is compared with the directed graph of the combined component template to calculate the similarity. If the similarity exceeds a threshold at this point, the directed graph is provisionally retained as the most similar directed graph.

[0071] Next, the screen design unit 101 adds the second closest component to the drop position as a new node to the directed graph of placed components. At this point, the similarity of this new directed graph is calculated by comparing it with the directed graph of the combined component template. If the similarity at this point is greater than a threshold and is greater than the similar directed graph that has been provisionally held, the new directed graph is provisionally held again as the most similar directed graph.

[0072] The screen design unit 101 repeatedly adds components to the directed graph of placed components in order of proximity to the drop position, calculates the similarity, and provisionally holds the most similar directed graph. When the number of nodes in the directed graph of placed components exceeds the number of nodes in the directed graph of the combination component template, or when the above operation has been performed for all placed components, the screen design unit 101 terminates the construction of the directed graph of placed components and the similarity determination operation, and determines the component that is the node of the provisionally held most similar directed graph as the placed component to be automatically selected by the drag-and-drop operation.

[0073] For example, consider the case where the drop position is near part B, as shown in Figure 3. In this case, first, as shown in Figure 15(a), the screen design unit 101 constructs a directed graph with part B, which is the closest part to the drop position PD, as the sole node. In Figure 15, a combination part template with a constructed directed graph is also shown for comparison. The screen design unit 101 compares the directed graph constructed at this stage with the directed graph of the combination part template and calculates the similarity. At this point, it is assumed that the similarity is below a threshold. At this point, the screen design unit 101 proceeds to the next step without provisionally retaining the most similar directed graph.

[0074] Next, as shown in Figure 15(b), the screen design unit 101 adds part C, the second closest part, as a new node to the directed graph. According to the graph construction method described above, a rightward edge is connected from part B to part C. The screen design unit 101 then compares the modified directed graph with the directed graph of the combined part template again and calculates the similarity. At this point, it is assumed that the similarity is greater than the threshold. At this time, the screen design unit 101 provisionally holds the current directed graph as the most similar directed graph and proceeds to the next step.

[0075] Next, as shown in Figure 15(c), the screen design unit 101 adds part A, the third closest part, as a new node to the directed graph. According to the graph construction method described above, a downward edge is connected from part A to part B, and a rightward edge is connected from part A to part C. The screen design unit 101 then compares the modified directed graph with the directed graph of the combined part template again and calculates the similarity. At this point, the similarity is maximized. Therefore, the screen design unit 101 provisionally holds the current directed graph as the most similar directed graph and proceeds to the next step.

[0076] If another node is attempted to be added to the directed graph of an already placed component, the number of nodes in that directed graph will exceed the number of nodes in the directed graph of the combined component template. Therefore, the screen design unit 101 determines that components A, B, and C, which are nodes in the directed graph that was provisionally held as the most similar directed graph in the previous step, will be automatically selected as placed components via drag-and-drop operation.

[0077] Refer to Figure 1 again. When the user selects multiple placed parts placed in the design screen area RG and then performs an operation to generate a combination part template from the multiple placed parts selected by the user, the template generation unit 104 generates a new combination part template and registers it in the library data. Specifically, when the user performs the operation to generate a combination part template from multiple placed parts, the user specifies the attributes that should be set in the combination part template. Based on the multiple placed parts selected by the user and the attributes specified by the user, the template generation unit 104 generates a new combination part template and registers it in the library data. The attribute template generation unit 104 is an example of a template generation means according to this disclosure.

[0078] Referring to Figure 16, an example of the component template generation screen used when a user generates a new component template will be explained. The component template generation screen shown in Figure 16 is for generating component templates based on the combination of parts displayed on the left. When generating a component template, the user can specify common attributes and individual attributes.

[0079] Common attributes are attributes that are common to all combination parts generated based on a combination part template. For example, if you want to unify the color of a part, the thickness of the part's border, and the font of all combination parts generated based on that combination part template, you can set these as common attributes, as shown in Figure 16, to unify the design of all combination parts generated based on that combination part template. Since the attributes designated as common attributes are common to all combination parts generated based on that combination part template, there is no need to set the attributes again when placing combination parts, which reduces the effort required from the user.

[0080] Individual attributes are attributes that may differ for each combination component generated based on a combination component template. Because individual attributes can differ for each combination component, it is only necessary to specify which attributes are individual attributes; it is not necessary to specify the specific value of the attribute. However, default values ​​may be specified. For example, in the example shown in Figure 16, the default value for the "Target Device" attribute is not set, but the default value for the label string is set. Individual attributes can be used, for example, to set the color, font, etc., of all components included in each combination component that is generated.

[0081] Users can change an attribute from a common attribute to an individual attribute by, for example, dragging and dropping an attribute from the common attributes section to the individual attributes section. For example, in Figure 16, if the "part color" attribute is moved to the individual attributes section using drag and drop, the "part color" attribute is changed from a common attribute to an individual attribute, as shown in Figure 17. Of course, it is also possible to move an individual attribute back to a common attribute.

[0082] In this way, users can specify which attributes to set for combined components, in particular which attributes should be common attributes and which should be individual attributes. Of the configurable attributes, those not specified as individual attributes become common attributes.

[0083] In the above explanation, when a user selects multiple placed parts in the design screen area RG and then performs an operation to generate a combination part template from the multiple placed parts selected by the user, a new combination part template is generated and registered in the library data. However, in addition, the template generation unit 104 generates a new combination part template and registers it in the library data in the following three cases, for example: (1) The user calls up the combination part template generation screen without selecting any placed parts, places parts individually on the combination part template generation screen, and sets their attributes. (2) The user selects multiple placed parts in the design screen area RG, calls up the combination part template generation screen, adds, changes, or deletes parts as needed, and sets their attributes. (3) The user calls up the combination part template generation screen, selects a combination part template, and edits the registered combination part template by adding, changing, or deleting parts, or adding, changing, or deleting attributes for the selected combination part template. In the case of (3) above, the template generation unit 104 may generate a new combination component template in accordance with the user's editing and register it in the library, and then delete the pre-edited combination component template that was registered in the library from the library, or it may keep the pre-edited combination component template that was registered in the library in the library as is.

[0084] An example of the hardware configuration of the screen design device 10 will be explained with reference to Figure 18. The screen design device 10 shown in Figure 18 can be implemented using a computer such as a personal computer, tablet terminal, or smartphone.

[0085] The screen design device 10 comprises a processor 1001, a memory 1002, an interface 1003, and a secondary storage device 1004, all of which are connected to each other via a bus 1000.

[0086] The processor 1001 is, for example, a CPU (Central Processing Unit). The various functions of the screen design device 10 are realized when the processor 1001 reads the operation program stored in the secondary storage device 1004 into the memory 1002 and executes it.

[0087] Memory 1002 is a main memory device, for example, composed of RAM (Random Access Memory). Memory 1002 stores the operational program read by the processor 1001 from the secondary memory device 1004. Memory 1002 also functions as working memory when the processor 1001 executes the operational program.

[0088] Interface 1003 is an I / O (Input / Output) interface such as a serial port, a USB (Universal Serial Bus) port, or a network interface.

[0089] The secondary storage device 1004 is, for example, flash memory, an HDD (Hard Disk Drive), or an SSD (Solid State Drive). The secondary storage device 1004 stores the operation program executed by the processor 1001. The functions of the storage unit 110 are realized by the secondary storage device 1004.

[0090] Referring to Figure 19, an example of component conversion processing by the screen design device 10 will be explained. The processing shown in Figure 19 is executed, for example, when the user performs the operation shown in Figure 2.

[0091] The association unit 102 of the screen design device 10 awaits the user's operation to select multiple placed components (step S101). Once the user has selected multiple placed components to be converted, the process proceeds to step S102.

[0092] The association unit 102 waits for the user to select a combination component template (step S102). Once the user has selected the combination component template to be converted, the process proceeds to step S103. Note that the order of steps S101 and S102 may be reversed.

[0093] The association unit 102 associates the multiple placed parts selected in step S101 with the combination part template selected in step S102 (step S103).

[0094] The conversion unit 103 of the screen design device 10 calculates the similarity between the multiple placed parts and the combination part template associated in step S103 (step S104).

[0095] If the similarity calculated in step S104 is below the threshold (step S105: Yes), the conversion unit 103 terminates the part conversion process.

[0096] If the similarity calculated in step S104 is not below the threshold (step S105: No), the conversion unit 103 generates a combination part based on the combination part template associated in step S103 (step S106).

[0097] The conversion unit 103 sets attributes for the combination components generated in step S106 (step S107).

[0098] The conversion unit 103 deletes the multiple placed components associated in step S103 from the design screen (step S108).

[0099] The conversion unit 103 places the combined component generated in step S106 at the locations where the multiple placed components associated in step S103 are placed (step S109). As a result, the multiple placed components that were placed on the design screen are converted into the combined component generated in step S106. The conversion unit 103 then terminates the component conversion process.

[0100] The screen design system 1 according to the embodiment has been described above. According to the screen design device 10 of the screen design system 1, at least one placed component on the screen is associated with a combination component template, and the associated multiple placed components are converted into a combination component based on the associated combination component template. In addition, attributes are set for the combination component during the conversion. Therefore, with the screen design device 10, the user can easily replace at least one component individually placed on the screen with a group of components to which attributes have been set.

[0101] Furthermore, with the screen design device 10, the user can specify which attributes should be common attributes and which should be individual attributes when generating a new combination component template. For attributes designated as common attributes, the user does not need to set the attributes again when placing the combination component. Therefore, the screen design device 10 can reduce the effort required for the user to set attributes.

[0102] (Modification 1) In the embodiment, the conversion by the conversion unit 103 was stopped when the similarity was below a threshold, but it is not always necessary to stop it. For example, if the similarity is low, but the use of the combined parts is the same as before the conversion and there is no problem for the user, it is preferable not to stop the conversion.

[0103] (Modification 2) In the embodiment, when the conversion unit 103 sets attributes for the generated combination component, if the multiple placed components that are the source of the conversion lack attributes related to project settings, it may generate the attributes related to project settings for the generated combination component. Project settings refer to overall settings related to multiple screens / components, background processing, etc., rather than settings for individual screens or components. For example, label settings are settings that manage the assignment of "labels," which are natural language variable names, to devices. Other project settings related to components include comment settings, which are functions for managing the text displayed on the component collectively; logging settings, which are functions for recording changes in device values; and alarm monitoring settings, which generate alarms in response to changes in device values.

[0104] For example, if the combination of components includes components related to data logging for the control device 30, and the attributes necessary for logging have not been set for multiple already placed components, the conversion unit 103 may refer to the project data stored in the storage unit 110 and set the attributes necessary for logging for the generated combination of components.

[0105] For example, consider the case where a combination of a text display component p1 and a graph display component p2, individually placed in the design screen area RG as shown in Figure 20, is converted into a combined component. Note that in Figure 20, areas other than the design screen area RG are omitted.

[0106] Component p1 is a component that displays text based on its configured attributes. In Figure 20, no attributes for text display are configured for component p1, and component p1 is temporarily displaying the text "Sample Text". Component p2 is a component that displays data changes as a graph based on its configured attributes. In Figure 20, no attributes for graph display are configured for component p2, and component p2 is temporarily displaying a dashed line graph as a sample. Therefore, in Figure 20, neither component p1 nor component p2 has any attributes related to project settings configured.

[0107] In the project settings, for example, the logging of the control device 30 is set to "Control Device Log" as the name and some output value of the control device 30 as the data to be logged. Also, in the combination component template, a common attribute is set so that component q1 refers to the name of the logging setting set for component q2. In this case, when the conversion unit 103 converts the combination of components p1 and p2 into a combination component consisting of the combination of component q1 and component q2 as shown in Figure 21, it sets the individual attributes as follows: The conversion unit 103 sets the attribute related to the text to be displayed among the individual attributes of component q1 to "Control Device Log" by referring to the project settings. The conversion unit 103 sets the attribute related to the data to be displayed in the graph among the individual attributes of component q2 to the output value of the control device 30 by referring to the project settings. Note that the graph of component q2 shown in Figure 21 is shown as a solid line, unlike in Figure 20, because, unlike in Figure 20, it is set to display appropriate data instead of a sample.

[0108] Furthermore, if the project settings themselves do not contain any logging settings, for example, the screen design unit 101 may prompt the user for logging settings, add the logging settings to the project settings, and then set the attributes necessary for logging to the generated combination component. Also, if multiple project settings exist, the user can select which project setting to adopt.

[0109] (Modification 3) In the embodiment, when generating a combination component template, the label structure described below may be generated in association with the component based on user specifications. A label structure is a structure defined in the development environment of a control program that controls field devices such as a programmable logic controller, and includes one or more combinations of type and label name. For example, in the example shown in Figure 22, the label structure T is a label structure that includes a member whose label name is text and whose data type is string, and a member whose label name is monitor and whose data type is word. In the above development environment, a label structure instance t instantiated based on such a label structure T is used.

[0110] When generating a combination component template, the user can associate a pre-placed component A with a label structure T. The component A' in the thus generated combination component template can, for example, specify a label structure instance instantiated based on label structure T as an individual attribute. Then, by actually placing component A' and specifying the label structure instance t as an individual attribute, the data indicated by the label structure instance t can be displayed on component A'. This makes it easier for the user to design screens corresponding to field devices.

[0111] (Modification 4) In the embodiment, if the conversion unit 103 has attributes set on the placed parts before conversion and it is appropriate to set those attributes on the combined parts after conversion, it sets those attributes on the generated combined parts. More specifically regarding the setting of attributes, of the attributes set on the placed parts before conversion, only the attributes corresponding to individual attributes may be carried over to the individual attributes of the combined parts after conversion, and the attributes corresponding to common attributes may be set as common attributes without being carried over.

[0112] (Other variations) In the hardware configuration shown in Figure 18, the screen design device 10 is equipped with a secondary storage device 1004. However, the configuration is not limited to this, and the secondary storage device 1004 may be provided outside the screen design device 10, with the screen design device 10 and the secondary storage device 1004 connected via an interface 1003. In this configuration, removable media such as USB flash drives and memory cards can also be used as the secondary storage device 1004.

[0113] Alternatively, instead of the hardware configuration shown in Figure 18, the screen design device 10 may be configured using a dedicated circuit that utilizes an ASIC (Application Specific Integrated Circuit), FPGA (Field Programmable Gate Array), etc. Furthermore, in the hardware configuration shown in Figure 18, some of the functions of the screen design device 10 may be implemented, for example, by a dedicated circuit connected to interface 1003.

[0114] The program used in the screen design device 10 can be stored and distributed on a computer-readable recording medium such as a CD-ROM (Compact Disc Read Only Memory), DVD (Digital Versatile Disc), USB flash drive, memory card, or HDD. By installing this program on a specific or general-purpose computer, that computer can function as the screen design device 10.

[0115] Alternatively, the aforementioned program may be stored in a storage device owned by another server on the Internet, and the program may be downloaded from that server.

[0116] This disclosure allows for various embodiments and modifications without departing from the broad spirit and scope of this disclosure. Furthermore, the embodiments described above are for illustrative purposes only and do not limit the scope of this disclosure. In other words, the scope of this disclosure is indicated by the claims, not by the embodiments. Various modifications made within the scope of the claims and the equivalent significance of the disclosure are considered to be within the scope of this disclosure.

[0117] 1 Screen design system, 10 Screen design device, 20 Programmable display, 30 Control device, 100 Control unit, 101 Screen design unit, 102 Association unit, 103 Conversion unit, 104 Template generation unit, 110 Storage unit, 120 Input unit, 130 Display unit, 140 Communication unit, 1000 Bus, 1001 Processor, 1002 Memory, 1003 Interface, 1004 Secondary storage device, B Conversion button, p1, p2, q1, q2 Components, PD Drop position, RG Design screen area, RT Template area, SB Selection area, T1, T2 Combination component template, TB1, TB2 Border.

Claims

1. A program that causes a computer to function as an association means for associating at least one placed component on a screen with a pre-registered combination component template which includes information indicating a set of multiple components and attribute information relating to the set; and a conversion means for converting the at least one placed component into a combination component based on the associated combination component template.

2. The program according to claim 1, wherein the conversion means converts the at least one placed part to include the missing part when the plurality of parts included in the associated combination part template include a part that is not present in the at least one placed part.

3. The program according to claim 1 or 2, wherein the association means identifies the at least one placed component to be associated based on the position on the screen specified by the user and the combination component template specified by the user.

4. The program according to any one of claims 1 to 3, wherein the conversion means further compares the at least one placed component with the converted combination component and, if the at least one placed component lacks attributes relating to project settings, sets those project setting attributes on the combination component.

5. The program according to claim 1, wherein the computer further functions as a template generation means for generating and registering a new combination component template based on the at least one placed component and attributes specified by the user, the attribute information of the new combination component template is determined based on the attributes specified by the user, and the association means associates the new combination component template with the at least one placed component.

6. The program according to claim 1, wherein the computer further functions as a template generation means for generating and registering a new combination component template based on the at least one placed component and attributes specified by the user, the attribute information of the new combination component template is determined based on the attributes specified by the user, and the association means associates the new combination component template with a label structure.

7. The program according to any one of claims 1 to 6, wherein the conversion means further sets and inherits the attributes of the at least one placed component that correspond to individual attributes, which are attributes that correspond to the attribute information of the combination component template and are individually set for combination components based on the combination component template, for the converted combination component, but does not inherit the attributes that correspond to common attributes, which are attributes that correspond to the attribute information of the combination component template and are commonly set for combination components based on the combination component template.

8. The program according to any one of claims 1 to 7, wherein the conversion means cancels the conversion to a combination component when the similarity between the associated at least one placed component and the combination component template is below a threshold.

9. A screen design apparatus comprising: association means for associating at least one placed component on a screen with a pre-registered combination component template which includes information indicating a set of multiple components and attribute information relating to the set; and conversion means for converting the at least one placed component into a combination component based on the associated combination component template.

10. A screen design method comprising: a computer associating at least one placed component on a screen with a pre-registered combination component template which includes information indicating a set of multiple components and attribute information relating to the set; and converting the at least one placed component into a combination component based on the associated combination component template.