WO2017138156A1 - エンジニアリングツール - Google Patents

エンジニアリングツール Download PDF

Info

Publication number
WO2017138156A1
WO2017138156A1 PCT/JP2016/054190 JP2016054190W WO2017138156A1 WO 2017138156 A1 WO2017138156 A1 WO 2017138156A1 JP 2016054190 W JP2016054190 W JP 2016054190W WO 2017138156 A1 WO2017138156 A1 WO 2017138156A1
Authority
WO
WIPO (PCT)
Prior art keywords
program
control
engineering tool
display area
time phase
Prior art date
Application number
PCT/JP2016/054190
Other languages
English (en)
French (fr)
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 PCT/JP2016/054190 priority Critical patent/WO2017138156A1/ja
Priority to CN201680003809.7A priority patent/CN107295810B/zh
Priority to JP2016567885A priority patent/JP6129444B1/ja
Priority to US15/529,131 priority patent/US10295981B2/en
Publication of WO2017138156A1 publication Critical patent/WO2017138156A1/ja

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/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0426Programming the control sequence
    • 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
    • G05B19/054Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/13Plc programming
    • G05B2219/13052Display of ladder diagram
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24034Model checker, to verify and debug control software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04803Split screen, i.e. subdividing the display area or the window area into separate subareas
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Definitions

  • the present invention relates to an engineering tool for creating a control program.
  • the operation check of the control program using the conventional engineering tool is performed by connecting the engineering tool to the actual control target device or simulator.
  • the operation confirmation is generally performed by a method in which a control program to be confirmed is executed and the user monitors and confirms the state.
  • the operation confirmation is performed by setting the initial value of the control program and the parameters at the time of execution by inputting and setting by the user.
  • the conventional method has a problem that it takes a lot of user operations from execution of the control program to confirmation.
  • Patent Document 1 An apparatus for confirming the operation of a control program using a model checking program has been proposed for the problem of the conventional method (see Patent Document 1).
  • the present invention has been made in view of the above, and an object of the present invention is to obtain an engineering tool that can easily input control specifications of a control target device.
  • the present invention is an engineering comprising a display area that is displayed on a display screen of a display device and that displays a control specification description expression, and a temporal operator assignment area.
  • the time phase operator assignment area is an area that is displayed in the display area and that gives a time phase operator to the program module of the control specification description expression.
  • the engineering tool according to the present invention has an effect that the control specification of the control target device can be easily input.
  • the figure which shows the structure of the control system with which the engineering tool which concerns on Embodiment 1 is provided.
  • the figure which shows an example of the display screen of the display apparatus of the engineering tool shown by FIG. The figure which shows an example of the ladder program displayed on the 1st display area of the display screen of the display apparatus of the engineering tool shown by FIG.
  • the figure which shows the process in which the 2nd program module of the ladder program shown by FIG. 3 is produced.
  • the figure which shows an example of the SFC program created with the engineering tool which concerns on Embodiment 1 The figure which shows the state transition model obtained by converting the output program source code of the SFC program shown in FIG.
  • FIG. 1 is a diagram illustrating a configuration of a control system provided with the engineering tool according to the first embodiment.
  • FIG. 2 is a diagram showing an example of a display screen of the display device for the engineering tool shown in FIG.
  • the control system 1 constitutes equipment in the FA (Factory Automation) field.
  • a plurality of control target devices 2, 3, 4 installed in the facility, and a plurality of control target devices 2. , 3 and 4, and an engineering tool 6 connected to the control device 5.
  • the control target devices 2, 3, and 4 are switches, adjustment valves, electromagnetic valves, motors, or pumps installed in the equipment, and are drive devices that perform operations.
  • the control system 1 includes three control target devices 2, 3, and 4. However, the control system 1 may include a number other than three control target devices 2, 3, and 4. , 4 may be provided.
  • the engineering tool 6 is a computer that executes a computer program.
  • the engineering tool 6 is connected to the control target devices 2, 3, 4 via the control device 5.
  • the engineering tool 6 generates an SFC (Sequential Function Chart) program SP that is a control program executed by the control device 5 and transmits it to the control device 5.
  • the control device 5 controls the control target devices 2, 3, and 4 by executing the SFC program SP.
  • the control device 5 is a programmable controller (JIS B 3502: 2011, programmable controllers (PLC)), but is not limited to a PLC.
  • the engineering tool 6 is also a device that executes an operation check of the created SFC program SP.
  • the engineering tool 6 includes an input device 61 that receives an operation input from a user, and a display device 62 that has a display screen 62 a shown in FIG. 2 that displays characters and images.
  • the engineering tool 6 includes a control creation program for creating the SFC program SP, a model checking program MP for executing an operation check of the SFC program SP, a storage device 63 for storing the created SFC program SP, and an SFC program SP And a calculation unit 10 that executes creation and operation check.
  • the control creation program, the SFC program SP, and the model checking program MP are computer programs that can be executed by the engineering tool 6 that is a computer, and are engineering tool programs.
  • the display device 62 displays a first display area 62a1 and a second display area 62a2 on the display screen 62a as shown in FIG. That is, the engineering tool 6 includes a first display area 62a1 displayed on the display screen 62a and a second display area 62a2 displayed on the display screen 62a by executing the control creation program.
  • the first display area 62a1 is a display area for displaying a ladder program RP which is a control specification description formula.
  • the ladder program RP is a ladder program written in a ladder (Ladder: LD) language.
  • the ladder language is a language defined by IEC (International Electrotechnical Commission) 61131-3 and JIS (Japanese Industrial Standards) B 3503: 2012.
  • the first display area 62a1 is displayed at the lower end of the display screen 62a, but is not limited to this.
  • the engineering tool 6 displays the ladder program RP as the control specification description formula, but the display as the control specification description formula is not limited to the ladder program RP.
  • the ladder program RP includes a bus line BL extending linearly in the vertical direction at the left end of the first display area 62a1 in FIG. 2, and the left and right lines in FIG. 2 that are connected to the bus line BL and intersect the bus line BL. And a plurality of program modules RPM extending in the direction.
  • the program module RPM prescribes the control specifications of the control target devices 2, 3, and 4.
  • the control specification defines the operation of the control target devices 2, 3, and 4.
  • the control specifications include the timing at which the controlled devices 2, 3, and 4 are always executed, the controlled devices 2, 3, and 4 are to be executed in the future, or the controlled devices 2, 3, and 4 are mutually operated. It shows the relationship.
  • the program module RPM indicates the operation of the devices 2, 3, and 4 and is arranged in the horizontal direction or vertical direction in FIG. 2 and the connection line L that connects the elements E or the elements E and the bus BL. With.
  • the program module RPM defines the control specifications of the control target devices 2, 3, and 4 according to the arrangement of the element E and the connection relationship of the connection lines L.
  • the second display area 62a2 is a display area for displaying the SFC program SP that controls the control target devices 2, 3, and 4. In the first embodiment, two second display areas 62a2 are displayed above the first display area 62a1 of the display screen 62a.
  • the present invention is not limited to this.
  • the SFC program SP includes a step S to which operations of the control target devices 2, 3, and 4 are attached, a transition TJ to which a transition condition between a plurality of steps S is attached, and a connection line LA.
  • the SFC program SP alternately arranges the step S and the transition TJ in the vertical direction, and connects the step S and the transition TJ by the connection line LA.
  • the SFC program SP executes the operation attached to each step S in order from the upper step S among the plurality of steps S, and is attached to the transition TJ connected to the step S executing the operation by the connection line LA. If the transition condition is satisfied, the operation attached to step S during operation execution is stopped.
  • the SFC program SP executes the operation attached to step S connected to the transition TJ that satisfies the transition condition by the connection line LA.
  • the calculation unit 10 includes a control specification editing unit 11 that is a first generation unit and a program editing unit 12 that is a second generation unit.
  • the calculation unit 10 includes a control specification description expression conversion unit 13 that is a first conversion unit, a state transition model conversion unit 14 that is a second conversion unit, and a model checking unit 15.
  • the program editing unit 12 creates the SFC program SP according to the operation input received by the input device 61 by executing the control creation program.
  • the program editing unit 12 creates the SFC program SP.
  • the program editing unit 12 is not limited to the SFC program SP, and may create a program in a ladder language or ST (Structured Text) language.
  • the ST language is a language defined by IEC 61131-3.
  • the program editing unit 12 displays the step S, the transition TJ, and the connection line LA received by the input device 61 in the second display area 62a2 of the display screen 62a of the display device 62.
  • the program editing unit 12 stores the created SFC program SP in the storage device 63.
  • the state transition model conversion unit 14 converts the SFC program SP into a state transition model JM that is a code that can be input to the model checking program MP.
  • the state transition model conversion unit 14 converts the output source code of the SFC program SP stored in the storage device 63 and displayed in the second display area 62a2 into a state transition model JM that can be input to the model checking program MP. .
  • the state transition model conversion unit 14 executes a program that converts the SFC program SP into a machine language or a code of a lower level than the SFC program SP, that is, a so-called compiler.
  • FIG. 3 is a diagram showing an example of a ladder program displayed in the first display area of the display screen of the display device of the engineering tool shown in FIG.
  • FIG. 4 is a diagram showing a process of creating the first program module of the ladder program shown in FIG.
  • FIG. 5 is a diagram showing a process of creating the second program module of the ladder program shown in FIG.
  • the control specification editor 11 creates each program module RPM of the ladder program RP corresponding to the operation input received by the input device 61 by executing the control creation program.
  • the control specification editing unit 11 displays the element E and the connection line L received by the input device 61 in the first display area 62a1 of the display screen 62a of the display device 62.
  • the first display area 62a1 includes a program display area 62b for displaying each program module RPM constituting the ladder program RP, and a control specification display area 62c for displaying control specifications.
  • the control specifications displayed in the control specification display area 62c are defined by the program module RPM displayed in the program display area 62b.
  • the program display area 62b and the control specification display area 62c have a one-to-one correspondence, and the corresponding ones are arranged in the vertical direction of the first display area 62a1.
  • each program display area 62b of the first display area 62a1 is configured by a plurality of cells C surrounded by thick dotted grid lines in FIG.
  • Each cell C displays the element E or the connection line L according to the operation input received by the input device 61.
  • the connection line L is also displayed at the boundary between the cells C.
  • the program module RPM displayed in the upper part of FIG. 3 is referred to as a first program module RPM1
  • the program module RPM displayed in the lower part of FIG. 3 is referred to as a second program module RPM2.
  • the program display area 62b that displays the first program module RPM1 displays “Y1”, “Y2”, and “NOT” connected in series from the leftmost cell C to the right cell C in order as the element E. Yes. Further, the cell C on the right side of the cell C displaying “NOT” as the element E of the program display area 62b displaying the first program module RPM1 receives the first time phase operator TO in the first program module RPM1. It is the 1st time phase operator provision area
  • the cell C1 is displayed in the first display area 62a1 and displays the first time phase operator TO, thereby giving the first time phase operator TO to the first program module RPM1.
  • the program display area 62b that displays the second program module RPM2 displays “Y1”, connection line L, and “Y10” that are connected in series from the leftmost cell C to the right cell C in order as the element E. .
  • the program display area 62b displaying the second program module RPM2 displays “Y2” in the cell C below the cell C displaying “Y1” as the element E. “Y2” as the element E is connected in parallel with “Y1” as the element E by the connection line L.
  • the cell C between the cell C displaying “Y1” as the element of the program display area 62b displaying the second program module RPM2 and the cell C displaying “Y10” as the element is the second program module.
  • This is a second time phase operator providing region for applying a second time phase operator TO different from the first time phase operator TO to the RPM 2.
  • the cell C, which is the second time phase operator provision region, is denoted by reference numeral C2 below.
  • the cell C2 is displayed in the first display area 62a1 and displays the second time phase operator TO, thereby giving the second time phase operator TO to the second program module RPM2.
  • the symbol TO1 is attached and the second time phase operation TO is indicated.
  • the symbol TO2 is attached.
  • the reference symbol TO is given.
  • the cells C, C1, and C2 constituting each program display area 62b of the first display area 62a1 are added to the element E and the connection line L by the operation input received by the input device 61, and the time phase operator TO. Is displayed.
  • the first time phase operator TO1 and the second time phase operator TO2 define the establishment of each element E of the ladder program RP over time.
  • the first temporal operator TO1 is “G” (“Y1” as the connected element E, “Y2” as the element E, and “NOT” as the element E are always established. Indicates Globally). That is, the first time phase operator TO1 indicates the operation of the control target devices 2, 3, and 4 that is always established, that is, the operation that the control target devices 2, 3, and 4 always execute.
  • the first program module RPM1 always indicates that “Y1” as the element E and “Y2” as the element E are not established simultaneously.
  • the second time phase operator TO2 is arranged on the left side of the second time phase operator TO2 until “Y10” as the element E arranged on the right side of the second time phase operator TO2 is established.
  • “U” indicating “Until” that satisfies “Y1” as the element E or “Y2” as the element E.
  • the second program module RPM2 indicates that “Y1” as the element E or “Y2” as the element E is established until “Y10” as the element E is established. That is, the second time phase operator TO2 indicates a timing relationship at which the operations of the control target devices 2, 3, and 4 are executed.
  • the engineering tool 6 uses “G” and “U” as the temporal operator TO, but is not limited thereto.
  • the engineering tool 6 “F” (Finally) indicating that an element will be established someday and “X” ( Next) may be used.
  • “F” as the time phase operator TO is a time phase operator indicating the operation of the control target devices 2, 3, 4 that will be established in the future, that is, the operation that the control target devices 2, 3, 4 will perform in the future.
  • “X” as the time phase operator TO is a time phase operator indicating a timing relationship at which the operations of the control target devices 2, 3, and 4 are executed.
  • the control specification editing unit 11 creates the first program module RPM1 and the second program module RPM2 as follows.
  • the control specification editing unit 11 displays the element E and the connection line L received by the input device 61 in the cell C configuring the first display area 62a1.
  • the control specification editing unit 11 inputs the time phase operators TO1 and TO2 to specific cells C1 and C2 among the cells C constituting the first display area 62a1 as follows.
  • the input device 61 accepts that one or more cells C to which the time phase operator TO is assigned are selected from the cells C constituting the first program module RPM1 and the second program module RPM2. 4 and 5 show one or more cells C to which the time phase operator TO is assigned by parallel oblique lines.
  • FIG. 4 and FIG. 5 a menu M for displaying a time phase operator TO that can be input is displayed next to the selected cells C1 and C2.
  • the control specification editing unit 11 selects the time phase calculation selected in the selected cells C1 and C2. Display child TOs.
  • “G” that is the first time phase operator TO1 is input to the specific cell C1 shown in FIG. 4 to create the first program module RPM1.
  • the second program module RPM2 is created by inputting the second time phase operator TO2 “U” to the specific cell C2 shown in FIG.
  • the control specification editing unit 11 generates an annunciator F for displaying results in a preset cell C among the cells C constituting the first program module RPM1 and the second program module RPM2.
  • the result display annunciator F indicates whether or not the SFC program SP satisfies the control specifications defined by the first program module RPM1 and the second program module RPM2.
  • the control specification editing unit 11 generates an annunciator F for displaying results in the rightmost cell C of the first program module RPM1 and the second program module RPM2, as shown in FIG.
  • the control specification editing unit 11 stores the created ladder program RP in the storage device 63.
  • the control specification editing unit 11 assigns the first time phase operator TO1 to the cell C1 and the second time phase operator TO2 to the cell C2. TO may be given to any cell C.
  • the control specification editing unit 11 assigns a time phase operator TO to an arbitrary cell C defined by the user among the plurality of cells C constituting each program module RPM1, RPM2.
  • the first time phase operator granting area C1 is an arbitrary cell C defined by the user among the plurality of cells C constituting the first program module RPM1
  • the second time phase operator granting area C2 Is an arbitrary cell C defined by the user among the plurality of cells C constituting the second program module RPM2.
  • the control specification editing unit 11 when the input device 61 receives an operation input for determining the ladder program RP displayed in the first display area 62a1, receives each program module RPM1, RPM1 of the ladder program RP.
  • the time phase operators TO1 and TO2 displayed on the RPM 2 are displayed in the first display area 62a1 in association with the program modules RPM1 and RPM2.
  • the control specification editing unit 11 displays the time phase operators TO1 and TO2 displayed in the program modules RPM and RPM2 on the left side of the program modules RPM1 and RPM2 in the first display area 62a1. .
  • the control specification description expression conversion unit 13 converts the first program module RPM1 and the second program module RPM2 of the ladder program RP into a mathematical expression NF that can be input to the model checking program MP.
  • the control specification description formula conversion unit 13 converts the program modules RPM1 and RPM2 of the ladder program RP stored in the storage device 63 and displayed in the first display area 62a1 into an equation NF that can be input to the model checking program MP. Convert.
  • the control specification description expression conversion unit 13 executes a program that converts the first program module RPM1 and the second program module RPM2 of the ladder program RP into a machine language or a code having a lower level than the ladder program RP, that is, a so-called compiler. To do.
  • control specification description expression conversion unit 13 converts the first program module RPM1 into an expression NF expressed by the following expression 1, and converts the second program module RPM2 into an expression NF expressed by the following expression 2. Convert.
  • the model checking unit 15 executes the model checking program MP stored in the storage device 63, and whether or not the SFC program SP created by the user satisfies the program modules RPM1 and RPM2 that define the control specifications of the ladder program RP. Determine whether.
  • the model checking unit 15 displays a determination result indicating whether or not the annunciator F of each of the program modules RPM1 and RPM2 in the first display area 62a1 is satisfied.
  • the engineering tool 6 uses NuSMV: a new symbolic model checker or SPIN model checker as the model checking program MP, but is not limited thereto.
  • the engineering tool 6 displays the first display area 62a1 and the second display area 62a2 on the display screen 62a of the display device 62 when an operation input for executing the control creation program is received from the input device 61. To do.
  • the engineering tool 6 displays the SFC program SP corresponding to the operation input received by the program editing unit 12 from the input device 61 in the second display area 62a2.
  • the engineering tool 6 stores the SFC program SP determined by the program editing unit 12 in the storage device 63 and
  • the transition model conversion unit 14 converts the SFC program SP into the state transition model JM.
  • the engineering tool 6 displays the ladder program RP corresponding to the operation input received from the input device 61 by the control specification editing unit 11 in the first display area 62a1.
  • the engineering tool 6 stores the ladder program RP determined by the control specification editing unit 11 in the storage device 63.
  • the control specification description expression conversion unit 13 converts each program module RPM1, RPM2 of the ladder program RP into an expression NF.
  • the engineering tool 6 causes the model checking unit 15 to convert the SFC program SP created by the user into the ladder program RP. It is determined whether each of the program modules RPM1 and RPM2 is satisfied. In the engineering tool 6, the model checking unit 15 displays the determination result on the annunciator F of the program modules RPM1 and RPM2.
  • FIG. 6 is a diagram illustrating a hardware configuration of the engineering tool according to the first embodiment.
  • the engineering tool 6 according to Embodiment 1 is a computer that executes a computer program on an OS (Operating System) 60.
  • a CPU (Central Processing Unit) 64, a RAM (Random Access Memory) 65, a ROM (Read Only Memory) 66, and a communication interface 67 are provided.
  • the CPU 64, RAM 65, ROM 66, storage device 63, input device 61, display device 62, and communication interface 67 are connected via the bus B.
  • control specification editing unit 11 The functions of the control specification editing unit 11, program editing unit 12, control specification description expression conversion unit 13, state transition model conversion unit 14, and model checking unit 15 of the arithmetic unit 10 are stored in the ROM 66 while the CPU 64 uses the RAM 65 as a work area. And it is implement
  • FIG. The program is realized by software, firmware, or a combination of software and firmware.
  • the program stored in the ROM 66 is BIOS (Basic Input Output System) or UEFI (Unified Extensible Firmware Interface), but the program stored in the ROM 66 is not limited to BIOS or UEFI.
  • the programs stored in the storage device 63 are an operating system program, a control creation program, an SFC program SP, and a model checking program MP.
  • the program stored in the storage device 63 is an operating system.
  • the present invention is not limited to the program, the control creation program, the SFC program SP, and the model checking program MP.
  • the storage device 63 is an SSD (Solid State Drive) or an HDD (Hard Disk Drive), but the storage device 63 is not limited to an SSD or an HDD.
  • the input device 61 receives an operation input from the user.
  • the input device 61 is a keyboard or a mouse, but the input device 61 is not limited to a keyboard or a mouse.
  • the display device 62 displays characters and images.
  • the display device 62 is exemplified by a liquid crystal display device.
  • the communication interface 67 communicates with the control device 5.
  • the engineering tool 6 is connected to a plurality of control target devices 2, 3, 4 by connecting the communication interface 67 to the control device 5.
  • FIG. 7 is a diagram illustrating an example of the SFC program created by the engineering tool according to the first embodiment.
  • FIG. 8 is a diagram showing a state transition model obtained by converting the output program source code of the SFC program shown in FIG.
  • FIG. 9 is a diagram showing an example of a ladder program used for checking the operation of the SFC program shown in FIG.
  • the engineering tool 6 creates the SFC program SP shown in FIG. 7 when the program editing unit 12 receives an operation input from the input device 61 and executes the control creation program.
  • step S4 the SFC program SP transitions to step S4.
  • the SFC program SP shown in FIG. 7 includes a transition TJ5 that always returns from step S3 to step S2 until transition TJ3 is established, and a transition TJ6 that always returns from step S4 to step S2 until transition TJ4 is established.
  • the state transition model conversion unit 14 converts the output program source code of the SFC program SP into the state transition model JM shown in FIG.
  • the engineering tool 6 creates the ladder program RP shown in FIG. 9 when the control specification editing unit 11 executes the operation input from the input device 61 and the control creation program.
  • the control specification description expression conversion unit 13 converts the ladder program RP into an expression NF shown in Expression 3 below.
  • the engineering tool 6 When the engineering tool 6 receives an operation input for inspection execution, the engineering tool 6 displays on the annunciator F of the ladder program shown in FIG. 9 that the SFC program SP satisfies the ladder program RP.
  • the engineering tool 6 includes the first time phase operator TO1 in the first program module RPM1 of the ladder program RP in the first display area 62a1 that displays the ladder program RP that is a control specification description expression.
  • the cell C1 which is the 1st time phase operator provision area
  • the engineering tool 6 provides the second program module RPM2 with a cell C2, which is a second time phase operator assigning region that gives a second time phase operator TO2 different from the first time phase operator TO1. Prepare. For this reason, the engineering tool 6 can give various time phase operators TO to the ladder program RP which is a control specification description expression.
  • the ladder program RP which is a control specification description formula, defines the control specifications of the control target devices 2, 3, and 4.
  • the engineering tool 6 can easily input the control specifications of the devices 2, 3, and 4 using the ladder program RP that is a control specification description expression that can be assigned the temporal operator TO. . Therefore, the engineering tool 6 can easily check the operation of the SFC program SP.
  • the engineering tool 6 includes the control specification editing unit 11 that creates the first program module RPM1 and the second program module RPM2, and the first program module RPM1 and the second program module RPM2. And a control specification description expression conversion unit 13 that converts the numerical expression NF that can be input to the model checking program MP. For this reason, the engineering tool 6 can input the ladder program RP created using the control specification editing unit 11 into the model checking program MP without any special operation by the user. As a result, the engineering tool 6 can easily input the control specifications of the control target devices 2, 3, and 4 using the ladder program RP.
  • the engineering tool 6 can input the SFC program SP, which is a control program for controlling the control target devices 2, 3, and 4, and the SFC program SP into the model checking program MP. And a state transition model conversion unit 14 that converts the state transition model JM that is a code. As a result, the engineering tool 6 can input the SFC program SP created using the program editing unit 12 into the model checking program MP without any special operation by the user.
  • the engineering tool 6 is displayed on the program editing unit 12 that creates the SFC program SP that is a control program for controlling the control target devices 2, 3, and 4, and on the display screen 62 a of the display device 62. And a second display area 62a2 for displaying the SFC program SP.
  • the engineering tool 6 can create the SFC program SP while confirming the second display area 62a2.
  • the engineering tool 6 uses the ladder program RP as a control specification description formula.
  • the ladder program RP can convert the condition part into a logical expression, that is, a temporal operator on a one-to-one basis.
  • the engineering tool 6 can assign an arbitrary time phase operator TO to an arbitrary position in the program module RPM of the ladder program RP that is a control specification description formula, and the ladder program RP that is a control specification description formula can be assigned to the ladder program RP.
  • Various time phase operators TO can be assigned.
  • the configuration described in the above embodiment shows an example of the contents of the present invention, and can be combined with another known technique, and can be combined with other configurations without departing from the gist of the present invention. It is also possible to omit or change the part.
  • Control target device 6 Engineering tool, 11 Control specification editing section (first creation means), 12 Program editing section (second creation means), 13 Control specification description expression conversion section (first conversion) Means), 14 state transition model conversion unit (second conversion means), 62 display device, 62a display screen, 62a1 first display area, 62a2 second display area, RP ladder program (control specification description formula), RPM1 1st program module, RPM2 2nd program module, TO1 1st time phase operator, TO2 2nd time phase operator, C1 cell (first time phase operator grant area), C2 cell (2nd Time phase operator assignment area), SP SFC program (control program), NF formula, JM state transition model (code), MP model check Program.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)
  • Stored Programmes (AREA)

