WO2015173863A1 - Programmable controller, programmable controller system, engineering tool, and display - Google Patents

Programmable controller, programmable controller system, engineering tool, and display Download PDF

Info

Publication number
WO2015173863A1
WO2015173863A1 PCT/JP2014/062610 JP2014062610W WO2015173863A1 WO 2015173863 A1 WO2015173863 A1 WO 2015173863A1 JP 2014062610 W JP2014062610 W JP 2014062610W WO 2015173863 A1 WO2015173863 A1 WO 2015173863A1
Authority
WO
WIPO (PCT)
Prior art keywords
label
unit
range
label information
display
Prior art date
Application number
PCT/JP2014/062610
Other languages
French (fr)
Japanese (ja)
Inventor
吉徳 津野
Original Assignee
三菱電機株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 三菱電機株式会社 filed Critical 三菱電機株式会社
Priority to JP2015526438A priority Critical patent/JP5823083B1/en
Priority to CN201480042335.8A priority patent/CN105408825B/en
Priority to PCT/JP2014/062610 priority patent/WO2015173863A1/en
Priority to KR1020167002086A priority patent/KR101635343B1/en
Publication of WO2015173863A1 publication Critical patent/WO2015173863A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring

Definitions

  • the present invention relates to a programmable controller, a programmable controller system, an engineering tool, and a display.
  • the programmable controller is constructed such that units such as a power supply unit, a CPU (Central Processing Unit) unit, a network unit, and an input / output unit are mounted on the base unit to realize predetermined processing.
  • a program executed by the programmable controller is described using a label instead of an address.
  • the label is generated from information unique to each unit, and is associated with the address of the memory in the programmable controller.
  • tag information must be set for each controller or intelligent field device. Therefore, there is a problem that it takes time to set the tag information.
  • the present invention has been made in view of the above, and for the label generated from the unique information of each unit constituting the programmable controller, the display process based on the label information in which the range that the label can take is set according to the process.
  • An object of the present invention is to obtain a programmable controller, a programmable controller system, and a display that can be performed by a display instead of a programmable controller. It is another object of the present invention to obtain an engineering tool that can change label setting information for each programmable controller.
  • a programmable controller system is a programmable controller system in which a programmable controller and a display are connected by a communication line, and the programmable controller is assigned to a memory of the programmable controller.
  • a program execution unit for executing a program created using a label attached to an address range, and a range defining the program to be executed for a label value stored in an address range specified by the label
  • a label information holding unit that holds label information in which the message is associated, and the label value is stored in an address range defined by the label, the label information is used by using the range of the label information.
  • a first label information analysis unit that divides the processing depending on whether it is out of range, and when the display unit acquires the label value from the display unit and the programmable controller, the display unit is based on the label information.
  • the label value is acquired from the programmable controller and the diagram display processing unit for displaying the state of the label, the label value is within the range and outside the range by using the range of the label information.
  • a second label information analysis unit that divides the processing depending on the case, and when the program execution unit determines that the label value is within the range by the first label information analysis unit, the determination result And the diagram display processing unit determines that the label value is within the range by the second label information analysis unit. If, it retrieves the message corresponding to the case where the label value is in the range from the label information, and displaying on the display unit.
  • the branch determination process is performed based on the label information in each of the programmable controller and the display device, so that it is not necessary for the user to create a branch determination process in the programmable controller.
  • display processing based on label information in which a range that the label can take is set according to the processing is performed by the display instead of the programmable controller. Has the effect of being able to.
  • FIG. 1 is a block diagram schematically showing an example of the configuration of the display according to the first embodiment.
  • FIG. 2 is a diagram illustrating an example of label information.
  • FIG. 3 is a diagram illustrating an example of a diagram format.
  • FIG. 4 is a diagram illustrating an example of the diagram display information.
  • FIG. 5 is a flowchart illustrating an example of a procedure of display processing on the display according to the first embodiment.
  • FIG. 6 is a block diagram schematically showing the configuration of the programmable controller system according to the second embodiment.
  • FIG. 7 is a diagram schematically illustrating functions in a program in the label information analysis unit.
  • FIG. 8 is a flowchart illustrating an example of a branch processing procedure in the programmable controller according to the second embodiment.
  • FIG. 9 is a block diagram schematically showing the configuration of the programmable controller according to the third embodiment.
  • FIG. 10 is a block diagram schematically showing the configuration of the engineering tool according to the fourth embodiment.
  • FIG. 11 is a flowchart illustrating an example of a procedure of a program generation process according to the fourth embodiment.
  • FIG. 12 is a diagram showing an outline of processing for generating a program part by the engineering tool according to the fourth embodiment.
  • FIG. 1 is a block diagram schematically showing an example of the configuration of the display according to the first embodiment.
  • the display 10 includes a communication unit 11, a label information holding unit 12, a label value storage unit 13, a label information analysis unit 14, a diagram format storage unit 15, a diagram display processing unit 16, a display unit 17, Is provided.
  • the communication unit 11 is connected to an external device such as a programmable controller or an engineering tool via a communication line.
  • the label information is acquired from the programmable controller, and the value stored in the address range in the memory indicated by the label defined by the programmable controller (hereinafter referred to as the label value) is acquired during the arithmetic processing of the programmable controller.
  • the programmable controller has a configuration in which units such as a power supply unit, a CPU unit, a network unit, and an input / output unit are mounted on the base unit.
  • the programmable controller is a controller capable of sequence control that repeatedly executes a user program in a predetermined cycle, and is a controller that can be operated by a ladder program or a program created in C language. It is not limited to the program language.
  • the label information holding unit 12 holds label information set in the programmable controller connected to the display device 10.
  • the label information is obtained by associating a label generated from information unique to each unit constituting the programmable controller with an address range in the memory of the programmable controller. That is, the label is a variable indicating the label value stored at the corresponding address, and is used in the ladder program.
  • the label information includes setting information for displaying the label value on the display unit 17.
  • the setting information includes a predetermined setting range provided for the label and at least one of a display process when the value corresponding to the label is within the setting range and a display process when the value is outside the setting range. . A plurality of setting ranges may be provided.
  • FIG. 2 is a diagram showing an example of label information.
  • the label information includes a label, a data type, a threshold value, a message, and an address.
  • the label is set in a certain address range of the programmable controller memory.
  • the address indicates an address in the memory to which the label is assigned.
  • the data type indicates the data type of the label. For example, it indicates whether the data is a word device or a bit device.
  • the threshold value is a boundary value for indicating whether or not the value obtained from the programmable controller is within the normal operating range, for example. That is, the threshold value defines a range.
  • a range for giving an alarm to the programmable controller and a range for stopping the programmable controller are defined.
  • the item of an upper limit and a lower limit is provided. However, in the case of only the lower limit value, no value is input to the upper limit value, and in the case of only the upper limit value, no value is input to the lower limit value.
  • the message is a message displayed on the display unit 17 when the range indicated by the threshold is exceeded.
  • an alarm message and a stop message are provided in correspondence with a range for giving an alarm provided by a threshold and a range for stopping.
  • the alarm message is a message displayed on the display unit 17 when the label value is within a range for giving an alarm to the programmable controller.
  • the stop message is a message displayed on the display unit 17 when the label value falls within the stop range.
  • two ranges (alarm range and stop range) are set, but only one range may be set, or three or more ranges may be set. .
  • the label information includes the unit, the number of significant digits, and the number of digits after the decimal point.
  • the unit is a character string of a unit displayed when the value defined by the label is displayed on the display unit 17.
  • the effective number of digits specifies the number of digits when displaying the value defined by the label on the display unit 17.
  • the number of digits after the decimal point is used to specify the number of digits after the decimal point when the value defined by the label is displayed on the display unit 17.
  • the label value storage unit 13 temporarily stores the label value received from the programmable controller via the communication unit 11.
  • the label information analysis unit 14 performs processing according to the label value stored in the label value storage unit 13 based on the label information stored in the label information storage unit 12. For example, the label value stored in the label value storage unit 13 is compared with the threshold value of the label information corresponding to the label value. Then, according to the range where the label value exists, a message corresponding to the range is acquired and passed to the diagram display processing unit 16.
  • the figure format storage unit 15 stores a figure format which is a format of a display image to be displayed on the display unit 17.
  • FIG. 3 is a diagram illustrating an example of a diagram format.
  • the diagram format 100 includes a graph display unit 110, scale display units 121a to 123b, a legend display unit 130, and a message display unit 140.
  • the graph display unit 110 is an area for displaying a graph generated by plotting the label values stored in the label value storage unit 13.
  • the scale display units 121a to 123b are provided near the upper and lower limits of the vertical axis of the graph display unit 110. Multiple (three in this example) scales can be set.
  • an upper limit value and a lower limit value of a threshold value are used as the scale.
  • the scale display units 121a and 121b are scales for the first unit label
  • the scale display units 122a and 122b are scales for the second unit label
  • the scale display units 123a and 123b are the third unit labels.
  • the scale for the label is an area for displaying a graph generated by plotting the label values stored in the label value storage unit 13.
  • the scale display units 121a to 123b are provided near the upper and lower limits of the vertical axis of the graph display unit 110. Multiple (three in this example) scales can be set.
  • the upper limit value of the alarm range of each unit label is input to the scale display units 121a, 122a, 123a
  • the lower limit value of the alarm range of each unit label is input to the scale display units 121b, 122b, 123b. Is done.
  • the value input to the scale display units 121a to 123b is an example of the threshold value of the label information, and is not limited to this.
  • a value obtained by adding a predetermined value to the upper threshold value of the label information may be used as the upper limit value of the scale
  • a value obtained by subtracting a predetermined value from the lower threshold value of the label information may be used as the lower limit value of the scale.
  • the predetermined value to be added or subtracted may be a fixed value, or may be a predetermined ratio amount (for example, 10%) of the difference between the upper limit threshold and the lower limit threshold.
  • the legend display unit 130 displays a legend about the graph displayed on the graph display unit 110.
  • labels (first unit labels) corresponding to the scale display units 121a and 121b are input as legends to the legend display unit 131
  • labels (first unit labels) corresponding to the scale display units 122a and 122b are input to the legend display unit 132.
  • (Second unit label) is input as a legend
  • a label (third unit label) corresponding to the scale display units 123a and 123b is input to the legend display unit 133 as a legend.
  • the message display unit 140 is an area for displaying a message in the label information when the message display condition is satisfied. Specifically, when the label value is included in the range indicated by the threshold and a message is set for the range, the message is displayed on the message display unit 140.
  • the figure display processing unit 16 inputs the label value, information obtained from the label information, etc. into the figure format 100 in the figure format storage unit 15 to form figure display information and displays it on the display unit 17.
  • the upper limit value and the lower limit value of the alarm corresponding to the label displayed on the graph display unit 110 are acquired and input to the corresponding positions on the scale display units 121a to 123b.
  • the label value stored in the label value storage unit 13 is plotted on the graph display unit 110. Furthermore, when each label is graphed, the line connecting each point is changed for each type of label, and this is displayed on the legend display unit 130 as a legend.
  • FIG. 4 is a diagram showing an example of the diagram display information.
  • the figure display information 101 is formed using the label information of FIG. 2 and the figure format 100 of FIG.
  • the pressure is indicated by a solid line, and its scale is “2” and “10” which are the lower and upper limits of the stop threshold.
  • the temperature is indicated by a dotted line, and the scale is “0” or “130” which is the lower limit value and the upper limit value of the stop threshold.
  • the amount of pure water is indicated by a chain line, and the scale is “10” or “none” which is the lower and upper limits of the stop threshold.
  • each label “pressure”, “temperature”, and “pure water amount” is set in the legend display unit 130, and an alarm message is displayed in the message display unit 140.
  • the figure display processing unit 16 processes the label value according to the number of significant digits or the number of digits after the decimal point obtained from the label information, and displays it on the display unit 17. At this time, the unit obtained from the label information is added to the processed label value and displayed on the display unit 17.
  • the display unit 17 displays the diagram display information 101 formed by the diagram display processing unit 16.
  • the display unit 17 is configured by a display device such as a liquid crystal display device or an organic EL (ElectroLuminescence) device.
  • FIG. 5 is a flowchart illustrating an example of a procedure of display processing on the display according to the first embodiment.
  • the display device 10 is connected to the programmable controller via the communication unit 11.
  • label information is acquired from an external device via the communication unit 11 of the display 10 (step S11) and stored in the label information holding unit 12.
  • a unit label is also acquired via the communication part 11 (step S12).
  • the figure display processing unit 16 acquires the figure format 100 from the figure format storage unit 15, and the unit label and unit label acquired in step S 12 are acquired.
  • the figure display information 101 is formed using the corresponding label information and displayed on the display unit 17 (step S13).
  • the label value is received via the communication unit 11 (step S14).
  • the received label value is temporarily stored in the label value storage unit 13.
  • the figure display processing unit 16 reflects the received label value in the figure display information 101 (step S15). Specifically, the label value is plotted on the graph display unit 110 of the diagram format 100 to generate a graph.
  • the label information analysis unit 14 determines whether or not the received label value is within the range defined by the alarm threshold (step S16).
  • the alarm range is a range below the lower limit value of the alarm threshold or a range above the upper limit value. If the label value does not exist within the alarm range (No in step S16), the label value is within the normal value range, and no special processing is performed in place of the current processing. Return to step S14.
  • step S17 it is further determined whether the received label value is within the range defined by the stop threshold (step S17). .
  • the stop range is a range below the lower limit value of the stop threshold or a range above the upper limit value. If the label value does not exist within the stop range (No in step S17), the label value analysis unit 14 obtains an alarm message from the label information because the label value exists within the alarm range. Reflected in the figure display information 101 (step S18). Here, the alarm message is displayed on the message display unit 140 of the diagram format 100. Then, it returns to step S14.
  • the label value analysis unit 14 acquires the stop message from the label information because the label value is within the stop range. This is reflected in the figure display information 101 (step S19). Here, the stop message is displayed on the message display unit 140 of the diagram format 100. Then, it returns to step S14.
  • the above processing is executed for all the unit labels acquired in step S12.
  • the process of determining whether the label value is within the alarm or stop range is performed after receiving the label value in step S14, but the determination process is performed at a predetermined timing after receiving the label value. May be performed.
  • the figure display information 101 is created by embedding the label information read from the external device in the figure format 100 and displayed on the display unit 17. As a result, even when the type of programmable controller connected to the display device 10 changes, a display message customized freely can be displayed on the display device 10 without changing the display device 10 side.
  • the display 10 determines whether the label value received from the programmable controller is within the range set in the label information, and the result is displayed on the display unit 17. Thereby, it is determined whether the label value is within the set range, and the process for causing the display 10 to perform the display process based on the result is not executed on the programmable controller side.
  • the processing load on the programmable controller can be reduced.
  • the unit conversion, the number of significant digits, the number of digits after the decimal point, the threshold value, and the message must be set on the display unit side. If there are multiple display units, they must be set on each display unit. I had to.
  • the display device 10 according to the first embodiment the contents of the label information are acquired based on the diagram format 100 and displayed on the display unit 17, so there is no need to make settings on each display device 10. Only the label information needs to be set (edited). Therefore, there is also an effect that processing to be displayed on the display device 10 can be easily performed as compared with the conventional case.
  • Embodiment 2 description will be given of creation of a branch processing program based on label information in a programmable controller to which a display is connected and display processing at the time of branch processing.
  • FIG. 6 is a block diagram schematically showing the configuration of the programmable controller system according to the second embodiment.
  • the programmable controller system has a configuration in which the programmable controller 20 and the display device 10 are connected via a communication line 30. Note that the display 10 is the same as the configuration described in the first embodiment, and thus the description thereof is omitted.
  • the programmable controller 20 includes a communication unit 21, a label information holding unit 22, a program storage unit 23, a program execution unit 24, and a label information analysis unit 25.
  • the communication unit 21 is connected to the display device 10. Label information or a program execution result is transmitted to the display 10 via the communication unit 21. Moreover, it may be connected not only with the display device 10 but with other external devices such as an engineering tool. In this case, the label information or program received from the engineering tool is stored in the label information holding unit 22 or the program storage unit 23, respectively.
  • the label information holding unit 22 holds the label information set in the programmable controller 20.
  • the label information is written by an engineering tool (not shown).
  • the label information has the same configuration as that shown in FIG. 2 of the first embodiment. That is, in this example, as shown in FIG. 2, a range for issuing an alarm and a range for stopping the processing in the programmable controller 20 are defined. It is assumed that the range other than the range in which the alarm is issued is a normal operation range.
  • the program storage unit 23 stores a program to be executed by the programmable controller 20. This program is repeatedly executed at a predetermined cycle.
  • the program is a program described using a label associated with an address range in the memory in the programmable controller 20, and is associated with label information.
  • the label stores a value of input data from an external device connected to the programmable controller 20 and indicates a role of a variable indicating the value.
  • a program has already been created for processing for normal operation, processing for issuing an alarm, processing for stopping the processing, and processing for stopping the processing. It is assumed that the branch determination program for branching the processing in the case of being executed is not created.
  • the program execution unit 24 executes a program stored in the program storage unit 23.
  • the program execution unit 24 normally performs normal operation processing, but upon receiving notification from the label information analysis unit 25 that the label value is within the alarm range, the program execution unit 24 executes processing for issuing an alarm.
  • the notification that the label value is in the stop range is received from the label information analysis unit 25, the process for stopping the process is executed.
  • the label information analysis unit 25 determines whether or not the label value exceeds the threshold value from the label information at an arbitrary timing when the program is processed by the program execution unit 24, and notifies the program execution unit 24 of the result.
  • a branch determination program is created to perform processing based on the branch determination program. For example, the label value is compared with the alarm range of the label information corresponding to the label value. If the label value is not within the alarm range, it is not abnormal, so nothing is notified to the program execution unit 24. If the label value is within the alarm range, it is further determined whether or not the label value is within the stop range. When the label value is not within the stop range, a notification indicating that the label value is within the alarm range is transmitted to the program execution unit 24. If the label value is within the stop range, a notification indicating that the label value is within the stop range is transmitted to the program execution unit 24.
  • FIG. 7 is a diagram schematically showing functions in the program in the label information analysis unit.
  • a processing program 210 dedicated to the measuring instrument, and its input is a label value such as temperature data 221.
  • the output is a normal processing program 231, an alarm processing program 232, and a stop processing program 233 stored in the program storage unit 23.
  • the processing in the label information analysis unit 25 is processing 211 that performs branch determination for selecting output by a processing program dedicated to the measuring instrument. In other words, the process of switching whether the value of the input temperature data is a normal process, an alarm process, or a stop process depending on the alarm range and the stop range. Become.
  • the label value and the threshold value in the corresponding label information are compared, and the program for performing the selection process (branch determination process) of the process to be executed is executed without the user creating it. It becomes possible to do. Further, the display 10 can execute a process of selecting a message to be displayed on the display unit 17 by comparing whether the label value is in a range exceeding the threshold value in the label information, and is executed by the programmable controller 20. There is no need.
  • FIG. 8 is a flowchart illustrating an example of a branch processing procedure in the programmable controller according to the second embodiment.
  • the programmable controller 20 acquires a program and label information from an engineering tool (not shown) via the communication unit 21 and stores them in the program storage unit 23 and the label information holding unit 22, respectively. .
  • the program execution unit 24 executes a program (a processing program during normal operation) stored in the program storage unit 23 (step S31).
  • the programmable controller 20 executes the processing program during normal operation at a predetermined cycle.
  • the program execution unit 24 sets information from an input device connected to the programmable controller 20 or a calculation result calculated using the information as a label value of a predetermined label (step S32). This label value is passed from the program execution unit 24 to the label information analysis unit 25.
  • the label information analysis unit 25 determines whether the label value acquired from the program execution unit 24 is within the range defined by the alarm threshold (step S33). In this case, the alarm range is a range below the lower limit value of the alarm threshold or a range above the upper limit value. If the label value does not exist within the alarm range (No in step S33), the label value is within the normal value range, and no special process is performed, and the process returns to step S31.
  • step S34 it is further determined whether the acquired label value is within the range defined by the stop threshold (step S34).
  • the stop range is a range below the lower limit value of the stop threshold or a range above the upper limit value.
  • the label information analysis unit 25 has the label value within the alarm range. This is notified to the program execution unit 24 (step S35).
  • the program execution unit 24 executes the alarm processing program instead of the normal operation processing program (step S36). The process ends.
  • the processing program at the time of an alarm executes a process of leaving a history when an alarm occurs or turning on a lamp for notifying an alarm.
  • step S34 If the label value is within the stop range (Yes in step S34), the label value is within the stop range. Is notified to the program execution unit 24 (step S37). Upon receiving a notification from the label information analysis unit 25 that the label value is within the stop range, the program execution unit 24 executes the stop processing program instead of the normal operation processing program (step S38). The process ends.
  • the processing program at the time of stop executes a highly urgent process that outputs a message such as whether to stop the process or whether to move the next ladder program.
  • the display 10 executes the process shown in FIG. Since this process has already been described in the first embodiment, a description thereof will be omitted.
  • the programmable controller 20 in the programmable controller system in which the programmable controller 20 and the display device 10 are connected via the communication line 30, the programmable controller 20 creates a branch processing program based on the information regarding the range in the label information, The processing is selected according to the label value. This has the effect that the user need not create a branch processing program. Further, the display 10 displays a message as described in the first embodiment with reference to label information from the label value obtained from the programmable controller 20. As a result, with respect to the display process on the display device 10, since the process in the programmable controller 20 is not performed, the load on the programmable controller 20 can be reduced.
  • Embodiment 3 FIG. In the second embodiment, the display device is connected to the programmable controller via a communication line. In Embodiment 3, a programmable controller with a built-in display device will be described.
  • FIG. 9 is a block diagram schematically showing the configuration of the programmable controller according to the third embodiment.
  • the programmable controller 20A includes a communication unit 21, a label information holding unit 22, a program storage unit 23, a program execution unit 24, a label information analysis unit 25, and a display 26.
  • the display 26 is provided inside the programmable controller 20A, and includes a label information analysis unit 14, a diagram format storage unit 15, a diagram display processing unit 16, and a display unit 17. These components are the same as those described in the first and second embodiments, and the description thereof is omitted. However, the label information analysis units 14 and 25 are provided in the programmable controller 20A and the display 26. Further, the diagram display processing unit 16 creates diagram display information to be displayed on the display unit 17 using the label value obtained from the program execution unit 24. Further, the label information analysis unit 14 in the display device 26 performs processing such as displaying a message according to the label information, using the label value passed from the figure display processing unit 16.
  • Embodiment 4 generation processing of a branch processing program based on label information in an engineering tool for creating a program used in the programmable controller or setting the programmable controller will be described.
  • FIG. 10 is a block diagram schematically showing the configuration of the engineering tool according to the fourth embodiment.
  • the engineering tool 50 includes a communication unit 51, a unit configuration diagram setting unit 52, a unit specific information storage unit 53, a label information storage unit 54, a label information setting unit 55, a program component storage unit 56, and a program setting unit. 57 and a program generation unit 58.
  • the communication unit 51 is connected to an external device such as a programmable controller or a display device via a communication line.
  • the unit configuration diagram setting unit 52 selects a unit to be used (set) from the unit list, and performs a process of drawing a diagram simulating an actual system.
  • the unit configuration diagram setting unit 52 generates unit specific information for uniquely identifying the selected unit, and also generates a unit label. Furthermore, the unit configuration diagram setting unit 52 generates label information using default label information for the selected unit.
  • the unit unique information storage unit 53 stores unit unique information. The unit specific information is associated with the label information.
  • the label information storage unit 54 stores label information set in the programmable controller to be constructed. This label information is the same as that described in the above embodiment.
  • the label information setting unit 55 is an interface that allows the user to edit label information.
  • the program part storage unit 56 stores program parts.
  • a unit program that combines the sample program and the determination processing program generated by the program generation unit 58 based on the label information is also included.
  • the program setting unit 57 is an interface that allows a user to create and edit a program including a program component stored in the program component storage unit 56. Since the program parts in the program part storage unit 56 are format-like, the program parts can be customized to unit-specific program parts selected by the unit configuration diagram setting unit 52 based on the program parts.
  • the program generation unit 58 creates a determination program for determining whether or not the threshold added to the label information has been exceeded from the unit specific information and the label information corresponding to the unit. Further, the created determination program is added to the program part of the arithmetic processing unique to the unit that is the basis of the determination program to generate a unit program that can be edited by the user.
  • the generated unit program is stored in the program component storage unit 56 as a program component.
  • the generated program component is, for example, a ladder program.
  • FIG. 11 is a flowchart illustrating an example of a procedure of a program generation process according to the fourth embodiment. It is assumed that the engineering tool 50 stores unit type information including the type of unit to be used and default label information that is the basis of the label information. Further, it is assumed that the program component storage unit 56 stores a program component that defines a unit-specific operation for each type of unit used.
  • the user sets the system configuration via the unit configuration diagram setting unit 52 (step S51).
  • This setting is performed by, for example, arranging a diagram showing each unit such as a power supply unit, a CPU unit, a network unit, and an input / output unit from a list of unit type information on the diagram showing the base unit.
  • the unit configuration diagram setting unit 52 When the unit arrangement (programmable controller configuration setting) is completed, the unit configuration diagram setting unit 52 generates a unit label (step S52). Specifically, the unit configuration diagram setting unit 52 sets unit-specific information for uniquely identifying a unit in the set system configuration for the selected unit, and a memory area used by the selected unit. A label (unit label) is generated for.
  • the unit configuration diagram setting unit 52 sets label information in the unit label (step S53). Since the default label information is associated with the unit type in the unit type information list, the label (unit label) generated for the selected unit is selected by setting the default label information. This is the label information of the selected unit. This label information is stored in the label information storage unit 54. In this way, the label information and the unit specific information are linked.
  • the label information includes items such as a label, a data type, a threshold value, a unit, the number of significant digits, the number of digits after the decimal point, a message, and an address.
  • items such as a label, a data type, a threshold value, a unit, the number of significant digits, the number of digits after the decimal point, a message, and an address.
  • default values are set for the threshold value, unit, number of significant digits, number of digits after the decimal point, and message.
  • the label information setting unit 55 can be changed by the user. Edited.
  • the program generation unit 58 generates a branch determination program from the threshold value of the label information (step S54). From the threshold value (range) of the label information, the label value is compared with the threshold value, and a branch determination program that performs a branch process when the label value is within the range and outside the range is generated.
  • the program part corresponding to the unit label is acquired from the program part storage unit 56 from the label information (step S55). Since the label information is associated with the unit type, the program component corresponding to the unit type is acquired from the program component storage unit 56.
  • the program generation unit 58 creates a unit program by combining the acquired program component and the generated branch determination program (step S56), and stores the unit program as a program component in the program component storage unit 56 (step S57). .
  • the process in the engineering tool 50 is completed.
  • the program parts are the languages (LD (Ladder Diagram) language), ST (Structured Text) language, FBD (Function Block Diagram) language, IL (Instruction List) language, SFC (Sequential Function Chart) language that the engineering tool 50 supports. ) Or the like, or in the case of a C language controller, it may be created with a C language function.
  • FIG. 12 is a diagram showing an outline of processing for generating a program part by the engineering tool according to the fourth embodiment.
  • the program generation unit 58 includes a program part 321 relating to a specific arithmetic process for a certain unit, a program part 331 relating to a process when the label value in that unit is within the set range, and a label value. Is acquired from the program component storage unit 56.
  • the program generation unit 58 generates a branch determination program 310 from the label information.
  • a branch determination is made so as to link the program component 321 relating to the specific arithmetic processing, the program component 331 relating to the processing when the label value is within the setting range, and the program component 332 relating to the processing when the label value is outside the setting range.
  • a unit program is created by combining the programs 310. As a result, a program component for the set label information is generated.
  • the program generation process by the engineering tool 50 mentioned above can be comprised as a program which stored the processing procedure.
  • the program can be realized by executing the program on the above-described engineering tool 50 or an information processing terminal such as a personal computer.
  • This program also includes hard disks, SSD (Solid State Drive), floppy (registered trademark) disks, CD (Compact Disk) -ROM, MO (Magneto-Optical disk), DVD (Digital Versatile Disk or Digital Video Disk), etc. It is recorded on a computer-readable recording medium.
  • This program can also be distributed through a network (communication line) such as the Internet.
  • the engineering tool 50 has a function of generating a branch determination program from label information, and a unit program is generated in combination with a program component corresponding to the unit and stored as a program component. Also, a branch determination program is created from the label information edited by the user. Accordingly, it is possible to create a program part including a branch determination program corresponding to the environment in which the unit is used from the default label information.
  • the programmable controller according to the present invention is useful for a programmable controller that operates based on label information for which branch determination is defined.

