WO2021192456A1 - Dispositif de traitement d'informations et programme d'affichage de programme à contacts - Google Patents

Dispositif de traitement d'informations et programme d'affichage de programme à contacts Download PDF

Info

Publication number
WO2021192456A1
WO2021192456A1 PCT/JP2020/047226 JP2020047226W WO2021192456A1 WO 2021192456 A1 WO2021192456 A1 WO 2021192456A1 JP 2020047226 W JP2020047226 W JP 2020047226W WO 2021192456 A1 WO2021192456 A1 WO 2021192456A1
Authority
WO
WIPO (PCT)
Prior art keywords
ladder
circuit
screen
ladder circuit
information
Prior art date
Application number
PCT/JP2020/047226
Other languages
English (en)
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 オムロン株式会社
Publication of WO2021192456A1 publication Critical patent/WO2021192456A1/fr

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

Definitions

  • This disclosure relates to an information processing device for displaying a ladder program and a program for displaying the ladder program.
  • Control devices such as PLC (Programmable Logic Controller) have been introduced at various manufacturing sites.
  • a control device is a kind of computer, and executes a user program designed according to a manufacturing device, a manufacturing facility, or the like.
  • Such a user program is created in a development environment prepared separately from the control device.
  • the programming language for describing the user program includes a ladder diagram (LD: Ladder Diagram) that can be displayed in a circuit mode in which a plurality of instruction elements are connected to each other.
  • LD Ladder Diagram
  • a program described in a circuit mode in which a plurality of instruction elements are connected to each other is also called a "ladder program”.
  • Patent Document 1 Japanese Patent Application Laid-Open No. 2017-0590446
  • the ladder program has a structure in which a logic circuit represented by a combination of contacts and coils is drawn in a ladder shape.
  • the coil indicates the output destination of the result of the logical operation combining the contacts.
  • a ladder program may be described in a hierarchical representation in which one logic circuit receives the result of another logic circuit and another logic circuit receives the result of another logic circuit. ..
  • the present invention aims to solve the above problems, and aims to display the hierarchical structure of the ladder program in an easy-to-understand manner.
  • an information processing device for displaying a ladder program.
  • the information processing device includes a ladder screen generation unit, a reception unit, a definition unit, and a hierarchical screen generation unit.
  • the ladder screen generation unit generates a ladder screen for displaying the ladder program in a circuit mode including a plurality of ladder circuits. A plurality of ladder circuits are displayed on the ladder screen, and text information registered for each ladder circuit is displayed corresponding to the corresponding ladder circuit.
  • the reception unit receives input of parent-child information indicating a parent-child relationship between one ladder circuit and another ladder circuit in response to an operation on the ladder screen.
  • the definition unit defines the hierarchical structure of a plurality of ladder circuits included in the ladder program based on the parent-child information received by the reception unit.
  • the hierarchical screen generation unit generates a hierarchical screen for displaying the hierarchical structure defined by the definition unit as text information.
  • a hierarchical structure can be easily expressed by providing indentation or connecting text information with ruled lines.
  • the information processing apparatus can display the entire structure of the ladder program in an easy-to-understand manner.
  • each of the text information included in the hierarchical screen may be associated with the position information indicating the position of the corresponding ladder circuit on the ladder screen.
  • the ladder circuit corresponding to the selected text information may be displayed in the area for displaying the ladder screen according to the selection of the text information via the hierarchical screen.
  • the display range of the ladder screen can be changed by operating through the hierarchical screen displaying the hierarchical structure, so that the target ladder circuit can be easily displayed.
  • the definition unit defines a hierarchical structure based on the position information indicating the position of the ladder circuit on the ladder screen and the parent-child information, and defines the hierarchical structure according to the change of the position information being accepted. You may try again.
  • the user can input the parent-child information while checking the contents of each ladder circuit having a parent-child relationship.
  • the reception unit may accept changes in location information according to operations on the hierarchical screen.
  • the positional relationship between the ladder circuits can be changed by operating through the hierarchical screen displaying the hierarchical structure, and the hierarchical structure can be changed according to the change in the positional relationship. Therefore, the hierarchical structure can be easily changed.
  • the definition unit has a hierarchical structure based on a predetermined additional rule and a layer of the selected ladder circuit when an additional operation of the ladder circuit is performed with one ladder circuit selected. May be redefined.
  • a hierarchical structure when developing a ladder program by adding a ladder circuit, a hierarchical structure can be easily defined.
  • the information processing apparatus may further include a creation unit that edits or creates text information.
  • the creation unit when the change of the position information is accepted in response to the addition of the ladder circuit, the creation unit adds the redefined hierarchical structure and the ladder circuit of the hierarchy to which the added ladder circuit belongs. Based on the corresponding text information, the text information corresponding to the added ladder circuit may be created.
  • the selected ladder circuit and the ladder circuit included in the child hierarchy of the selected ladder circuit are deleted. May be good.
  • the receiving unit accepts the selection of one ladder circuit, and also accepts the selected ladder circuit and the ladder circuit included in the child hierarchy of the selected ladder circuit as a component of one management unit. good.
  • an arbitrary hierarchical structure can be defined by inputting parent-child information, and reusable parts can be created at the same time.
  • the ladder screen generation unit may generate a ladder screen in which the ladder circuit included in the child hierarchy of the selected ladder circuit is omitted.
  • the overall structure of the ladder program can be displayed in a more understandable manner.
  • the hierarchical screen generation unit may generate a hierarchical screen in which the text information corresponding to the ladder circuit included in the child layer of the selected ladder circuit is omitted.
  • the overall structure of the ladder program can be displayed in a more understandable manner.
  • the ladder screen generation unit generates a ladder screen in which the ladder circuits included in the same layer and the ladder circuits included in different layers are displayed in different display modes based on the hierarchical structure defined by the definition unit. You may.
  • the user can easily grasp the division of the hierarchy just by checking the ladder screen.
  • the ladder program may include one or more call instructions that call a block composed of a set of program elements.
  • the hierarchical screen generation unit may generate a hierarchical screen so that the child hierarchy of the ladder circuit including the calling instruction includes the block called by the calling instruction.
  • a support program for displaying a ladder program displays the ladder program in a circuit mode including a plurality of ladder circuits, and generates a ladder screen for displaying the text information registered for each ladder circuit corresponding to the corresponding ladder circuit.
  • a hierarchical structure can be easily expressed by providing indentation or connecting text information with ruled lines.
  • the information processing apparatus can display the entire structure of the ladder program in an easy-to-understand manner.
  • the overall structure of the ladder program can be displayed in an easy-to-understand manner.
  • FIG. 1 is a block diagram showing a functional configuration of the support device 10 according to the present embodiment.
  • the support device 10 is an example of an information processing device for displaying the ladder program 42.
  • the support device 10 typically comprises a general purpose computer.
  • the support device 10 is used in a scene where the ladder program 42 is created, a scene where the operation of the ladder program 42 is confirmed, a scene where a bug of the ladder program 42 is corrected, and the like.
  • the ladder program 42 is a type of control program executed by a control device such as a PLC that controls various devices used in the FA field.
  • a "control program” is a program for providing basic functions of a control device that controls various devices used in the FA field, and a program arbitrarily designed according to a control target (also referred to as a "user program”). ) Is a concept that includes.
  • the ladder program 42 is a program written in a programming language that can be displayed in a circuit mode in which a plurality of instruction elements are connected to each other.
  • the ladder program 42 is a program described by a ladder diagram (LD: Ladder Diagram) among the programming languages of PLC applications defined in the international standard IEC61131-3.
  • LD Ladder Diagram
  • the ladder program 42 may include a program described in a text (ST: Structured Text), a language unique to each manufacturer, or a procedural programming language such as C language.
  • the support device 10 includes a ladder screen generation unit 12, a reception unit 14, a definition unit 16, and a hierarchical screen generation unit 18.
  • the ladder screen generation unit 12 generates a ladder screen 120 for displaying the ladder program 42 in a circuit mode including one or a plurality of ladder circuits 420.
  • the ladder screen generation unit 12 generates the ladder screen 120 so as to display the ladder circuits 420 side by side and display the text information 460 registered for each ladder circuit 420 in association with the corresponding ladder circuit 420.
  • Each ladder circuit 420 is a logic circuit drawn by using an input side bus 421 and an output side bus 422, and a connection line and a circuit element between the input side bus 421 and the output side bus 422 (hereinafter, simply “circuit”). Also called).
  • the circuit element includes, for example, a contact 423 that turns on / off based on an input signal, and a coil 424 that outputs a calculation result in the circuit. In FIG. 1, some reference numerals are omitted.
  • Text information 460 is information composed of characters. The letters may also include symbols and numbers. Text information 460 is typically the name of the ladder circuit 420. In the example shown in FIG. 1, the name of the ladder circuit 420 (for example, the character “circuit 1" in FIG. 1) and the order of the ladder circuits 420 (for example, the character "0" in FIG. 1) are used as the text information 460. ) Is displayed on the ladder screen 120. A comment indicating the contents of the ladder circuit 420 may be registered as the text information 460. Further, the text information 460 may be automatically generated, or may be generated by being input by the user.
  • the reception unit 14 receives input of parent-child information 480 indicating a parent-child relationship between one ladder circuit 420 and another ladder circuit 420 for each ladder circuit 420 in response to an operation on the ladder screen 120.
  • Parent-child relationship means a subordinate relationship.
  • the ladder circuit 420 in the upper layer is the parent, and the ladder circuit 420 included in the lower layer in the layer is the child.
  • Parent-child information 480 can be input so as to be performed.
  • the parent-child information 480 is input in association with the ladder circuit 420 corresponding to the text information 460. Is accepted.
  • the user can divide the hierarchy by inputting the special symbol "#", and the depth of the hierarchy can be indicated by the number of special symbols "#".
  • the ladder circuit 420 indicated by “circuit 1” has a variable “a” which is an output result of the ladder circuit 420 indicated by “circuit 1-1” and “circuit 1-2".
  • the output result changes depending on the variable "b" which is the output result of the ladder circuit 420 shown.
  • the user uses the ladder circuit 420 indicated by "Circuit 1" as the parent, the ladder circuit 420 indicated by “Circuit 1-1”, and the ladder circuit 420 indicated by "Circuit 1-2" by “Circuit 1".
  • Parent-child information 480 can be input so as to be a child of the ladder circuit 420 shown.
  • the definition unit 16 defines a hierarchical structure 160 of a plurality of ladder circuits 420 included in the ladder program 42 based on the parent-child information 480 received by the reception unit 14. For example, the definition unit 16 defines the hierarchical structure 160 based on the input parent-child information 480 and a predetermined rule for inputting the parent-child information 480.
  • the definition unit 16 has, for example, the 0th ladder circuit 420 and the 1st ladder circuit based on the parent-child information 480 (“#”) received for the 0th ladder circuit 420.
  • a hierarchy is separated from 420, and the number of "#" identifies that the 0th ladder circuit 420 is the highest hierarchy.
  • the definition unit 16 defines that the first ladder circuit 420 is a child layer of the 0th ladder circuit 420. Further, since the parent-child information 480 is not input to the second ladder circuit 420, the definition unit 16 defines that the second ladder circuit 420 has the same layer as the first ladder circuit 420.
  • the hierarchical screen generation unit 18 generates a hierarchical screen 180 in which the hierarchical structure 160 defined by the definition unit 16 is displayed with text information 460.
  • the layer screen generation unit 18 expresses the layer of the ladder circuit 420 corresponding to the text information 460 depending on how many indents are provided at the beginning of the text information 460.
  • the 0th ladder circuit 420 corresponding to "0. circuit 1" is the ladder circuit 420 of the uppermost layer because "0. circuit 1" is not provided with an indent.
  • the ladder program 42 may be described in a hierarchical representation such that the result output by the coil 424 in one ladder circuit 420 is received by the contact 423 included in the other ladder circuit 420.
  • the ladder program 42 described in a hierarchical representation is composed of a plurality of ladder circuits 420. Since the range in which the ladder screen 120 can be displayed is limited, it is difficult to fit the entire ladder program 42 in the display, and it is difficult to express the entire structure of the ladder program 42.
  • the positions of the input side bus 421 are displayed in a fixed manner. It is possible to express the hierarchical relationship by changing the position of the input side bus 421, but if the position of the input side bus 421 is changed, the display position of the ladder circuit 420 changes for each ladder circuit 420, which is difficult to see. There is.
  • the support device 10 receives input of parent-child information 480 according to an operation on the ladder circuit 420. Therefore, the user can arbitrarily define the parent-child relationship between the ladder circuits 420 while checking the ladder circuit 420.
  • the support device 10 includes a hierarchical screen generation unit 18 for generating a hierarchical screen 180 for displaying the hierarchical structure 160 defined based on the parent-child information 480 with the text information 460.
  • the hierarchical structure 160 can be easily expressed by providing an indent or connecting the text information 460s with a ruled line. Therefore, the support device 10 can display the entire structure of the ladder program 42 in an easy-to-understand manner.
  • the area required for displaying the text information 460 is narrower than the area required for displaying the ladder circuit 420. Therefore, by representing the hierarchical structure 160 with the text information 460, it becomes easy to fit the hierarchical structure 160 in one screen. As a result, the entire structure of the ladder program 42 can be displayed in an easy-to-understand manner.
  • FIG. 2 is a schematic diagram showing a configuration example of a control system 1 to which the support device 10 can be applied.
  • the control system 1 includes a plurality of PLCs 200-1, 200-2, 200-3, 200-4, ... (hereinafter, also collectively referred to as "PLC200").
  • PLC200 PLCs 200-1, 200-2, 200-3, 200-4, ...
  • Each of the PLC 100 is an example of a control device that controls a control target that is a field device such as a relay or a sensor.
  • the support device 10 can be connected to the PLC 200 and provides an environment for supporting the development of the control program of the PLC 200.
  • the control system 1 may be configured to include one PLC200. In the following, for the sake of simplicity, a development environment for one PLC200 will be described.
  • the PLC 200 typically exchanges signals from a field with a CPU (Central Processing Unit) unit 20 that executes various programs including a control program, a power supply unit 22 that supplies power to the CPU unit 20 and the like. Includes an I / O (Input / Output) unit 24.
  • the I / O unit 24 is connected to the CPU unit 20 via the system bus 21.
  • the development support environment provided by the support device 10 may have a control program editor (editing), a debucker, a simulator, and a monitor function for outputting these output information to a monitor such as a display.
  • the support device 10 also has a function of acquiring the state value of the PLC 200 during operation and outputting it to a monitor such as a display.
  • the support program which is an application program stored in the optical recording medium 8
  • the support program may be downloaded from an external server device or the like via a network.
  • the support device 10 is connected to the CPU unit 20 of the PLC 200 via a connection cable.
  • FIG. 3 is a schematic view showing a hardware configuration example of the support device 10.
  • the support device 10 typically comprises a general purpose computer. From the viewpoint of maintainability at the manufacturing site where the PLC200 is arranged, a notebook-type personal computer having excellent portability is preferable.
  • the support device 10 includes a storage unit 101 and a CPU 102 that executes various programs including an operating system (OS).
  • the storage unit 101 includes a ROM (Read Only Memory) 104 that stores BIOS and various data, a RAM (Random Access Memory) 106 that provides a work area for storing data necessary for executing a program on the CPU 102, and the RAM (Random Access Memory) 106.
  • It includes a hard disk (HDD) 108 that non-volatilely stores programs and the like executed by the CPU 102.
  • the ROM 104 and the HDD 108 are examples of embodying a non-temporary computer-readable medium.
  • the support device 10 further includes an operation unit 103 including a keyboard 110 and a mouse 112 operated by the user to input instructions to the support device 10, and a display 114 for presenting information to the user.
  • the support device 10 includes a communication interface 118 for communicating with the PLC 200 (CPU unit 20) and the like.
  • the communication interface 118 may include a USB communication module for communicating with a USB (Universal Serial Bus) interface (not shown) included in the PLC 200.
  • the support device 10 includes an optical recording medium reading device 116 for reading a support program for providing a development support environment stored in the optical recording medium 8 from the optical recording medium 8.
  • the optical recording medium 8 is a concrete example of a non-temporary computer-readable medium.
  • FIG. 3 shows a configuration example in which necessary functions are provided by a processor such as the CPU 102 executing a program, and some or all of these provided functions are provided by a dedicated hardware circuit (for example,).
  • a dedicated hardware circuit for example, ASIC (Application Specific Integrated Circuit) or FPGA (Field-Programmable Gate Array), etc.
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • virtualization technology may be used to execute a plurality of OSs having different uses in parallel, and to execute necessary applications on each OS.
  • FIG. 4 is a schematic diagram showing a software configuration example of the support device 10.
  • FIG. 4 shows an example of information stored in the storage unit 101 in association with the software configuration of the support device 10.
  • the information stored in the storage unit 101 includes a ladder program 42, text information 460, parent-child information 480, position information 440, hierarchical structure 160, component information 430, setting information 450, and object information 52. Includes support program 54.
  • the ladder program 42 will be described as being stored in the storage unit 101 in a state before being compiled described in the ladder diagram.
  • the ladder program 42 includes a plurality of ladder circuits 420. Further, each ladder circuit 420 included in the ladder program 42 is edited and created by an editor 15 described later.
  • Text information 460 is stored for each ladder circuit 420.
  • Each text information 460 includes information that can identify which ladder circuit 420 corresponds to.
  • the text information 460 includes at least one of text information indicating the name of the ladder circuit 420 and text information indicating the order of the ladder circuits 420.
  • the parent-child information 480 is information input via the ladder screen 120, and is information indicating a hierarchical relationship between one ladder circuit 420 and another ladder circuit 420.
  • the parent-child information 480 includes information that can identify which ladder circuit 420 is the information input to.
  • the parent-child information 480 includes information indicating the division of the hierarchy and information indicating the depth of the hierarchy.
  • the parent-child information 480 is information that is input according to the input rule included in the setting information 450.
  • the input rule may be predetermined or may be a configuration that can be changed by the user.
  • the position information 440 is information indicating the position of each ladder circuit 420 on the ladder screen 120.
  • the position information 440 may indicate the position of each ladder circuit 420, and may indicate the order of the ladder circuits 420, for example.
  • the hierarchical structure 160 is information indicating the overall structure of the ladder circuit 420 included in the ladder program 42 defined by the definition unit 16 based on the parent-child information 480.
  • the hierarchical structure 160 is defined based on the input rule included in the setting information 450, the parent-child information 480, and the position information 440.
  • the part information 430 includes a function block called by a calling command included in the ladder program 42. Further, the component information 430 includes a component composed of one or a plurality of arbitrarily selected ladder circuits 420.
  • the setting information 450 adds or deletes an input rule for parent-child information 480, a display rule for displaying the ladder screen 120 and the hierarchical screen 180 on the display 114, a rule for redefining the hierarchical structure 160, and a new ladder circuit 420. Includes rules for doing so.
  • the object information 52 is used to visually display the ladder program 42 on the display 114.
  • the object information 52 includes each component for visually indicating the contents of the ladder program 42.
  • the object information 52 includes an input side bus 421, an output side bus 422, a contact 423, a coil 424, and the like.
  • the support program 54 includes a program for displaying the ladder program 42. Further, the support program 54 is a program for realizing various functions for developing a control program.
  • the various functions shown in FIG. 4 are realized by the CPU 102 executing the support program 54.
  • the support program 54 provides the functions of the reception unit 14, the editor 15, the ladder screen generation unit 12, the definition unit 16, the creation unit 17, the hierarchical screen generation unit 18, the componentization unit 19, and the display unit 11. do.
  • the reception unit 14 receives an operation input from the operation unit 103.
  • the reception unit 14 is typically an input interface.
  • the reception unit 14 receives input of parent-child information 480, change of position information 440, registration of part information 430, input of text information 460, and the like.
  • the change of the position information 440 includes the one based on the addition of the ladder circuit 420 or the deletion of the ladder circuit 420.
  • the editor 15 edits and creates the ladder program 42 according to the user operation.
  • the editor 15 may further provide an online editing function that rewrites (edits) a part of the control program executed while the PLC 200 is in operation.
  • the ladder screen generation unit 12 generates the ladder screen 120. As described above, a plurality of ladder circuits 420 are displayed side by side on the ladder screen 120, and the text information 460 registered for each ladder circuit 420 is displayed above the corresponding ladder circuit 420.
  • the ladder screen generation unit 12 updates the display content of the ladder screen 120 according to the received content. For example, when the reception unit 14 accepts the input of the parent-child information 480, the ladder screen generation unit 12 displays the input parent-child information 480 on the ladder screen 120.
  • the definition unit 16 defines the hierarchical structure 160 based on the parent-child information 480. In the present embodiment, the definition unit 16 defines the hierarchical structure 160 based on the input rule included in the setting information 450, the parent-child information 480, and the position information 440.
  • the definition unit 16 redefines the hierarchical structure 160 according to the received contents. For example, the definition unit 16 redefines the hierarchical structure 160 in response to the input of the parent-child information 480 or the change of the position information 440.
  • the creation unit 17 edits or creates the text information 460.
  • the creation unit 17 edits or creates the text information 460 when the reception unit 14 receives the input of the text information 460. Further, the creating unit 17 updates or creates the text information 460 according to the addition or deletion of the ladder circuit 420. Details will be described later.
  • the hierarchical screen generation unit 18 generates a hierarchical screen 180 in which the hierarchical structure 160 defined by the definition unit 16 is displayed with text information 460.
  • the expression method of the hierarchical structure 160 is not limited to the method of providing an indent at the beginning of the text information 460 shown in FIG. It may be an expression method in which a slash indicating a delimiter is inserted.
  • the hierarchical screen generation unit 18 updates the display contents of the hierarchical screen 180 according to the received contents. For example, the hierarchical screen generation unit 18 updates the display content of the hierarchical screen 180 when the hierarchical structure 160 is redefined or the content of the text information 460 is updated according to the content received by the reception unit 14. do.
  • the component unit 19 registers a plurality of ladder circuits 420 as one component in the component information 430. For example, in the componentization unit 19, when the reception unit 14 accepts the selection of one ladder circuit 420, all the ladder circuits 420 included in the child hierarchy of the selected ladder circuit 420 and the selected ladder circuit 420. Is registered in the part information 430 as one part.
  • the display unit 11 displays the ladder screen 120 generated by the ladder screen generation unit 12 and the hierarchical screen 180 generated by the hierarchical screen generation unit 18 on the display 114. Further, the display unit 11 changes the display range of the ladder screen 120 and the hierarchical screen 180 displayed on the display 114 when the reception unit 14 accepts the change of the display range. For example, the display unit 11 displays the ladder screen 120 so that the ladder circuit 420 corresponding to the text information 460 is displayed in the display 114 when one text information 460 is selected via the hierarchical screen generation unit 18. Change the display range.
  • FIG. 5 is an example of the user interface screen 140.
  • the user interface screen 140 is generated by the display unit 11 and displayed on the display 114.
  • the user interface screen 140 includes a first area 142 for displaying the ladder screen 120 and a second area 144 for displaying the hierarchical screen 180. Further, the ladder screen 120 is provided with a switching button 146 for expanding the first area 142 for displaying the ladder screen 120 by omitting the display of the hierarchical screen 180. Further, the user interface screen 140 is provided with a scroll bar 148 for changing the display range of the ladder screen 120 displayed on the first area 142.
  • the ladder screen 120 and the hierarchical screen 180 are displayed in one user interface screen 140.
  • the method of displaying the ladder screen 120 and the hierarchical screen 180 is not limited to this.
  • the ladder screen 120 and the hierarchical screen 180 may be displayed in separate windows.
  • FIG. 6 is a flowchart showing a display process executed when the ladder program 42 is displayed on the display 114.
  • the display process shown in FIG. 6 is a process for displaying the user interface screen 140 on the display 114.
  • the display process is called and executed from the main routine (not shown) at predetermined processing cycles, for example, when the display of the user interface screen 140 is requested.
  • the CPU 102 generates a ladder screen 120. More specifically, the CPU 102 displays the ladder program 42 in a circuit mode including a plurality of ladder circuits 420, and makes the text information 460 registered for each ladder circuit 420 correspond to the corresponding ladder circuit 420. A ladder screen 120 for display is generated. The text information 460 may be generated in the order in which the ladder circuits 420 are displayed. Further, in S101, the CPU 102 generates position information 440 indicating the position of each ladder circuit 420 on the ladder screen 120 when the ladder screen 120 is generated.
  • the CPU 102 accepts the input of the parent-child information 480. More specifically, when the special symbol "#" is input on the ladder screen 120, the CPU 102 accepts the input.
  • the layering process is executed.
  • the layering process is a process of defining a layered structure 160 of a plurality of ladder circuits 420 included in the ladder program 42.
  • the layering process is executed based on the position information 440 generated in S102 and the parent-child information 480 received in S102. The layering process will be described later with reference to FIG.
  • the CPU 102 generates a hierarchical screen 180. More specifically, the CPU 102 generates a hierarchical screen 180 in which the hierarchical structure 160 is represented by the text information 460, based on the text information 460 and the hierarchical structure 160.
  • the CPU 102 In S106, the CPU 102 generates a user interface screen 140 including the ladder screen 120 generated in S101 and the hierarchical screen 180 generated in S105, displays it on the display 114, and ends the display process.
  • the reception unit 14 accepts the change of the position information 440.
  • the reception unit 14 changes the position information 440 not only by the operation input via the ladder screen 120 but also by the operation performed based on the operation input via the hierarchical screen 180. accept.
  • the hierarchical structure 160 can be arbitrarily defined according to the positional relationship between the ladder circuits 420 on the ladder screen 120, the user can input the parent-child information 480 while checking the contents of each ladder circuit 420 having a parent-child relationship.
  • the positional relationship between the ladder circuits 420 can be changed by the operation via the hierarchical screen generation unit 18, and the hierarchical structure 160 can also be changed according to the change in the positional relationship. Therefore, the hierarchical structure 160 can be easily changed.
  • the position information 440 is changed not only when the order of the ladder circuit 420 is changed, but also when the ladder circuit 420 is added or when the ladder circuit 420 is deleted.
  • the change of the position information 440 is not limited to the operation of changing the order of the ladder circuit 420, but is also performed by the operation of adding the ladder circuit 420 and the operation of deleting the ladder circuit 420.
  • the processing when each operation is accepted will be described in detail.
  • FIG. 7 is a flowchart showing additional processing executed when the ladder circuit 420 is added.
  • the additional process is a process performed by the CPU 102 when an operation for adding the ladder circuit 420 is accepted.
  • the CPU 102 determines the position to insert the ladder circuit 420 according to the insertion rule.
  • the insertion rule is stored in the storage unit 101 in advance as setting information 450.
  • the insertion rule may be predetermined by the vendor providing the support program 54, or may be modifiable by the user.
  • the CPU 102 updates the position information 440. Specifically, the position information 440 of the newly added ladder circuit 420 is added, and the position information 440 of the ladder circuit 420 whose order is later than that of the newly added ladder circuit 420 is updated.
  • the CPU 102 updates the newly added ladder circuit 420 and the parent-child information 480 of the ladder circuit 420 adjacent to the newly added ladder circuit 420.
  • the CPU 102 updates the parent-child information 480 according to at least one of the ladder circuit 420 and the position where the ladder circuit 420 is added, which is selected when the ladder circuit 420 is added.
  • An example of updating the parent-child information 480 will be described later with reference to FIGS. 10 and 11.
  • the layering process is a process of defining a layered structure 160 of a plurality of ladder circuits 420 included in the ladder program 42.
  • the layering process is executed based on the position information 440 updated in S112 and the parent-child information 480 updated in S113. The layering process will be described later with reference to FIG.
  • the CPU 102 updates the text information 460.
  • the text information 460 includes information indicating the name of the ladder circuit 420 and information indicating the order of the ladder circuits 420.
  • the CPU 102 updates the information indicating the order of the ladder circuits 420 based on the position information 440 after being updated in S112. Further, the CPU 102 creates a name of the ladder circuit 420 to be newly added.
  • the creating unit 17 updates the information indicating the order of the ladder circuits 420 included in the text information 460 based on the updated position information 440, and newly adds the information indicating the order of the ladder circuits 420. Create a name for the added ladder circuit 420.
  • the name to be created may be a predetermined standard text (for example, "circuit comment"), or may be a text created according to a predetermined rule.
  • the creation unit 17 may create a text indicating the hierarchy to which the newly added ladder circuit 420 belongs as a name.
  • the CPU 102 updates the display of the ladder screen 120 based on various updated information by executing the processes of S111 to S115.
  • the CPU 102 updates the display of the hierarchical screen 180 based on various updated information by executing the processes of S111 to S115, and ends the additional process.
  • FIG. 8 is a diagram showing an example of an insertion rule.
  • the user can move the cursor P by operating the operation unit 103 to select one text information 460 on the hierarchical screen 180.
  • the ladder circuit 420 corresponding to the selected text information 460 is selected.
  • the additional processing shown in FIG. 7 is executed, and the screen shown on the left side of FIG. 8 transitions to the screen shown on the right side.
  • the CPU 102 adds a new ladder circuit 420 according to the rule of inserting a new ladder circuit 420 at the bottom of the child hierarchy of the selected ladder circuit 420.
  • a new ladder circuit 420 and text information 460 "2 circuit comment” are added to the second line on the ladder screen 120, and "2 circuit” is added on the hierarchical screen 180.
  • the text information 460 "comment" is added.
  • the insertion rule is not limited to the rule shown in FIG. 9 to 11 are diagrams showing other examples of insertion rules.
  • the CPU 102 may add a new ladder circuit 420 according to the rule of inserting a new ladder circuit 420 at the top of the child hierarchy of the selected ladder circuit 420.
  • a new ladder circuit 420 and text information 460 are added to the first line on the ladder screen 120, and the text "1. Circuit comment" is added on the hierarchical screen 180.
  • Information 460 is added.
  • the positions of the ladder circuits 420 from the first line onward are shifted one by one, and the text information 460 is also updated. Further, it is defined that the added new ladder circuit 420 is included in the child hierarchy of the ladder circuit 420 indicated by "Circuit 1".
  • the CPU 102 has the same layer as the selected ladder circuit 420, and the new ladder circuit 420 is inserted according to the rule that the ladder circuit 420 is inserted so as to be located one below the selected ladder circuit 420. May be added.
  • a new ladder circuit 420 and text information 460 are added to the second line on the ladder screen 120, which is under the child hierarchy of the ladder circuit 420 shown by "Circuit 1".
  • the text information 460 "2. Circuit comment” is added on the hierarchical screen 180.
  • the ladder circuits 420 on the second and subsequent lines are shifted one by one, and the text information 460 is also updated. Further, it is defined that the added new ladder circuit 420 has the same layer as the ladder circuit 420 indicated by "0. Circuit 1".
  • the CPU 102 adds a new ladder circuit 420 in the same hierarchy as the selected ladder circuit 420, according to the rule that the ladder circuit 420 is inserted at the bottom of the hierarchy of the selected ladder circuit 420. You may. According to this rule, as shown in FIG. 11, a new ladder circuit 420 and text information 460 are added to the 10th line on the ladder screen 120, and the text "10. Circuit comment" is added on the hierarchical screen 180. Information 460 is added. Further, it is defined that the added new ladder circuit 420 has the same layer as the ladder circuit 420 indicated by "0. Circuit 1".
  • the parent-child information 480 is updated as necessary. Specifically, the parent-child information 480 is updated based on whether or not the parent-child information 480 is input to the selected ladder circuit 420 and at least one of the insertion positions. For example, as shown in FIGS. 10 and 11, when the ladder circuit 420 to which the parent-child information 480 is input is selected and the ladder circuit 420 is added to the same layer as the selected ladder circuit 420, the added ladder is added. Parent-child information 480 is added to the circuit 420.
  • the insertion rule is not limited to that shown in FIGS. 8 to 11.
  • the CPU 102 may add a new ladder circuit 420 in the same layer as the selected ladder circuit 420 according to the rule that the ladder circuit 420 is inserted at the top of the layer of the selected ladder circuit 420.
  • the hierarchical structure 160 is redefined every time the ladder circuit 420 is added as described above, so that the hierarchical structure 160 can be easily defined.
  • the CPU 102 may add the ladder circuit 420 without considering the hierarchy.
  • FIG. 12 is a diagram showing an example of an insertion rule that does not consider the hierarchy.
  • the CPU 102 may add a new ladder circuit 420 one above the selected ladder circuit 420 without considering the hierarchy of the selected ladder circuit 420. Since the CPU 102 does not consider the hierarchy, the CPU 102 does not execute the process of adding the parent-child information 480. Even when the ladder circuit 420 is inserted according to any of the above-mentioned insertion rules, the CPU 102 does not have to execute the process of adding or changing the parent-child information 480.
  • FIG. 13 is a diagram for explaining an example of a rule for creating text information 460.
  • the creation unit 17 may create new text information 460 according to a predetermined rule.
  • the creation unit 17 corresponds to the added ladder circuit 420 based on the redefined hierarchical structure 160 and the text information 460 corresponding to the ladder circuit 420 of the layer to which the added ladder circuit 420 belongs.
  • Text information 460 may be created.
  • the newly added ladder circuit 420 is a child layer of the circuit 1, and is the second from the top of the ladder circuit 420 included in the child layer.
  • the text information 460 corresponding to the ladder circuit 420 (parent ladder circuit 420) of the layer to which the newly added ladder circuit 420 belongs is "circuit 1".
  • the creating unit 17 creates the text information 460 of "circuit 1-2".
  • the text information 460 corresponding to the added ladder circuit 420 is created. Therefore, for the newly added ladder circuit 420, text information 460 indicating the hierarchy of the ladder circuit 420 can be generated.
  • FIG. 14 is an example of screen transition when copy and paste is performed.
  • the additional process shown in FIG. 7 is performed.
  • the text information 460 corresponding to the newly added ladder circuit 420 may be a copy of the original text information 460, and the creation unit 17 may use the text information 460. It may be newly created.
  • the CPU 102 may provide a mark clearly indicating the added portion on the ladder screen 120 and the hierarchical screen 180.
  • FIG. 15 is a flowchart showing a deletion process executed when the ladder circuit 420 is deleted.
  • the deletion process is a process performed by the CPU 102 when an operation for deleting the ladder circuit 420 is accepted.
  • the CPU 102 determines the deletion target according to the deletion rule.
  • the deletion rule is stored in the storage unit 101 in advance as setting information 450.
  • the deletion rule may be predetermined by the vendor providing the support program 54, or may be changed by the user.
  • the CPU 102 updates the position information 440. More specifically, the position information 440 of the ladder circuit 420, which is later in order than the ladder circuit 420 to be deleted, is updated.
  • the CPU 102 updates the parent-child information 480.
  • the CPU 102 updates the parent-child information 480 according to the ladder circuit 420 to be deleted.
  • An example of updating the parent-child information 480 will be described later with reference to FIG.
  • the layering process is a process of defining a layered structure 160 of a plurality of ladder circuits 420 included in the ladder program 42.
  • the layering process is executed based on the position information 440 updated in S122 and the parent-child information 480 updated in S123.
  • the layering process will be described later with reference to FIG.
  • the layered process executed in the delete process and the layered process executed in the additional process of FIG. 7 are common processes.
  • the CPU 102 updates the text information 460.
  • the text information 460 includes the name of the ladder circuit 420 and information indicating the order of the ladder circuits 420.
  • the CPU 102 updates the information indicating the order of the ladder circuits 420 based on the position information 440 after being updated in S122.
  • the above-mentioned creation unit 17 updates the information indicating the order of the ladder circuits 420 included in the text information 460 based on the updated position information 440.
  • the CPU 102 updates the display of the ladder screen 120 based on various updated information by executing the processes of S121 to S125.
  • the CPU 102 updates the display of the hierarchical screen 180 based on various updated information by executing the processes of S121 to S125, and ends the deletion process.
  • FIG. 16 is a diagram showing an example of a deletion rule.
  • the user can move the cursor P by operating the operation unit 103 to select one or more text information 460 on the hierarchical screen 180.
  • the ladder circuit 420 corresponding to the selected text information 460 is selected.
  • one text information 460 is selected, but a plurality of text information 460 may be selected.
  • the deletion process shown in FIG. 15 is executed, and the screen shown on the left side of FIG. 16 transitions to the screen shown on the right side.
  • the CPU 102 deletes the ladder circuit 420 according to the deletion rule of deleting the selected ladder circuit 420, and executes the process of S123 according to the rule that the parent-child information 480 is not updated.
  • the ladder circuit 420 on the seventh and subsequent lines on the ladder screen 120 is moved up, and the text information 460 is also updated.
  • the ladder circuit 420 indicated by the "circuit 2-1-2-1" included in the child hierarchy of the ladder circuit 420 indicated by the “circuit 2-1-2" to be deleted is ". It will be included in the child hierarchy of the ladder circuit 420 indicated by "Circuit 2-1-1".
  • the deletion rule is not limited to the rule shown in FIG. FIG. 17 is a diagram showing another example of the deletion rule.
  • the CPU 102 may determine the selected ladder circuit 420 and the ladder circuit 420 included in the child hierarchy of the selected ladder circuit 420 as deletion targets. More specifically, referring to FIG. 17, when the ladder circuit 420 indicated by "Circuit 2-1-2" is selected, the CPU 102 indicates the deletion target by "Circuit 2-1-2". The ladder circuit 420 and the ladder circuit 420 indicated by the "circuit 2-1-2-1" defined in the child hierarchy of the ladder circuit 420 indicated by the "circuit 2-1-2" may be determined.
  • the selected ladder circuit 420 and the ladder circuit 420 included in the child hierarchy of the selected ladder circuit 420 are targeted for deletion, so that one ladder circuit 420 is selected and the plurality of ladder circuits 420 are deleted. can.
  • the ladder program 42 can be easily edited, and the convenience at the time of development is improved.
  • FIG. 18 is a diagram showing an example of an update rule for the parent-child information 480.
  • the CPU 102 may move up one layer of the ladder circuit 420 in the child layer.
  • the CPU 102 is indicated by the “circuit 2-1-2-1” included in the child hierarchy of the ladder circuit 420 indicated by the “circuit 2-1-2” to be deleted.
  • FIG. 19 is a flowchart showing a movement process executed when the ladder circuit 420 is moved.
  • the move process is a process performed by the CPU 102 when an operation for moving the ladder circuit 420 is accepted.
  • the CPU 102 updates the position information 440. More specifically, the CPU 102 updates the position information 440 of the ladder circuit 420, which is later in order than the ladder circuit 420 to be moved and earlier in order than the destination.
  • the CPU 102 updates the parent-child information 480. For example, the CPU 102 updates the parent-child information 480 before and after moving the ladder circuit 420 to be selected so that the parent-child relationship of the ladder circuits 420 other than the selection target does not change.
  • the CPU 102 updates the parent-child information 480 so that the parent-child relationship between the ladder circuit 420 to be selected and the ladder circuits 420 located before and after the insertion destination satisfies a predetermined rule.
  • the CPU 102 updates the parent-child information 480 so that the ladder circuit 420 to be selected becomes a child of the ladder circuit 420 located in front of the insertion destination.
  • the CPU 102 may update the parent-child information 480 so that the ladder circuit 420 to be selected has the same layer as the ladder circuit 420 located before or after the insertion destination.
  • the layering process is a process of defining a layered structure 160 of a plurality of ladder circuits 420 included in the ladder program 42.
  • the layering process is executed based on the position information 440 updated in S132 and the parent-child information 480 updated in S133.
  • the layering process will be described later with reference to FIG.
  • the layered process executed in the move process, the layered process executed in the additional process of FIG. 7, and the layered process executed in the delete process of FIG. 15 are common processes to each other.
  • the CPU 102 updates the text information 460.
  • the text information 460 includes the name of the ladder circuit 420 and information indicating the order of the ladder circuits 420.
  • the CPU 102 updates the information indicating the order of the ladder circuits 420 based on the position information 440 after being updated in S132.
  • the above-mentioned creation unit 17 updates the information indicating the order of the ladder circuits 420 included in the text information 460 based on the updated position information 440.
  • the CPU 102 updates the display of the ladder screen 120 based on various updated information by executing the processes of S132 to S135.
  • the CPU 102 updates the display of the hierarchical screen 180 based on various updated information by executing the processes of S132 to S135, and ends the deletion process.
  • FIG. 20 is a diagram showing an example of screen transition due to a movement operation.
  • the user can move the cursor P by operating the operation unit 103 to select one or more text information 460 on the hierarchical screen 180.
  • the ladder circuit 420 corresponding to the selected text information 460 is selected.
  • one text information 460 is selected, but a plurality of text information 460 may be selected.
  • the move process shown in FIG. 19 is executed, and the screen shown on the left side of FIG. 20 transitions to the screen shown on the right side.
  • the CPU 102 inserts the ladder circuit 420 indicated by “Circuit 1-1” on the first line between the seventh line and the eighth line.
  • the CPU 102 inserts the ladder circuit 420 indicated by "Circuit 1-1" on the first line between the seventh and eighth lines into the ladder circuit 420 from the second line to the seventh line. Update the corresponding text information 460. Further, in the example shown in FIG. 19, the CPU 102 inputs the parent-child information 480 to the selected ladder circuit 420 so as to be a child layer of the ladder circuit 420 located in front of the insertion destination. More specifically, the CPU 102 inputs the parent-child information 480 "######" to the ladder circuit 420 on the 7th line. The CPU 102 may provide a mark 124 on the ladder screen 120 so that the ladder circuit 420 to be moved can be known.
  • FIG. 21 is a flowchart showing a layering process for defining the layered structure 160.
  • the hierarchical processing shown in FIG. 21 is an example, and the hierarchical structure 160 may be defined by another processing procedure.
  • the layering process shown in FIG. 21 is executed in the above-mentioned display process, addition process, deletion process, and move process.
  • the layering process executed in each of the display process, the add process, the delete process, and the move process may be a common process, or may be a layered process unique to each process.
  • the layering process executed in each of the display process, the add process, the delete process, and the move process will be described as a common process.
  • the CPU 102 uses the ladder circuit 420 on the first line as the target ladder circuit.
  • the CPU 102 determines whether or not the parent-child information 480 is input to the target ladder circuit 420. When it is determined that the parent-child information 480 is not input to the target ladder circuit 420 (NO in S142), in S144, the CPU 102 sets the target ladder circuit 420 in the same layer as the previous ladder circuit 420.
  • the CPU 102 sets the layer of the target ladder circuit 420 to the top layer.
  • the depth of the layer is set based on the input parent-child information 480. Then, based on the position information 440, the CPU 102 is among the ladder circuits 420 set in the ladder circuit 420 before the target ladder circuit 420 and one layer higher than the set depth layer.
  • the ladder circuit 420 closest to the target ladder circuit 420 is the parent.
  • the CPU 102 After executing the process of S144 or S146, the CPU 102 determines in S148 whether or not there is a ladder circuit 420 behind it based on the position information 440.
  • the CPU 102 determines that there is a ladder circuit 420 behind (YES in S148)
  • the CPU 102 changes the target ladder circuit 420 to the ladder circuit 420 one behind in S150, and executes the processes of S142 to S148.
  • the CPU 102 executes S150 and repeats the processes of S142 to S148 until it is determined that there is no ladder circuit 420 behind.
  • the CPU 102 determines that there is no ladder circuit 420 behind (NO in S148)
  • the CPU 102 ends the layering process.
  • the layer screen generation unit 18 displays or omits the text information 460 corresponding to the ladder circuit 420 included in the child layer of the one ladder circuit 420 selected via the layer screen 180 on the layer screen 180. Can be done.
  • FIG. 22 is a diagram showing an example of abbreviated display and expanded display.
  • the hierarchical screen generation unit 18 provides, for example, a tab 182 on the hierarchical screen 180 for switching between abbreviated display and expanded display.
  • the hierarchical screen generation unit 18 displays (expanded display) or omits (omitted) the text information 460 corresponding to the ladder circuit 420 of the child hierarchy on the hierarchical screen 180.
  • the screen shown on the left side in FIG. 22 is an example of the screen being expanded and displayed.
  • the screen shown on the right side in FIG. 22 is an example of the screen being abbreviated.
  • the text information 460 corresponding to the ladder circuit 420 located in the child hierarchy of the ladder circuit 420 corresponding to the “circuit 2” is “. 4. "Circuit 2-1", “5. Circuit 2-1-2”, “6. Circuit 2-1-2”, “7. Circuit 2-1-2-1” are displayed or omitted. Or The hierarchical screen generation unit 18 may make the shape of the tab 182 different between the shape in the expanded display and the shape in the omitted display in order to indicate that the tab 182 is omitted.
  • the ladder screen generation unit 12 may switch the display on the ladder screen 120 according to the switching between the abbreviated display and the expanded display of the hierarchical screen generation unit 18.
  • FIG. 23 is a diagram showing other examples of abbreviated display and expanded display. The screen shown on the left side in FIG. 23 is an example of the screen being expanded and displayed. The screen shown on the right side in FIG. 22 is an example of the screen being abbreviated.
  • the ladder screen generation unit 12 displays on the ladder screen 120 the display of the ladder circuit 420 corresponding to the text information 460 whose display is omitted on the hierarchical screen 180 during the omitted display. It may be omitted. At this time, the ladder screen generation unit 12 may provide a mark 122 indicating the reduction and the reduced portion on the ladder screen 120.
  • such a function of switching between the reduced display and the expanded display is particularly effective when the number of ladder circuits 420 is large.
  • the user can grasp the whole image of the ladder program 42 by the reduced display and can examine the ladder program 42 in detail by switching to the expanded display.
  • the ladder screen generation unit 12 may provide a tab corresponding to the tab 182 on the ladder screen 120 and switch between the abbreviated display and the expanded display according to the operation for the tab.
  • the hierarchical screen generation unit 18 may or may not switch between the omitted display and the expanded display of the hierarchical screen 180 according to the switching between the omitted display and the expanded display of the ladder screen 120.
  • the ladder screen generation unit 12 may generate a ladder screen 120 expressing the hierarchical structure 160 defined by the definition unit 16 by changing the display mode of each ladder circuit 420.
  • the ladder screen generation unit 12 has a ladder screen 120 in which the background of the area for displaying each ladder circuit 420 is different between the one ladder circuit 420 and the ladder circuit 420 included in the child hierarchy of the one ladder circuit 420. May be generated.
  • FIG. 24 is a diagram showing an example of a ladder screen 120 showing the hierarchical structure 160.
  • the ladder screen generation unit 12 uses the background A of the range for displaying the ladder circuit 420 of the uppermost layer (first layer) as the background A and the background B of the range for displaying the ladder circuit 420 of the second layer as the background B. Then, the ladder screen 120 may be generated with the background of the range in which the ladder circuit 420 of the third layer is displayed as the background C.
  • the user can easily grasp the division of the layers simply by checking the ladder screen 120 without checking the layer screen 180.
  • FIG. 25 is a diagram showing how the range of the ladder screen 120 displayed in the first area 142 is changed.
  • the ladder circuit 420 corresponding to the text information 460 is displayed in the first area 142 of the display 114.
  • the display range of the ladder screen 120 may be changed as described above.
  • FIG. 25 when a specific operation (for example, double-clicking) is accepted while the cursor P is placed on one text information 460 on the hierarchical screen 180, as shown on the right side of FIG. 25. , The display range of the ladder screen 120 displayed in the first area 142 is changed.
  • the display unit 11 when one text information 460 on the hierarchical screen 180 is selected and a specific operation is accepted, the display unit 11 has a ladder circuit 420 corresponding to the selected text information 460 in the first region.
  • the display range of the ladder screen 120 is changed so that it is located at the top of 142.
  • the display unit 11 changes the display range of the ladder screen 120 so that the selected ladder circuit 420 is located at the uppermost part of the first area 142.
  • the position where the selected ladder circuit 420 is displayed is not limited to the uppermost part of the ladder screen 120, and any of the positions on the first area 142 such as the center of the first area 142 and the lowermost part of the first area 142. It may be a position.
  • the user can arbitrarily define the overall structure of the ladder program 42 while creating the ladder circuit 420, and display the defined overall structure (hierarchical structure 160) on the hierarchical screen 180. Since the display range of the ladder screen 120 can be changed by the operation via the hierarchical screen 180, the user can easily find the target ladder circuit 420 even when the number of ladder circuits 420 increases.
  • the component unit 19 registers the plurality of ladder circuits 420 as one component in the component information 430. More specifically, the componentization unit 19 includes everything included in the selected ladder circuit 420 and the child hierarchy of the selected ladder circuit 420 when the reception unit 14 accepts the selection of one ladder circuit 420. The ladder circuit 420 of the above is registered in the component information 430 as one component.
  • FIG. 26 is a diagram showing how one or a plurality of ladder circuits 420 are registered as one component.
  • the componentization unit 19 is indicated by “circuit 1".
  • Part information 430 with a program consisting of the ladder circuit 420 and the ladder circuit 420 of "circuit 1-1" and “circuit 1-2" included in the child hierarchy of the ladder circuit 420 indicated by “circuit 1" as one component. Register with.
  • a program composed of one or a plurality of ladder circuits 420 registered as component information 430 may be displayed in a separate window.
  • a POU corresponds to a unit of a group of program elements. That is, in other words, the componentization unit 19 registers the selected ladder circuit 420 and all the ladder circuits 420 included in the child layers of the selected ladder circuit 420 as one POU in the component information 430.
  • This user proceeds with the development of the ladder program 42 while adding or deleting the ladder circuit 420 on the ladder screen 120.
  • the user since the input of the parent-child information 480 is accepted via the ladder screen 120, the user can define an arbitrary hierarchical structure 160 while proceeding with the development of the ladder program 42. Then, among the hierarchical structures 160 arbitrarily defined by the user, all the ladder circuits 420 included in one layer can be registered as one component. That is, the user can arbitrarily define the hierarchical structure 160 and at the same time create reusable parts.
  • the ladder program 42 includes one or more call instructions that call another POU.
  • the layer screen generation unit 18 generates the layer screen 180 so that the child layer of the ladder circuit 420 including the call command includes the POU called by the call command.
  • FIG. 27 is a diagram showing an example of a screen in which the POU is displayed as a child layer of the ladder circuit of the caller.
  • the ladder circuit 420 shown by “Circuit 1” shown in FIG. 27 includes a call instruction 425 that calls a function which is an example of a POU named “Faction 0”.
  • the ladder circuit 420 shown by “Circuit 1-1” shown in FIG. 27 includes a call instruction 425 that calls a function block which is an example of a POU named “excellentBlock0”.
  • the layer screen generation unit 18 includes a POU of "Faction 0" in the child layer of "Circuit 1" and “Faction Block 0" in the child layer of "Circuit 1-1".
  • the hierarchical screen 180 is generated so that the POU of is included.
  • the call instruction 425 included in the ladder circuit 420 is displayed on the layer screen 180 as a child layer of the ladder circuit 420, so that what kind of POU is called in each ladder circuit 420 is displayed on the layer screen. It can be displayed on 180.
  • FIG. 28 is a flowchart showing the layering process according to the modified example.
  • FIG. 29 is a diagram showing an example of the hierarchical structure 160 defined according to the hierarchical processing according to the modified example.
  • the layering process according to the modified example is different from the layering process shown in the above embodiment in that S143, S145, and S147 are executed instead of S144 as compared with the layering process shown in FIG.
  • S143, S145, and S147 are executed instead of S144 as compared with the layering process shown in FIG.
  • the points different from the above-described embodiment will be mainly described.
  • the CPU 102 determines that the parent-child information 480 is not input to the target ladder circuit 420 (NO in S142), the CPU 102 executes the processes of S143, S145, and S147.
  • the CPU 102 determines whether or not the parent-child information 480 is input to the previous ladder circuit 420.
  • the previous ladder circuit 420 is specified based on the position information 440.
  • the CPU 102 determines that the parent-child information 480 is not input to the previous ladder circuit 420 (NO in S143), the CPU 102 sets the target ladder circuit 420 in the same layer as the previous ladder circuit 420 in S145.
  • the CPU 102 determines that the parent-child information 480 is input to the previous ladder circuit 420 (YES in S143), the CPU 102 sets the target ladder circuit 420 in the child hierarchy of the previous ladder circuit 420 in S147.
  • the depth of the layer and the ladder circuit 420 of the parent are set based on the input of the parent-child information 480 (S146). For example, as shown in FIG. 29, the depth of the hierarchy is set by the number of "#”, and “circuit 1", “circuit 2", and “circuit 3" in which one "#” is input are set. Is set to the top layer (first layer). Further, “Circuit 2-1" and “Circuit 3-1" in which two "#" are input are set in the second layer.
  • the ladder circuit 420 described next to the ladder circuit 420 to which the parent-child information 480 is input is set to the child layer of the ladder circuit 420 to which the parent-child information 480 is input (S147). ).
  • the "circuit 1-1" next to the “circuit 1" in which one "#" is input is set in the child hierarchy of the "circuit 1".
  • the ladder circuits 420 located above and below are all set to the same layer. (S145). For example, as shown in FIG. 29, "Circuit 1-1" and “Circuit 1-2" in which "#" is not input are both set in the same hierarchy.
  • layering rule is an example, and any rule can be set, not limited to the rule shown in the above embodiment and the rule shown in the modified example.
  • (Structure 1) An information processing device (10) that displays a ladder program (42).
  • a ladder screen generator (12) for generating a ladder screen (120) for displaying the ladder program (42) in a circuit mode including a plurality of ladder circuits (420) is provided.
  • a plurality of the ladder circuits (420) are displayed on the ladder screen, and text information (460) registered for each ladder circuit (420) is displayed corresponding to the corresponding ladder circuit (420).
  • a reception unit (14) that receives input of parent-child information (480) indicating a parent-child relationship between one ladder circuit (420) and another ladder circuit (420) in response to an operation on the ladder screen (120).
  • a definition unit (16) that defines a hierarchical structure (160) of a plurality of the ladder circuits (420) included in the ladder program (42) based on the parent-child information (480) received by the reception unit (14).
  • An information processing device further including a hierarchical screen generation unit (18) for generating a hierarchical screen (180) for displaying the hierarchical structure (160) defined by the definition unit (16) with the text information (460). ..
  • Each of the text information (460) included in the hierarchical screen (180) is associated with position information (440) indicating the position of the corresponding ladder circuit (420) on the ladder screen (120).
  • the selected text information (460) is included in the area (142, 114) for displaying the ladder screen (120). ) Is displayed, the information processing apparatus according to the configuration 1.
  • the definition unit (18) is The hierarchical structure (160) is defined based on the position information (440) indicating the position of the ladder circuit (420) on the ladder screen (120) and the parent-child information (480).
  • the information processing apparatus according to configuration 1, wherein the hierarchical structure (160) is redefined (S114, S124, S134) in response to the change in the position information (440) being accepted.
  • the definition unit (16) has a predetermined additional rule and the selected ladder circuit when an additional operation of the ladder circuit (420) is performed while one of the ladder circuits (420) is selected.
  • the information processing apparatus according to configuration 3 or 4, wherein the hierarchical structure (160) is redefined based on the hierarchy of (420) (S111 to S114).
  • a creation unit (17) for editing or creating the text information (460) is further provided.
  • the creation unit (17) redefines the hierarchical structure (160) when a change in the position information (440) is accepted in response to the addition of the ladder circuit (420) (S112). ) And the text information (460) corresponding to the ladder circuit (420) in the hierarchy to which the added ladder circuit (420) belongs, and the text corresponding to the added ladder circuit (420).
  • the information processing apparatus according to configuration 3 or 4, wherein the information (460) is created (S115).
  • the reception unit (14) accepts the selection of one ladder circuit (420), and also includes the selected ladder circuit (420) and the ladder included in the child hierarchy of the selected ladder circuit (420).
  • the information processing apparatus according to configuration 1, which accepts a circuit (420) as a component (430) of one management unit.
  • the layer screen generation unit (18) has the text information corresponding to the ladder circuit (420) included in the child layer of the selected ladder circuit (420).
  • the information processing apparatus according to configuration 1, which generates the hierarchical screen (180) in which (460) is omitted.
  • the ladder screen generation unit (12) is different from the ladder circuit included in the same layer and the ladder circuit included in a different layer based on the hierarchical structure (160) defined by the definition unit (16).
  • the ladder program (42) includes one or more calling instructions (425) that call a block composed of a set of program elements.
  • the layer screen generation unit (18) has the layer screen (180) so that the child layer of the ladder circuit (420) including the call command (425) includes the block called by the call command (425).
  • the information processing apparatus according to configuration 1, wherein the information processing apparatus is generated.
  • a step (S101) of generating a ladder screen (120) for displaying the ladder program (42) in a circuit mode including a plurality of ladder circuits (420) is included.
  • a plurality of the ladder circuits (420) are displayed on the ladder screen (120), and the text information (460) registered for each ladder circuit (420) corresponds to the corresponding ladder circuit (420).
  • a support program further comprising a step (S105) of generating a hierarchical screen (180) for displaying the defined hierarchical structure (160) in the text information (460).
  • a step (S101) of generating a ladder screen (120) for displaying the ladder program (42) in a circuit mode including a plurality of ladder circuits (420) is included.
  • a plurality of the ladder circuits (420) are displayed on the ladder screen (120), and the text information (460) registered for each ladder circuit (420) corresponds to the corresponding ladder circuit (420).
  • a method for displaying a ladder program further comprising a step (S105) of generating a hierarchical screen (180) for displaying the defined hierarchical structure (160) in the text information (460).