Abstract

エンジニアリングツールは、表示装置(62)の表示画面(62a)に表示され、かつラダープログラム(RP)を表示する表示領域(62a1)と、時相演算子付与領域であるセル(C1)と、を備える。時相演算子付与領域であるセル(C1)は、表示領域(62a1)に表示され、かつラダープログラム(RP)のプログラムモジュール(RPM1)に時相演算子(TO1)を付与する領域である。エンジニアリングツールは、制御仕様編集部と、制御仕様記述式変換部とを備える。制御仕様編集部は、プログラムモジュール(RPM1)を作成する。制御仕様記述式変換部は、プログラムモジュール(RPM1)をモデル検査プログラムに入力可能な数式に変換する。

Description

エンジニアリングツール
 本発明は、制御プログラムを作成するエンジニアリングツールに関する。
 従来のエンジニアリングツールを使った制御プログラムの動作確認は、実際の制御対象機器あるいはシミュレータにエンジニアリングツールを接続して行われる。動作確認は、確認したい制御プログラムを実行し、ユーザがその状態をモニタし確認するという手法により一般的に行われる。また、動作確認は、ユーザが入力し設定することにより制御プログラムの初期値の設定及び実行時のパラメータの設定を行っていた。
 上記従来方法は、制御プログラムの実行から確認まで、ユーザの操作が多く時間がかかる問題がある。また、上記方法は、網羅的な動作を確認するためには、ユーザが初期値の設定及び実行時のパラメータの設定をしておく必要があり、その初期値及びパラメータの作成に時間がかかっていた。
 上記従来方法の問題に対して、モデル検査プログラムを用いて制御プログラムの動作確認を行う装置が提案されている(特許文献1参照)。