Abstract

 A programmable controller (20) is provided with a label information analysis unit (25), a program execution unit (24), and a label information holding unit (22). A display (10) is provided with a display unit (17), a label information holding unit (12), a diagram display processor (16), and a label information analysis unit (14). When the label information analysis unit (25) determines that a label value is present within a range, the program execution unit (24) executes a processing program that corresponds to the determination result. When the label information analysis unit (14) determines that a label value is present within a range, the diagram display processor (16) acquires, from label information, a message corresponding to a case in which the label value is present within the range, and displays the message on the display unit (17).

Description

プログラマブルコントローラ、プログラマブルコントローラシステム、エンジニアリングツールおよび表示器Programmable controller, programmable controller system, engineering tool and display
 この発明は、プログラマブルコントローラ、プログラマブルコントローラシステム、エンジニアリングツールおよび表示器に関するものである。 The present invention relates to a programmable controller, a programmable controller system, an engineering tool, and a display.
 構成情報、属性情報および機能情報を記述したタグ情報をコントローラとインテリジェントフィールド機器に設定することで、コントローラだけでなくインテリジェントフィールド機器でも処理を実行することができるプラント制御システムが提案されている(たとえば、特許文献1参照)。このプラント制御システムでは、たとえばタグ情報に基づいて処理が実行されている場合に、コントローラのタグ実行部が上限アラームを検出した場合に、操作監視ステーションに上限アラーム表示要求を出すことが記載されている。 There has been proposed a plant control system that can execute processing not only in a controller but also in an intelligent field device by setting tag information describing configuration information, attribute information, and function information in the controller and intelligent field device (for example, , See Patent Document 1). In this plant control system, for example, when processing is executed based on tag information, it is described that an upper limit alarm display request is issued to the operation monitoring station when the tag execution unit of the controller detects an upper limit alarm. Yes.
 ところで、プログラマブルコントローラは、ベースユニットに電源ユニット、CPU(Central Processing Unit)ユニット、ネットワークユニット、入出力ユニットなどのユニットが装着され、所定の処理を実現するように構築される。プログラマブルコントローラで実行されるプログラムは、アドレスの代わりにラベルを用いて記述される。ラベルは、各ユニット固有の情報から生成されたものであり、プログラマブルコントローラ内のメモリのアドレスと対応付けられている。 By the way, the programmable controller is constructed such that units such as a power supply unit, a CPU (Central Processing Unit) unit, a network unit, and an input / output unit are mounted on the base unit to realize predetermined processing. A program executed by the programmable controller is described using a label instead of an address. The label is generated from information unique to each unit, and is associated with the address of the memory in the programmable controller.
 あるラベルに範囲が設定されており、ラベルの値がその範囲内にある場合には通常動作を実行させ、ラベルの値がその範囲(閾値)を超えた場合には、異常時動作を実行させたい場合が存在する。そのような場合には、従来では、ユーザがその範囲(閾値)を用いて、分岐プログラムを作成していた。 When a range is set for a label and the label value is within that range, normal operation is executed, and when the label value exceeds the range (threshold), an abnormal operation is executed. There are cases where you want to. In such a case, conventionally, the user has created a branch program using the range (threshold value).