Landscapes

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

Abstract

Dans la présente invention, un dispositif de support (10) : affiche un programme à contacts (42) ayant un mode de circuit qui comprend plusieurs circuits à contacts (420) ; et affiche un écran à contacts (120) pour afficher des informations textuelles (460) enregistrées pour chaque circuit à contacts (420) en association avec le circuit à contacts (420) correspondant, et un écran de hiérarchie (180) pour afficher, avec les informations textuelles (460), une structure de hiérarchie (160) définie sur la base d'informations parent-enfant (480) entrées par l'intermédiaire de l'écran à contacts (120).
PCT/JP2020/047226 2020-03-26 2020-12-17 Dispositif de traitement d'informations et programme d'affichage de programme à contacts WO2021192456A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2020055649A JP7380376B2 (ja) 2020-03-26 2020-03-26 情報処理装置およびラダープログラムを表示するためのプログラム
JP2020-055649 2020-03-26

Publications (1)

Publication Number Publication Date
WO2021192456A1 true WO2021192456A1 (fr) 2021-09-30

Family

ID=77891203

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2020/047226 WO2021192456A1 (fr) 2020-03-26 2020-12-17 Dispositif de traitement d'informations et programme d'affichage de programme à contacts

Country Status (2)

Country Link
JP (1) JP7380376B2 (fr)
WO (1) WO2021192456A1 (fr)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011086118A (ja) * 2009-10-15 2011-04-28 Yokogawa Electric Corp プログラム入力装置
WO2014136240A1 (fr) * 2013-03-07 2014-09-12 三菱電機株式会社 Programme d'affichage de programme de commande progressive et dispositif d'affichage de programme de commande progressive
JP2016206910A (ja) * 2015-04-21 2016-12-08 株式会社安川電機 ラダープログラム作成装置、コンピュータープログラム及びラダープログラム作成方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011086118A (ja) * 2009-10-15 2011-04-28 Yokogawa Electric Corp プログラム入力装置
WO2014136240A1 (fr) * 2013-03-07 2014-09-12 三菱電機株式会社 Programme d'affichage de programme de commande progressive et dispositif d'affichage de programme de commande progressive
JP2016206910A (ja) * 2015-04-21 2016-12-08 株式会社安川電機 ラダープログラム作成装置、コンピュータープログラム及びラダープログラム作成方法