特開平7-72787号公報
 しかしながら、特許文献1に示された装置は、制御対象機器が実行する動作及び実行しない動作を規定する制御仕様の入力方法が明らかではない。このため、特許文献1に示された装置は、モデル検査プログラムを用いた動作確認を行うためには制御仕様の入力に工夫が必要である。
 本発明は、上記に鑑みてなされたものであって、制御対象機器の制御仕様を容易に入力することができるエンジニアリングツールを得ることを目的とする。
 上述した課題を解決し、目的を達成するために、本発明は、表示装置の表示画面に表示され、かつ制御仕様記述式を表示する表示領域と、時相演算子付与領域と、を備えるエンジニアリングツールである。時相演算子付与領域は、表示領域に表示され、かつ制御仕様記述式のプログラムモジュールに時相演算子を付与する領域である。
 本発明に係るエンジニアリングツールは、制御対象機器の制御仕様を容易に入力することができるという効果を奏する。
実施の形態1に係るエンジニアリングツールが備えられる制御システムの構成を示す図 図1に示されたエンジニアリングツールの表示装置の表示画面の一例を示す図 図1に示されたエンジニアリングツールの表示装置の表示画面の第1の表示領域に表示されるラダープログラムの一例を示す図 図3に示されたラダープログラムの第1のプログラムモジュールを作成する過程を示す図 図3に示されたラダープログラムの第2のプログラムモジュールを作成する過程を示す図 実施の形態1に係るエンジニアリングツールのハードウェア構成を示す図 実施の形態1に係るエンジニアリングツールにより作成されたSFCプログラムの一例を示す図 図7に示されたSFCプログラムの出力プログラムソースコードを変換して得た状態遷移モデルを示す図 図7に示されたSFCプログラムの動作確認に用いられるラダープログラムの一例を示す図
 以下に、本発明の実施の形態に係るエンジニアリングツールを図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。