特開2004-227460号公報JP 2004-227460 A
 しかしながら、特許文献1に記載のプラント制御システムでは、上限アラーム表示要求を操作監視ステーションに出す場合、ある値が上限アラームにあることをコントローラで検出し、それに基づいて操作監視ステーションに上限アラーム表示要求を出していた。つまり、コントローラで、上限アラームの範囲内であるか否かを判定し、上限アラームの範囲内である場合には上限アラーム表示要求を操作監視ステーションに出す処理を実行しなければならず、コントローラに負荷がかかってしまうという問題点があった。 However, in the plant control system described in Patent Document 1, when an upper limit alarm display request is issued to the operation monitoring station, the controller detects that a certain value is in the upper limit alarm, and based on this, an upper limit alarm display request is sent to the operation monitoring station. Was out. In other words, the controller determines whether it is within the range of the upper limit alarm, and if it is within the range of the upper limit alarm, it must execute a process of issuing an upper limit alarm display request to the operation monitoring station. There was a problem of being overloaded.
 また、特許文献1では、タグ情報は、個々のコントローラまたはインテリジェントフィールド機器に対して設定しなければならない。そのため、タグ情報の設定には時間がかかってしまうという問題点もあった。 In Patent Document 1, tag information must be set for each controller or intelligent field device. Therefore, there is a problem that it takes time to set the tag information.
 この発明は上記に鑑みてなされたもので、プログラマブルコントローラを構成する各ユニットの固有の情報から生成されたラベルについて、処理に応じてラベルが取り得る範囲を設定したラベル情報に基づいた表示処理を、プログラマブルコントローラではなく表示器で行うことができるプログラマブルコントローラ、プログラマブルコントローラシステムおよび表示器を得ることを目的とする。また、ラベル設定情報をプログラマブルコントローラごとに変更することができるエンジニアリングツールを得ることも目的とする。 The present invention has been made in view of the above, and for the label generated from the unique information of each unit constituting the programmable controller, the display process based on the label information in which the range that the label can take is set according to the process. An object of the present invention is to obtain a programmable controller, a programmable controller system, and a display that can be performed by a display instead of a programmable controller. It is another object of the present invention to obtain an engineering tool that can change label setting information for each programmable controller.
 上記目的を達成するため、この発明にかかるプログラマブルコントローラシステムは、プログラマブルコントローラと表示器とが通信回線によって接続されたプログラマブルコントローラシステムであって、前記プログラマブルコントローラは、前記プログラマブルコントローラのメモリに割り当てられたアドレス範囲に対して付されたラベルを用いて作成されたプログラムを実行するプログラム実行部と、前記ラベルで規定されるアドレス範囲に格納されるラベル値に対して実行される前記プログラムを定義した範囲と、メッセージと、を対応付けたラベル情報を保持するラベル情報保持部と、前記ラベルで規定されるアドレス範囲に前記ラベル値が格納されると、前記ラベル情報の前記範囲を用いて、前記ラベル値が範囲内にある場合と範囲外にある場合とで処理を分ける第1ラベル情報解析部と、を備え、前記表示器は、表示部と、前記プログラマブルコントローラから前記ラベル値を取得すると、前記ラベル情報に基づいて前記表示部に前記ラベルの状態を表示する図表示処理部と、前記プログラマブルコントローラから前記ラベル値を取得すると、前記ラベル情報の前記範囲を用いて、前記ラベル値が前記範囲内にある場合と前記範囲外にある場合とで処理を分ける第2ラベル情報解析部と、を備え、前記プログラム実行部は、前記第1ラベル情報解析部によって前記範囲内に前記ラベル値があると判定された場合、この判定結果に対応する処理プログラムを実行し、前記図表示処理部は、前記第2ラベル情報解析部によって前記範囲内に前記ラベル値があると判定された場合、前記ラベル値が前記範囲内にある場合に対応するメッセージを前記ラベル情報から取得し、前記表示部に表示することを特徴とする。 In order to achieve the above object, a programmable controller system according to the present invention is a programmable controller system in which a programmable controller and a display are connected by a communication line, and the programmable controller is assigned to a memory of the programmable controller. A program execution unit for executing a program created using a label attached to an address range, and a range defining the program to be executed for a label value stored in an address range specified by the label And a label information holding unit that holds label information in which the message is associated, and the label value is stored in an address range defined by the label, the label information is used by using the range of the label information. If the value is in the range A first label information analysis unit that divides the processing depending on whether it is out of range, and when the display unit acquires the label value from the display unit and the programmable controller, the display unit is based on the label information. When the label value is acquired from the programmable controller and the diagram display processing unit for displaying the state of the label, the label value is within the range and outside the range by using the range of the label information. A second label information analysis unit that divides the processing depending on the case, and when the program execution unit determines that the label value is within the range by the first label information analysis unit, the determination result And the diagram display processing unit determines that the label value is within the range by the second label information analysis unit. If, it retrieves the message corresponding to the case where the label value is in the range from the label information, and displaying on the display unit.
 この発明によれば、ラベル値を取得すると、プログラマブルコントローラと表示器のそれぞれでラベル情報に基づいて分岐判定処理を行うようにしたので、プログラマブルコントローラでの分岐判定処理をユーザが作成する必要がなくなるとともに、プログラマブルコントローラを構成する各ユニットの固有の情報から生成されたラベルについて、処理に応じてラベルが取り得る範囲を設定したラベル情報に基づいた表示処理を、プログラマブルコントローラではなく表示器で行うことができるという効果を有する。 According to the present invention, when the label value is acquired, the branch determination process is performed based on the label information in each of the programmable controller and the display device, so that it is not necessary for the user to create a branch determination process in the programmable controller. At the same time, with respect to the label generated from the unique information of each unit constituting the programmable controller, display processing based on label information in which a range that the label can take is set according to the processing is performed by the display instead of the programmable controller. Has the effect of being able to.
図1は、実施の形態1による表示器の構成の一例を模式的に示すブロック図である。FIG. 1 is a block diagram schematically showing an example of the configuration of the display according to the first embodiment. 図2は、ラベル情報の一例を示す図である。FIG. 2 is a diagram illustrating an example of label information. 図3は、図フォーマットの一例を示す図である。FIG. 3 is a diagram illustrating an example of a diagram format. 図4は、図表示情報の一例を示す図である。FIG. 4 is a diagram illustrating an example of the diagram display information. 図5は、実施の形態1による表示器での表示処理の手順の一例を示すフローチャートである。FIG. 5 is a flowchart illustrating an example of a procedure of display processing on the display according to the first embodiment. 図6は、実施の形態2によるプログラマブルコントローラシステムの構成を模式的に示すブロック図である。FIG. 6 is a block diagram schematically showing the configuration of the programmable controller system according to the second embodiment. 図7は、ラベル情報解析部でのプログラムにおける機能を模式的に示す図である。FIG. 7 is a diagram schematically illustrating functions in a program in the label information analysis unit. 図8は、実施の形態2によるプログラマブルコントローラでの分岐処理の手順の一例を示すフローチャートである。FIG. 8 is a flowchart illustrating an example of a branch processing procedure in the programmable controller according to the second embodiment. 図9は、実施の形態3によるプログラマブルコントローラの構成を模式的に示すブロック図である。FIG. 9 is a block diagram schematically showing the configuration of the programmable controller according to the third embodiment. 図10は、実施の形態4によるエンジニアリングツールの構成を模式的に示すブロック図である。FIG. 10 is a block diagram schematically showing the configuration of the engineering tool according to the fourth embodiment. 図11は、実施の形態4によるプログラム生成処理の手順の一例を示すフローチャートである。FIG. 11 is a flowchart illustrating an example of a procedure of a program generation process according to the fourth embodiment. 図12は、実施の形態4によるエンジニアリングツールでのプログラム部品生成の処理の概要を示す図である。FIG. 12 is a diagram showing an outline of processing for generating a program part by the engineering tool according to the fourth embodiment.
 以下に添付図面を参照して、この発明の実施の形態にかかるプログラマブルコントローラ、プログラマブルコントローラシステム、エンジニアリングツールおよび表示器を詳細に説明する。なお、これらの実施の形態によりこの発明が限定されるものではない。 Hereinafter, a programmable controller, a programmable controller system, an engineering tool, and a display according to an embodiment of the present invention will be described in detail with reference to the accompanying drawings. Note that the present invention is not limited to these embodiments.
実施の形態1.
 図1は、実施の形態1による表示器の構成の一例を模式的に示すブロック図である。表示器10は、通信部11と、ラベル情報保持部12と、ラベル値記憶部13と、ラベル情報解析部14と、図フォーマット格納部15と、図表示処理部16と、表示部17と、を備える。