Also Published As

Publication number Publication date
JP2021157382A (ja) 2021-10-07
JP7380376B2 (ja) 2023-11-15

Similar Documents

Publication Publication Date Title
EP3798817B1 (fr) Navigation et décalage à base de vues exécution et logique d'interface utilisateur
JP5039428B2 (ja) プログラマブルコントローラ及びplcシステム
CN112579050A (zh) 基于任务的配置呈现背景
EP3465426B1 (fr) Interface utilisateur doté de mini-onglets amovibles
JP2014032529A (ja) Plcシステム、その作画エディタ装置、プログラマブル表示器
US20220317833A1 (en) Preferential automation view curation
JP5921765B2 (ja) プログラムグラフ表示装置、プログラムグラフ表示方法およびプログラムグラフ表示プログラム
CN110765028B (zh) 验证环境的可视化搭建方法、装置及存储介质
JP2008204369A (ja) シミュレータ開発システム及びシミュレータ開発方法
US6407758B1 (en) Screen forming editor
JP2013222439A (ja) プログラム生成装置
JP3835589B2 (ja) 作画装置および作画プログラムを記録したコンピュータ読み取り可能な記録媒体
JP7067520B2 (ja) 開発支援装置、開発支援装置の制御方法、情報処理プログラム、および記録媒体
WO2021192456A1 (fr) Dispositif de traitement d'informations et programme d'affichage de programme à contacts
JP2009048485A (ja) 情報処理装置、情報処理方法、情報処理プログラム、及び情報処理プログラムを記録する記録媒体
WO2022244425A1 (fr) Dispositif d'aide au développement, procédé de commande pour un dispositif d'aide au développement, programme de traitement d'informations et support d'enregistrement
JP4476223B2 (ja) 画面データ作成装置、画面データの編集方法及び画面データ編集プログラム
JP2017102872A (ja) 開発装置、開発システム、およびプログラム
JP5205988B2 (ja) Plcのグローバル変数定義方式
JP2021082031A (ja) プログラム作成支援装置
JP2011192088A (ja) Plcのプログラム開発支援装置
CN107561950B (zh) 楼宇中控制器的编程方法及提供控制器编程工具的服务器
WO2022190417A1 (fr) Dispositif de support de développement, procédé de support de développement et programme de support de développement
JP7447574B2 (ja) サポート装置、サポートプログラムおよびサポート方法
US20090158156A1 (en) Online programming of operator interface panel

Legal Events

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

Ref document number: 20927579

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: 20927579

Country of ref document: EP

Kind code of ref document: A1