Display device, display device control method, information processing program, and recording medium
The display device addresses the challenge of displaying fixed and variable character strings by acquiring and replacing variable content, ensuring timely and informative message updates.
Patent Information
- Application Number
- JP2021052181
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-03-25
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-03-25
AI Technical Summary
Conventional display devices are unable to effectively display sentences that include both fixed character strings and variable character strings whose content changes depending on the situation.
A display device communicatively connected to a control device, which stores pre-replacement messages containing both fixed and variable character strings, acquires updated variable values, and replaces the variable strings with the acquired values to display post-replacement messages.
Enables the display of sentences with fixed and variable content that changes in response to updates, allowing immediate notification of relevant information to the user.
Smart Images

Figure 0007548093000006 
Figure 0007548093000005 
Figure 0007548093000002
Abstract
Description
[Technical field]
[0001] The present invention relates to a display device or the like that is communicatively connected to a control device. [Background technology]
[0002] Conventionally, there are known HMIs (Human Machine Interfaces) such as programmable displays that notify users of information detected by industrial control devices such as programmable logic controllers (hereinafter abbreviated as "PLCs") For example, Patent Document 1 listed below discloses a programmable display that selects a display format (display format) that is easy for users to view when displaying character strings. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent Publication No. 2009-176178 Summary of the Invention [Problem to be solved by the invention]
[0004] However, the above-mentioned conventional techniques have a problem in that they are unable to display a sentence that includes a fixed character string that is stored in advance and a variable character string whose content changes depending on the situation.
[0005] An object of one aspect of the present invention is to make it possible to display a sentence that includes a fixed character string that is stored in advance and a variable character string whose content changes depending on the situation. [Means for solving the problem]
[0006] In order to solve the above problems, a display according to one embodiment of the present invention is a display communicatively connected to a control device, and includes a memory unit that pre-stores a pre-replacement message, which is a sentence including a variable string and a fixed string, an acquisition unit that acquires the value of a predetermined variable updated by the control device, and a display control unit that displays a replaced string, which is a string in which the variable string is replaced by the value acquired by the acquisition unit, and a replaced message, which is a sentence including the fixed string.
[0007] According to the above configuration, the display device pre-stores a pre-replacement message, which is a sentence including the variable string and the fixed string, and when the value of the predetermined variable is updated by the control device, the display device acquires the updated value and displays the replaced string, which is a string obtained by replacing the variable string with the acquired updated value, and a replaced message, which is a sentence including the fixed string.
[0008] Therefore, the display device has the effect of being able to display the replaced message, which is a sentence including a fixed character string stored in advance (i.e., the fixed character string) and a variable character string (i.e., the replaced character string) whose content changes depending on the situation.
[0009] In particular, the display device displays the replaced message based on the pre-replacement message stored in advance in a storage unit, using the value of the predetermined variable acquired from the control device.
[0010] Therefore, the display device has the following effect compared to a configuration in which "the server obtains the value of a predetermined variable from the control device, the server generates a message to be displayed on the display device, and the display device displays the message obtained from the server." That is, compared to the above-mentioned configuration, the display device has the effect of being able to promptly notify the user of the replaced message, which is a sentence whose content has been changed in accordance with the change in the value of the predetermined variable in the control device.
[0011] In a display device according to one aspect of the present invention, the memory unit may further store in advance conditions for displaying the replaced message set by a user, and may further include a judgment unit that judges whether the conditions are satisfied, and when the judgment unit judges that the conditions are satisfied, the display control unit may display the replaced message.
[0012] According to the above configuration, when it is determined that the "condition for displaying the replaced message, which is set by the user," the display device displays the replaced message.
[0013] Therefore, when "the condition set by the user" is satisfied, the display device has the effect of being able to display the replaced message, which is a sentence including a fixed character string stored in advance and a variable character string whose content changes depending on the situation.
[0014] In the display device according to one aspect of the present invention, the condition may be that the control device detects a predetermined state.
[0015] According to the above configuration, when the control device detects a predetermined state, the display device displays the replaced message. For example, when the control device detects an abnormal state, the display device displays the replaced message which is a sentence including, as the replaced string, a string that identifies a target in which the abnormal state is detected.
[0016] Therefore, when the control device detects a predetermined state, the display device has the effect of being able to display the replaced message, which is a sentence including a fixed character string that has been stored in advance and a variable character string whose content changes depending on the situation.
[0017] In the display device according to one aspect of the present invention, the storage unit may further store in advance information for identifying the predetermined variable set by a user.
[0018] According to the above configuration, the display device displays the replaced message, which is a sentence including the fixed string and a replaced string in which the variable string is replaced with a value (particularly, an updated value) of "the specified variable specified by the information stored in the storage unit." The "specified variable specified by the information stored in the storage unit" is set by a user.
[0019] For example, the user can change the "information stored in the storage unit" to cause the display device to display the value of "the specified variable" that the user desires. In other words, the user can change the content of the information that the display device displays in the post-replacement message. The user can cause the display device to display the information that the user desires as the post-replacement character string.
[0020] Therefore, the display device has the effect of being able to display a sentence including the fixed string and a replaced string in which the variable string is replaced by the value of "the specified variable set by the user and identified by information pre-stored in the memory unit."
[0021] In a display device according to one embodiment of the present invention, the memory unit may further pre-store display rules set by a user for use in displaying the value acquired by the acquisition unit as the replaced string, and the display control unit may display the value acquired by the acquisition unit as the replaced string in accordance with the display rules.
[0022] According to the above configuration, the display device displays the replaced message including the replaced string generated from the value of the specified variable and the fixed string in accordance with the display rules set by a user.
[0023] For example, the display rules may be the base in which a numeric value is displayed, the minimum number of digits in the integer portion of a numeric value to be displayed, the number of digits in the decimal portion of a numeric value to be displayed, whether or not to use commas to separate numeric values, etc.
[0024] A user can change the display format of the replaced character string displayed on the display by changing the display rules stored in the storage unit.
[0025] Therefore, the display device can display the replaced message including the replaced character string generated in accordance with the display rule set by a user and the fixed character string.
[0026] In order to solve the above problems, a control method according to one aspect of the present invention is a control method for a display device that is communicatively connected to a control device and has a memory unit that pre-stores a pre-replacement message, which is a sentence including a variable string and a fixed string, and includes an acquisition step of acquiring a value of a predetermined variable updated by the control device, and a display control step of displaying a replaced string, which is a string in which the variable string is replaced by the value acquired in the acquisition step, and a replaced message, which is a sentence including the fixed string.
[0027] According to the above configuration, the control method displays the following "replaced message, which is a sentence including a replaced string and a fixed string" generated from the "pre-replacement message, which is a sentence including a variable string and a fixed string" stored in the storage unit. That is, when the value of the predetermined variable is updated by the control device, the control method acquires the updated value, and displays the replaced message, which is a sentence including the replaced string in which the variable string has been replaced with the acquired updated value, and the fixed string.
[0028] Therefore, the control method has the effect of being able to display the replaced message, which is a sentence including a fixed character string stored in advance (i.e., the fixed character string) and a variable character string (i.e., the replaced character string) whose content changes depending on the situation.
[0029] In particular, the control method displays the replaced message using the value of the predetermined variable acquired from the control device, based on the pre-replacement message previously stored in a storage unit.
[0030] Therefore, the control method has the following effect compared to a configuration in which "the server obtains the value of a predetermined variable from the control device, the server generates a message to be displayed on the display device, and the display device displays the message obtained from the server." That is, the control method has the effect of being able to promptly notify a user of the replaced message, which is a sentence whose content has been changed in response to a change in the value of the predetermined variable in the control device, in accordance with the change in the value of the predetermined variable. Effect of the Invention
[0031] According to one aspect of the present invention, it is possible to display a sentence including a fixed character string stored in advance and a variable character string whose content changes depending on the situation. [Brief description of the drawings]
[0032] [Figure 1] 1 is a block diagram showing a configuration of a main part of an HMI and the like according to a first embodiment of the present invention. [Diagram 2] FIG. 2 is a diagram showing an overall overview of a control system including the HMI shown in FIG. [Diagram 3] 3 is a diagram for explaining synchronization of variable values between the HMI in FIG. 1 and the PLC shown in FIG. 2. [Figure 4] 3 is a diagram illustrating an example of an operation in which a user sets a condition for displaying a replaced message, a pre-replacement message, a designated variable, and a display rule using the development support device illustrated in FIG. 2. [Diagram 5] 2 is a diagram for explaining an outline of a flow of processes and the like executed when the HMI in FIG. 1 displays a replaced message. [Figure 6] 6 is a diagram showing an example in which the HMI of FIG. 1 displays a replaced message in an image different from the alert image exemplified in FIG. 5. [Figure 7] 2 is a flow diagram showing an example of a process executed by the HMI of FIG. 1. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0033] [Embodiment 1] An embodiment according to one aspect of the present invention (hereinafter also referred to as "this embodiment") will be described below with reference to Figs. 1 to 7. Note that the same or corresponding parts in the drawings are given the same reference numerals and their description will not be repeated. In this embodiment, for example, an HMI (Human Machine Interface) 10 will be described as a typical example of a display device communicatively connected to a programmable logic controller (hereinafter abbreviated as "PLC") 20 (control device).
[0034] In the following description, "m", "n", "p", "q", "x", and "y" each represent an integer equal to or greater than 1. Furthermore, "m" is an integer equal to or less than n, "p" and "q" are different integers, and "x" and "y" are different integers.
[0035] In order to facilitate understanding of the HMI 10 according to one embodiment of the present invention, first, an overview of a control system 1 including the HMI 10 will be described with reference to FIG.
[0036] § 1. Examples of Application (Overall overview of the control system) 2 is a diagram showing an overall overview of a control system 1 including an HMI 10. The control system 1 is a master-slave control system including a PLC (Programmable Logic Controller) 20 as a master device and one or more slave devices 40 connected to the master device via a network (field network 60). The PLC 20 is called a "master device" in the sense that it manages data transmission via the field network 60.
[0037] When multiple PLCs 20 are connected to the field network 60, one of the PLCs 20 may be a master device, and the remaining PLCs 20 may be slave devices. Also, a control entity other than either the PLC 20 or the slave device 40 may be the master device. In other words, the "master device" and the "slave device" are defined with a focus on the control function of data transmission on the field network 60, and there is no particular limitation on the type of information transmitted and received between the devices.
[0038] The PLC 20 performs overall control of the control system 1. Specifically, the PLC 20 acquires information as input data from a device 50, which is an input device such as a sensor, via a slave device 40. The PLC 20 executes arithmetic processing using the acquired input data according to a pre-installed user program. The PLC 20 executes the arithmetic processing to determine the control content for the device 50, which is an output device such as an actuator, and outputs control data corresponding to the control content to the device 50 via the slave device 40.
[0039] The field network 60 transmits various data received by the PLC 20 or transmitted by the PLC 20. The field network 60 is, for example, EtherCAT (registered trademark), PROFINET (registered trademark), MECHATROLINK (registered trademark)-III, Powerlink, SERCOS (registered trademark)-III, or CIP Motion. The field network 60 may also be, for example, EtherNet / IP (registered trademark), DeviceNet, or CompoNet (registered trademark). In the following, a control system 1 will be described in which data frames are transferred sequentially on the field network 60 to transmit and receive data between the PLC 20 and a slave device 40, or between multiple slave devices 40.
[0040] The slave device 40 is a slave device in a network (field network 60) in which the PLC 20 serves as a master device, and is, for example, a device communication management unit such as a communication coupler that manages communication with the device 50. The slave device 40 may be a servo driver that is directly connected to the field network 60. The device 50 is, for example, an input device such as a sensor, and is, for example, an output device such as an actuator. One or more devices 50 are connected to the slave device 40 via a communication cable.
[0041] The development support device 30 is connected to the PLC 20 via a communication cable, such as a Universal Serial Bus (USB) cable. The development support device 30 is an information processing device for generating a user program executed by the PLC 20 and various setting information for the control system 1.
[0042] The development support device 30 provides, for example, a development environment for the PLC 20, and provides an environment for a user to create (create and edit) a user program according to a control purpose (for example, a target line and process). The user creates program code for a control program (user program) to be executed by the PLC 20 using a development environment (programming tool) provided by the development support device 30. The development support device 30 may have a debugging function and a simulation function to assist the user in creating and editing a control program to be executed by the PLC 20.
[0043] Furthermore, the development support device 30 may, for example, calculate and set the timing for the PLC 20 to acquire a state value (input refresh) and the timing for the PLC 20 to update an output value (output refresh). The development support device 30 may monitor the operating state of the PLC 20 and the values of various data.
[0044] In other words, the development support device 30 may be a device that provides an integrated development environment that also supports 3D motion simulation, in addition to programming, configuration (configuration setting), debugging, maintenance, and monitoring functions of the PLC 20. The development support device 30 may also set and adjust various parameters for the slave device 40.
[0045] The development support device 30 is typically configured as a general-purpose computer. For example, the information processing program executed by the development support device 30 may be stored and distributed on a CD-ROM (Compact Disk-Read Only Memory) (not shown). The program stored on this CD-ROM is read by a CD-ROM drive (not shown) and stored on a hard disk or the like of the development support device 30. Alternatively, the development support device 30 may be configured to download a program similar to the program stored on the DVD-ROM from a higher-level host computer or the like via a network.
[0046] As shown in Fig. 2, the HMI 10 is connected to the PLC 20 via a communication cable. The HMI 10 is a means for humans to exchange information with machines, specifically, a means for humans to operate machines (give instructions to machines) and for machines to inform humans of their current status and results. Regarding the HMI 10, means by which humans give instructions to machines include switches, buttons, handles, dials, pedals, remote controls, microphones, keyboards, mice, etc. Regarding the HMI 10, means by which machines communicate information related to their current status, results, etc. to humans include LCD screens, meters, lamps, speakers, etc.
[0047] The HMI 10 includes a display unit, an operation unit, a communication unit that communicates with the PLC 20, and a control unit that controls each unit. The HMI 10 can change various settings of the control system 1 (e.g., the PLC 20) in response to user operations on the operation unit. The display unit of the HMI 10 also displays predetermined information about the control system 1.
[0048] The HMI 10 may be a programmable display device. The HMI 10 may be capable of changing various settings of the PLC 20 connected in a communicable manner in response to an operation received from a user, and may also display predetermined information of the PLC 20.
[0049] That is, the HMI 10 may notify the PLC 20 of an instruction received from the user. The HMI 10 may also present the data and notification received from the PLC 20 to the user by outputting the data and notification from its own terminal (displaying the data on a display unit or outputting an audio signal such as an alarm).
[0050] The HMI 10 is synchronized with the PLC 20, and specifically, the HMI 10 changes various corresponding data of the own device in response to changes in various data in the PLC 20. That is, the HMI 10 communicates with the PLC 20, acquires the values of variables stored in the PLC storage unit 210 of the PLC 20, and updates the values of the corresponding variables (synchronization variables) stored in the synchronization variable table 121 of the own device with the values of the variables acquired from the PLC 20.
[0051] The HMI 10 repeatedly executes the above-mentioned update process at predetermined time intervals (cycles) to synchronize the values of the variables (synchronization variables) stored in the synchronization variable table 121 with the values of the variables stored in the PLC storage unit 210 of the PLC 20. The HMI 10 may execute the above-mentioned update process for each predetermined event, such as a change in the value of the variable stored in the PLC storage unit 210. The synchronization of the variable values between the HMI 10 and the PLC 20 will be described in detail later with reference to FIG. 3.
[0052] The development support device 30 is connected to the HMI 10 via a communication cable, for example a USB cable, and notifies the HMI 10 of "the message before replacement MSB, the condition COE (display condition), the designated variable VAD, the display rule RUE, etc." set by the user. The operation by the user to set the condition COE, the message before replacement MSB, the designated variable VAD, the display rule RUE, etc. using the development support device 30 will be described in detail later with reference to FIG. 4.
[0053] The HMI 10 stores the "pre-replacement message MSB, condition COE, designated variable VAD, display rule RUE, etc." notified by the development support device 30 in the storage unit 120, and generates a replaced message MSA using these and the values of variables acquired from the PLC 20. Specifically, the HMI 10 generates a replaced character string CSA from the value of the designated variable VAD in accordance with the display rule RUE. The HMI 10 then replaces the variable character string CSV of the pre-replacement message MSB with the generated replaced character string CSA to generate a replaced message MSA. The HMI 10 displays the generated replaced message MSA (e.g., an alarm message).
[0054] §2. Example configuration Up to this point, the overview of the control system 1 has been explained using Figure 2. Next, the details of the HMI 10 will be explained. First, an overview of the HMI 10, which will be explained in detail below using Figure 1 etc., will be summarized as follows.
[0055] That is, the HMI 10 is a display device that is communicatively connected to the PLC 20 (control device). The HMI 10 includes a storage unit 120, an acquisition unit 110, and a display control unit 150.
[0056] The storage unit 120 (particularly, the pre-replacement message table 125) stores in advance "a pre-replacement message MSB, which is a sentence including a variable string CSV and a fixed string CSF." The acquisition unit 110 acquires the value of a predetermined variable (a variable corresponding to the designated variable VAD) updated by the PLC 20. The display control unit 150 displays a post-replacement string CSA, which is a string obtained by replacing the variable string CSV with the "value of the predetermined variable (a variable corresponding to the designated variable VAD)" acquired by the acquisition unit 110, and a post-replacement message MSA, which is a sentence including the fixed string CSF.
[0057] In the following description, the "predetermined variable (variable corresponding to the designated variable VAD)" stored in the PLC storage unit 210 of the PLC 20 and whose value is updated by the PLC 20 may be referred to as the "designated variable VAD." In other words, the designated variable VAD is stored in the PLC storage unit 210 of the PLC 20 and in the storage unit 120 of the HMI 10 (particularly, the synchronization variable table 121).
[0058] The acquisition unit 110 acquires the value of the designated variable VAD stored in the PLC storage unit 210 of the PLC 20, and updates the value of the designated variable VAD stored in the synchronization variable table 121 of the storage unit 120 with the acquired value. The acquisition unit 110 executes this update process periodically or when the value of the designated variable VAD stored in the PLC storage unit 210 is changed. As a result, the value of the designated variable VAD stored in the synchronization variable table 121 of the storage unit 120 is synchronized with the value of the designated variable VAD stored in the PLC storage unit 210 of the PLC 20.
[0059] According to the above configuration, the HMI 10 stores in advance in the storage unit 120 (particularly, in the pre-replacement message table 125) "pre-replacement message MSB, which is a sentence including the variable string CSV and the fixed string CSF." When the value of the predetermined variable (the variable corresponding to the designated variable VAD) is updated by the PLC 20, the HMI 10 acquires the updated value. Then, the HMI 10 displays "a post-replacement message MSA, which is a sentence including the fixed string CSF and "a post-replacement string CSA, which is a string obtained by replacing the variable string CSV with the acquired updated value."
[0060] Therefore, the HMI 10 has the effect of being able to display "a replaced message MSA, which is a sentence including a fixed character string stored in advance (i.e., the fixed character string CSF) and a variable character string whose contents change depending on the situation (i.e., the replaced character string CSA)."
[0061] In particular, the HMI 10 displays the replaced message MSA using the value of the predetermined variable (variable corresponding to the designated variable VAD) acquired from the PLC 20 based on the replaced message MSB stored in advance in the storage unit 120.
[0062] Therefore, the HMI 10 has the following effect compared to a configuration in which "the server obtains the value of a specified variable from the PLC 20 (control device), the server generates a message to be displayed on the display, and the display displays the message obtained from the server." That is, compared to the above-mentioned configuration, the HMI 10 has the effect of being able to promptly notify the user of a replaced message MSA, which is a sentence whose content has been changed in accordance with the change in the value of the specified variable in the PLC 20.
[0063] In the HMI 10, the storage unit 120 further stores in advance a "condition COE, which is a display condition for the replaced message MSA," set by the user, and more specifically, the condition COE is stored in advance as the display condition information 123. The HMI 10 includes a determination unit 130 that determines whether the condition COE is satisfied. When the determination unit 130 determines that the condition COE is satisfied, the display control unit 150 of the HMI 10 displays the replaced message MSA.
[0064] According to the above configuration, when the HMI 10 determines that the "condition COE, set by the user, for the HMI 10 to display a message" is satisfied, the HMI 10 displays the replaced message MSA.
[0065] The replaced message MSA is generated from the pre-replacement message MSB. Therefore, in the display condition information 123, the "condition COE, which is the display condition of the replaced message MSA" is defined for each pre-replacement message MSB. When the HMI 10 determines that the condition COE defined for a pre-replacement message MSB is satisfied, it generates a replaced message MSA corresponding to that pre-replacement message MSB. Then, the HMI 10 displays the generated replaced message MSA on the display unit of its own device.
[0066] Therefore, when the "condition COE set by the user" is satisfied, the HMI 10 has the effect of being able to display a "replaced message MSA, which is a sentence including a fixed character string stored in advance and a variable character string whose content changes depending on the situation."
[0067] In the HMI 10, the condition COE may be that the PLC 20 detects a predetermined state.
[0068] According to the above configuration, when the PLC 20 detects a predetermined state, the HMI 10 displays the replaced message MSA. For example, when the PLC 20 detects an abnormal state, the HMI 10 displays the replaced message MSA, which is a sentence that includes, as a replaced character string CSA, a character string that identifies the target in which the abnormal state was detected.
[0069] Therefore, when the PLC 20 detects a predetermined state, the HMI 10 has the effect of being able to display "a replaced message MSA, which is a sentence including a fixed character string stored in advance and a variable character string whose content changes depending on the situation."
[0070] In the HMI 10, the storage unit 120 further stores in advance information (specifically, display setting information 124) that identifies the "designated variable VAD set by the user."
[0071] According to the above configuration, the HMI 10 acquires the value (particularly the updated value) of the "designated variable VAD specified by the display setting information 124 stored in the memory unit 120." The HMI 10 displays a "replaced message MSA, which is a sentence including a "replaced string CSA in which the variable string CSV is replaced by the acquired value of the designated variable VAD," and a fixed string CSF." The "designated variable VAD specified by the display setting information 124 stored in the memory unit 120" is set by the user.
[0072] For example, the user can change the "display setting information 124 stored in the storage unit 120" to cause the HMI 10 to display the value of the designated variable VAD that the user desires. That is, the user can change the content of the information that the HMI 10 displays in the replaced message MSA. In other words, the user can cause the HMI 10 to display the information that the user desires (the value of the designated variable VAD) as the replaced character string CSA.
[0073] Therefore, the HMI 10 has the effect of being able to display a replaced message MSA, which is a sentence including a replaced string CSA in which the variable string CSV has been replaced by the value of the "designated variable VAD set by the user," and a fixed string CSF.
[0074] In the HMI 10, the memory unit 120 further stores a display rule RUE, specifically, the display rule RUE is stored as part of the display setting information 124. The display rule RUE is a display rule set by the user. The display rule RUE is a display rule for displaying the "value of the specified variable (variable corresponding to the designated variable VAD)" acquired by the acquisition unit 110 as a replaced string CSA. The display control unit 150 displays the "value of the specified variable (variable corresponding to the designated variable VAD)" acquired by the acquisition unit 110 as a replaced string CSA in accordance with the display rule RUE.
[0075] According to the above configuration, the HMI 10 generates a replaced character string CSA from the value of the designated variable VAD according to the "display rule RUE set by the user." Then, the HMI 10 displays a "replaced message MSA including the generated replaced character string CSA and the fixed character string CSF."
[0076] For example, the display rule RUE may be a combination of the base in which a numeric value is displayed, the minimum number of digits in the integer portion of the numeric value to be displayed, the number of digits in the decimal portion of the numeric value to be displayed, whether or not to use commas to separate numeric values, etc.
[0077] The user can change the display rule RUE stored in the storage unit 120 to change the display format of the replaced character string CSA displayed by the HMI 10, etc.
[0078] Therefore, the HMI 10 has the effect of being able to display a "replaced message MSA including a replaced string CSA generated in accordance with the display rule RUE set by the user and a fixed string CSF."
[0079] (Details of the display and control device configuration) The HMI 10, the overview of which has been given so far, will now be described in detail with reference to FIG. 1 etc.
[0080] 1 is a block diagram showing the configuration of the main parts of the HMI 10 and the PLC 20. To ensure conciseness of description, the configuration of the HMI 10 and the PLC 20 that is not directly related to the present embodiment is omitted from the description and block diagram.
[0081] (Detailed configuration of the control device) The PLC 20 includes a PLC storage unit 210, which stores one or more variables. The PLC storage unit 210 illustrated in Fig. 1 stores a first variable 211(1), a second variable 211(2), ..., an n-th variable 211(n).
[0082] The PLC 20, as a master device in a master-slave control system, communicates with one or more slave devices 40. Then, when the PLC 20 detects, for example, that a predetermined state occurs in the slave device 40 (or the device 50), it changes the value of a variable stored in the PLC storage unit 210. The PLC 20 may notify the HMI 10 that the value of the variable stored in the PLC storage unit 210 has been changed.
[0083] (Detailed display configuration) As shown in FIG. 1, the HMI 10 includes an acquisition unit 110, a storage unit 120, a determination unit 130, a replacement unit 140, and a display control unit 150 as functional blocks.
[0084] In addition to the above-mentioned functional blocks, the HMI 10 may include a PLC setting change unit that changes various settings of the PLC 20 in response to operations received from a user. However, in order to ensure conciseness of the description, configurations that are not directly related to the present embodiment are omitted from the description and block diagram. However, the HMI 10 may include the omitted configurations depending on the actual situation of the implementation.
[0085] (Function blocks other than the memory unit) The acquiring unit 110 communicates with the PLC 20 to acquire the values of variables stored in the PLC storage unit 210, and updates the values of variables stored in the synchronization variable table 121 of the storage unit 120 with the acquired values. The acquiring unit 110 executes this update process periodically or when the values of the variables stored in the PLC storage unit 210 are changed. As a result, the values of the variables stored in the synchronization variable table 121 of the storage unit 120 are synchronized with the values of the variables stored in the PLC storage unit 210 of the PLC 20.
[0086] The determination unit 130 refers to the display condition information 123 in the storage unit 120 to acquire the condition COE defined for each pre-replacement message MSB. As described above, the replaced message MSA is generated from the pre-replacement message MSB. Therefore, in the display condition information 123, the "condition COE that is the display condition of the replaced message MSA" is defined for each pre-replacement message MSB.
[0087] For example, the determination unit 130 obtains the condition COE(1) defined for the pre-replacement message MSB(1) and the condition COE(2) defined for the pre-replacement message MSB(2). Similarly, the determination unit 130 obtains the condition COE(m) defined for the pre-replacement message MSB(m) and the condition COE(n) defined for the pre-replacement message MSB(n).
[0088] Hereinafter, when it is necessary to distinguish between multiple pre-replacement message MSBs, they will be distinguished by adding suffixes such as "(1)", "(2)", "(3)", ..., "(n)" to the symbols as described above. For example, they will be distinguished by writing "pre-replacement message MSB(1)", "pre-replacement message MSB(2)", "pre-replacement message MSB(3)", ..., "pre-replacement message MSB(n)". When there is no particular need to distinguish between each of the multiple pre-replacement message MSBs, they will be simply referred to as "pre-replacement message MSB".
[0089] Similarly, when it is necessary to distinguish between multiple condition COEs, they are distinguished by adding suffixes such as "(1)", "(2)", "(3)", ..., and "(n)" to the symbols, as described above. For example, they are distinguished by writing "Condition COE (1)", "Condition COE (2)", "Condition COE (3)", ..., "Condition COE (n)". When there is no particular need to distinguish between each of the multiple condition COEs, they are simply referred to as "Condition COEs".
[0090] The determination unit 130 determines whether the acquired condition COE is satisfied, and notifies the replacement unit 140 and the display control unit 150 of the determination result. The determination unit 130 acquires "n" condition COEs from condition COE(1) to condition COE(n), determines whether each of the acquired "n" condition COEs is "satisfied", and notifies the replacement unit 140 and the display control unit 150 of the determination result.
[0091] The determination unit 130 determines whether the condition COE is satisfied, for example, in the following manner. That is, the determination unit 130 checks whether the values of the variables defined in the condition COE are the values defined in the condition COE. When the determination unit 130 checks that the values of the variables defined in the condition COE are the values defined in the condition COE, it determines that "the condition COE is satisfied." Then, the determination unit 130 notifies the replacement unit 140 and the display control unit 150 of the determination result.
[0092] Specifically, when the condition COE(x) is "the value of the first synchronization variable 122(x1) is "True" and the value of the second synchronization variable 122(x2) is "True", the determination unit 130 refers to the synchronization variable table 121 and performs the following confirmation. That is, the determination unit 130 confirms whether "the value of the first synchronization variable 122(x1) is "True" and the value of the second synchronization variable 122(x2) is "True". When it is confirmed that "the value of the first synchronization variable 122(x1) is "True" and the value of the second synchronization variable 122(x2) is "True", the determination unit 130 determines that the condition COE(x) is satisfied.
[0093] When the determination unit 130 determines that "a certain condition COE is satisfied," it may notify the replacement unit 140 and the display control unit 150 of identification information of a pre-replacement message MSB corresponding to the certain condition COE. For example, when the determination unit 130 determines that "a condition COE(x) is satisfied," it may notify the replacement unit 140 and the display control unit 150 of identification information of a pre-replacement message MSB(x), which is a pre-replacement message MSB corresponding to the condition COE(x). The determination unit 130 may notify the replacement unit 140 and the display control unit 150 of the determination result that "the condition COE(x) of the pre-replacement message MSB(x) is satisfied."
[0094] When the replacement unit 140 is notified of the determination result that "a certain condition COE is satisfied" by the determination unit 130, the replacement unit 140 executes the following six processes.
[0095] First, the replacing unit 140 acquires the pre-replacement message MSB in which the certain condition COE is defined, by referring to the pre-replacement message table 125 in the storage unit 120. For example, when notified of the judgment result that "condition COE(x) is satisfied", the replacing unit 140 acquires the pre-replacement message MSB(x) in which the condition COE(x) is defined, by referring to the pre-replacement message table 125. Even when notified of the fact that "condition COE(x) of pre-replacement message MSB(x) is satisfied" or of identification information of pre-replacement message MSB(x) from the judgment unit 130, the replacing unit 140 acquires the pre-replacement message MSB(x) corresponding to the condition COE(x).
[0096] Secondly, the replacement unit 140 acquires the designated variable VAD and the display rule RUE defined for the "pre-replacement message MSB in which the certain condition COE is defined" by referring to the display setting information 124 of the storage unit 120. For example, when notified of the determination result that "condition COE(x) is satisfied", the replacement unit 140 acquires the designated variable VAD(x) and the display rule RUE(x) defined for the "pre-replacement message MSB(x) in which condition COE(x) is defined". Even when notified of the fact that "condition COE(x) of pre-replacement message MSB(x) is satisfied" or the identification information of the pre-replacement message MSB(x) by the determination unit 130, the replacement unit 140 acquires the designated variable VAD(x) and the display rule RUE(x).
[0097] Hereinafter, when it is necessary to distinguish between multiple designated variables VAD, they will be distinguished by adding suffixes such as "(1)", "(2)", "(3)", ..., "(n)", "(x)", etc. to the symbols, as described above. For example, they will be distinguished by writing "designated variable VAD(1)", "designated variable VAD(2)", "designated variable VAD(3)", ..., "designated variable VAD(n)", "designated variable VAD(x)". When there is no particular need to distinguish between each of the multiple designated variables VAD, they will be simply referred to as "designated variable VAD".
[0098] Similarly, when it is necessary to distinguish between multiple display rules RUE, they are distinguished by adding suffixes such as "(1)", "(2)", "(3)", ..., "(n)", "(x)", etc. to the symbols, as described above. For example, they are distinguished by writing "display rule RUE(1)", "display rule RUE(2)", "display rule RUE(3)", ..., "display rule RUE(n)", "display rule RUE(x)". When there is no particular need to distinguish between each of the multiple display rules RUE, they are simply referred to as "display rule RUE".
[0099] Thirdly, the replacement unit 140 acquires the value of the designated variable VAD defined for the "pre-replacement message MSB in which the certain condition COE is defined" by referring to the synchronization variable table 121. For example, if a designated variable VAD(x) is defined as the designated variable VAD for the pre-replacement message MSB(x) in the display setting information 124, the replacement unit 140 acquires the value of the designated variable VAD(x) by referring to the synchronization variable table 121.
[0100] Fourth, the replacement unit 140 generates a replaced string CSA from the value of the designated variable VAD obtained in the third process in accordance with the display rule RUE defined for the "pre-replacement message MSB in which the certain condition COE is defined."
[0101] Fifth, the replacement unit 140 replaces the variable character string CSV of the pre-replacement message MSB obtained in the first process with the post-replacement character string CSA generated in the fourth process, and generates a "post-replacement message MSA, which is a sentence including the post-replacement character string CSA and the fixed character string CSF."
[0102] Sixth, the replacement unit 140 stores the replaced message MSA generated in the fifth process in the replaced message table 126. In addition, the replacement unit 140 notifies the display control unit 150 that "the replaced message MSA has been stored in the replaced message table 126."
[0103] The display control unit 150 refers to the replaced message table 126 in the storage unit 120 to acquire the replaced message MSA, and displays the acquired replaced message MSA on the display unit of the HMI 10.
[0104] For example, after being notified of the determination result that "a certain condition COE is satisfied" by the determination unit 130, the display control unit 150 displays the replaced message MSA at the following timing: That is, after receiving the notification of the above determination result from the determination unit 130, the display control unit 150 displays the replaced message MSA when notified by the replacement unit 140 that "the replaced message MSA has been stored in the replaced message table 126."
[0105] (Regarding the memory unit) The storage unit 120 is a storage device that stores various data used by the HMI 10. The storage unit 120 may non-temporarily store (1) a control program, (2) an OS program, (3) application programs for executing various functions possessed by the HMI 10, and (4) various data read when executing the application programs. The above data (1) to (4) are stored in a non-volatile storage device such as a read only memory (ROM), a flash memory, an erasable programmable ROM (EPROM), an electrically EPROM (EEPROM (registered trademark)), or a hard disk drive (HDD). The HMI 10 may include a temporary storage unit (not shown). The temporary storage unit is a so-called working memory that temporarily stores data used for calculations and calculation results during various processes executed by the HMI 10, and is composed of a volatile storage device such as a random access memory (RAM). Which data is stored in which storage device is appropriately determined based on the purpose of use, convenience, cost, physical constraints, etc. of the PLC 20. The storage unit 120 further stores a synchronization variable table 121 , display condition information 123 , display setting information 124 , a pre-replacement message table 125 , and a post-replacement message table 126 .
[0106] The synchronization variable table 121 stores variables corresponding to the variables stored in the PLC storage unit 210. The PLC storage unit 210 illustrated in Fig. 1 stores a first variable 211(1), a second variable 211(2), ..., an n-th variable 211(n). Correspondingly, the synchronization variable table 121 stores a first synchronization variable 122(1), a second synchronization variable 122(2), ..., an n-th synchronization variable 122(n) corresponding to the first variable 211(1), the second variable 211(2), ..., the n-th variable 211(n), respectively.
[0107] In the display condition information 123, a condition COE is defined for each "pre-replacement message MSB corresponding to the replaced message MSA (i.e., the pre-replacement message MSB on which the replaced message MSA is based)" as a condition for displaying the replaced message MSA.
[0108] For example, a condition COE(1) is defined for a pre-replacement message MSB(1) corresponding to a replaced message MSA(1), and a condition COE(2) is defined for a pre-replacement message MSB(2) corresponding to a replaced message MSA(2). Similarly, a condition COE(m) is defined for a pre-replacement message MSB(m) corresponding to a replaced message MSA(m), and a condition COE(n) is defined for a pre-replacement message MSB(n) corresponding to a replaced message MSA(n).
[0109] The condition COE defines, as a condition for displaying the replaced message MSA, the value of a variable stored in the synchronization variable table 121. That is, the condition COE defines a condition for displaying the replaced message MSA as a combination of a variable and the value of the variable.
[0110] The condition COE is set in advance by the user. For example, the HMI 10 acquires the condition COE set by the user using the development support device 30 from the development support device 30 and stores the acquired condition COE in the memory unit 120 as display condition information 123.
[0111] In the display setting information 124, a designated variable VAD and a display rule RUE are defined for each pre-replacement message MSB. For example, a designated variable VAD(1) and a display rule RUE(1) are defined for the pre-replacement message MSB(1), and a designated variable VAD(2) and a display rule RUE(2) are defined for the pre-replacement message MSB(2). Similarly, a designated variable VAD(m) and a display rule RUE(m) are defined for the pre-replacement message MSB(m), and a designated variable VAD(n) and a display rule RUE(n) are defined for the pre-replacement message MSB(n).
[0112] When the pre-replacement message MSB includes a plurality of variable character strings CSV, a designated variable VAD and a display rule RUE may be defined for each variable character string CSV included in the pre-replacement message MSB in the display setting information 124. For example, when the pre-replacement message MSB(x) includes a variable character string CSV(x1) and a variable character string CSV(x2), a designated variable VAD and a display rule RUE may be defined for each of the variable character string CSV(x1) and the variable character string CSV(x2).
[0113] Specifically, a designated variable VAD(x1) and a display rule RUE(x1) may be defined for the variable character string CSV(x1) of the pre-replacement message MSB(x), and a designated variable VAD(x2) and a display rule RUE(x2) may be defined for the variable character string CSV(x2). Similarly, a designated variable VAD(y1) and a display rule RUE(y1) may be defined for the variable character string CSV(y1) of the pre-replacement message MSB(y), and a designated variable VAD(y2) and a display rule RUE(y2) may be defined for the variable character string CSV(y2).
[0114] The designated variables VAD and the display rule RUE are set in advance by the user. For example, the HMI 10 acquires the designated variables VAD and the display rule RUE set by the user using the development support device 30 from the development support device 30, and stores the acquired designated variables VAD and the display rule RUE in the storage unit 120 as the display setting information 124.
[0115] The pre-replacement message table 125 stores one or more pre-replacement messages MSB, which are sentences including a variable character string CSV and a fixed character string CSF. The pre-replacement message MSB is set in advance by a user. For example, the HMI 10 acquires the pre-replacement message MSB set by the user using the development support device 30 from the development support device 30, and stores the acquired pre-replacement message MSB in the pre-replacement message table 125.
[0116] The replaced message table 126 stores a replaced message MSA, which is a sentence including the replaced string CSA and the fixed string CSF. The replaced message MSA is stored in the replaced message table 126 by the replacement unit 140, read out from the replaced message table 126 by the display control unit 150, and displayed on the display unit of the HMI 10.
[0117] (Synchronizing variable values between HMI and PLC) 3 is a diagram for explaining synchronization of variable values between the HMI 10 and the PLC 20. The values of corresponding variables are synchronized between the HMI 10 and the PLC 20. For example, one or more variables stored in the synchronized variable table 121 of the HMI 10 and one or more variables stored in the PLC storage unit 210 of the PLC 20 are associated with each other, and the respective values are synchronized.
[0118] 1 stores a first synchronization variable 122(1), a second synchronization variable 122(2), ..., an nth synchronization variable 122(n). Also, a first variable 211(1), a second variable 211(2), ..., an nth variable 211(n) are stored in the PLC storage unit 210. Here, the first synchronization variable 122(1), the second synchronization variable 122(2), ..., the nth synchronization variable 122(n) and the first variable 211(1), the second variable 211(2), ..., the nth variable 211(n) are associated with each other. The values of the first synchronization variable 122(1), the second synchronization variable 122(2), ..., the nth synchronization variable 122(n) are synchronized with the values of the first variable 211(1), the second variable 211(2), ..., the nth variable 211(n).
[0119] The acquisition unit 110 of the HMI 10 acquires the values of each of the first variable 211(1), second variable 211(2), ..., and n-th variable 211(n) stored in the PLC storage unit 210. The acquisition unit 110 sets each acquired value as each of the first synchronization variable 122(1), second synchronization variable 122(2), ..., and n-th synchronization variable 122(n) stored in the synchronization variable table 121, that is, updates the values of the variables stored in the synchronization variable table 121. The process executed by the acquisition unit 110 to "acquire the values of the variables stored in the PLC storage unit 210 and update the values of the variables stored in the synchronization variable table 121 with the acquired values" is also referred to as an update process.
[0120] For example, the acquisition unit 110 executes the above-mentioned update process periodically or when notified by the PLC 20 that "the value of the variable stored in the PLC storage unit 210 has been changed" (a data change on the PLC side). The update process performed by the acquisition unit 110 periodically or in response to a data change on the PLC side synchronizes the values of the corresponding variables between the HMI 10 and the PLC 20.
[0121] 3, three variables, "ErrRobot1", "AbnormalError", and "LotNo", are given as examples of variables whose values are synchronized between the HMI 10 and the PLC 20. That is, in the example shown in FIG. 3, it is assumed that three variables, "ErrRobot1", "AbnormalError", and "LotNo", are stored in the synchronized variable table 121 of the HMI 10. Similarly, it is assumed that three variables, "ErrRobot1", "AbnormalError", and "LotNo", are stored in the PLC storage unit 210 of the PLC 20.
[0122] For example, the first synchronization variable 122(1) and the first variable 211(1), which correspond to each other, are both variables named “ErrRobot1,” which is a variable whose “value becomes ‘True’ when an error occurs in Robot1.”
[0123] That is, when an error occurs in "Robot1," which is device 50(1), PLC 20 sets the value of "ErrRobot1" to "True," that is, the value of first variable 211(1) to "True."
[0124] As described above, the values of corresponding variables are synchronized between the HMI 10 and the PLC 20 by update processing performed by the acquisition unit 110 periodically or when a data change occurs on the PLC side.
[0125] Therefore, when PLC 20 sets the value of first variable 211(1) (i.e., “ErrRobot1”) to “True,” the value of first synchronization variable 122(1) (i.e., “ErrRobot1”) stored in synchronization variable table 121 of HMI 10 also becomes “True.”
[0126] For example, the second synchronization variable 122(2) and the second variable 211(2), which correspond to each other, are both variables named “AbnormalError,” and this variable “becomes ‘True’ when an error occurs that should stop the line.”
[0127] That is, when an error occurs that should stop the line (for example, when an error occurs in Robot1), PLC 20 sets the value of "AbnormalError" to "True," that is, sets the value of second variable 211(2) to "True."
[0128] As described above, the values of corresponding variables are synchronized between the HMI 10 and the PLC 20 by update processing performed by the acquisition unit 110 periodically or when a data change occurs on the PLC side.
[0129] Therefore, when PLC 20 sets the value of second variable 211(2) (i.e., “AbnormalError”) to “True,” the value of second synchronization variable 122(2) (i.e., “AbnormalError”) stored in synchronization variable table 121 of HMI 10 also becomes “True.”
[0130] For example, the third synchronization variable 122(3) and the third variable 211(3), which correspond to each other, are both variables named “LotNo,” and the value of this variable is the “identification number (lot number) of the product currently flowing on the line.”
[0131] That is, PLC20 sets the “identification number (lot number) of the product currently flowing on the line” (hereinafter, may be abbreviated as “current product number”) as the value of “LotNo,” that is, stores the “current product number” as the value of second variable 211(2).
[0132] As described above, the values of corresponding variables are synchronized between the HMI 10 and the PLC 20 by update processing performed by the acquisition unit 110 periodically or when a data change occurs on the PLC side.
[0133] Therefore, when PLC 20 sets the value of third variable 211(3) (i.e., “LotNo”) to the “current product number,” the value of third synchronization variable 122(3) (i.e., “LotNo”) stored in synchronization variable table 121 of HMI 10 also becomes the “current product number.”
[0134] (Preparation for displaying messages) FIG. 4 is a diagram illustrating an example of the work (operation) performed by a user using the development support device 30 to set the condition COE, the pre-replacement message MSB, the designated variable VAD, and the display rule RUE, which are display conditions under which the HMI 10 displays the replaced message MSA.
[0135] Fig. 4A is a diagram showing an example in which a user sets a condition COE and a pre-replacement message MSB using the development support device 30. For example, the development support device 30 displays an example image shown in Fig. 4A to allow the user to set the condition COE and the pre-replacement message MSB.
[0136] (About setting display conditions) In the example image shown in (A) of Figure 4, the user sets a "condition COE (display condition) for HMI 10 to display the replaced message MSA (e.g., an alarm message)" in the "condition formula", and sets the condition COE, for example, in the form of a condition formula (expression).
[0137] In (A) of Fig. 4, a condition COE is set in the form of a conditional expression "ErrRobot1 And AbnormalError". This condition COE indicates the condition that "the value of the variable "ErrRobot1" is "True" and the value of the variable "AbnormalError" is "True".
[0138] 3, the variable "ErrRobot1" is, for example, the first variable 211(1) stored in the PLC storage unit 210, and is also the first synchronization variable 122(1) stored in the synchronization variable table 121. The variable "AbnormalError" is, for example, the second variable 211(2) stored in the PLC storage unit 210, and is also the second synchronization variable 122(2) stored in the synchronization variable table 121.
[0139] (Setting the message you want to display) In the example image shown in (A) of Figure 4, the user further sets the "message (replaced message MSA) to be displayed on HMI 10 when the condition COE is satisfied," and specifically, sets the pre-replacement message MSB that is the basis for the replaced message MSA.
[0140] The pre-replacement message MSB is a sentence that includes a variable string CSV and a fixed string CSF. The variable string CSV is a string that is replaced by the value of a designated variable VAD, which is a variable set by the user, that is, a variable string whose contents change depending on the situation. The fixed string CSF is a string that is displayed as it is preset by the user, that is, a fixed string whose display contents are determined in advance.
[0141] In the example image shown in FIG. 4A, the pre-replacement message MSB is "Lot No {%%} defective welding." "{%%}" in the pre-replacement message MSB is a character string that is replaced with the value stored in the designated variable VAD, which is a variable set by the user, when the condition COE (display condition) is satisfied, that is, it is a variable character string CSV. Character strings other than "{%%}" in the pre-replacement message MSB are fixed character strings CSF.
[0142] In other words, the pre-replacement message MSB "LotNo{%%} defective welding" is a sentence in which the designated variable VAD "{%%}" is inserted between the fixed character string CSF "LotNo" and the fixed character string CSF "defective welding".
[0143] (About the relationship between the display conditions and the message you want to display) As described with reference to (A) of Fig. 4, the user sets "a condition COE (display condition) for the HMI 10 to display a replaced message MSA (e.g., an alarm message)" for each pre-replacement message MSB that is the basis of the replaced message MSA. In other words, the condition COE and the pre-replacement message MSB are associated with each other.
[0144] For example, the pre-replacement message MSB(1) is associated with the condition COE(1) as its display condition, and the pre-replacement message MSB(2) is associated with the condition COE(2) as its display condition. Similarly, the pre-replacement message MSB(m) is associated with the condition COE(m) as its display condition, and the pre-replacement message MSB(n) is associated with the condition COE(n) as its display condition.
[0145] (Regarding display conditions and registering messages you want to display) The development support device 30 transmits the condition COE and pre-replacement message MSB set by the user to the HMI 10 using the example image shown in Fig. 4A. When the HMI 10 receives the condition COE set by the user from the development support device 30, the HMI 10 stores the received condition COE in the storage unit 120 as display condition information 123. Furthermore, when the HMI 10 receives the pre-replacement message MSB set by the user from the development support device 30, the HMI 10 stores the received pre-replacement message MSB in the pre-replacement message table 125 of the storage unit 120.
[0146] As described above, the condition COE is a condition for the HMI 10 to display the replaced message MSA, and the pre-replacement message MSB is a positional sentence that is the basis of the replaced message MSA that the HMI 10 displays when the condition COE is satisfied. Therefore, the condition COE and the pre-replacement message MSB are associated with each other, and in the display condition information 123, the condition COE is associated with the pre-replacement message MSB.
[0147] In the display condition information 123, for example, the pre-replacement message MSB(1) is associated with a condition COE(1) as its display condition, and the pre-replacement message MSB(2) is associated with a condition COE(2) as its display condition. Similarly, in the display condition information 123, for example, the pre-replacement message MSB(m) is associated with a condition COE(m) as its display condition, and the pre-replacement message MSB(n) is associated with a condition COE(n) as its display condition.
[0148] (About setting specified variables and display rules) Fig. 4B is a diagram showing an example in which a user sets a designated variable VAD and a display rule RUE using the development support device 30. For example, the development support device 30 displays an example image shown in Fig. 4B, and allows the user to set a designated variable VAD and a display rule RUE for each pre-replacement message MSB.
[0149] (About setting designated variables) In the example image shown in FIG. 4B, the user sets a designated variable VAD, which is a variable that stores a value to replace "{%%}" (i.e., the variable character string CSV) in the pre-replacement message MSB set in FIG. 4A. In the example shown in FIG. 4B, the user sets a variable named "LotNo" as the designated variable VAD. As described with reference to FIG. 3, the variable "LotNo" is, for example, the third variable 211(3) stored in the PLC storage unit 210, and is also the third synchronization variable 122(3) stored in the synchronization variable table 121. The user selects the designated variable VAD from the variables stored in the synchronization variable table 121.
[0150] 4B shows an example in which the pre-replacement message MSB contains one variable character string CSV. However, the pre-replacement message MSB may contain multiple variable character strings CSV. When the pre-replacement message MSB contains multiple variable character strings CSV, the user may set multiple designated variables VAD that store values to be replaced with each of the multiple variable character strings CSV.
[0151] For example, if the pre-replacement message MSB(x) includes a variable character string CSV(x1) and a variable character string CSV(x2), the user may set a plurality of designated variables VAD that store values to be replaced with the variable character string CSV(x1) and the variable character string CSV(x2). Specifically, the user may set the p-th synchronization variable 122(p) stored in the synchronization variable table 121 as a variable that stores a value to be replaced with the variable character string CSV(x1). Similarly, the user may set the q-th synchronization variable 122(q) stored in the synchronization variable table 121 as a variable that stores a value to be replaced with the variable character string CSV(x2).
[0152] (About display rule settings) In the example image shown in FIG. 4B, the user further sets a display rule RUE (eg, a display format) that is used when the HMI 10 displays the value of the designated variable VAD by replacing it with the variable character string CSV.
[0153] In (B) of Figure 4, the following are given as examples of display rules RUE: "What base to display a numeric value in (storage format)", "What is the minimum number of digits in the integer part when displaying a numeric value (minimum number of digits in the integer part)", "How many digits to display in the decimal part (number of decimal digits)", and "Whether to use digit separators" are given as examples of display rules RUE.
[0154] In FIG. 4B, the user has selected “Decimal” as the “Storage Format”, so that when HMI 10 replaces the variable string CSV and displays the value of the designated variable VAD, the value of the designated variable VAD will be a number displayed in decimal.
[0155] 4B, the user selects "minimum number of digits in integer part: 1", "number of digits in decimal part: 0", and "whether or not to use digit separators: none". Therefore, the HMI 10 displays a replaced message MSA in which the variable string CSV is replaced with "a replaced string CSA in which the value of the specified variable VAD is displayed with "minimum number of digits in integer part: 1", "number of digits in decimal part: 0", and "whether or not to use digit separators: none".
[0156] 4B shows an example in which a single display rule RUE is set by the user for the value of one designated variable VAD. If the pre-replacement message MSB contains multiple variable character strings CSV, the user may set a display rule RUE for each of the multiple designated variables VAD, each of which corresponds to one of the multiple variable character strings CSV.
[0157] For example, the user may associate the p-th synchronization variable 122(p) and the q-th synchronization variable 122(q) with each of the variable character strings CSV(x1) and CSV(x2) included in the pre-replacement message MSB(x), and may set the following display rule RUE: That is, the user may set a display rule RUE(p) for the p-th synchronization variable 122(p) and a display rule RUE(q) for the q-th synchronization variable 122(q).
[0158] (Regarding the relationship between the specified variables, display rules, and the message you want to display) As described with reference to (B) of Fig. 4, the user sets "a designated variable VAD, which is a variable that stores a value to be substituted for the variable character string CSV in the pre-replacement message MSB" for each pre-replacement message MSB, for example. In other words, the designated variable VAD and the pre-replacement message MSB are associated with each other.
[0159] For example, the pre-replacement message MSB(1) is associated with the designated variable VAD(1), and the pre-replacement message MSB(2) is associated with the designated variable VAD(2). Similarly, the pre-replacement message MSB(m) is associated with the designated variable VAD(m), and the pre-replacement message MSB(n) is associated with the designated variable VAD(n).
[0160] Similarly, the user sets "a display rule RUE (display format) to be applied when replacing the variable character string CSV in the pre-replacement message MSB and displaying the post-replacement character string CSA (i.e., the value of the designated variable VAD)" for each pre-replacement message MSB, for example. In other words, the display rule RUE and the pre-replacement message MSB are associated with each other.
[0161] However, when one pre-replacement message MSB includes a plurality of variable character strings CSV, the designated variable VAD and the display rule RUE may be set for each of the plurality of variable character strings CSV.
[0162] (Regarding display conditions and registering messages you want to display) The development support device 30 transmits the designated variables VAD and the display rule RUE set by the user using the example image shown in Fig. 4(B) to the HMI 10. When the HMI 10 receives the designated variables VAD and the display rule RUE set by the user from the development support device 30, the HMI 10 stores the received designated variables VAD and the display rule RUE in the storage unit 120 as display setting information 124.
[0163] When the designated variable VAD and the display rule RUE are set for each pre-replacement message MSB, in the display setting information 124, the designated variable VAD and the display rule RUE are each associated with the pre-replacement message MSB.
[0164] (Overview of the process for displaying alarm messages) FIG. 5 is a diagram outlining the flow of processes and the like executed by the HMI 10 when displaying the replaced message MSA.
[0165] (updating the value of variables in the PLC) When an error occurs in "Robot1" which is device 50(1) ("(1) An error has occurred!"), PLC 20 executes, for example, the following three processes. That is, PLC 20 sets the value of "ErrRobot1" stored in PLC storage unit 210 to "True", and for example, sets the value of first variable 211(1) to "True". In addition, PLC 20 sets the value of "AbnormalError" stored in PLC storage unit 210 to "True", and for example, sets the value of second variable 211(2) to "True". Furthermore, PLC 20 stores "the identification number of the product currently flowing on the line ("124456" in the example of FIG. 5)" in "LotNo" of PLC storage unit 210, and stores, for example, "the identification number of the product currently flowing on the line: 124456" in third variable 211(3).
[0166] (Synchronization of variable values between PLC and HMI) HMI 10 (particularly, acquisition unit 110) acquires the values of a first variable 211(1) (i.e., "ErrRobot1"), a second variable 211(2) (i.e., "AbnormalError"), and a third variable 211(3) (i.e., "LotNo") from PLC 20. Then, acquisition unit 110 updates the values of first synchronization variable 122(1), second synchronization variable 122(2), and third synchronization variable 122(3) with the acquired values of first variable 211(1), second variable 211(2), and third variable 211(3).
[0167] As a result, the values of the first synchronization variable 122(1) (i.e., "ErrRobot1"), the second synchronization variable 122(2) (i.e., "AbnormalError"), and the third synchronization variable 122(3) (i.e., "LotNo") stored in the synchronization variable table 121 become as follows. That is, the value of "ErrRobot1" stored in the synchronization variable table 121 becomes "True." Also, the value of "AbnormalError" stored in the synchronization variable table 121 becomes "True." Furthermore, the value of "LotNo" stored in the synchronization variable table 121 becomes "124456." The values of the three variables, "ErrRobot1," "AbnormalError," and "LotNo," are synchronized between the HMI 10 and the PLC 20 ("(2) Synchronization of variable values").
[0168] (Decision regarding display conditions) The HMI 10 (particularly, the determination unit 130) acquires the condition COE by referring to the display condition information 123 in the storage unit 120. For example, the determination unit 130 determines that the condition COE is "ErrRobot1 And AbnormalError" illustrated in Fig. 4. In other words, the determination unit 130 determines that the condition COE is "the value of "ErrRobot1" is "True" and the value of "AbnormalError" is "True".
[0169] The determination unit 130 refers to the synchronization variable table 121 in the storage unit 120 and checks the values of "ErrRobot1" (i.e., the first synchronization variable 122(1)) and "AbnormalError" (i.e., the second synchronization variable 122(2)). When the determination unit 130 checks that "the value of "ErrRobot1" is "True" and the value of "AbnormalError" is "True", it determines that the condition COE is satisfied. Then, the determination unit 130, having determined that the condition COE is satisfied, notifies the replacement unit 140 and the display control unit 150 of the determination result (the determination result that the condition COE is satisfied).
[0170] As described above, the condition COE is defined for each pre-replacement message MSB, for example, in the display condition information 123. That is, in the display condition information 123, the condition COE(n) is defined as a display condition for the pre-replacement message MSB(n) in association with the pre-replacement message MSB(n).
[0171] When the judgment unit 130 judges that "condition COE(x) is satisfied" based on the values of the variables stored in the synchronization variable table 121, it may notify the replacement unit 140 and the display control unit 150 of the pre-replacement message MSB(x) corresponding to the condition COE(x).
[0172] (Message generation) When the determination unit 130 notifies the replacement unit 140 of the determination result that "the condition COE is satisfied", the replacement unit 140 refers to the pre-replacement message table 125 and acquires the pre-replacement message MSB. For example, when the determination unit 130 notifies the replacement unit 140 of the determination result that "the condition COE(x) is satisfied", the replacement unit 140 refers to the pre-replacement message table 125 and acquires the pre-replacement message MSB(x) corresponding to the condition COE(x).
[0173] Furthermore, when the determination unit 130 notifies the replacement unit 140 of the determination result that "the condition COE is satisfied", the replacement unit 140 refers to the display setting information 124 and determines "which variable is specified (set) as the designated variable VAD". For example, when the determination unit 130 notifies the replacement unit 140 of the determination result that "the condition COE(x) is satisfied", the replacement unit 140 executes the following process. That is, the replacement unit 140 refers to the display setting information 124 and determines "which variable is specified (set) as the designated variable VAD" for the "pre-replacement message MSB(x) corresponding to the condition COE(x)".
[0174] Then, the replacement unit 140 refers to the synchronization variable table 121 in the storage unit 120 to obtain the value of the "variable set as the designated variable VAD".
[0175] Furthermore, when the determination unit 130 notifies the replacement unit 140 of the determination result that "the condition COE is satisfied", the replacement unit 140 refers to the display setting information 124 and acquires the display rule RUE, which is a rule for displaying the value of "the variable set as the designated variable VAD". For example, when the determination unit 130 notifies the replacement unit 140 of the determination result that "the condition COE(x) is satisfied", the replacement unit 140 refers to the display setting information 124 and acquires the display rule RUE defined for "the pre-replacement message MSB(x) corresponding to the condition COE(x)".
[0176] The replacement unit 140 generates a replaced character string CSA from the acquired value of the "variable set as the designated variable VAD" in accordance with the display rule RUE. Then, the replacement unit 140 replaces the variable character string CSV of the pre-replacement message MSB with the generated replaced character string CSA to generate a replaced message MSA.
[0177] The replacing unit 140 stores the generated replaced message MSA in the replaced message table 126 of the storage unit 120. In addition, the replacing unit 140 notifies the display control unit 150 that "the replaced message MSA has been stored in the replaced message table 126."
[0178] For example, the replacement unit 140 refers to the message table 125 before replacement and acquires the pre-replacement message MSB of "LotNo{%%} poor welding" illustrated in FIG. 4. The replacement unit 140 also refers to the display setting information 124 and understands that "LotNo" illustrated in FIG. 4 (i.e., the third synchronization variable 122(3)) is set as the designated variable VAD. The replacement unit 140 then refers to the synchronization variable table 121 in the storage unit 120 and acquires "124456" which is the value of "LotNo" (i.e., the third synchronization variable 122(3)). The replacement unit 140 also refers to the display setting information 124 and acquires "storage format: decimal system", "minimum number of digits in integer part: 1", "number of digits in decimal part: 0", and "whether or not to use digit separators: none" illustrated in FIG. 4 as the display rule RUE which is the rule for displaying the value of "LotNo".
[0179] The replacement unit 140 generates a replaced character string CSA with "124456" from the acquired "124456" according to the above-mentioned display rule RUE. The replacement unit 140 replaces the variable character string CSV (i.e., "{%%}") of the pre-replacement message MSB "LotNo{%%} defective welding" with the generated replaced character string CSA with "124456" to generate a replaced message MSA. Specifically, the replacement unit 140 generates a replaced message MSA with "LotNo124456 defective welding". The replaced message MSA is a sentence including a fixed character string CSF of the pre-replacement message MSB and a replaced character string CSA in which the variable character string CSV is replaced with the value of the designated variable VAD.
[0180] The replacement unit 140 stores the generated replaced message MSA with “LotNo124456 Welding Defect” in the replaced message table 126 , and notifies the display control unit 150 that the replaced message MSA has been stored in the replaced message table 126 .
[0181] (Show messages) After being notified of the determination result that "the condition COE is satisfied" by the determination unit 130, when notified by the replacement unit 140 that "the replaced message MSA has been stored in the replaced message table 126", the display control unit 150 executes the following process. That is, the display control unit 150 refers to the replaced message table 126 in the storage unit 120, and displays the replaced message MSA stored in the replaced message table 126 on the display screen of its own device. For example, the display control unit 150 displays an alert image including the replaced message MSA in a pop-up on the display screen of its own device ("(3) Pop-up display of alert image").
[0182] In the example shown in FIG. 5, a replaced message MSA is displayed in which the "{%%}" portion (variable character string CSV) of the pre-replacement message MSB "Lot No {%%} defective welding" shown in FIG. 4 has been replaced with "124456."
[0183] (Example of alarm message display) FIG. 6 is a diagram showing an example in which the HMI 10 displays a replaced message MSA in an image other than the alert image exemplified in FIG.
[0184] 5 shows an example in which the HMI 10 (particularly the display control unit 150) displays a replaced message MSA (e.g., an alert message) as a pop-up when the condition COE is satisfied. However, it is not essential to display the replaced message MSA as a pop-up when the condition COE is satisfied. The display control unit 150 may display one or more replaced message MSAs in a list format, for example, as shown in FIG. 6.
[0185] §3. Example of operation Fig. 7 is a flow diagram showing an example of processing executed by the HMI 10. As illustrated in Fig. 7, the acquisition unit 110 acquires the values of each variable of the PLC 20 from the PLC 20, that is, acquires the values of one or more variables stored in the PLC storage unit 210 of the PLC 20 (S110). Specifically, the acquisition unit 110 acquires the values of a first variable 211(1), a second variable 211(2), ..., an n-th variable 211(n) stored in the PLC storage unit 210.
[0186] The acquiring unit 110 updates the values of each variable of its own device (i.e., each synchronization variable stored in the synchronization variable table 121) with the value of each variable acquired from the PLC 20 (S120). That is, the acquiring unit 110 updates the values of each of the first synchronization variable 122(1), the second synchronization variable 122(2), ..., and the nth synchronization variable 122(n) stored in the synchronization variable table 121 with the value of each variable acquired from the PLC 20. For example, the acquiring unit 110 updates the values of each of the first synchronization variable 122(1), the second synchronization variable 122(2), ..., and the nth synchronization variable 122(n) with the values of each of the first variable 211(1), the second variable 211(2), ..., and the nth variable 211(n) acquired from the PLC 20.
[0187] The determination unit 130 refers to the display condition information 123 in the storage unit 120 to acquire the display condition (condition COE) set for each pre-replacement message MSB. Then, the determination unit 130 determines whether the acquired condition COE is satisfied based on the values of the variables stored in the synchronization variable table 121 (S130).
[0188] The condition COE is defined, for example, by the values of one or more variables stored in the synchronization variable table 121, and may be defined as a combination of the values of two or more variables stored in the synchronization variable table 121. For example, as illustrated in FIG. 4, the condition COE of the message MSB before replacement with "LotNo{%%} defective welding" is "ErrRobot1 And AbnormalError". This condition COE indicates a condition that "the value of "ErrRobot1" (i.e., the first synchronization variable 122(1)) is "True" and the value of "AbnormalError" (i.e., the second synchronization variable 122(2)) is "True". In other words, this condition COE is defined as a combination of the value of the first synchronization variable 122(1) and the value of the second synchronization variable 122(2).
[0189] When the determination unit 130 determines that "the condition COE corresponding to any pre-replacement message MSB is not satisfied" for any pre-replacement message MSB (NO in S130), the HMI 10 ends the process.
[0190] When the determination unit 130 determines that the condition COE corresponding to any pre-replacement message MSB is satisfied (NO in S130), the determination unit 130 executes the following process. That is, the determination unit 130 notifies the replacement unit 140 and the display control unit 150 of the pre-replacement message MSB for which it has determined that the condition COE is satisfied.
[0191] The replacement unit 140 refers to the storage unit 120 and checks the synchronization variable (i.e., the designated variable VAD) associated with (designated) the "pre-replacement message MSB determined to satisfy the condition COE" in the display setting information 124. Then, the replacement unit 140 refers to the synchronization variable table 121 and acquires the value of the designated variable VAD designated in the display setting information 124 for the "pre-replacement message MSB determined to satisfy the condition COE" (S140).
[0192] The replacement unit 140 refers to the storage unit 120 and acquires the display rule RUE associated with the "pre-replacement message MSB for which the condition COE is determined to be satisfied" in the display setting information 124. The replacement unit 140 generates a post-replacement character string CSA from the value of the designated variable VAD acquired in S140 in accordance with the display rule RUE (S150).
[0193] The replacement unit 140 generates a replaced message MSA by replacing the variable character string CSV of the "pre-replacement message MSB determined to satisfy the condition COE" with the replaced character string CSA generated in S150 (S160). The replacement unit 140 stores the replaced message MSA generated in S160 in the replaced message table 126. The replacement unit 140 also notifies the display control unit 150 that the replaced message MSA has been stored in the replaced message table 126.
[0194] The display control unit 150 refers to the replaced message table 126 in the storage unit 120, and displays the replaced message MSA stored in the replaced message table 126 on the display screen of the own device (S170).
[0195] The process executed by the HMI 10 (in other words, the control method executed by the HMI 10) that has been described with reference to Fig. 7 can be summarized as follows. That is, the process (control method) executed by the HMI 10 is a control method for a display device that is communicatively connected to the PLC 20 (control device) and has a storage unit that stores in advance "a pre-replacement message MSB, which is a sentence including a variable string CSV and a fixed string CSF." The control method includes an acquisition step (S110) and a display control step (S170).
[0196] The acquisition step acquires the value of a predetermined variable (variable corresponding to the designated variable VAD) updated by the PLC 20. The display control step displays "a replaced message MSA which is a sentence including "a replaced string CSA which is a string obtained by replacing the variable string CSV with the value acquired in the acquisition step" and a fixed string CSF."
[0197] According to the above configuration, the control method generates a replaced message MSA from a pre-replacement message MSB stored in the storage unit 120. Then, the control method displays the generated replaced message MSA. The pre-replacement message MSB is a sentence including a variable character string CSV and a fixed character string CSF. The replaced message MSA is a sentence including a replaced character string CSA and a fixed character string CSF.
[0198] The control method generates a replaced message MSA from a pre-replacement message MSB as follows. That is, when the value of the predetermined variable (variable corresponding to the designated variable VAD) is updated by the PLC 20, the control method acquires the updated value. The control method displays a replaced message MSA, which is a sentence including "the replaced character string CSA in which the variable character string CSV is replaced by the acquired updated value" and a fixed character string CSF."
[0199] Therefore, the control method has the effect of being able to display a replaced message MSA, which is a sentence including a fixed string stored in advance (i.e., the fixed string CSF) and a variable string whose contents change depending on the situation (i.e., the replaced string CSA).
[0200] In particular, the control method displays the replaced message MSA using the value of the specified variable (variable corresponding to the designated variable VAD) acquired from the PLC 20 based on the replaced message MSB stored in advance in the memory unit 120.
[0201] Therefore, the control method has the following effect compared to a configuration in which "the server obtains the value of a predetermined variable from the PLC 20 (control device), the server generates a message to be displayed on the display, and the display displays the message obtained from the server." That is, the control method has the effect of being able to promptly notify the user of a replaced message MSA, which is a sentence whose content has been changed in accordance with a change in the value of the predetermined variable in the PLC 20, compared to the above-mentioned configuration.
[0202] § 4. Variations Although an example in which the HMI 10 is a programmable display has been described so far, it is not essential that the HMI 10 is a programmable display.
[0203] Further, although an example has been described in which the pre-replacement message MSB includes one variable character string CSV, the pre-replacement message MSB may include a plurality of variable character strings CSV.
[0204] [Software implementation example] The functional blocks of the HMI 10 (specifically, the acquisition unit 110, the determination unit 130, the replacement unit 140, and the display control unit 150) may be realized by a logic circuit (hardware) formed in an integrated circuit (IC chip) or the like. The functional blocks of the HMI 10 may also be realized by software using a CPU (Central Processing Unit).
[0205] In the latter case, the HMI 10 includes a CPU that executes the commands of a program, which is software that realizes each function, a ROM (Read Only Memory) or storage device (these are referred to as "recording media") in which the program and various data are recorded so as to be readable by a computer (or CPU), and a RAM (Random Access Memory) in which the program is expanded. The object of the present invention is achieved by the computer (or CPU) reading and executing the program from the recording medium. As the recording medium, a "non-transitory tangible medium" such as a tape, a disk, a card, a semiconductor memory, a programmable logic circuit, etc. can be used. The program may be supplied to the computer via any transmission medium (such as a communication network or a broadcast wave) capable of transmitting the program. The present invention may also be realized in the form of a data signal embedded in a carrier wave in which the program is embodied by electronic transmission.
[0206] The present invention is not limited to the above-described embodiments, and various modifications are possible within the scope of the claims. Embodiments obtained by appropriately combining the technical means disclosed in different embodiments are also included in the technical scope of the present invention. [Explanation of symbols]
[0207] 10 HMI (display) 20 PLC (control device) 110 Acquisition Department 120 Storage section 130 Judgment section 150 Display control unit COE Conditions CSA replacement string CSV variable string CSF fixed string MSA replacement message MSB Pre-replacement message RUE display rules VAD designated variables (predetermined variables) S110 Acquisition step S170 Display control step
Claims
1. A display communicatively connected to a control device, a storage unit that stores in advance a message before replacement, the message being a sentence including a variable character string and a fixed character string; An acquisition unit that acquires values of predetermined variables updated by the control device; a display control unit that displays a replaced message that is a sentence including a replaced string, the replaced string being a string obtained by replacing the variable string with the value acquired by the acquisition unit, and the fixed string; Equipped with the storage unit further stores values of the predetermined variables; The acquisition unit acquires the value of the predetermined variable from the control device periodically or at a timing when the value of the predetermined variable is changed in the control device, the value of the predetermined variable stored in the memory unit is updated by the value acquired by the acquisition unit, thereby being synchronized with the value of the predetermined variable stored in the control device; the storage unit further stores in advance a condition for displaying the replaced message, the condition being set by a user; a determination unit that determines whether or not the condition is satisfied based on the value of the predetermined variable stored in the storage unit, When the determination unit determines that the condition is satisfied, the display control unit displays the replaced message.
2. The condition is that the control device detects a predetermined state. The display of claim 1 .
3. The storage unit further stores in advance information specifying the predetermined variable set by the user.
3. The display according to claim 1 or 2.
4. the storage unit further stores in advance a display rule set by a user, the display rule being for displaying the value acquired by the acquisition unit as the replaced character string; The display control unit displays the value acquired by the acquisition unit as the replaced character string in accordance with the display rules. The display according to any one of claims 1 to 3.
5. A method for controlling a display device including a storage unit communicatively connected to a control device and storing in advance a pre-replacement message, the pre-replacement message being a sentence including a variable character string and a fixed character string, comprising: An acquisition step of acquiring a value of a predetermined variable updated by the control device; a display control step of displaying a replaced message, which is a sentence including a replaced string obtained by replacing the variable string with the value acquired in the acquisition step, and the fixed string; The storage unit further stores values of predetermined variables, the storage unit further stores in advance a condition for displaying the replaced message, the condition being set by a user; The acquiring step is performed periodically or when the value of the predetermined variable is changed in the control device, the value of the predetermined variable stored in the memory unit is updated by the value acquired in the acquisition step, thereby synchronizing with the value of the predetermined variable stored in the control device; and determining whether or not the condition is satisfied based on the value of the predetermined variable stored in the storage unit. In the display control step, the replaced message is displayed when it is determined in the determination step that the condition is satisfied.
6. 5. An information processing program for causing a computer to function as the display device according to claim 1, the information processing program causing the computer to function as each of the units.
7. 7. A computer-readable recording medium on which the information processing program according to claim 6 is recorded.
Citation Information
Patent Citations
Remotely monitoring system
JP2000250784A
Global variable definition system of PLC
JP2009176178A
Program, analytical method, and information processor
JP2014038578A
Data processing apparatus, data processing method, and program
JP2018190281A
Gas turbine gap assessment device and gas turbine system
WO2012001726A1