Embodiment 1 FIG.
FIG. 1 is a block diagram schematically showing an example of the configuration of the display according to the first embodiment. The display 10 includes a communication unit 11, a label information holding unit 12, a label value storage unit 13, a label information analysis unit 14, a diagram format storage unit 15, a diagram display processing unit 16, a display unit 17, Is provided.
 通信部11は、プログラマブルコントローラまたはエンジニアリングツールなどの外部機器と通信回線を介して接続される。ここでは、プログラマブルコントローラからラベル情報を取得し、またプログラマブルコントローラの演算処理中にはプログラマブルコントローラで定義されたラベルで示されるメモリ内のアドレス範囲に格納される値(以下、ラベル値という)を取得する。なお、プログラマブルコントローラは、ベースユニットに電源ユニット、CPUユニット、ネットワークユニット、入出力ユニットなどのユニットが装着された構成を有しているものとする。また、以下の実施の形態では、プログラマブルコントローラは、ユーザプログラムを所定の周期繰り返し実行するシーケンス制御できるコントローラであり、ラダープログラムまたはC言語で作成されたプログラムなどで動作可能なコントローラであり、使用されるプログラムの言語に限定されるものではない。 The communication unit 11 is connected to an external device such as a programmable controller or an engineering tool via a communication line. Here, the label information is acquired from the programmable controller, and the value stored in the address range in the memory indicated by the label defined by the programmable controller (hereinafter referred to as the label value) is acquired during the arithmetic processing of the programmable controller. To do. Note that the programmable controller has a configuration in which units such as a power supply unit, a CPU unit, a network unit, and an input / output unit are mounted on the base unit. In the following embodiments, the programmable controller is a controller capable of sequence control that repeatedly executes a user program in a predetermined cycle, and is a controller that can be operated by a ladder program or a program created in C language. It is not limited to the program language.
 ラベル情報保持部12は、表示器10に接続されるプログラマブルコントローラに設定されたラベル情報を保持する。ラベル情報は、プログラマブルコントローラを構成する各ユニット固有の情報から生成されたラベルを、プログラマブルコントローラのメモリ内のアドレス範囲と対応付けたものである。すなわち、ラベルは、対応するアドレスに格納されるラベル値を示す変数であり、ラダープログラムで使用される。また、ラベル情報は、ラベル値を表示部17に表示する際の設定情報を含む。この設定情報には、ラベルに対して設けた所定の設定範囲と、ラベルに対応する値が設定範囲内にある場合の表示処理および設定範囲外にある場合の表示処理の少なくとも一方と、を含む。この設定範囲は複数設けてもよい。 The label information holding unit 12 holds label information set in the programmable controller connected to the display device 10. The label information is obtained by associating a label generated from information unique to each unit constituting the programmable controller with an address range in the memory of the programmable controller. That is, the label is a variable indicating the label value stored at the corresponding address, and is used in the ladder program. The label information includes setting information for displaying the label value on the display unit 17. The setting information includes a predetermined setting range provided for the label and at least one of a display process when the value corresponding to the label is within the setting range and a display process when the value is outside the setting range. . A plurality of setting ranges may be provided.
 図2は、ラベル情報の一例を示す図である。ラベル情報は、ラベルと、データ型と、閾値と、メッセージと、アドレスと、を含む。ラベルは、プログラマブルコントローラのメモリのあるアドレス範囲に設定されたものである。アドレスは、ラベルが割り当てられたメモリ内のアドレスを示す。データ型は、そのラベルのデータ型を示すものである。たとえばそのデータがワードデバイスなのかビットデバイスなのかを示すものである。 FIG. 2 is a diagram showing an example of label information. The label information includes a label, a data type, a threshold value, a message, and an address. The label is set in a certain address range of the programmable controller memory. The address indicates an address in the memory to which the label is assigned. The data type indicates the data type of the label. For example, it indicates whether the data is a word device or a bit device.
 閾値は、たとえばプログラマブルコントローラから得られる値が正常動作範囲であるか否かを示す場合の境界値である。つまり、閾値は、範囲を規定するものである。ここでは、プログラマブルコントローラに対して警報を与える範囲と、プログラマブルコントローラを停止させる範囲と、を定義している。そして、それぞれの範囲を定義するのに、上限値と下限値の項目が設けられる。ただし、下限値のみの場合には上限値には値が入力されず、上限値のみの場合には下限値には値が入力されない。 The threshold value is a boundary value for indicating whether or not the value obtained from the programmable controller is within the normal operating range, for example. That is, the threshold value defines a range. Here, a range for giving an alarm to the programmable controller and a range for stopping the programmable controller are defined. And in order to define each range, the item of an upper limit and a lower limit is provided. However, in the case of only the lower limit value, no value is input to the upper limit value, and in the case of only the upper limit value, no value is input to the lower limit value.
 メッセージは、閾値で示される範囲を超えたときに表示部17に表示するメッセージである。ここでは、閾値で設けられる警報を与える範囲と停止させる範囲とに対応して、警報メッセージと停止メッセージとが設けられる。警報メッセージは、ラベル値がプログラマブルコントローラに対して警報を与える範囲となった場合に表示部17に表示するメッセージである。停止メッセージは、ラベル値が停止の範囲となった場合に表示部17に表示するメッセージである。なお、図2の例では、2つの範囲(警報の範囲と停止の範囲)を設定しているが、1つの範囲のみを設定してもよいし、3つ以上の範囲を設定してもよい。 The message is a message displayed on the display unit 17 when the range indicated by the threshold is exceeded. Here, an alarm message and a stop message are provided in correspondence with a range for giving an alarm provided by a threshold and a range for stopping. The alarm message is a message displayed on the display unit 17 when the label value is within a range for giving an alarm to the programmable controller. The stop message is a message displayed on the display unit 17 when the label value falls within the stop range. In the example of FIG. 2, two ranges (alarm range and stop range) are set, but only one range may be set, or three or more ranges may be set. .
 また、ラベル情報は、単位と、有効桁数と、小数点以下桁数と、を含む。単位は、ラベルで定義される値を表示部17に表示する際に合わせて表示する単位の文字列である。有効桁数は、ラベルで定義される値を表示部17に表示する際の桁数を指定するものである。小数点以下桁数は、ラベルで定義される値を表示部17に表示する際の小数点以下の桁数を指定するものである。 Also, the label information includes the unit, the number of significant digits, and the number of digits after the decimal point. The unit is a character string of a unit displayed when the value defined by the label is displayed on the display unit 17. The effective number of digits specifies the number of digits when displaying the value defined by the label on the display unit 17. The number of digits after the decimal point is used to specify the number of digits after the decimal point when the value defined by the label is displayed on the display unit 17.
 ラベル値記憶部13は、通信部11を介してプログラマブルコントローラから受信したラベル値を一時的に記憶する。 The label value storage unit 13 temporarily stores the label value received from the programmable controller via the communication unit 11.
 ラベル情報解析部14は、ラベル情報保持部12に保持されているラベル情報に基づいて、ラベル値記憶部13に記憶されたラベル値に応じた処理を行う。たとえば、ラベル値記憶部13に記憶されているラベル値と、そのラベル値に対応するラベル情報の閾値と、を比較する。そして、ラベル値が存在する範囲に応じて、その範囲に対応するメッセージを取得し、図表示処理部16に渡す。 The label information analysis unit 14 performs processing according to the label value stored in the label value storage unit 13 based on the label information stored in the label information storage unit 12. For example, the label value stored in the label value storage unit 13 is compared with the threshold value of the label information corresponding to the label value. Then, according to the range where the label value exists, a message corresponding to the range is acquired and passed to the diagram display processing unit 16.
 図フォーマット格納部15は、表示部17に表示させる表示画像のフォーマットである図フォーマットを格納する。図3は、図フォーマットの一例を示す図である。ここでは、図フォーマット100は、グラフ表示部110と、スケール表示部121a~123bと、凡例表示部130と、メッセージ表示部140と、を有する。 The figure format storage unit 15 stores a figure format which is a format of a display image to be displayed on the display unit 17. FIG. 3 is a diagram illustrating an example of a diagram format. Here, the diagram format 100 includes a graph display unit 110, scale display units 121a to 123b, a legend display unit 130, and a message display unit 140.
 グラフ表示部110は、ラベル値記憶部13に記憶されたラベル値をプロットすることによって生成されるグラフを表示する領域である。スケール表示部121a~123bは、グラフ表示部110の縦軸の上限と下限付近に設けられる。複数(この例では3つ)のスケールを設定することができる。ここでは、スケールとして、閾値(停止の閾値)の上限値と下限値が用いられる。たとえば、スケール表示部121a,121bは、第1のユニットラベルに対するスケールであり、スケール表示部122a,122bは、第2のユニットラベルに対するスケールであり、スケール表示部123a,123bは、第3のユニットラベルに対するスケールである。また、スケール表示部121a,122a,123aには、各ユニットラベルの警報の範囲の上限値が入力され、スケール表示部121b,122b,123bには、各ユニットラベルの警報の範囲の下限値が入力される。 The graph display unit 110 is an area for displaying a graph generated by plotting the label values stored in the label value storage unit 13. The scale display units 121a to 123b are provided near the upper and lower limits of the vertical axis of the graph display unit 110. Multiple (three in this example) scales can be set. Here, an upper limit value and a lower limit value of a threshold value (stop threshold value) are used as the scale. For example, the scale display units 121a and 121b are scales for the first unit label, the scale display units 122a and 122b are scales for the second unit label, and the scale display units 123a and 123b are the third unit labels. The scale for the label. Further, the upper limit value of the alarm range of each unit label is input to the scale display units 121a, 122a, 123a, and the lower limit value of the alarm range of each unit label is input to the scale display units 121b, 122b, 123b. Is done.
 なお、スケール表示部121a~123bに入力される値がラベル情報の閾値とするのは一例であり、これに限定されるものではない。たとえば、ラベル情報の上限の閾値に所定の値を加算したものをスケールの上限値とし、ラベル情報の下限の閾値から所定の値を減算したものをスケールの下限値としてもよい。また、加算または減算する所定の値は、固定値でもよいし、上限の閾値と下限の閾値との差分の所定の割合の量(たとえば10%など)としてもよい。 Note that the value input to the scale display units 121a to 123b is an example of the threshold value of the label information, and is not limited to this. For example, a value obtained by adding a predetermined value to the upper threshold value of the label information may be used as the upper limit value of the scale, and a value obtained by subtracting a predetermined value from the lower threshold value of the label information may be used as the lower limit value of the scale. The predetermined value to be added or subtracted may be a fixed value, or may be a predetermined ratio amount (for example, 10%) of the difference between the upper limit threshold and the lower limit threshold.
 凡例表示部130は、グラフ表示部110で表示されるグラフについての凡例を表示する。たとえば、凡例表示部131には、スケール表示部121a,121bに対応したラベル(第1のユニットラベル)が凡例として入力され、凡例表示部132には、スケール表示部122a,122bに対応したラベル(第2のユニットラベル)が凡例として入力され、凡例表示部133には、スケール表示部123a,123bに対応したラベル(第3のユニットラベル)が凡例として入力される。メッセージ表示部140は、メッセージ表示条件が満たされる場合にラベル情報中のメッセージを表示する領域である。具体的には、ラベル値が閾値で示される範囲に含まれ、その範囲に対してメッセージが設定されている場合に、メッセージ表示部140にメッセージが表示される。 The legend display unit 130 displays a legend about the graph displayed on the graph display unit 110. For example, labels (first unit labels) corresponding to the scale display units 121a and 121b are input as legends to the legend display unit 131, and labels (first unit labels) corresponding to the scale display units 122a and 122b are input to the legend display unit 132. (Second unit label) is input as a legend, and a label (third unit label) corresponding to the scale display units 123a and 123b is input to the legend display unit 133 as a legend. The message display unit 140 is an area for displaying a message in the label information when the message display condition is satisfied. Specifically, when the label value is included in the range indicated by the threshold and a message is set for the range, the message is displayed on the message display unit 140.
 図表示処理部16は、ラベル値、ラベル情報から得られる情報などを図フォーマット格納部15中の図フォーマット100に入力して図表示情報を形成し、表示部17に表示する。たとえば、グラフ表示部110に表示するラベルに対応する警報の上限値と下限値を取得して、スケール表示部121a~123bの対応する位置に入力する。また、ラベル値記憶部13に記憶されたラベル値をグラフ表示部110にプロットする。さらに、各ラベルをグラフ化したときに各点を結ぶ線をラベルの種類ごとに変え、それを凡例として凡例表示部130に表示する。 The figure display processing unit 16 inputs the label value, information obtained from the label information, etc. into the figure format 100 in the figure format storage unit 15 to form figure display information and displays it on the display unit 17. For example, the upper limit value and the lower limit value of the alarm corresponding to the label displayed on the graph display unit 110 are acquired and input to the corresponding positions on the scale display units 121a to 123b. The label value stored in the label value storage unit 13 is plotted on the graph display unit 110. Furthermore, when each label is graphed, the line connecting each point is changed for each type of label, and this is displayed on the legend display unit 130 as a legend.
 図4は、図表示情報の一例を示す図である。ここでは、図2のラベル情報と図3の図フォーマット100とを用いて形成された図表示情報101である。圧力は実線で示され、そのスケールは停止の閾値の下限値と上限値である「2」、「10」となっている。温度は点線で示され、そのスケールは停止の閾値の下限値と上限値である「0」、「130」となっている。純水量は、鎖線で示され、そのスケールは停止の閾値の下限値と上限値である「10」、「なし」となっている。また、凡例表示部130には、各ラベル「圧力」、「温度」、「純水量」が設定され、メッセージ表示部140には、警報メッセージが表示されている。 FIG. 4 is a diagram showing an example of the diagram display information. Here, the figure display information 101 is formed using the label information of FIG. 2 and the figure format 100 of FIG. The pressure is indicated by a solid line, and its scale is “2” and “10” which are the lower and upper limits of the stop threshold. The temperature is indicated by a dotted line, and the scale is “0” or “130” which is the lower limit value and the upper limit value of the stop threshold. The amount of pure water is indicated by a chain line, and the scale is “10” or “none” which is the lower and upper limits of the stop threshold. In addition, each label “pressure”, “temperature”, and “pure water amount” is set in the legend display unit 130, and an alarm message is displayed in the message display unit 140.
 また、図表示処理部16は、ラベル情報から得られる有効桁数または小数点以下桁数にしたがって、ラベル値を処理し、表示部17に表示する。また、この際に、ラベル情報から得られる単位を、処理されたラベル値に付加して表示部17に表示する。 Also, the figure display processing unit 16 processes the label value according to the number of significant digits or the number of digits after the decimal point obtained from the label information, and displays it on the display unit 17. At this time, the unit obtained from the label information is added to the processed label value and displayed on the display unit 17.
 表示部17は、図表示処理部16で形成された図表示情報101を表示する。表示部17は、液晶表示装置、有機EL(ElectroLuminescence)装置などの表示装置によって構成される。 The display unit 17 displays the diagram display information 101 formed by the diagram display processing unit 16. The display unit 17 is configured by a display device such as a liquid crystal display device or an organic EL (ElectroLuminescence) device.
 つぎに、表示器10での表示処理について説明する。図5は、実施の形態1による表示器での表示処理の手順の一例を示すフローチャートである。まず、表示器10がプログラマブルコントローラと通信部11を介して接続された状態にあるものとする。ついで、表示器10の通信部11を介して外部機器からラベル情報を取得し(ステップS11)、ラベル情報保持部12に保存する。また、通信部11を介してユニットラベルも取得する(ステップS12)。 Next, display processing on the display 10 will be described. FIG. 5 is a flowchart illustrating an example of a procedure of display processing on the display according to the first embodiment. First, it is assumed that the display device 10 is connected to the programmable controller via the communication unit 11. Next, label information is acquired from an external device via the communication unit 11 of the display 10 (step S11) and stored in the label information holding unit 12. Moreover, a unit label is also acquired via the communication part 11 (step S12).
 その後、プログラマブルコントローラがプログラムに基づいて周期的な処理の実行を開始すると、図表示処理部16は図フォーマット格納部15から図フォーマット100を取得し、ステップS12で取得したユニットラベルと、ユニットラベルに対応するラベル情報とを用いて図表示情報101を形成し、表示部17に表示する(ステップS13)。 After that, when the programmable controller starts to execute periodic processing based on the program, the figure display processing unit 16 acquires the figure format 100 from the figure format storage unit 15, and the unit label and unit label acquired in step S 12 are acquired. The figure display information 101 is formed using the corresponding label information and displayed on the display unit 17 (step S13).
 ついで、通信部11を介してラベル値を受信する(ステップS14)。受信したラベル値は、一時的にラベル値記憶部13に記憶される。また、図表示処理部16は、受信したラベル値を図表示情報101に反映させる(ステップS15)。具体的には、ラベル値を図フォーマット100のグラフ表示部110にプロットし、グラフを生成する。 Next, the label value is received via the communication unit 11 (step S14). The received label value is temporarily stored in the label value storage unit 13. The figure display processing unit 16 reflects the received label value in the figure display information 101 (step S15). Specifically, the label value is plotted on the graph display unit 110 of the diagram format 100 to generate a graph.
 さらに、ラベル情報解析部14は、受信したラベル値が警報の閾値で規定される範囲内に存在するかを判定する(ステップS16)。この場合の警報の範囲内は、警報の閾値の下限値以下の範囲、または上限値以上の範囲である。ラベル値が警報の範囲内に存在しない場合(ステップS16でNoの場合)には、ラベル値は正常値の範囲内にあることになり、現在行われている処理に代わる特別な処理を行わず、ステップS14に戻る。 Furthermore, the label information analysis unit 14 determines whether or not the received label value is within the range defined by the alarm threshold (step S16). In this case, the alarm range is a range below the lower limit value of the alarm threshold or a range above the upper limit value. If the label value does not exist within the alarm range (No in step S16), the label value is within the normal value range, and no special processing is performed in place of the current processing. Return to step S14.
 一方、ラベル値が警報の範囲内に存在する場合(ステップS16でYesの場合)には、さらに受信したラベル値が停止の閾値で規定される範囲内に存在するかを判定する(ステップS17)。この場合の停止の範囲内は、停止の閾値の下限値以下の範囲、または上限値以上の範囲である。ラベル値が停止の範囲内に存在しない場合(ステップS17でNoの場合)には、警報の範囲内に存在することになるので、ラベル情報解析部14は、ラベル情報から警報メッセージを取得し、図表示情報101に反映する(ステップS18)。ここでは、警報メッセージを図フォーマット100のメッセージ表示部140に表示する。その後、ステップS14に戻る。 On the other hand, if the label value is within the alarm range (Yes in step S16), it is further determined whether the received label value is within the range defined by the stop threshold (step S17). . In this case, the stop range is a range below the lower limit value of the stop threshold or a range above the upper limit value. If the label value does not exist within the stop range (No in step S17), the label value analysis unit 14 obtains an alarm message from the label information because the label value exists within the alarm range. Reflected in the figure display information 101 (step S18). Here, the alarm message is displayed on the message display unit 140 of the diagram format 100. Then, it returns to step S14.
 また、ラベル値が停止の範囲内に存在する場合(ステップS17でYesの場合)には、停止の範囲内に存在することになるので、ラベル情報解析部14は、ラベル情報から停止メッセージを取得し、図表示情報101に反映する(ステップS19)。ここでは、停止メッセージを図フォーマット100のメッセージ表示部140に表示する。その後、ステップS14に戻る。 If the label value is within the stop range (Yes in step S17), the label value analysis unit 14 acquires the stop message from the label information because the label value is within the stop range. This is reflected in the figure display information 101 (step S19). Here, the stop message is displayed on the message display unit 140 of the diagram format 100. Then, it returns to step S14.
 以上の処理が、ステップS12で取得したすべてのユニットラベルについて実行される。なお、以上の例では、ステップS14のラベル値を受信した後にラベル値が警報または停止の範囲内にあるかの判定処理を行っているが、ラベル値を受信した後、所定のタイミングで判定処理を行うようにしてもよい。 The above processing is executed for all the unit labels acquired in step S12. In the above example, the process of determining whether the label value is within the alarm or stop range is performed after receiving the label value in step S14, but the determination process is performed at a predetermined timing after receiving the label value. May be performed.
 実施の形態1では、図フォーマット100に、外部機器から読み込んだラベル情報を埋め込むことで、図表示情報101を作成し、表示部17に表示させるようにした。その結果、表示器10に接続されるプログラマブルコントローラの種類が変わった場合でも、表示器10側の変更をすることなく、自由にカスタマイズした表示メッセージを表示器10で表示することができる。 In Embodiment 1, the figure display information 101 is created by embedding the label information read from the external device in the figure format 100 and displayed on the display unit 17. As a result, even when the type of programmable controller connected to the display device 10 changes, a display message customized freely can be displayed on the display device 10 without changing the display device 10 side.
 また、プログラマブルコントローラから受信したラベル値が、ラベル情報に設定された範囲内に存在するか否かを表示器10で判定し、その結果を表示部17に表示させるようにした。これによって、ラベル値が設定された範囲内であるか否かの判定を行い、その結果に基づいた表示処理を表示器10に行わせる処理が、プログラマブルコントローラ側で実行されることがないので、プログラマブルコントローラでの処理負荷を低減させることができるという効果を有する。 Also, it is determined by the display 10 whether the label value received from the programmable controller is within the range set in the label information, and the result is displayed on the display unit 17. Thereby, it is determined whether the label value is within the set range, and the process for causing the display 10 to perform the display process based on the result is not executed on the programmable controller side. The processing load on the programmable controller can be reduced.
 さらに、従来では、単位変換、有効桁数、小数点以下桁数、閾値、メッセージを表示器側で設定する必要があり、複数の表示器が存在する場合には、それぞれの表示器で設定しなければならなかった。一方、実施の形態1による表示器10では、図フォーマット100に基づいてラベル情報の内容を取得して表示部17に表示するようにしたので、各表示器10での設定を行う必要はなく、ラベル情報のみを設定(編集)すればよい。そのため、表示器10に表示させる処理を従来に比して手軽に行うことが可能になるという効果も有する。 Furthermore, conventionally, the unit conversion, the number of significant digits, the number of digits after the decimal point, the threshold value, and the message must be set on the display unit side. If there are multiple display units, they must be set on each display unit. I had to. On the other hand, in the display device 10 according to the first embodiment, the contents of the label information are acquired based on the diagram format 100 and displayed on the display unit 17, so there is no need to make settings on each display device 10. Only the label information needs to be set (edited). Therefore, there is also an effect that processing to be displayed on the display device 10 can be easily performed as compared with the conventional case.
