The present invention relates to a screen creation device and a computer-readable storage medium.
A numerical controller is a device for controlling a machine tool. The numerical controller is provided with a user interface screen (referred to as a UI screen). The UI screen displays a state of the machine tool and receives input by an operator. A creator of the UI screen creates the UI screen in accordance with a type of machine tool, a machine configuration of the machine tool, specifications required by a user, etc.
Different types of information may be displayed on one UI screen.
For example, Patent Document 1 includes
Dedicated software for creating the UI screen of the numerical controller is installed in a PC (personal computer) serving as a screen creation device. This software provides parts for screen creation. The user arranges these parts on the screen, sets properties (attributes and operation contents (execution functions)) of individual parts, and completes the UI screen.
Parts of the UI screen may have dependencies. For example, some parts do not independently function. For example, to execute an operation button for moving a tool, an input part for inputting coordinates of a destination is required. Dependency of a part may be detected by debugging. However, when a problem is found in a downstream process, the UI screen need be recreated, which is cumbersome.
Techniques for simplifying creation of user interfaces are desirable in the field of numerical controllers.
A screen creation device which is an aspect of the present disclosure is a screen creation device for supporting creation of a user interface screen of a numerical controller, the screen creation device including a part library configured to store parts arranged on the user interface screen and a composite part obtained by combining a plurality of parts, a dependency determinator configured to determine whether or not a depended composite part required for the composite part arranged on the user interface screen to function is present on the user interface screen, and an editor configured to notify a user, when the depended composite part is not present on the user interface screen, as such.
A storage medium which is an aspect of the disclosure is a storage medium storing a computer-readable instruction, the storage medium storing parts arranged on a user interface screen and a composite part obtained by combining a plurality of parts, the instruction being executed by one or a plurality of processors to determine whether or not a depended composite part required for the composite part arranged on the user interface screen to function is present on the user interface screen, and notify a user of, when the depended composite part required for the composite part arranged on the user interface screen to function is not present on the user interface screen, as such.
According to one aspect of the invention, it is possible to simplify creation of a user interface.
Hereinafter, a screen creation device 100 of the first disclosure will be described.
As illustrated in
The editor 12 displays a UI editing screen 20 on the display unit 10 of the screen creation device 100, and receives operation input for screen editing by the user. The editor 12 updates layout of the screen and properties (attributes) of parts according to operation input of the user, and reflects the update on the UI editing screen 20.
The program generator 13 converts the properties of the parts and layout of the UI screen created by the editor 12 into an executable program. The executable program is implemented in the numerical controller 200 and function as the UI screen.
In the property display region 22, visual information such as a size, a shape, or a display position of a part, a label such as a numerical value, an icon, or a letter string, a type of the part, a name of the part, operation content (an execution function) of the part, et cetera, can be set.
Parts in the part library 14 include a single part and a composite part 50. The single part indicates a stand-alone component. The single part includes the operation button 24, a key input button, a label, et cetera, however, is not limited thereto.
The composite part 50 indicates a part obtained by combining a plurality of single parts.
The composite part 50 (program editing part 52) in
With reference to
Two composite parts 50 (a program editing part 52 and a G-code guidance part 53) are arranged in the base part 51 in
The program editing part 52 displays a machining program, and receives editing of the machining program. The G-code guidance part 53 displays a description of G-code or receives setting of arguments of G-code with respect to G-code displayed in the program editing part 52. In the G-code guidance part 53 in
The G-code guidance part 53 and the program editing part 52 have dependency. When the program editing part 52 is not arranged on the UI screen, the G-code guidance part 53 does not function. A composite part 50 that depends on another composite part 50 is expressed as “depending composite part”, whereas a composite part 50 depended upon is expressed as “depended composite part”.
Another example of the composite part 50 having dependency will be described.
In the UI editing region 21 in
The fixed phrase part 54 and the program editing part 52 have a depending and depended relationship. In other words, when the program editing part 52 is not arranged on the UI screen, the fixed phrase part 54 does not function.
The dependency determinator 15 determines whether or not the composite part 50 arranged in the UI editing region 21 is a depending composite part. When the composite part 50 arranged in the UI editing region 21 is the depending composite part, the dependency determinator 15 determines whether or not a composite part 50 (referred to as a depended composite part) on which this composite part 50 depends is present on the UI screen.
Information related to dependency of the composite part 50 is recorded in a dependency table 18 shown in
Dependency of the composite part 50 can be seen with reference to the dependency table 18. In the example of
The dependency determinator 15 determines whether or not the composite part 50 arranged in the UI editing region 21 depends on another composite part 50. When the composite part 50 arranged in the UI editing region 21 depends on another composite part 50 (depended composite part), the dependency determinator 15 determines whether or not the depended composite part is arranged in the UI editing region 21. When the depended composite part is not arranged in the UI editing region 21, the user is notified of this information. A notification method includes warning display, message display, icon display, etc. However, the notification method is not limited thereto.
Processing by the screen creation device 100 of the first disclosure will be described with reference to a flowchart of
When a composite part 50 is selected from the part library display region 23 (step S2), the dependency determinator 15 determines whether or not the selected composite part 50 depends on another composite part 50 (step S3). When the selected composite part 50 does not depend on another composite part 50 (step S4; No), the editor 12 arranges the composite part 50 in the UI editing region 21 as usual (step S5).
When the selected composite part 50 depends on another composite part 50 (depended composite part) (step S4; Yes), the dependency determinator 15 determines whether or not the depended composite part is present in the UI editing region 21 (step S6). When the depended composite part is present in the UI editing region 21 (step S7; Yes), the editor 12 arranges composite part 50 in the UI editing region 21 as usual (step S5).
When the depended composite part is not arranged in the UI editing region 21 (step S7; No), the editor 12 notifies the user with warning display, message display, icon display, etc. (step S8).
The dependency determinator 15 determines dependency when deleting the composite part 50 from the UI editing region 21.
Processing of deleting the composite part 50 from the UI editing region 21 will be described with reference to a flowchart in
When no command to delete the composite part 50 is given (step S12; No), the composite part 50 to be deleted is not a depended composite part (step S14; No), or the composite part 50 depending on the composite part to be deleted is not present in the UI editing region 21 (step S16; No), the editor 12 does not perform any specific processing, and proceeds to step S11 to wait for a command of the user.
As described above, the screen creation device 100 of the first disclosure stores dependency of the composite part 50. When a depending composite part is arranged in the UI editing region 21 where a depended composite part is not present, the creation device 100 displays a warning or a message to notify the user of the UI screen.
In a single part, a purpose of use of an individual part is unknown, and thus it is difficult to identify dependency in advance. The composite part 50 is created for a specific purpose of use, and thus dependency can be identified. Dependency of a part may be detected by debugging. However, when a problem is found in a downstream process, the UI screen comes to be recreated. In the screen creation device 100 of the present disclosure, because dependency can be identified at the time of arranging the composite part 50, dependency can be confirmed in advance. Thus, labor of correction is reduced, and creation of the UI screen can be simplified.
Hereinafter, a screen creation device 100 of the second disclosure will be described.
In the screen creation device 100 of the second disclosure, machine information of the machine tool, which is a control target of the numerical controller 200, is used to determine dependency of a composite part 50. Since the screen creation device 100 of the first disclosure and the screen creation device 100 of the second disclosure have similar components, only differences from the first screen creation device 100 will be described.
The machine information acquirer 16 acquires machine information of the machine tool. The machine information may be directly input to the screen creation device 100 or may be extracted from parameters or option information set in the numerical controller 200.
The machine information is information related to the machine tool, such as a type and a machine configuration of the machine tool.
A dependency table 19 of the second disclosure includes machine information. The dependency table 19 in
In
The above example is an example in which machine information affects dependency in the “major category”. However, machine information in the “intermediate category” or the “minor category” may affect dependency of the composite part 50.
The dependency determinator 15 in the second disclosure determines dependency based on not only the “type of machine” but also the “machine information” when arranging or deleting the composite part 50. The editor 12 notifies the user with warning display, message display, icon display, et cetera, only when the dependency is not established by the “machine information”.
The screen creation device 100 of the disclosure has a hardware configuration illustrated in
The hardware configuration of the screen creation device 100 will be described with reference to
A display unit 10 is, for example, a monitor attached to the screen creation device 100. The display unit 10 displays an operation screen, a setting screen, et cetera, of the screen creation device 100.
The input unit 11 is a keyboard, a touch panel, or the like, which is integrated with or separate from the display unit 10. The user operates the input unit 11 to perform input to a screen displayed on the display unit 10, and other matters. Note that the display unit 10 and the input unit 11 may be a mobile terminal.
As an example, a nonvolatile memory 114 is a memory that is backed up or the like by a battery, not shown, so that a storage state is retained even when the power of the screen creation device 100 is turned off. In the nonvolatile memory 114, a program read from an external device via an interface, not shown, a program input via the input unit 11, and various data acquired from each unit of the screen creation device 100, a machine tool, or the like (for example, a setting parameter acquired from the machine tool, and other data) are stored. The program and the various data stored in the nonvolatile memory 114 may be loaded in the RAM 113 during execution/use. In addition, various system programs are written to the ROM 112 in advance.
This is the U.S. National Phase application of PCT/JP2021/023822, filed Jun. 23, 2021 the disclosures of this application being incorporated herein by reference in its entirety for all purposes.
| Filing Document | Filing Date | Country | Kind |
|---|---|---|---|
| PCT/JP2021/023822 | 6/23/2021 | WO |