実施の形態1.
 図1は、実施の形態1に係るエンジニアリングツールが備えられる制御システムの構成を示す図である。図2は、図1に示されたエンジニアリングツールの表示装置の表示画面の一例を示す図である。制御システム1は、FA(Factory Automation)分野の設備を構成するものであり、図1に示すように、設備に設置される複数の制御対象機器2,3,4と、複数の制御対象機器2,3,4に接続した制御装置5と、制御装置5に接続したエンジニアリングツール6と、を備える。制御対象機器2,3,4は、設備に設置されるスイッチ、調整弁、電磁弁、モータ、又はポンプであり、動作を実施する駆動機器である。実施の形態1において、制御システム1は、制御対象機器2,3,4を三つ備えるが、制御対象機器2,3,4を三つ以外の数備えても良く、制御対象機器2,3,4を少なくとも一つ以上備えれば良い。
 エンジニアリングツール6は、コンピュータプログラムを実行するコンピュータである。エンジニアリングツール6は、制御装置5を介して、制御対象機器2,3,4に接続している。エンジニアリングツール6は、制御装置5で実行される制御プログラムであるSFC(Sequential Function Chart)プログラムSPを生成して、制御装置5に送信する。制御装置5は、SFCプログラムSPを実行することにより、制御対象機器2,3,4を制御する。実施の形態1において、制御装置5は、プログラマブルコントローラ(JIS B 3502:2011、programmable controllers(PLC))であるが、PLCに限定されない。
 エンジニアリングツール6は、作成したSFCプログラムSPの動作確認を実行する装置でもある。エンジニアリングツール6は、図1に示すように、ユーザからの操作入力を受け付ける入力装置61と、文字及び画像を表示する図2に示す表示画面62aを有する表示装置62と、を備える。エンジニアリングツール6は、SFCプログラムSPを作成するための制御作成プログラム、SFCプログラムSPの動作確認を実行するためのモデル検査プログラムMP及び作成したSFCプログラムSPを記憶する記憶装置63と、SFCプログラムSPの作成及び動作確認を実行する演算部10とを備える。
 制御作成プログラム、SFCプログラムSP及びモデル検査プログラムMPは、コンピュータであるエンジニアリングツール6が実行可能なコンピュータプログラムであり、エンジニアリングツールプログラムである。表示装置62は、エンジニアリングツール6が制御作成プログラムを実行すると、図2に示すように、表示画面62aに第1の表示領域62a1と、第2の表示領域62a2とが表示される。即ち、エンジニアリングツール6は、制御作成プログラムを実行することにより、表示画面62aに表示された第1の表示領域62a1と、表示画面62aに表示された第2の表示領域62a2とを備えることとなる。第1の表示領域62a1は、制御仕様記述式であるラダープログラムRPを表示する表示領域である。ラダープログラムRPは、ラダー(Ladder:LD)言語で記述されたラダープログラムである。ラダー言語は、IEC(国際電機標準会議) 61131-3及びJIS(日本工業規格) B 3503:2012により規定された言語である。実施の形態1において、第1の表示領域62a1は、表示画面62aの下端部に表示されるが、これに限定されない。実施の形態1において、エンジニアリングツール6は、制御仕様記述式としてラダープログラムRPを表示するが、制御仕様記述式として表示するのはラダープログラムRPに限定されない。
 実施の形態1において、ラダープログラムRPは、第1の表示領域62a1の図2中左端に上下方向に直線状に延びた母線BLと、母線BLに連なりかつ母線BLに交差する図2中の左右方向に延びた複数の複数のプログラムモジュールRPMとを備える。実施の形態1において、プログラムモジュールRPMは、制御対象機器2,3,4の制御仕様を規定するものである。制御仕様とは、制御対象機器2,3,4の動作を規定するものである。制御仕様は、制御対象機器2,3,4が常に実行する動作、制御対象機器2,3,4が将来実行する動作、又は制御対象機器2,3,4相互の動作が実行されるタイミングの関係を示すものである。
 プログラムモジュールRPMは、制御対象機器2,3,4の動作を示しかつ図2中の左右方向又は上下方向に並べられる要素Eと、要素E同士又は要素Eと母線BLとを接続する接続線Lとを備える。プログラムモジュールRPMは、要素Eの配置及び接続線Lの接続関係により制御対象機器2,3,4の制御仕様を規定する。
 第2の表示領域62a2は、制御対象機器2,3,4を制御するSFCプログラムSPを表示する表示領域である。実施の形態1において、第2の表示領域62a2は、表示画面62aの第1の表示領域62a1の上方に二つ表示されるが、これに限定されない。
 実施の形態1において、SFCプログラムSPは、制御対象機器2,3,4の動作が付属するステップSと、複数のステップS間の遷移条件が付属するトランジションTJと、接続線LAとを備える。SFCプログラムSPは、ステップSと、トランジションTJとを上下方向に交互に配置し、接続線LAによりステップSとトランジションTJとを接続する。SFCプログラムSPは、複数のステップSのうち上方のステップSから順に、それぞれのステップSに付属した動作を実行し、動作を実行しているステップSに接続線LAにより接続したトランジションTJに付属した遷移条件を満たすと、動作実行中のステップSに付属した動作を停止する。SFCプログラムSPは、遷移条件を満たしたトランジションTJに接続線LAにより接続したステップSに付属した動作を実行する。
 演算部10は、図1に示すように、第1の作成手段である制御仕様編集部11と、第2の作成手段であるプログラム編集部12とを備える。演算部10は、第1の変換手段である制御仕様記述式変換部13と、第2の変換手段である状態遷移モデル変換部14と、モデル検査部15とを備える。
 プログラム編集部12は、制御作成プログラムを実行することにより、入力装置61が受け付けた操作入力に応じたSFCプログラムSPを作成する。実施の形態1において、プログラム編集部12は、SFCプログラムSPを作成するが、SFCプログラムSPに限定されることなく、ラダー言語又はST(Structured Text)言語によりプログラムを作成しても良い。ST言語は、IEC 61131-3により規定された言語である。プログラム編集部12は、表示装置62の表示画面62aの第2の表示領域62a2に、入力装置61が受け付けたステップS、トランジションTJ及び接続線LAを表示する。プログラム編集部12は、第2の表示領域62a2に表示されたSFCプログラムSPを決定する操作入力を入力装置61が受け付けると、作成したSFCプログラムSPを記憶装置63に記憶する。
 状態遷移モデル変換部14は、SFCプログラムSPをモデル検査プログラムMPに入力可能なコードである状態遷移モデルJMに変換するものである。状態遷移モデル変換部14は、記憶装置63に記憶されかつ第2の表示領域62a2に表示されたSFCプログラムSPの出力ソースコードをモデル検査プログラムMPに入力することのできる状態遷移モデルJMに変換する。状態遷移モデル変換部14は、SFCプログラムSPを機械語又はSFCプログラムSPよりも低いレベルのコードに変換するプログラム、即ち、所謂コンパイラを実行する。
 図3は、図1に示されたエンジニアリングツールの表示装置の表示画面の第1の表示領域に表示されるラダープログラムの一例を示す図である。図4は、図3に示されたラダープログラムの第1のプログラムモジュールを作成する過程を示す図である。図5は、図3に示されたラダープログラムの第2のプログラムモジュールを作成する過程を示す図である。
 制御仕様編集部11は、制御作成プログラムを実行することにより、入力装置61が受け付けた操作入力に応じたラダープログラムRPの各プログラムモジュールRPMを作成する。制御仕様編集部11は、表示装置62の表示画面62aの第1の表示領域62a1に、入力装置61が受け付けた要素E及び接続線Lを表示する。
 第1の表示領域62a1は、図3に示すように、ラダープログラムRPを構成する各プログラムモジュールRPMを表示するプログラム表示領域62bと、制御仕様を表示する制御仕様表示領域62cとを備える。制御仕様表示領域62cが表示する制御仕様は、プログラム表示領域62bが表示するプログラムモジュールRPMにより規定されたものである。プログラム表示領域62bと制御仕様表示領域62cとは、1対1で対応し、対応するもの同士が第1の表示領域62a1の上下方向に並べられる。実施の形態1において、第1の表示領域62a1の各プログラム表示領域62bは、図3中に格子状の太い点線で囲まれた複数のセルCにより構成される。各セルCは、入力装置61が受け付けた操作入力により要素E又は接続線Lを表示する。接続線Lは、セルC同士の境界にも表示される。以下、図3の上方に表示されたプログラムモジュールRPMを第1のプログラムモジュールRPM1と記し、図3の下方に表示されたプログラムモジュールRPMを第2のプログラムモジュールRPM2と記す。
 第1のプログラムモジュールRPM1を表示するプログラム表示領域62bは、要素Eとして、左端のセルCから右側のセルCに順に互いに直列に接続した「Y1」、「Y2」及び「NOT」を表示している。また、第1のプログラムモジュールRPM1を表示するプログラム表示領域62bの要素Eとして「NOT」を表示したセルCの右側のセルCは、第1のプログラムモジュールRPM1に第1の時相演算子TOを付与する第1の時相演算子付与領域である。第1の時相演算子付与領域であるセルCを、以下、符号C1で示す。セルC1は、第1の表示領域62a1に表示され、第1の時相演算子TOを表示することで、第1のプログラムモジュールRPM1に第1の時相演算子TOを付与する。
 第2のプログラムモジュールRPM2を表示するプログラム表示領域62bは、要素Eとして、左端のセルCから右側セルCに順に互いに直列に接続した「Y1」、接続線L及び「Y10」を表示している。第2のプログラムモジュールRPM2を表示するプログラム表示領域62bは、要素Eとして「Y1」を表示したセルCの下方のセルCに「Y2」を表示している。要素Eとしての「Y2」は、接続線Lにより要素Eとしての「Y1」と並列に接続している。
 また、第2のプログラムモジュールRPM2を表示するプログラム表示領域62bの要素として「Y1」を表示したセルCと要素として「Y10」を表示したセルCとの間のセルCは、第2のプログラムモジュールRPM2に第1の時相演算子TOと異なる第2の時相演算子TOを付与する第2の時相演算子付与領域である。第2の時相演算子付与領域であるセルCを、以下、符号C2で示す。セルC2は、第1の表示領域62a1に表示され、第2の時相演算子TOを表示することで、第2のプログラムモジュールRPM2に第2の時相演算子TOを付与する。以下、第1の時相演算子TOと第2の時相演算子TOとのうち第1の時相演算子TOを区別して示す場合には、符号TO1を付し、第2の時相演算子TOを区別して示す場合には、符号TO2を付す。第1の時相演算子TOと第2の時相演算子TOとを区別しない場合には、符号TOを付す。このように、第1の表示領域62a1の各プログラム表示領域62bを構成するセルC,C1,C2は、入力装置61が受け付けた操作入力により要素E及び接続線Lに加え、時相演算子TOを表示する。
 第1の時相演算子TO1及び第2の時相演算子TO2は、ラダープログラムRPの各要素Eの成立を時間経過とともに規定するものである。実施の形態1において、第1の時相演算子TO1は、接続された要素Eとしての「Y1」、要素Eとしての「Y2」及び要素Eとしての「NOT」が常に成立する「G」(Globallyを示す)である。即ち、第1の時相演算子TO1は、常時成立する制御対象機器2,3,4の動作、即ち、制御対象機器2,3,4が常に実行する動作を示している。
 実施の形態1において、第1のプログラムモジュールRPM1は、常に、要素Eとしての「Y1」と要素Eとしての「Y2」とが同時に成立することがないことを示す。第2の時相演算子TO2は、第2の時相演算子TO2の右側に配置された要素Eとしての「Y10」が成立するまでは、第2の時相演算子TO2の左側に配置された要素Eとしての「Y1」又は要素Eとしての「Y2」が成立する「U」(Untilを示す)である。第2のプログラムモジュールRPM2は、要素Eとしての「Y10」が成立するまでは、要素Eとしての「Y1」又は要素Eとしての「Y2」が成立することを示す。即ち、第2の時相演算子TO2は、制御対象機器2,3,4相互の動作が実行されるタイミングの関係を示している。
 実施の形態1において、エンジニアリングツール6は、時相演算子TOとして、「G」及び「U」を用いたが、これらに限定されない。エンジニアリングツール6は、時相演算子TOとして「G」及び「U」以外に、いつか要素が成立することを示す「F」(Finally)及び次の瞬間要素が成立することを示す「X」(Next)を用いても良い。時相演算子TOとしての「F」は、将来成立する制御対象機器2,3,4の動作、即ち、制御対象機器2,3,4が将来実行する動作を示す時相演算子である。時相演算子TOとしての「X」は、制御対象機器2,3,4の動作が実行されるタイミングの関係を示す時相演算子である。
 制御仕様編集部11は、以下のように、第1のプログラムモジュールRPM1及び第2のプログラムモジュールRPM2を作成する。制御仕様編集部11は、第1の表示領域62a1を構成するセルCに入力装置61が受け付けた要素E及び接続線Lを表示する。制御仕様編集部11は、第1の表示領域62a1を構成するセルCのうち特定のセルC1,C2に時相演算子TO1,TO2を次のように入力する。入力装置61が、第1のプログラムモジュールRPM1及び第2のプログラムモジュールRPM2を構成するセルCのうち時相演算子TOを付与する一以上のセルCが選択されたことを受け付ける。図4及び図5は、時相演算子TOを付与する一以上のセルCを平行斜線で示す。そして、入力装置61が、時相演算子TOを付与する一以上のセルCのうち太い点線で囲む特定のセルC1,C2に時相演算子TOを入力することを受け付けると、図4及び図5に示すように、選択されたセルC1,C2の隣に入力可能な時相演算子TOを表示するメニューMを表示する。制御仕様編集部11は、入力装置61がメニューMに表示された時相演算子TOのうち任意の一つが選択されたことを受け付けると、選択されたセルC1,C2に選択された時相演算子TOを表示する。
 実施の形態1において、図4に示された特定のセルC1に第1の時相演算子TO1である「G」が入力されて、第1のプログラムモジュールRPM1が作成される。図5に示された特定のセルC2に第2の時相演算子TO2である「U」が入力されて、第2のプログラムモジュールRPM2が作成される。
 制御仕様編集部11は、第1のプログラムモジュールRPM1及び第2のプログラムモジュールRPM2を構成するセルCのうち予め設定されたセルCに結果表示用のアナンシエータFを生成する。結果表示用のアナンシエータFは、第1のプログラムモジュールRPM1及び第2のプログラムモジュールRPM2が規定した制御仕様をSFCプログラムSPが満たすか否かを示すものである。実施の形態1において、制御仕様編集部11は、図2に示すように、第1のプログラムモジュールRPM1及び第2のプログラムモジュールRPM2の右端のセルCに結果表示用のアナンシエータFを生成する。制御仕様編集部11は、第1の表示領域62a1に表示されたラダープログラムRPを決定する操作入力を入力装置61が受け付けると、作成したラダープログラムRPを記憶装置63に記憶する。なお、実施の形態1において、制御仕様編集部11は、第1の時相演算子TO1をセルC1に付与し、第2の時相演算子TO2をセルC2に付与したが、時相演算子TOを任意のセルCに付与しても良い。制御仕様編集部11は、各プログラムモジュールRPM1,RPM2を構成する複数のセルCのうちユーザが定めた任意のセルCに時相演算子TOを付与する。即ち、第1の時相演算子付与領域C1は、第1のプログラムモジュールRPM1を構成する複数のセルCのうちユーザが定めた任意のセルCであり、第2の時相演算子付与領域C2は、第2のプログラムモジュールRPM2を構成する複数のセルCのうちユーザが定めた任意のセルCである。
 また、実施の形態1において、制御仕様編集部11は、第1の表示領域62a1に表示されたラダープログラムRPを決定する操作入力を入力装置61が受け付けると、ラダープログラムRPの各プログラムモジュールRPM1,RPM2に表示された各時相演算子TO1,TO2を、各プログラムモジュールRPM1,RPM2と対応させて第1の表示領域62a1に表示する。実施の形態1において、制御仕様編集部11は、第1の表示領域62a1の各プログラムモジュールRPM1,RPM2の左側に各プログラムモジュールRPM,RPM2に表示された各時相演算子TO1,TO2を表示する。
 制御仕様記述式変換部13は、ラダープログラムRPの第1のプログラムモジュールRPM1及び第2のプログラムモジュールRPM2をモデル検査プログラムMPに入力可能な数式NFに変換するものである。制御仕様記述式変換部13は、記憶装置63に記憶されかつ第1の表示領域62a1に表示されたラダープログラムRPの各プログラムモジュールRPM1,RPM2をモデル検査プログラムMPに入力することのできる数式NFに変換する。制御仕様記述式変換部13は、ラダープログラムRPの第1のプログラムモジュールRPM1及び第2のプログラムモジュールRPM2を機械語又はラダープログラムRPよりも低いレベルのコードに変換するプログラム、即ち、所謂コンパイラを実行する。
 実施の形態1において、制御仕様記述式変換部13は、第1のプログラムモジュールRPM1を以下の式1で示す数式NFに変換し、第2のプログラムモジュールRPM2を以下の式2で示す数式NFに変換する。
 G(NOT(Y1 AND Y2)・・・式1
 (Y1 OR Y2)U(Y10)・・・式2
 モデル検査部15は、記憶装置63に記憶されたモデル検査プログラムMPを実行して、ユーザが作成したSFCプログラムSPがラダープログラムRPの制御仕様を規定する各プログラムモジュールRPM1,RPM2を満たしているか否かを判定する。モデル検査部15は、第1の表示領域62a1の各プログラムモジュールRPM1,RPM2のアナンシエータFに満たしているか否かを示す判定結果を表示する。エンジニアリングツール6は、モデル検査プログラムMPとして、NuSMV: a new symbolic model checker、又はSPIN model checkerを用いるが、これらに限定されない。
 実施の形態1に係るエンジニアリングツール6は、入力装置61から制御作成プログラムを実行する操作入力を受け付けると、表示装置62の表示画面62aに第1の表示領域62a1及び第2の表示領域62a2を表示する。エンジニアリングツール6は、プログラム編集部12が第2の表示領域62a2に入力装置61から受け付けた操作入力に応じたSFCプログラムSPを表示する。エンジニアリングツール6は、第2の表示領域62a2に表示したSFCプログラムSPを決定する操作入力を入力装置61が受け付けると、プログラム編集部12が決定したSFCプログラムSPを記憶装置63に記憶するとともに、状態遷移モデル変換部14がSFCプログラムSPを状態遷移モデルJMに変換する。
 エンジニアリングツール6は、制御仕様編集部11が第1の表示領域62a1に入力装置61から受け付けた操作入力に応じたラダープログラムRPを表示する。エンジニアリングツール6は、第1の表示領域62a1に表示したラダープログラムRPを決定する操作入力を入力装置61が受け付けると、制御仕様編集部11が決定したラダープログラムRPを記憶装置63に記憶するとともに、制御仕様記述式変換部13がラダープログラムRPの各プログラムモジュールRPM1,RPM2を数式NFに変換する。
 エンジニアリングツール6は、図2に示すSFCプログラムSPの動作確認を実行する検査実行領域100の操作入力を入力装置61が受け付けると、モデル検査部15が、ユーザが作成したSFCプログラムSPがラダープログラムRPの各プログラムモジュールRPM1,RPM2を満たしているか否かを判定する。エンジニアリングツール6は、モデル検査部15がプログラムモジュールRPM1,RPM2のアナンシエータFに判定結果を表示する。
 図6は、実施の形態1に係るエンジニアリングツールのハードウェア構成を示す図である。実施の形態1に係るエンジニアリングツール6は、OS(Operating System)60上でコンピュータプログラムを実行するコンピュータであって、図6に示すように、入力装置61と、表示装置62と、記憶装置63とに加え、CPU(Central Processing Unit)64と、RAM(Random Access Memory)65と、ROM(Read Only Memory)66と、通信インタフェース67と、を備える。CPU64、RAM65、ROM66、記憶装置63、入力装置61、表示装置62及び通信インタフェース67は、バスBを介して接続されている。
 演算部10の制御仕様編集部11、プログラム編集部12、制御仕様記述式変換部13、状態遷移モデル変換部14及びモデル検査部15の機能は、CPU64がRAM65を作業領域として使用しながら、ROM66及び記憶装置63に記憶されているプログラムを実行することにより実現される。プログラムは、ソフトウェア、ファームウェア、又はソフトウェアとファームウェアとの組み合わせにより実現される。ROM66に記憶されているプログラムは、BIOS(Basic Input Output System)又はUEFI(Unified Extensible Firmware Interface)であるが、ROM66に記憶されているプログラムは、BIOS又はUEFIに限定されない。実施の形態1において、記憶装置63に記憶されているプログラムは、オペレーティングシステムプログラム、制御作成プログラム、SFCプログラムSP及びモデル検査プログラムMPであるが、記憶装置63に記憶されているプログラムは、オペレーティングシステムプログラム、制御作成プログラム、SFCプログラムSP及びモデル検査プログラムMPに限定されない。実施の形態1において、記憶装置63は、SSD(Solid State Drive)又はHDD(Hard Disk Drive)であるが、記憶装置63は、SSD又はHDDに限定されない。
 入力装置61は、ユーザからの操作入力を受け付ける。実施の形態1において、入力装置61は、キーボード又はマウスであるが、入力装置61は、キーボード又はマウスに限定されない。表示装置62は、文字及び画像を表示する。実施の形態1において、表示装置62は、液晶表示装置が例示される。通信インタフェース67は、制御装置5と通信を行う。エンジニアリングツール6は、通信インタフェース67が制御装置5に接続されることで、複数の制御対象機器2,3,4に接続している。
 次に、実施の形態1に係るエンジニアリングツール6の動作の一例を、エンジニアリングツール6によって作成されたSFCプログラムSPの一例を用いて説明する。図7は、実施の形態1に係るエンジニアリングツールにより作成されたSFCプログラムの一例を示す図である。図8は、図7に示されたSFCプログラムの出力プログラムソースコードを変換して得た状態遷移モデルを示す図である。図9は、図7に示されたSFCプログラムの動作確認に用いられるラダープログラムの一例を示す図である。
 エンジニアリングツール6は、プログラム編集部12が入力装置61からの操作入力を受け付け及び制御作成プログラムを実行することにより図7に示されたSFCプログラムSPが作成される。図7に示されたSFCプログラムSPは、数「000」から数を「1」ずつ増加させ、数「999」になると終了するプログラムであり、初期値として「1」の位の数を示すD0=0とし、「10」の位の数を示すD1=0とし、「100」の位の数を示すD2=0とするステップS1と、ステップS1から常にステップS2に遷移するトランジションTJ1とを備える。SFCプログラムSPは、ステップS2では、D0=9を規定するトランジションTJ2が成立するまで、D0を1つ増加させ、D0=9を規定するトランジションTJ2が成立すると、ステップS3に遷移する。
 SFCプログラムSPは、ステップS3では、D1=9を規定するトランジションTJ3が成立するまで、D0=0とし、D1を1つ増加させてステップS2に戻り、トランジションTJ3が成立するまで、ステップS2及びステップS3を繰り返す。SFCプログラムSPは、D1=9を規定するトランジションTJ3が成立すると、ステップS4に遷移する。SFCプログラムSPは、ステップS4では、D2=9を規定するトランジションTJ4が成立するまで、D2を1つ増加させてステップS2に戻り、トランジションTJ4が成立するまで、ステップS2、ステップS3及びステップS4を繰り返す。SFCプログラムSPは、D2=9を規定するトランジションTJ4が成立すると、プログラムを終了する。また、図7に示すSFCプログラムSPは、トランジションTJ3が成立するまでステップS3からステップS2に常時戻るトランジションTJ5と、トランジションTJ4が成立するまでステップS4からステップS2に常時戻るトランジションTJ6とを備える。
 エンジニアリングツール6は、図7に示されたSFCプログラムSPが決定されると、状態遷移モデル変換部14が、SFCプログラムSPの出力プログラムソースコードを図8に示す状態遷移モデルJMに変換する。
 エンジニアリングツール6は、制御仕様編集部11が入力装置61からの操作入力及び制御作成プログラムを実行することにより、図9に示されたラダープログラムRPが作成される。図9に示されたラダープログラムRPは、いずれ数「555」となることを規定する、即ち、D0=5、D1=5及びD2=5が成立することを規定するプログラムモジュールのみを備える。
 エンジニアリングツール6は、図9に示されたラダープログラムRPが決定されると、制御仕様記述式変換部13が、ラダープログラムRPを以下の式3に示す数式NFに変換する。
 F(D0=5&D1=5&D2=5)・・・式3
 エンジニアリングツール6は、検査実行の操作入力を受け付けると、図9に示されたラダープログラムのアナンシエータFにSFCプログラムSPがラダープログラムRPを満たすことを表示する。
 実施の形態1に係るエンジニアリングツール6は、制御仕様記述式であるラダープログラムRPを表示する第1の表示領域62a1にラダープログラムRPの第1のプログラムモジュールRPM1に第1の時相演算子TO1を付与する第1の時相演算子付与領域であるセルC1を備える。また、エンジニアリングツール6は、第2のプログラムモジュールRPM2に第1の時相演算子TO1と異なる第2の時相演算子TO2を付与する第2の時相演算子付与領域であるセルC2とを備える。このため、エンジニアリングツール6は、制御仕様記述式であるラダープログラムRPに種々の時相演算子TOを付与することができる。
 また、エンジニアリングツール6は、制御仕様記述式であるラダープログラムRPが制御対象機器2,3,4の制御仕様を規定する。その結果、エンジニアリングツール6は、時相演算子TOを付与することができる制御仕様記述式であるラダープログラムRPを用いて制御対象機器2,3,4の制御仕様を容易に入力することができる。よって、エンジニアリングツール6は、SFCプログラムSPの動作確認を容易に行うことができる。
 また、実施の形態1に係るエンジニアリングツール6は、第1のプログラムモジュールRPM1及び第2のプログラムモジュールRPM2を作成する制御仕様編集部11と、第1のプログラムモジュールRPM1及び第2のプログラムモジュールRPM2をモデル検査プログラムMPに入力可能な数式NFに変換する制御仕様記述式変換部13とを備える。このため、エンジニアリングツール6は、制御仕様編集部11を用いて作成したラダープログラムRPを、ユーザが特別な操作を行うことなく、モデル検査プログラムMPに入力することができる。その結果、エンジニアリングツール6は、ラダープログラムRPを用いて制御対象機器2,3,4の制御仕様を容易に入力することができる。
 実施の形態1に係るエンジニアリングツール6は、制御対象機器2,3,4を制御する制御プログラムであるSFCプログラムSPを作成するプログラム編集部12と、SFCプログラムSPをモデル検査プログラムMPに入力可能なコードである状態遷移モデルJMに変換する状態遷移モデル変換部14とを備える。その結果、エンジニアリングツール6は、プログラム編集部12を用いて作成したSFCプログラムSPを、ユーザが特別な操作を行うことなく、モデル検査プログラムMPに入力することができる。
 また、実施の形態1に係るエンジニアリングツール6は、制御対象機器2,3,4を制御する制御プログラムであるSFCプログラムSPを作成するプログラム編集部12と、表示装置62の表示画面62aに表示されたSFCプログラムSPを表示する第2の表示領域62a2とを備える。その結果、エンジニアリングツール6は、第2の表示領域62a2を確認しながらSFCプログラムSPを作成することができる。
 また、実施の形態1に係るエンジニアリングツール6は、制御仕様記述式としてラダープログラムRPを用いている。ラダープログラムRPは、条件部を論理式即ち時相演算子に1対1で変換することができる。その結果、エンジニアリングツール6は、制御仕様記述式であるラダープログラムRPのプログラムモジュールRPMの任意の位置に任意の時相演算子TOを付与することができ、制御仕様記述式であるラダープログラムRPに種々の時相演算子TOを付与することができる。
 以上の実施の形態に示した構成は、本発明の内容の一例を示すものであり、別の公知の技術と組み合わせることも可能であるし、本発明の要旨を逸脱しない範囲で、構成の一部を省略、変更することも可能である。
 2,3,4 制御対象機器、6 エンジニアリングツール、11 制御仕様編集部(第1の作成手段)、12 プログラム編集部(第2の作成手段)、13 制御仕様記述式変換部(第1の変換手段)、14 状態遷移モデル変換部(第2の変換手段)、62 表示装置、62a 表示画面、62a1 第1の表示領域、62a2 第2の表示領域、RP ラダープログラム(制御仕様記述式)、RPM1 第1のプログラムモジュール、RPM2 第2のプログラムモジュール、TO1 第1の時相演算子、TO2 第2の時相演算子、C1 セル(第1の時相演算子付与領域)、C2 セル(第2の時相演算子付与領域)、SP SFCプログラム(制御プログラム)、NF 数式、JM 状態遷移モデル(コード)、MP モデル検査プログラム。

Claims (4)

  1.  表示装置の表示画面に表示され、かつ制御仕様記述式を表示する表示領域と、
     前記表示領域に表示され、かつ前記制御仕様記述式のプログラムモジュールに時相演算子を付与する時相演算子付与領域と、
     を備えることを特徴とするエンジニアリングツール。
  2.  前記プログラムモジュールを作成する第1の作成手段と、
     前記プログラムモジュールをモデル検査プログラムに入力可能な数式に変換する第1の変換手段と、
     を備えることを特徴とする請求項1に記載のエンジニアリングツール。
  3.  制御対象機器を制御する制御プログラムを作成する第2の作成手段と、
     前記表示装置の前記表示画面に表示され、かつ前記制御プログラムを表示する第2の表示領域と、
     前記制御プログラムを前記モデル検査プログラムに入力可能なコードに変換する第2の変換手段と、
     を備えることを特徴とする請求項2に記載のエンジニアリングツール。
  4.  前記プログラムモジュールは、前記制御対象機器の制御仕様を規定する
     ことを特徴とする請求項3に記載のエンジアリングツール。
PCT/JP2016/054190 2016-02-12 2016-02-12 エンジニアリングツール WO2017138156A1 (ja)

Priority Applications (4)

Application Number Priority Date Filing Date Title
PCT/JP2016/054190 WO2017138156A1 (ja) 2016-02-12 2016-02-12 エンジニアリングツール
CN201680003809.7A CN107295810B (zh) 2016-02-12 2016-02-12 工程设计工具
JP2016567885A JP6129444B1 (ja) 2016-02-12 2016-02-12 エンジニアリングツール
US15/529,131 US10295981B2 (en) 2016-02-12 2016-02-12 Engineering tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2016/054190 WO2017138156A1 (ja) 2016-02-12 2016-02-12 エンジニアリングツール

Publications (1)

Publication Number Publication Date
WO2017138156A1 true WO2017138156A1 (ja) 2017-08-17

Family

ID=58714675

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2016/054190 WO2017138156A1 (ja) 2016-02-12 2016-02-12 エンジニアリングツール

Country Status (4)

Country Link
US (1) US10295981B2 (ja)
JP (1) JP6129444B1 (ja)
CN (1) CN107295810B (ja)
WO (1) WO2017138156A1 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022519776A (ja) * 2019-03-28 2022-03-24 ミツビシ・エレクトリック・アールアンドディー・センター・ヨーロッパ・ビーヴィ プログラマブルロジックコントローラプログラムを分析する方法、コンピュータプログラム及び装置

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6271087B2 (ja) * 2015-05-19 2018-01-31 三菱電機株式会社 プログラマブルロジックコントローラ、エンジニアリングツール及びエンジニアリングツールプログラム
JP6356726B2 (ja) 2016-05-19 2018-07-11 ファナック株式会社 ラダープログラム解析装置
JP7119714B2 (ja) * 2018-07-27 2022-08-17 オムロン株式会社 情報処理装置、表示プログラム、および方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0772787A (ja) * 1993-09-01 1995-03-17 Toshiba Corp 制御手順自動生成装置
JP2002182709A (ja) * 2000-12-14 2002-06-26 Yaskawa Electric Corp プログラマブルコントローラのプログラミング装置
JP2005063425A (ja) * 2003-07-25 2005-03-10 Omron Corp シミュレーション支援ツールおよびラダープログラムの検証システムならびにプログラム製品およびテスト入力ラダープログラム生成方法ならびにラダープログラムの検証方法
US20090182442A1 (en) * 2008-01-14 2009-07-16 Gm Global Technology Operations, Inc. Framework for results interpretation and guided refinement of specifications for plc logic verification
JP2009277135A (ja) * 2008-05-16 2009-11-26 Toshiba Corp 検証装置、検証方法および検証プログラム

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1063537A (ja) 1996-08-21 1998-03-06 Fujitsu Ltd プロパティ検証方法および装置
US6301508B1 (en) * 1997-01-22 2001-10-09 Ando Electric Co., Ltd. Automatic instrumentation system
US20050033457A1 (en) 2003-07-25 2005-02-10 Hitoshi Yamane Simulation aid tools and ladder program verification systems
JP5091283B2 (ja) * 2010-06-25 2012-12-05 株式会社日立製作所 制御装置の保守ツール
EP2477085B1 (de) * 2011-01-13 2013-07-17 Siemens Aktiengesellschaft Verfahren und System zur Analyse eines zeitlichen Ablaufverhaltens eines Steuerungsprogramms einer Industriesteuerung
JP5785501B2 (ja) * 2012-01-12 2015-09-30 横河電機株式会社 ラダープログラム作成装置
JP5766378B2 (ja) * 2013-02-22 2015-08-19 三菱電機株式会社 システム開発装置、方法およびプログラム
KR20150127161A (ko) * 2013-03-07 2015-11-16 미쓰비시덴키 가부시키가이샤 래더 프로그램 표시 프로그램 및 래더 프로그램 표시 장치
JP5496429B1 (ja) 2013-04-04 2014-05-21 三菱電機株式会社 エンジニアリングツールおよびプログラマブルロジックコントローラ
JP5702833B2 (ja) * 2013-06-20 2015-04-15 ファナック株式会社 Ncプログラムに追従した画面表示切替機能を有する数値制御装置
CN105408827B (zh) 2014-06-02 2017-07-07 三菱电机株式会社 可编程控制器***、可编程控制器、程序显示装置、程序的显示方法
JP6319200B2 (ja) * 2015-06-18 2018-05-09 株式会社安川電機 プログラマブルコントローラ

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0772787A (ja) * 1993-09-01 1995-03-17 Toshiba Corp 制御手順自動生成装置
JP2002182709A (ja) * 2000-12-14 2002-06-26 Yaskawa Electric Corp プログラマブルコントローラのプログラミング装置
JP2005063425A (ja) * 2003-07-25 2005-03-10 Omron Corp シミュレーション支援ツールおよびラダープログラムの検証システムならびにプログラム製品およびテスト入力ラダープログラム生成方法ならびにラダープログラムの検証方法
US20090182442A1 (en) * 2008-01-14 2009-07-16 Gm Global Technology Operations, Inc. Framework for results interpretation and guided refinement of specifications for plc logic verification
JP2009277135A (ja) * 2008-05-16 2009-11-26 Toshiba Corp 検証装置、検証方法および検証プログラム

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022519776A (ja) * 2019-03-28 2022-03-24 ミツビシ・エレクトリック・アールアンドディー・センター・ヨーロッパ・ビーヴィ プログラマブルロジックコントローラプログラムを分析する方法、コンピュータプログラム及び装置
JP7204955B2 (ja) 2019-03-28 2023-01-16 ミツビシ・エレクトリック・アールアンドディー・センター・ヨーロッパ・ビーヴィ プログラマブルロジックコントローラプログラムを分析する方法、コンピュータプログラム及び装置

Also Published As

Publication number Publication date
CN107295810A (zh) 2017-10-24
JP6129444B1 (ja) 2017-05-17
US10295981B2 (en) 2019-05-21
US20180059634A1 (en) 2018-03-01
JPWO2017138156A1 (ja) 2018-02-15
CN107295810B (zh) 2019-07-26

Similar Documents

Publication Publication Date Title
JP6129444B1 (ja) エンジニアリングツール
US9122269B2 (en) Method and system for operating a machine from the field of automation engineering
EP2241949B1 (en) Method for executing sequential function charts as function blocks in a control system
JP4952401B2 (ja) Plc
JP2004362561A (ja) ブール論理機能ブロック
Normanyo et al. Developing a human machine interface (HMI) for industrial automated systems using siemens simatic WinCC flexible advanced software
WO2021205776A1 (ja) シミュレーションのためのプログラムおよび装置
JP5785501B2 (ja) ラダープログラム作成装置
JP5498446B2 (ja) ラダープログラム作成装置およびラダープログラム作成方法
JP5496429B1 (ja) エンジニアリングツールおよびプログラマブルロジックコントローラ
KR101456812B1 (ko) 시스템 설계 장치
JP2018152032A (ja) 情報処理装置、情報処理方法、および、情報処理プログラム
JP2001243341A (ja) ファンクションブロックモデル作成方法及び装置
JP6575130B2 (ja) 画面情報生成装置
JP4743869B2 (ja) 画面データ生成方法
JP4562141B2 (ja) プログラマブルロジックコントローラ、情報処理装置、制御プログラム、およびテーブル作成プログラム
JP6632692B1 (ja) 制御プログラム作成支援ツール及び制御プログラムの作成方法
JP6175844B2 (ja) 操作盤の画面定義装置
JP2018036945A (ja) シミュレータ連携装置、シミュレータ連携装置の制御方法、情報処理プログラム、および記録媒体
JP4301976B2 (ja) プログラミングツール
KR102305901B1 (ko) 휴먼 머신 인터페이스 시스템에서의 화면 표시 방법
JP2008532130A (ja) 制御装置のインタプリタによるサブプログラムの翻訳のための方法
WO2023203604A1 (ja) シミュレーション用プログラム、シミュレーション装置及び制御方法
JPH045702A (ja) 制御プログラム作成装置
JP2533373B2 (ja) 制御プログラム作成方法

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2016567885

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 15529131

Country of ref document: US

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

Ref document number: 16889858

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16889858

Country of ref document: EP

Kind code of ref document: A1