実施の形態2.
 実施の形態2では、表示器が接続されたプログラマブルコントローラでのラベル情報に基づいた分岐処理プログラムの作成と分岐処理時の表示処理について説明する。
Embodiment 2. FIG.
In the second embodiment, description will be given of creation of a branch processing program based on label information in a programmable controller to which a display is connected and display processing at the time of branch processing.
 図6は、実施の形態2によるプログラマブルコントローラシステムの構成を模式的に示すブロック図である。プログラマブルコントローラシステムは、プログラマブルコントローラ20と、表示器10と、が通信回線30を介して接続された構成を有する。なお、表示器10については、実施の形態1で説明した構成と同様であるので、その説明を省略する。 FIG. 6 is a block diagram schematically showing the configuration of the programmable controller system according to the second embodiment. The programmable controller system has a configuration in which the programmable controller 20 and the display device 10 are connected via a communication line 30. Note that the display 10 is the same as the configuration described in the first embodiment, and thus the description thereof is omitted.
 プログラマブルコントローラ20は、通信部21と、ラベル情報保持部22と、プログラム記憶部23と、プログラム実行部24と、ラベル情報解析部25と、を備える。 The programmable controller 20 includes a communication unit 21, a label information holding unit 22, a program storage unit 23, a program execution unit 24, and a label information analysis unit 25.
 通信部21は、表示器10と接続される。通信部21を介して、ラベル情報またはプログラムの実行結果などが表示器10に対して送信される。また、表示器10とだけ接続されるのではなく、エンジニアリングツールなどの他の外部機器と接続されることもある。この場合、エンジニアリングツールから受信したラベル情報またはプログラムを、それぞれラベル情報保持部22またはプログラム記憶部23に格納する。 The communication unit 21 is connected to the display device 10. Label information or a program execution result is transmitted to the display 10 via the communication unit 21. Moreover, it may be connected not only with the display device 10 but with other external devices such as an engineering tool. In this case, the label information or program received from the engineering tool is stored in the label information holding unit 22 or the program storage unit 23, respectively.
 ラベル情報保持部22は、プログラマブルコントローラ20に設定されたラベル情報を保持する。ラベル情報は、図示しないエンジニアリングツールによって書き込まれる。ラベル情報は、実施の形態1の図2に示したものと同様の構成を有する。すなわち、この例では図2に示されるように、警報を発する範囲と、プログラマブルコントローラ20での処理を停止させる範囲と、が定義されている。なお、警報を発する範囲以外の範囲は、正常動作の範囲であるとする。 The label information holding unit 22 holds the label information set in the programmable controller 20. The label information is written by an engineering tool (not shown). The label information has the same configuration as that shown in FIG. 2 of the first embodiment. That is, in this example, as shown in FIG. 2, a range for issuing an alarm and a range for stopping the processing in the programmable controller 20 are defined. It is assumed that the range other than the range in which the alarm is issued is a normal operation range.
 プログラム記憶部23は、プログラマブルコントローラ20で実行するプログラムを記憶する。このプログラムは、所定の周期で繰り返し実行されるものである。また、プログラムは、プログラマブルコントローラ20内のメモリ内のアドレス範囲に対応付けられたラベルを用いて記述されたプログラムであり、ラベル情報と紐付けされている。ラベルは、プログラマブルコントローラ20に接続される外部機器からの入力データの値を保存し、その値を示す変数の役割を示すものである。ここでは、正常動作の場合の処理と、警報を発する場合の処理と、処理を停止させる場合の処理と、についてのプログラムがすでに作成されているものとし、警報を発する場合の処理と処理を停止させる場合の処理を分岐させる分岐判定プログラムについては作成されていない状態にあるものとする。 The program storage unit 23 stores a program to be executed by the programmable controller 20. This program is repeatedly executed at a predetermined cycle. The program is a program described using a label associated with an address range in the memory in the programmable controller 20, and is associated with label information. The label stores a value of input data from an external device connected to the programmable controller 20 and indicates a role of a variable indicating the value. Here, it is assumed that a program has already been created for processing for normal operation, processing for issuing an alarm, processing for stopping the processing, and processing for stopping the processing. It is assumed that the branch determination program for branching the processing in the case of being executed is not created.
 プログラム実行部24は、プログラム記憶部23に記憶されているプログラムを実行する。また、プログラム実行部24は、通常時は正常動作の処理を行うが、ラベル情報解析部25からラベル値が警報の範囲にある旨の通知を受けると、警報を発する場合の処理を実行し、ラベル情報解析部25からラベル値が停止の範囲にある旨の通知を受けると、処理を停止させる場合の処理を実行する。 The program execution unit 24 executes a program stored in the program storage unit 23. In addition, the program execution unit 24 normally performs normal operation processing, but upon receiving notification from the label information analysis unit 25 that the label value is within the alarm range, the program execution unit 24 executes processing for issuing an alarm. When the notification that the label value is in the stop range is received from the label information analysis unit 25, the process for stopping the process is executed.
 ラベル情報解析部25は、プログラム実行部24でプログラムが処理された任意のタイミングで、ラベル情報からラベル値が閾値を超えているか否かを判定し、その結果をプログラム実行部24に通知する処理を行う分岐判定プログラムを作成し、分岐判定プログラムに基づいて処理を行う。たとえば、ラベル値をそのラベル値に対応するラベル情報の警報の範囲と比較する。ラベル値が警報の範囲内になければ、異常ではないのでプログラム実行部24には何も通知しない。ラベル値が警報の範囲内にある場合には、さらにラベル値が停止の範囲内にあるか否かを判定する。ラベル値が停止の範囲内にない場合には、ラベル値が警報の範囲内にあることを示す通知がプログラム実行部24に伝えられる。また、ラベル値が停止の範囲内にある場合には、ラベル値が停止の範囲内にあることを示す通知がプログラム実行部24に伝えられる。 The label information analysis unit 25 determines whether or not the label value exceeds the threshold value from the label information at an arbitrary timing when the program is processed by the program execution unit 24, and notifies the program execution unit 24 of the result. A branch determination program is created to perform processing based on the branch determination program. For example, the label value is compared with the alarm range of the label information corresponding to the label value. If the label value is not within the alarm range, it is not abnormal, so nothing is notified to the program execution unit 24. If the label value is within the alarm range, it is further determined whether or not the label value is within the stop range. When the label value is not within the stop range, a notification indicating that the label value is within the alarm range is transmitted to the program execution unit 24. If the label value is within the stop range, a notification indicating that the label value is within the stop range is transmitted to the program execution unit 24.
 図7は、ラベル情報解析部でのプログラムにおける機能を模式的に示す図である。計測器専用の処理プログラム210が存在し、その入力は温度データ221などのラベル値となる。また、その出力はプログラム記憶部23に記憶されている正常時の処理プログラム231、警報時の処理プログラム232、停止時の処理プログラム233となる。ここで、ラベル情報解析部25での処理は、計測器専用の処理プログラムによる出力の選択を行う分岐判定を行う処理211となる。つまり、入力の温度データの値が警報の範囲と停止の範囲によって、正常時の処理となるのか、警報時の処理となるのか、または停止時の処理となるのかを切り替える処理を実行することになる。 FIG. 7 is a diagram schematically showing functions in the program in the label information analysis unit. There is a processing program 210 dedicated to the measuring instrument, and its input is a label value such as temperature data 221. The output is a normal processing program 231, an alarm processing program 232, and a stop processing program 233 stored in the program storage unit 23. Here, the processing in the label information analysis unit 25 is processing 211 that performs branch determination for selecting output by a processing program dedicated to the measuring instrument. In other words, the process of switching whether the value of the input temperature data is a normal process, an alarm process, or a stop process depending on the alarm range and the stop range. Become.
 このようなプログラマブルコントローラシステムのプログラマブルコントローラ20では、ラベル値と対応するラベル情報中の閾値とを比較して、実行する処理の選択処理(分岐判定処理)を行うプログラムをユーザが作成することなく実行することが可能になる。また、表示器10では、ラベル値がラベル情報中の閾値を超える範囲にあるかを比較して、表示部17に表示するメッセージを選択する処理を実行することができ、プログラマブルコントローラ20で実行する必要がない。 In the programmable controller 20 of such a programmable controller system, the label value and the threshold value in the corresponding label information are compared, and the program for performing the selection process (branch determination process) of the process to be executed is executed without the user creating it. It becomes possible to do. Further, the display 10 can execute a process of selecting a message to be displayed on the display unit 17 by comparing whether the label value is in a range exceeding the threshold value in the label information, and is executed by the programmable controller 20. There is no need.
 つぎに、プログラマブルコントローラ20での分岐処理について説明する。図8は、実施の形態2によるプログラマブルコントローラでの分岐処理の手順の一例を示すフローチャートである。ここで、プログラマブルコントローラ20が通信部21を介して図示しないエンジニアリングツールからプログラムとラベル情報とを取得し、それぞれプログラム記憶部23とラベル情報保持部22とに記憶している状態にあるものとする。 Next, a branch process in the programmable controller 20 will be described. FIG. 8 is a flowchart illustrating an example of a branch processing procedure in the programmable controller according to the second embodiment. Here, it is assumed that the programmable controller 20 acquires a program and label information from an engineering tool (not shown) via the communication unit 21 and stores them in the program storage unit 23 and the label information holding unit 22, respectively. .
 まず、プログラム実行部24は、プログラム記憶部23に記憶されているプログラム(正常動作時の処理プログラム)を実行する(ステップS31)。これによって、プログラマブルコントローラ20は、正常動作時の処理プログラムを所定の周期で実行することになる。 First, the program execution unit 24 executes a program (a processing program during normal operation) stored in the program storage unit 23 (step S31). As a result, the programmable controller 20 executes the processing program during normal operation at a predetermined cycle.
 ついで、プログラム実行部24は、プログラマブルコントローラ20に接続される入力機器からの情報またはその情報を用いて演算された演算結果を予め定められたラベルのラベル値として設定する(ステップS32)。このラベル値は、プログラム実行部24からラベル情報解析部25へと渡される。 Next, the program execution unit 24 sets information from an input device connected to the programmable controller 20 or a calculation result calculated using the information as a label value of a predetermined label (step S32). This label value is passed from the program execution unit 24 to the label information analysis unit 25.
 ラベル情報解析部25は、プログラム実行部24から取得したラベル値が警報の閾値で規定される範囲内に存在するかを判定する(ステップS33)。この場合の警報の範囲内は、警報の閾値の下限値以下の範囲、または上限値以上の範囲である。ラベル値が警報の範囲内に存在しない場合(ステップS33でNoの場合)には、ラベル値は正常値の範囲内にあることになり、特別な処理を行わず、ステップS31に戻る。 The label information analysis unit 25 determines whether the label value acquired from the program execution unit 24 is within the range defined by the alarm threshold (step S33). In this case, the alarm range is a range below the lower limit value of the alarm threshold or a range above the upper limit value. If the label value does not exist within the alarm range (No in step S33), the label value is within the normal value range, and no special process is performed, and the process returns to step S31.
 一方、ラベル値が警報の範囲内に存在する場合(ステップS33でYesの場合)には、さらに取得したラベル値が停止の閾値で規定される範囲内に存在するかを判定する(ステップS34)。この場合の停止の範囲内は、停止の閾値の下限値以下の範囲、または上限値以上の範囲である。 On the other hand, if the label value is within the alarm range (Yes in step S33), it is further determined whether the acquired label value is within the range defined by the stop threshold (step S34). . In this case, the stop range is a range below the lower limit value of the stop threshold or a range above the upper limit value.
 ラベル値が停止の範囲内に存在しない場合(ステップS34でNoの場合)には、警報の範囲内に存在することになるので、ラベル情報解析部25は、ラベル値が警報の範囲内にあることをプログラム実行部24に通知する(ステップS35)。プログラム実行部24は、ラベル情報解析部25からラベル値が警報の範囲内にある旨の通知を受けると、正常動作時の処理プログラムに代えて警報時の処理プログラムを実行し(ステップS36)、処理が終了する。警報時の処理プログラムは、警報となった際の履歴を残したり、警報を通知するランプを点灯させたりする処理などを実行するものである。 If the label value does not exist within the stop range (No in step S34), the label value is within the alarm range. Therefore, the label information analysis unit 25 has the label value within the alarm range. This is notified to the program execution unit 24 (step S35). Upon receiving a notification from the label information analysis unit 25 that the label value is within the alarm range, the program execution unit 24 executes the alarm processing program instead of the normal operation processing program (step S36). The process ends. The processing program at the time of an alarm executes a process of leaving a history when an alarm occurs or turning on a lamp for notifying an alarm.
 また、ラベル値が停止の範囲内に存在する場合(ステップS34でYesの場合)には、停止の範囲内に存在することになるので、ラベル情報解析部25は、ラベル値が停止の範囲内にあることをプログラム実行部24に通知する(ステップS37)。プログラム実行部24は、ラベル情報解析部25からラベル値が停止の範囲内にある旨の通知を受けると、正常動作時の処理プログラムに代えて停止時の処理プログラムを実行し(ステップS38)、処理が終了する。停止時の処理プログラムは、処理を止めるか否か、つぎのラダープログラムを動かすか否か、などのメッセージを出す、緊急性の高い処理を実行するものである。 If the label value is within the stop range (Yes in step S34), the label value is within the stop range. Is notified to the program execution unit 24 (step S37). Upon receiving a notification from the label information analysis unit 25 that the label value is within the stop range, the program execution unit 24 executes the stop processing program instead of the normal operation processing program (step S38). The process ends. The processing program at the time of stop executes a highly urgent process that outputs a message such as whether to stop the process or whether to move the next ladder program.
 なお、図8に示される処理と並行して、表示器10では、図5に示される処理が実行される。この処理については実施の形態1で既に説明したので、その説明を省略する。 In parallel with the process shown in FIG. 8, the display 10 executes the process shown in FIG. Since this process has already been described in the first embodiment, a description thereof will be omitted.
 実施の形態2では、プログラマブルコントローラ20と表示器10とが通信回線30を介して接続されたプログラマブルコントローラシステムで、プログラマブルコントローラ20はラベル情報中の範囲に関する情報に基づいて分岐処理プログラムを作成し、ラベル値によって処理が選択されるようにした。これによって、ユーザは、分岐処理プログラムを作成する必要がなくなるという効果を有する。また、表示器10は、プログラマブルコントローラ20から得られるラベル値から、ラベル情報を参照して実施の形態1で説明したようにメッセージを表示させるようにした。その結果、この表示器10への表示処理に関して、プログラマブルコントローラ20での処理が行われないので、プログラマブルコントローラ20の負荷を低減することができるという効果も有する。 In Embodiment 2, in the programmable controller system in which the programmable controller 20 and the display device 10 are connected via the communication line 30, the programmable controller 20 creates a branch processing program based on the information regarding the range in the label information, The processing is selected according to the label value. This has the effect that the user need not create a branch processing program. Further, the display 10 displays a message as described in the first embodiment with reference to label information from the label value obtained from the programmable controller 20. As a result, with respect to the display process on the display device 10, since the process in the programmable controller 20 is not performed, the load on the programmable controller 20 can be reduced.
実施の形態3.
 実施の形態2では、プログラマブルコントローラに表示器が通信回線を介して接続された構成を有していた。実施の形態3では、表示器が内蔵されたプログラマブルコントローラについて説明する。
Embodiment 3 FIG.
In the second embodiment, the display device is connected to the programmable controller via a communication line. In Embodiment 3, a programmable controller with a built-in display device will be described.
 図9は、実施の形態3によるプログラマブルコントローラの構成を模式的に示すブロック図である。プログラマブルコントローラ20Aは、通信部21と、ラベル情報保持部22と、プログラム記憶部23と、プログラム実行部24と、ラベル情報解析部25と、表示器26と、を備える。 FIG. 9 is a block diagram schematically showing the configuration of the programmable controller according to the third embodiment. The programmable controller 20A includes a communication unit 21, a label information holding unit 22, a program storage unit 23, a program execution unit 24, a label information analysis unit 25, and a display 26.
 表示器26は、プログラマブルコントローラ20Aの内部に設けられ、ラベル情報解析部14と、図フォーマット格納部15と、図表示処理部16と、表示部17と、を有する。これらの各構成要素は、実施の形態1,2で説明したものと同様であり、その説明を省略する。ただし、ラベル情報解析部14,25は、プログラマブルコントローラ20Aと表示器26内とに設けられる。また、図表示処理部16は、プログラム実行部24から得られるラベル値を用いて表示部17に表示する図表示情報を作成する。さらに、表示器26内のラベル情報解析部14は、図表示処理部16から渡されるラベル値を用いて、ラベル情報に応じたメッセージの表示などの処理を行う。 The display 26 is provided inside the programmable controller 20A, and includes a label information analysis unit 14, a diagram format storage unit 15, a diagram display processing unit 16, and a display unit 17. These components are the same as those described in the first and second embodiments, and the description thereof is omitted. However, the label information analysis units 14 and 25 are provided in the programmable controller 20A and the display 26. Further, the diagram display processing unit 16 creates diagram display information to be displayed on the display unit 17 using the label value obtained from the program execution unit 24. Further, the label information analysis unit 14 in the display device 26 performs processing such as displaying a message according to the label information, using the label value passed from the figure display processing unit 16.
 なお、このようなプログラマブルコントローラ20Aにおける処理は、実施の形態2の図8で説明したものと同様であるので、その説明を省略する。また、表示器26における処理も実施の形態1で説明したものと同様であるので、その説明を省略する。 In addition, since the process in such a programmable controller 20A is the same as that of what was demonstrated in FIG. 8 of Embodiment 2, the description is abbreviate | omitted. Further, since the processing in the display 26 is the same as that described in the first embodiment, the description thereof is omitted.
 実施の形態3によっても、実施の形態2と同様の効果を得ることができる。 Also in the third embodiment, the same effect as in the second embodiment can be obtained.
実施の形態4.
 実施の形態4では、プログラマブルコントローラで使用されるプログラムの作成、またはプログラマブルコントローラに対する設定などを行うエンジニアリングツールでのラベル情報に基づいた分岐処理プログラムの生成処理について説明する。
Embodiment 4 FIG.
In the fourth embodiment, generation processing of a branch processing program based on label information in an engineering tool for creating a program used in the programmable controller or setting the programmable controller will be described.
 図10は、実施の形態4によるエンジニアリングツールの構成を模式的に示すブロック図である。エンジニアリングツール50は、通信部51と、ユニット構成図設定部52と、ユニット固有情報記憶部53と、ラベル情報記憶部54と、ラベル情報設定部55と、プログラム部品格納部56と、プログラム設定部57と、プログラム生成部58と、を備える。 FIG. 10 is a block diagram schematically showing the configuration of the engineering tool according to the fourth embodiment. The engineering tool 50 includes a communication unit 51, a unit configuration diagram setting unit 52, a unit specific information storage unit 53, a label information storage unit 54, a label information setting unit 55, a program component storage unit 56, and a program setting unit. 57 and a program generation unit 58.
 通信部51は、プログラマブルコントローラまたは表示器などの外部機器と通信回線を介して接続される。ユニット構成図設定部52は、ユニットの一覧から使用(設定)するユニットを選択して、実際のシステムを模した図を作図する処理を行う。また、ユニット構成図設定部52は、選択したユニットを一意に識別するユニット固有情報を生成し、またユニットラベルを生成する。さらに、ユニット構成図設定部52は、選択したユニットに対して、デフォルトのラベル情報を用いてラベル情報を生成する。ユニット固有情報記憶部53は、ユニット固有情報を記憶する。ユニット固有情報は、ラベル情報と紐付けされる。 The communication unit 51 is connected to an external device such as a programmable controller or a display device via a communication line. The unit configuration diagram setting unit 52 selects a unit to be used (set) from the unit list, and performs a process of drawing a diagram simulating an actual system. The unit configuration diagram setting unit 52 generates unit specific information for uniquely identifying the selected unit, and also generates a unit label. Furthermore, the unit configuration diagram setting unit 52 generates label information using default label information for the selected unit. The unit unique information storage unit 53 stores unit unique information. The unit specific information is associated with the label information.
 ラベル情報記憶部54は、構築するプログラマブルコントローラに設定されたラベル情報を記憶する。このラベル情報は、上記した実施の形態で説明したものと同様である。ラベル情報設定部55は、ユーザによるラベル情報の編集を可能とするインタフェースである。 The label information storage unit 54 stores label information set in the programmable controller to be constructed. This label information is the same as that described in the above embodiment. The label information setting unit 55 is an interface that allows the user to edit label information.
 プログラム部品格納部56は、プログラム部品を格納する。プログラム部品として、ユニット固有の動作が定義されたサンプルプログラムのほかに、そのサンプルプログラムとラベル情報に基づいてプログラム生成部58で生成された判定処理プログラムとを組み合わせたユニットプログラムも含まれる。 The program part storage unit 56 stores program parts. In addition to the sample program in which the unit-specific operation is defined as the program part, a unit program that combines the sample program and the determination processing program generated by the program generation unit 58 based on the label information is also included.
 プログラム設定部57は、ユーザによるプログラム部品格納部56に記憶されるプログラム部品を含むプログラムの作成・編集を可能とするインタフェースである。プログラム部品格納部56中のプログラム部品は、フォーマット的なものであるので、それを基にしてユニット構成図設定部52で選択したユニット固有のプログラム部品にカスタマイズすることが可能になる。 The program setting unit 57 is an interface that allows a user to create and edit a program including a program component stored in the program component storage unit 56. Since the program parts in the program part storage unit 56 are format-like, the program parts can be customized to unit-specific program parts selected by the unit configuration diagram setting unit 52 based on the program parts.
 プログラム生成部58は、ユニット固有情報とユニットに対応するラベル情報から、ラベル情報に付加された閾値を超えたか否かを判定する判定プログラムを作成する。また、その判定プログラムの基になるユニットに固有の演算処理のプログラム部品に、作成した判定プログラムを付加して、ユーザが編集可能なユニットプログラムを生成する。生成したユニットプログラムは、プログラム部品としてプログラム部品格納部56に保存される。生成されるプログラム部品は、たとえばラダープログラムである。 The program generation unit 58 creates a determination program for determining whether or not the threshold added to the label information has been exceeded from the unit specific information and the label information corresponding to the unit. Further, the created determination program is added to the program part of the arithmetic processing unique to the unit that is the basis of the determination program to generate a unit program that can be edited by the user. The generated unit program is stored in the program component storage unit 56 as a program component. The generated program component is, for example, a ladder program.
 つぎに、このような構成のエンジニアリングツール50での処理について説明する。図11は、実施の形態4によるプログラム生成処理の手順の一例を示すフローチャートである。なお、エンジニアリングツール50には、使用されるユニットの種類、およびそのラベル情報の基となるデフォルトのラベル情報を含むユニット種類情報が格納されているものとする。また、プログラム部品格納部56には、使用されるユニットの種類ごとに、そのユニット固有の動作を定義したプログラム部品が記憶されているものとする。 Next, processing by the engineering tool 50 having such a configuration will be described. FIG. 11 is a flowchart illustrating an example of a procedure of a program generation process according to the fourth embodiment. It is assumed that the engineering tool 50 stores unit type information including the type of unit to be used and default label information that is the basis of the label information. Further, it is assumed that the program component storage unit 56 stores a program component that defines a unit-specific operation for each type of unit used.
 まず、ユーザは、ユニット構成図設定部52を介してシステム構成を設定する(ステップS51)。この設定は、たとえばベースユニットを示す図上に電源ユニット、CPUユニット、ネットワークユニット、入出力ユニットなどの各ユニットを示す図をユニット種類情報の一覧から配置することによって行われる。 First, the user sets the system configuration via the unit configuration diagram setting unit 52 (step S51). This setting is performed by, for example, arranging a diagram showing each unit such as a power supply unit, a CPU unit, a network unit, and an input / output unit from a list of unit type information on the diagram showing the base unit.
 ユニットの配置(プログラマブルコントローラの構成設定)が終わると、ユニット構成図設定部52は、ユニットラベルを生成する(ステップS52)。具体的には、ユニット構成図設定部52は、設定されたシステム構成中のユニットを一意に識別するユニット固有情報を、選択したユニットに対して設定し、また選択したユニットで使用されるメモリエリアに対してラベル(ユニットラベル)を生成する。 When the unit arrangement (programmable controller configuration setting) is completed, the unit configuration diagram setting unit 52 generates a unit label (step S52). Specifically, the unit configuration diagram setting unit 52 sets unit-specific information for uniquely identifying a unit in the set system configuration for the selected unit, and a memory area used by the selected unit. A label (unit label) is generated for.
 その後、ユニット構成図設定部52は、ユニットラベルにラベル情報を設定する(ステップS53)。ユニット種類情報の一覧には、ユニットの種類に対してデフォルトのラベル情報が関連付けされているので、選択したユニットに対して生成したラベル(ユニットラベル)を、デフォルトのラベル情報に設定することによって選択したユニットのラベル情報とする。このラベル情報はラベル情報記憶部54に記憶される。このようにしてラベル情報とユニット固有情報とが紐付けされる。 Thereafter, the unit configuration diagram setting unit 52 sets label information in the unit label (step S53). Since the default label information is associated with the unit type in the unit type information list, the label (unit label) generated for the selected unit is selected by setting the default label information. This is the label information of the selected unit. This label information is stored in the label information storage unit 54. In this way, the label information and the unit specific information are linked.
 実施の形態1の図2で示したように、ラベル情報には、ラベル、データ型、閾値、単位、有効桁数、小数点以下桁数、メッセージおよびアドレスなどの項目が含まれる。このうち、閾値、単位、有効桁数、小数点以下桁数およびメッセージには、デフォルト値が設定されているが、これらのデフォルト値を変更する場合には、ユーザによって、ラベル情報設定部55を介して編集される。 As shown in FIG. 2 of the first embodiment, the label information includes items such as a label, a data type, a threshold value, a unit, the number of significant digits, the number of digits after the decimal point, a message, and an address. Among these, default values are set for the threshold value, unit, number of significant digits, number of digits after the decimal point, and message. However, when changing these default values, the label information setting unit 55 can be changed by the user. Edited.
 ついで、プログラム生成部58は、ラベル情報の閾値から分岐判定プログラムを生成する(ステップS54)。ラベル情報の閾値(範囲)から、ラベル値と閾値とを比較して、ラベル値が範囲内にある場合と範囲外にある場合の分岐処理を行う分岐判定プログラムを生成する。 Next, the program generation unit 58 generates a branch determination program from the threshold value of the label information (step S54). From the threshold value (range) of the label information, the label value is compared with the threshold value, and a branch determination program that performs a branch process when the label value is within the range and outside the range is generated.
 その後、ラベル情報からユニットラベルに対応するプログラム部品をプログラム部品格納部56から取得する(ステップS55)。これは、ラベル情報は、ユニットの種類に対応づけられるので、ユニットの種類に対応するプログラム部品がプログラム部品格納部56から取得される。 Thereafter, the program part corresponding to the unit label is acquired from the program part storage unit 56 from the label information (step S55). Since the label information is associated with the unit type, the program component corresponding to the unit type is acquired from the program component storage unit 56.
 ついで、プログラム生成部58は、取得したプログラム部品と生成した分岐判定プログラムとを組み合わせてユニットプログラムを作成し(ステップS56)、ユニットプログラムをプログラム部品としてプログラム部品格納部56に格納する(ステップS57)。以上で、エンジニアリングツール50での処理が終了する。 Next, the program generation unit 58 creates a unit program by combining the acquired program component and the generated branch determination program (step S56), and stores the unit program as a program component in the program component storage unit 56 (step S57). . Thus, the process in the engineering tool 50 is completed.
 なお、プログラム部品は、エンジニアリングツール50の対応する言語(LD(Ladder Diagram)言語、ST(Structured Text)言語、FBD(Function Block Diagram)言語、IL(Instruction List)言語、SFC(Sequential Function Chart)言語)などで作成された言語で作成されたものであってもよいし、C言語コントローラの場合にはC言語関数で作成されたものであってもよい。 The program parts are the languages (LD (Ladder Diagram) language), ST (Structured Text) language, FBD (Function Block Diagram) language, IL (Instruction List) language, SFC (Sequential Function Chart) language that the engineering tool 50 supports. ) Or the like, or in the case of a C language controller, it may be created with a C language function.
 図12は、実施の形態4によるエンジニアリングツールでのプログラム部品生成の処理の概要を示す図である。この図に示されるように、プログラム生成部58は、あるユニットについて、固有の演算処理に関するプログラム部品321と、そのユニットでのラベル値が設定範囲内の場合の処理に関するプログラム部品331と、ラベル値が設定範囲外の場合の処理に関するプログラム部品332と、をプログラム部品格納部56から取得する。また、プログラム生成部58は、ラベル情報から分岐判定プログラム310を生成する。そして、固有の演算処理に関するプログラム部品321と、ラベル値が設定範囲内の場合の処理に関するプログラム部品331と、ラベル値が設定範囲外の場合の処理に関するプログラム部品332と、を結びつけるように分岐判定プログラム310を組み合わせてユニットプログラムを作成する。これによって、設定されたラベル情報についてのプログラム部品が生成されることになる。 FIG. 12 is a diagram showing an outline of processing for generating a program part by the engineering tool according to the fourth embodiment. As shown in this figure, the program generation unit 58 includes a program part 321 relating to a specific arithmetic process for a certain unit, a program part 331 relating to a process when the label value in that unit is within the set range, and a label value. Is acquired from the program component storage unit 56. In addition, the program generation unit 58 generates a branch determination program 310 from the label information. Then, a branch determination is made so as to link the program component 321 relating to the specific arithmetic processing, the program component 331 relating to the processing when the label value is within the setting range, and the program component 332 relating to the processing when the label value is outside the setting range. A unit program is created by combining the programs 310. As a result, a program component for the set label information is generated.
 なお、上述したエンジニアリングツール50でのプログラム生成処理は、その処理手順を格納したプログラムとして構成することができる。そして、このプログラムを上記したエンジニアリングツール50またはパーソナルコンピュータなどの情報処理端末で実行させることによって実現することができる。また、このプログラムは、ハードディスク、SSD(Solid State Drive)、フロッピー(登録商標)ディスク、CD(Compact Disk)-ROM、MO(Magneto-Optical disk)、DVD(Digital Versatile DiskまたはDigital Video Disk)などのコンピュータで読取可能な記録媒体に記録される。また、このプログラムは、インタネットなどのネットワーク(通信回線)を介して配布することもできる。 In addition, the program generation process by the engineering tool 50 mentioned above can be comprised as a program which stored the processing procedure. The program can be realized by executing the program on the above-described engineering tool 50 or an information processing terminal such as a personal computer. This program also includes hard disks, SSD (Solid State Drive), floppy (registered trademark) disks, CD (Compact Disk) -ROM, MO (Magneto-Optical disk), DVD (Digital Versatile Disk or Digital Video Disk), etc. It is recorded on a computer-readable recording medium. This program can also be distributed through a network (communication line) such as the Internet.
 実施の形態4では、エンジニアリングツール50にラベル情報から分岐判定プログラムを生成する機能を持たせるとともに、ユニットに対応するプログラム部品と組み合わせてユニットプログラムを生成し、プログラム部品として格納するようにした。また、ユーザによって編集されたラベル情報から分岐判定プログラムを作成するようにした。これによって、デフォルトのラベル情報から、ユニットが使用される環境に応じた分岐判定プログラムを含むプログラム部品を作成することができるという効果を有する。 In Embodiment 4, the engineering tool 50 has a function of generating a branch determination program from label information, and a unit program is generated in combination with a program component corresponding to the unit and stored as a program component. Also, a branch determination program is created from the label information edited by the user. Accordingly, it is possible to create a program part including a branch determination program corresponding to the environment in which the unit is used from the default label information.
 以上のように、この発明にかかるプログラマブルコントローラは、分岐判定が規定されたラベル情報に基づいて動作するプログラマブルコントローラに有用である。 As described above, the programmable controller according to the present invention is useful for a programmable controller that operates based on label information for which branch determination is defined.
 10,26 表示器、11,21,51 通信部、12,22 ラベル情報保持部、13 ラベル値記憶部、14,25 ラベル情報解析部、15 図フォーマット格納部、16 図表示処理部、17 表示部、20,20A プログラマブルコントローラ、23 プログラム記憶部、24 プログラム実行部、30 通信回線、50 エンジニアリングツール、52 ユニット構成図設定部、53 ユニット固有情報記憶部、54 ラベル情報記憶部、55 ラベル情報設定部、56 プログラム部品格納部、57 プログラム設定部、58 プログラム生成部、100 図フォーマット、101 図表示情報、110 グラフ表示部、121a,121b,122a,122b,123a,123b スケール表示部、130~133 凡例表示部、140 メッセージ表示部。 10, 26 display, 11, 21, 51 communication unit, 12, 22 label information holding unit, 13 label value storage unit, 14, 25 label information analysis unit, 15 diagram format storage unit, 16 diagram display processing unit, 17 display Unit, 20, 20A programmable controller, 23 program storage unit, 24 program execution unit, 30 communication line, 50 engineering tool, 52 unit configuration diagram setting unit, 53 unit specific information storage unit, 54 label information storage unit, 55 label information setting Unit, 56 program parts storage unit, 57 program setting unit, 58 program generation unit, 100 diagram format, 101 diagram display information, 110 graph display unit, 121a, 121b, 122a, 122b, 123a, 123b scale display unit, 130-133 Legend display unit, 140 message display unit.

Claims (13)

  1.  プログラマブルコントローラと表示器とが通信回線によって接続されたプログラマブルコントローラシステムであって、
     前記プログラマブルコントローラは、
     前記プログラマブルコントローラのメモリに割り当てられたアドレス範囲に対して付されたラベルを用いて作成されたプログラムを実行するプログラム実行部と、
     前記ラベルで規定されるアドレス範囲に格納されるラベル値に対して実行される前記プログラムを定義した範囲と、メッセージと、を対応付けたラベル情報を保持するラベル情報保持部と、
     前記ラベルで規定されるアドレス範囲に前記ラベル値が格納されると、前記ラベル情報の前記範囲を用いて、前記ラベル値が範囲内にある場合と範囲外にある場合とで処理を分ける第1ラベル情報解析部と、
     を備え、
     前記表示器は、
     表示部と、
     前記プログラマブルコントローラから前記ラベル値を取得すると、前記ラベル情報に基づいて前記表示部に前記ラベルの状態を表示する図表示処理部と、
     前記プログラマブルコントローラから前記ラベル値を取得すると、前記ラベル情報の前記範囲を用いて、前記ラベル値が前記範囲内にある場合と前記範囲外にある場合とで処理を分ける第2ラベル情報解析部と、
     を備え、
     前記プログラム実行部は、前記第1ラベル情報解析部によって前記範囲内に前記ラベル値があると判定された場合、この判定結果に対応する処理プログラムを実行し、
     前記図表示処理部は、前記第2ラベル情報解析部によって前記範囲内に前記ラベル値があると判定された場合、前記ラベル値が前記範囲内にある場合に対応するメッセージを前記ラベル情報から取得し、前記表示部に表示することを特徴とするプログラマブルコントローラシステム。
    A programmable controller system in which a programmable controller and a display are connected by a communication line,
    The programmable controller is
    A program execution unit that executes a program created using a label attached to an address range assigned to the memory of the programmable controller;
    A label information holding unit for holding label information in which a range defining the program to be executed for a label value stored in an address range defined by the label and a message are associated with each other;
    When the label value is stored in the address range defined by the label, the processing is divided into a case where the label value is within the range and a case where the label value is out of the range, using the range of the label information. A label information analysis unit;
    With
    The indicator is
    A display unit;
    When the label value is acquired from the programmable controller, a diagram display processing unit that displays the state of the label on the display unit based on the label information;
    When the label value is acquired from the programmable controller, a second label information analysis unit that uses the range of the label information to divide the process between the case where the label value is within the range and the case where the label value is outside the range; ,
    With
    When the first label information analysis unit determines that the label value is within the range, the program execution unit executes a processing program corresponding to the determination result,
    When the second label information analysis unit determines that the label value is within the range, the diagram display processing unit acquires a message corresponding to the case where the label value is within the range from the label information. And displaying the information on the display unit.
  2.  前記ラベル情報は、複数の範囲と、それぞれの範囲ごとのメッセージと、を含み、
     前記プログラム実行部は、前記第1ラベル情報解析部によって前記ラベル値が含まれる前記範囲が決定されると、前記範囲に応じて内容が規定された処理プログラムを実行し、
     前記図表示処理部は、前記第2ラベル情報解析部によって前記ラベル値が含まれる前記範囲が決定されると、前記範囲に応じて規定されたメッセージを前記ラベル情報から取得し、前記表示部に表示することを特徴とする請求項1に記載のプログラマブルコントローラシステム。
    The label information includes a plurality of ranges and a message for each range,
    When the range including the label value is determined by the first label information analysis unit, the program execution unit executes a processing program whose contents are defined according to the range,
    When the range in which the label value is included is determined by the second label information analysis unit, the figure display processing unit acquires a message defined according to the range from the label information, and displays the message on the display unit. The programmable controller system according to claim 1, wherein the programmable controller system is displayed.
  3.  前記図表示処理部は、前記ラベル値をグラフ表示するグラフ表示部と、前記グラフ表示部のスケールを前記ラベル情報中の前記範囲を示す閾値に対応付けたスケール表示部と、前記ラベル値が前記範囲内にある場合に前記ラベル情報中のメッセージを表示するメッセージ表示部と、を規定した図フォーマットに基づいて表示処理を行うことを特徴とする請求項1に記載のプログラマブルコントローラシステム。 The diagram display processing unit includes a graph display unit that displays the label value in a graph, a scale display unit that associates a scale of the graph display unit with a threshold value indicating the range in the label information, and the label value is the 2. The programmable controller system according to claim 1, wherein display processing is performed based on a diagram format that defines a message display unit that displays a message in the label information when it is within a range.
  4.  プログラマブルコントローラのメモリに割り当てられたアドレスに対して付されたラベルを用いて作成されたプログラムを実行するプログラム実行部と、
     前記ラベルで規定されるアドレス範囲に格納されるラベル値に対して設定された範囲と、メッセージと、が定義されたラベル情報を保持するラベル情報保持部と、
     前記ラベルで規定されるアドレス範囲に前記ラベル値が格納されると、前記ラベル情報の前記範囲を用いて、前記ラベル値が範囲内にある場合と範囲外にある場合とで処理を分ける第1ラベル情報解析部と、
     表示部と、
     前記ラベル値を取得すると、前記ラベル情報に基づいて前記表示部に前記ラベルの状態を表示する図表示処理部と、
     前記ラベル値を取得すると、前記ラベル情報の前記範囲を用いて、前記ラベル値が前記範囲内にある場合と前記範囲外にある場合とで処理を分ける第2ラベル情報解析部と、
     を備え、
     前記プログラム実行部は、前記第1ラベル情報解析部によって前記範囲内に前記ラベル値があると判定された場合、この判定結果に対応する処理プログラムを実行し、
     前記図表示処理部は、前記第2ラベル情報解析部によって前記範囲内に前記ラベル値があると判定された場合、前記ラベル値が前記範囲内にある場合に対応するメッセージを前記ラベル情報から取得し、前記表示部に表示することを特徴とするプログラマブルコントローラ。
    A program execution unit that executes a program created using a label attached to an address assigned to the memory of the programmable controller;
    A label information holding unit for holding label information in which a range set for a label value stored in an address range defined by the label and a message are defined;
    When the label value is stored in the address range defined by the label, the processing is divided into a case where the label value is within the range and a case where the label value is out of the range, using the range of the label information. A label information analysis unit;
    A display unit;
    Upon obtaining the label value, a diagram display processing unit that displays the state of the label on the display unit based on the label information;
    When the label value is acquired, using the range of the label information, a second label information analysis unit that divides the processing between the case where the label value is within the range and the case where the label value is outside the range;
    With
    When the first label information analysis unit determines that the label value is within the range, the program execution unit executes a processing program corresponding to the determination result,
    When the second label information analysis unit determines that the label value is within the range, the diagram display processing unit acquires a message corresponding to the case where the label value is within the range from the label information. And displaying on the display unit.
  5.  前記ラベル情報は、複数の範囲と、それぞれの範囲ごとのメッセージと、を含み、
     前記プログラム実行部は、前記第1ラベル情報解析部によって前記ラベル値が含まれる前記範囲が決定されると、前記範囲に応じて内容が規定された処理プログラムを実行し、
     前記図表示処理部は、前記第2ラベル情報解析部によって前記ラベル値が含まれる前記範囲が決定されると、前記範囲に応じて規定されたメッセージを前記ラベル情報から取得し、前記表示部に表示することを特徴とする請求項4に記載のプログラマブルコントローラ。
    The label information includes a plurality of ranges and a message for each range,
    When the range including the label value is determined by the first label information analysis unit, the program execution unit executes a processing program whose contents are defined according to the range,
    When the range in which the label value is included is determined by the second label information analysis unit, the figure display processing unit acquires a message defined according to the range from the label information, and displays the message on the display unit. The programmable controller according to claim 4, wherein the programmable controller is displayed.
  6.  前記図表示処理部は、前記ラベル値をグラフ表示するグラフ表示部と、前記グラフ表示部のスケールを前記ラベル情報中の前記範囲を示す閾値に対応付けたスケール表示部と、前記ラベル値が前記範囲内にある場合に前記ラベル情報中のメッセージを表示するメッセージ表示部と、を規定した図フォーマットに基づいて表示処理を行うことを特徴とする請求項4に記載のプログラマブルコントローラ。 The diagram display processing unit includes a graph display unit that displays the label value in a graph, a scale display unit that associates a scale of the graph display unit with a threshold value indicating the range in the label information, and the label value is the 5. The programmable controller according to claim 4, wherein display processing is performed based on a diagram format that defines a message display unit that displays a message in the label information when it is within a range.
  7.  プログラマブルコントローラに対する設定を行うエンジニアリングツールであって、
     前記プログラマブルコントローラを構成する際に選択されるユニットが使用するメモリのアドレス範囲に対して設定したラベルと、前記ラベルで規定されるアドレス範囲に格納されるラベル値に対して設定された範囲と、を含むラベル情報を前記選択されたユニットについて生成するユニット構成図設定部と、
     前記ユニットについて固有の動作を規定したプログラム部品を格納するプログラム部品格納部と、
     前記ラベル情報の前記範囲を用いて、前記ラベル値が前記範囲内にある場合と前記範囲外にある場合とで処理を分ける分岐判定プログラムを作成し、前記ラベル情報に対応する前記ユニットに対して既に作成されている前記プログラム部品を前記プログラム部品格納部から取得し、取得した前記プログラム部品と前記分岐判定プログラムとを組み合わせたユニットプログラムを作成し、前記プログラム部品格納部に格納するプログラム作成部と、
     を備えることを特徴とするエンジニアリングツール。
    An engineering tool for setting up a programmable controller,
    A label set for an address range of a memory used by a unit selected when configuring the programmable controller, a range set for a label value stored in an address range defined by the label, A unit configuration diagram setting unit that generates label information including the selected unit;
    A program component storage unit that stores program components that define specific operations for the unit;
    Using the range of the label information, create a branch determination program that divides processing depending on whether the label value is within the range or outside the range, and for the unit corresponding to the label information A program creation unit that acquires the already created program part from the program part storage unit, creates a unit program that combines the acquired program part and the branch determination program, and stores the unit program in the program part storage unit; ,
    An engineering tool characterized by comprising
  8.  前記ラベル情報を編集可能なラベル情報設定部をさらに備えることを特徴とする請求項7に記載のエンジニアリングツール。 The engineering tool according to claim 7, further comprising a label information setting unit capable of editing the label information.
  9.  前記プログラム部品格納部中の前記プログラム部品を編集可能なプログラム設定部をさらに備えることを特徴とする請求項7に記載のエンジニアリングツール。 The engineering tool according to claim 7, further comprising a program setting unit capable of editing the program component in the program component storage unit.
  10.  プログラマブルコントローラに接続される表示器であって、
     表示部と、
     前記プログラマブルコントローラのメモリ内のアドレス範囲に対して付されたラベルに格納されるラベル値に対して設定された範囲と、メッセージと、が定義されたラベル情報を保持するラベル情報保持部と、
     前記プログラマブルコントローラから前記ラベル値を取得すると、前記ラベル情報に基づいて前記表示部に前記ラベルの状態を表示する図表示処理部と、
     前記プログラマブルコントローラから前記ラベル値を取得すると、前記ラベル情報の前記範囲を用いて、前記範囲内と前記範囲外で処理を分けるラベル情報解析部と、
     を備え、
     前記図表示処理部は、前記ラベル情報解析部によって前記範囲内に前記ラベル値があると判定された場合、前記ラベル値が前記範囲内にある場合に対応するメッセージを前記ラベル情報から取得し、前記表示部に表示することを特徴とする表示器。
    A display connected to a programmable controller,
    A display unit;
    A label information holding unit for holding label information in which a range set for a label value stored in a label attached to an address range in the memory of the programmable controller and a message are defined;
    When the label value is acquired from the programmable controller, a diagram display processing unit that displays the state of the label on the display unit based on the label information;
    When acquiring the label value from the programmable controller, using the range of the label information, a label information analysis unit that divides processing within the range and outside the range,
    With
    When the label information analysis unit determines that the label value is within the range, the diagram display processing unit obtains a message corresponding to the case where the label value is within the range from the label information, A display device displaying on the display unit.
  11.  前記ラベル情報は、複数の範囲と、それぞれの範囲ごとのメッセージと、を含み、
     前記図表示処理部は、前記ラベル情報解析部によって前記ラベル値が含まれる前記範囲が決定されると、前記範囲に応じて規定されたメッセージを前記ラベル情報から取得し、前記表示部に表示することを特徴とする請求項10に記載の表示器。
    The label information includes a plurality of ranges and a message for each range,
    When the range including the label value is determined by the label information analysis unit, the diagram display processing unit acquires a message defined according to the range from the label information and displays the message on the display unit The display according to claim 10.
  12.  前記図表示処理部は、前記ラベル値をグラフ表示するグラフ表示部と、前記グラフ表示部のスケールを前記ラベル情報中の前記範囲を示す閾値に対応付けたスケール表示部と、前記ラベル値が前記範囲内にある場合に前記ラベル情報中のメッセージを表示するメッセージ表示部と、を規定した図フォーマットに基づいて表示処理を行うことを特徴とする請求項10に記載の表示器。 The diagram display processing unit includes a graph display unit that displays the label value in a graph, a scale display unit that associates a scale of the graph display unit with a threshold value indicating the range in the label information, and the label value is the The display device according to claim 10, wherein display processing is performed based on a diagram format that defines a message display unit that displays a message in the label information when it is within a range.
  13.  前記ラベル情報は、前記ラベル値を前記表示部に表示させる際に前記ラベル値に対して行う処理内容と、前記ラベル値が示す単位と、をさらに含み、
     前記図表示処理部は、前記ラベル値を前記処理内容にしたがって処理した数値を、前記単位を用いて前記表示部に表示することを特徴とする請求項10に記載の表示器。
    The label information further includes a content of processing performed on the label value when the label value is displayed on the display unit, and a unit indicated by the label value,
    The display according to claim 10, wherein the figure display processing unit displays a numerical value obtained by processing the label value according to the processing content on the display unit using the unit.
PCT/JP2014/062610 2014-05-12 2014-05-12 Programmable controller, programmable controller system, engineering tool, and display WO2015173863A1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2015526438A JP5823083B1 (en) 2014-05-12 2014-05-12 Programmable controller, programmable controller system, engineering tool and display
CN201480042335.8A CN105408825B (en) 2014-05-12 2014-05-12 Programmable Logic Controller, programable controller system, engineering tools and display
PCT/JP2014/062610 WO2015173863A1 (en) 2014-05-12 2014-05-12 Programmable controller, programmable controller system, engineering tool, and display
KR1020167002086A KR101635343B1 (en) 2014-05-12 2014-05-12 Programmable controller, programmable controller system, engineering tool, and display

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2014/062610 WO2015173863A1 (en) 2014-05-12 2014-05-12 Programmable controller, programmable controller system, engineering tool, and display

Publications (1)

Publication Number Publication Date
WO2015173863A1 true WO2015173863A1 (en) 2015-11-19

Family

ID=54479437

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2014/062610 WO2015173863A1 (en) 2014-05-12 2014-05-12 Programmable controller, programmable controller system, engineering tool, and display

Country Status (4)

Country Link
JP (1) JP5823083B1 (en)
KR (1) KR101635343B1 (en)
CN (1) CN105408825B (en)
WO (1) WO2015173863A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20190098216A (en) * 2016-12-29 2019-08-21 엘지전자 주식회사 Electronics

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1063315A (en) * 1996-08-13 1998-03-06 Toshiba Corp Tag system and monitoring and controlling device using the system
JP2002055713A (en) * 2000-08-08 2002-02-20 Mitsubishi Electric Corp Plant control system
JP2003280732A (en) * 2002-03-20 2003-10-02 Digital Electronics Corp Data transmitter and control system using the same

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4261926B2 (en) 2003-01-27 2009-05-13 三菱電機株式会社 Tag for plant control system and plant control system
JP4322770B2 (en) * 2004-09-30 2009-09-02 株式会社デジタル Screen creation device, screen creation program, and recording medium recording the same
CN102713774B (en) * 2010-01-20 2015-05-13 三菱电机株式会社 Programmable controller system and development system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1063315A (en) * 1996-08-13 1998-03-06 Toshiba Corp Tag system and monitoring and controlling device using the system
JP2002055713A (en) * 2000-08-08 2002-02-20 Mitsubishi Electric Corp Plant control system
JP2003280732A (en) * 2002-03-20 2003-10-02 Digital Electronics Corp Data transmitter and control system using the same

Also Published As

Publication number Publication date
CN105408825B (en) 2017-06-23
KR101635343B1 (en) 2016-07-08
KR20160014118A (en) 2016-02-05
CN105408825A (en) 2016-03-16
JPWO2015173863A1 (en) 2017-04-20
JP5823083B1 (en) 2015-11-25

Similar Documents

Publication Publication Date Title
US9965135B2 (en) Configurable metrics and metric visualization
US8032232B2 (en) Natively retaining project documentation in a controller
US10203850B2 (en) Data editing apparatus, data editing method, and data editing program
US20130053987A1 (en) Systems and methods of managing device parameter values when importing device definition files
US9811071B2 (en) System construction support apparatus
JP5791855B1 (en) Programmable controller system, programmable controller, program display device, and program display method
WO2012157082A1 (en) Parameter-setting device and parameter-setting system
JPWO2014167623A1 (en) Program graph display device, program graph display method, and program graph display program
KR101431995B1 (en) Facility management device, screen display method, and recording medium
JP5823083B1 (en) Programmable controller, programmable controller system, engineering tool and display
JP2020102115A (en) Engineering supporting system and engineering supporting method
JP2009193181A (en) Software development support system and method, and program for the method
JP2015518618A (en) Method and system for providing update information of device description of field device
JP2015184756A (en) Program converter and conversion processing program
CN111967269A (en) Business risk identification method and device and electronic equipment
WO2016117079A1 (en) Programmable logic controller setting file generation assistance device
JP2015026167A (en) Alarm management system and alarm management method
JP6576608B1 (en) Drawing support device, display device, drawing support method, and computer program
JP6618642B1 (en) Program execution support device, program execution support method, and program execution support program
JP2008040651A (en) Programmable indicator, file conversion method therefor, and program enabling programmable indicator to execute same method
JP7014595B2 (en) Monitoring device, monitoring method, and monitoring program
JP6247542B2 (en) Monitoring point definition changing method and engineering device
CN111104031B (en) User-oriented data updating method and device, electronic equipment and storage medium
TWI740174B (en) Information processing device, information processing method and information processing program product
JP2018128919A (en) Work plan creation system, work plan creation method and work plan creation program

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201480042335.8

Country of ref document: CN

ENP Entry into the national phase

Ref document number: 2015526438

Country of ref document: JP

Kind code of ref document: A

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14891881

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 20167002086

Country of ref document: KR

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14891881

Country of ref document: EP

Kind code of ref document: A1