WO2009133590A1 - Schematic editor and schematic editing program - Google Patents

Schematic editor and schematic editing program Download PDF

Info

Publication number
WO2009133590A1
WO2009133590A1 PCT/JP2008/001127 JP2008001127W WO2009133590A1 WO 2009133590 A1 WO2009133590 A1 WO 2009133590A1 JP 2008001127 W JP2008001127 W JP 2008001127W WO 2009133590 A1 WO2009133590 A1 WO 2009133590A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
connection
connection destination
connection source
destination terminal
Prior art date
Application number
PCT/JP2008/001127
Other languages
French (fr)
Japanese (ja)
Inventor
炭崎竜平
井上勝行
藤岡操代
Original Assignee
三菱電機株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 三菱電機株式会社 filed Critical 三菱電機株式会社
Priority to PCT/JP2008/001127 priority Critical patent/WO2009133590A1/en
Priority to JP2010509959A priority patent/JP4990395B2/en
Priority to TW097127091A priority patent/TW200945084A/en
Publication of WO2009133590A1 publication Critical patent/WO2009133590A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/30Circuit design

Definitions

  • the present invention relates to a circuit diagram editing apparatus and a circuit diagram editing program for easily realizing connection between terminals on a circuit diagram in circuit diagram editing.
  • the present invention has been made to solve the above-described problems, and has an object to create a connection between terminals in a desired combination on a circuit diagram with a small number of inputs.
  • the circuit diagram editing apparatus is based on the designation order of the connection destination terminal and the predetermined terminal order in the unconnection terminal of the connection source component when performing connection from the unconnection terminal of the connection source component to the connection destination terminal.
  • the unconnected terminal and the connected terminal of the connection source component to be connected are associated with each other. This makes it possible to create a connection between terminals in a desired combination on the circuit diagram with a small number of inputs.
  • connection destination terminal list wrist of the circuit diagram editing apparatus by Embodiment 1 of this invention.
  • movement of the circuit diagram editing apparatus by Embodiment 1 of this invention It is explanatory drawing which shows the screen example before the connection of the edit area of the circuit diagram editing apparatus by Embodiment 1 of this invention. It is explanatory drawing which shows the screen example after the connection of the edit area of the circuit diagram editing apparatus by Embodiment 1 of this invention. It is explanatory drawing which shows the screen example (procedure A) of the edit area of the circuit diagram editing apparatus by Embodiment 1 of this invention.
  • FIG. 1 is a block diagram of a circuit diagram editing apparatus according to Embodiment 1 of the present invention.
  • the circuit diagram editing apparatus shown in FIG. 1 includes a connection source component designating unit 1 for designating a connection source component, a connection destination terminal designating unit 2 for designating a connection destination terminal, and connection source component information designated by the connection source component designating unit 1.
  • the connection destination terminal designation unit 2 receives the click information indicating that the terminal has been designated, and associates the predetermined terminal order of the unconnected terminals of the connection source component with the specified order of the connection destination terminals, Creates connection information between both terminals using the connection destination terminal information specified by the connection source terminal determination unit 3 and the connection destination terminal specification unit 2 to determine the terminal and the connection source terminal information from the connection source terminal determination unit 3 And a display unit 5 that receives connection information from the connection generation unit 4 and displays the connection.
  • FIG. 2 is a block diagram showing a hardware configuration for realizing the circuit diagram editing apparatus according to Embodiment 1 of the present invention.
  • the circuit diagram editing apparatus is realized by a PC (personal computer), and includes a control unit 101, a display 102, a keyboard 103, and a pointing device 104.
  • the control unit 101 includes a CPU 105, a memory 106, and a hard disk 107.
  • the control unit 101 performs various processes based on inputs from the keyboard 103 and the pointing device 104, and outputs the processing results to the display 102.
  • the display 102 is a display device for displaying a circuit diagram on a screen.
  • the keyboard 103 and the pointing device 104 are input devices for performing various inputs.
  • the CPU 105 is an arithmetic processing device that performs arithmetic processing as a circuit diagram editing device.
  • the memory 106 is a storage unit that stores various data and programs and constitutes a work area for arithmetic processing by the CPU 105.
  • the hard disk 107 is a storage device for storing various data and programs.
  • the display device is not limited to the display 102, the input device is not limited to the keyboard 103 or the pointing device 104, and the storage device is not limited to the memory 106 or the hard disk 107.
  • connection source part designation unit 1 to the connection creation unit 4 are realized by storing programs corresponding to the respective functions in the hard disk 107, reading these programs by the CPU 105, and executing them using the memory 106.
  • the connection source component designating unit 1 and the connection destination terminal designating unit 2 have a display function on the display 102 and a function of receiving input from the keyboard 103 and the pointing device 104.
  • the display unit 5 includes the display 102 and its display function.
  • the connection source part designation unit 1 to the connection creation unit 4 may be configured with dedicated hardware.
  • FIG. 3 shows an execution screen example of a circuit diagram editing program provided by the circuit diagram editing apparatus according to the present embodiment using the display 102.
  • a circuit diagram editing program that uses a function block diagram when creating a program that can be executed on a PLC (programmable logic controller), which is one of circuit diagram editing programs, will be described.
  • the execution screen of the circuit diagram editing program has a main menu 51, a component button 52 for arranging components such as function blocks and functions, an edit area 53 for describing a circuit diagram, and a mode change button 54 for switching an edit mode.
  • This circuit diagram editing program specifies the connection source terminal and the connection destination terminal using the conventional method, creates the connection between both terminals, and specifies the connection source terminal taking advantage of the features of the present invention.
  • There are two editing modes continuous connection editing mode, which can create connections without any problems. These modes can be freely switched by pressing a continuous connection button or standard button on the mode change button 54 or selecting a corresponding menu item in the main menu 51.
  • component IDs are assigned to the components arranged in the editing area 53 and managed in the arrangement order.
  • Terminal IDs are assigned to the terminals of the respective components in order from the upper left to the lower left and then from the upper right to the lower right.
  • a terminal can be uniquely specified by a combination of a component ID and a terminal ID.
  • a combination of a component ID and a terminal ID is called terminal information.
  • the circuit diagram editing apparatus includes an area for storing two types of circuit diagram information, that is, a component information storage area shown in FIG. 4 and a terminal information storage area as shown in FIG. A circuit diagram is displayed in the editing area 53 using these pieces of information.
  • the component information storage area includes a component ID, a component type, and coordinate information (X coordinate, Y coordinate).
  • the terminal information storage area includes terminal information, coordinate information, input / output types, and connection terminal information.
  • the input / output type indicates whether the terminal has an input attribute or an output attribute.
  • the connection terminal information indicates the terminal of the connection partner of the terminal. When the connection is established, the terminal information of the connection partner is stored, and when the connection is not established, both the component ID and the terminal ID are 0. .
  • the editing area 53 when editing of component arrangement, inter-terminal connection, or the like is performed, information on the component information storage area and the terminal information storage area is updated.
  • connection source terminal list (see FIG. 6), a connection destination terminal list (see FIG. 7), and a connection destination terminal counter prepared on the memory 106.
  • the three data storage areas (not shown) are shared and used by the connection source component designating unit 1 to the display unit 5, and the process proceeds. Each data storage area is described below.
  • connection source component specifying unit 1 The terminal information of the terminal which is in the unconnected state of the component specified by the connection source component specifying unit 1 is held in the order of the terminal ID. If the maximum number of terminals that a single component can have in this embodiment is MAX_NUM, this list has MAX_NUM areas from the first to the MAX_NUMth. Further, all the component IDs in this list are the component IDs of the connection source components and have the same value.
  • connection destination terminal specification unit 2 The terminal information of the terminals specified by the connection destination terminal specification unit 2 is held in the specified order. Similar to the connection source terminal list, this list has MAX_NUM areas from the first to the MAX_NUMth.
  • Connection destination terminal counter This area holds an integer value of 0 or more. The number of terminals specified by the connection destination terminal specifying unit 2 is held. This value is the same as the number of terminal information included in the connection destination terminal list.
  • Step ST1 Wait for continuous connection edit mode start event First, wait for the input of a continuous connection edit mode start event for changing from the normal edit mode to the continuous connection edit mode.
  • Step ST2 Data Initialization
  • the connection destination terminal designation unit 2 and the connection source terminal determination unit 3 perform initialization processing of the data storage area.
  • the connection source terminal list and the connection destination terminal list are emptied, and the value of the connection destination terminal counter is set to zero.
  • Step ST3 Wait for input event Wait for an input event.
  • Step ST4 Input Event Determination When an event is input in step ST3, the content of the event is determined. If the event is a continuous connection editing mode end event, the continuous connection editing mode is ended and the normal editing mode is restored. If the event is a connection source component designation event, the process proceeds to step ST5. If the event is a connection destination terminal designation event, the process proceeds to step ST9.
  • Step ST5 Connection Source Terminal List Determination If the event is a connection source component designation event as a result of the determination in step ST4, the connection source terminal determination unit 3 determines whether or not the connection source terminal list is empty. If the connection source terminal list is not empty, the process proceeds to step ST6. If the connection source terminal list is empty, the process proceeds to step ST7. (Step ST6) Data Initialization If the result of determination in step ST5 is that the connection source terminal list is not empty, that is, if a new connection source component is specified with the connection source component already specified, the data storage area Perform initialization processing. The contents of the initialization process are the same as in step ST2.
  • connection source terminal information storage The connection source terminal determination unit 3 stores the terminal information of unconnected terminals of the specified connection source component in the connection source terminal list in ascending order of terminal ID.
  • Step ST8 Connection Destination Terminal Counter Value Determination The connection source terminal determination unit 3 determines the value of the connection destination terminal counter. If the value of the connection destination terminal counter is 0, the connection destination terminal is not specified, so the process returns to step ST3 to wait for the next event. If the value of the connection destination terminal counter is not 0, the process proceeds to step ST14.
  • Step ST9 Unconnected Terminal Remaining Determination
  • the connection destination terminal designation unit 2 determines whether or not an unconnected terminal remains in the connection source terminal list. judge. Specifically, the presence or absence of data in the connection source terminal list is checked. If data exists, the number of data in the connection source terminal list is compared with the value n of the connection destination terminal counter. If there is no data in the connection source terminal list, it is determined that there is an unconnection terminal because the connection source component is not specified, and the process proceeds to step ST11.
  • connection source terminal list and n are less than the number of data in the connection source terminal list, it is determined that there is an unconnected terminal, and the process proceeds to step ST11. If data exists in the connection source terminal list and n is equal to or greater than the number of data in the connection source terminal list, it is determined that there is no unconnected terminal, and the process proceeds to step ST10.
  • Step ST10 Data initialization As a result of the determination in step ST9, when there is no unconnected terminal, that is, when all the terminals of the specified connection source component are already connected, and a new connection destination terminal is specified. Initialize the data storage area. The contents of the initialization process are the same as in step ST2. As a result, the information related to the connection source component that was the previous connection processing target is discarded, and the process proceeds to step ST11.
  • Step ST11 Connection destination terminal counter addition
  • Step ST12 Connection Destination Terminal Information Storage
  • the connection destination terminal designation unit 2 stores the terminal information of the designated connection destination terminal at the nth position in the connection destination terminal list.
  • connection source terminal determination unit 3 receives click information indicating that the connection destination terminal specifying unit 2 has specified a terminal, and there is a connection source terminal corresponding to the specified connection destination terminal. Determine whether. Specifically, it is determined whether or not terminal information exists at the nth position in the connection source terminal list. When there is no terminal information at the nth position in the connection source terminal list, the process returns to step ST3 and waits for the next event. When there is terminal information at the nth position in the connection source terminal list, the process proceeds to step ST14.
  • Step ST14 Connection Creation Instruction If the result of determination in step ST8 is that the connection destination terminal counter is 1 or more, the connection source terminal determination unit 3 determines that the connection destination terminal counter value n and the connection source component have no connection. The number of terminals is compared, and creation of connections is instructed by the smaller value (this value is called m). That is, the connection source terminal determination unit 3 requests the connection creation unit 4 to create m connections from the first to the m-th in the connection source terminal list. Further, as a result of the determination in step ST13, if there is terminal information in the nth connection source terminal list, the connection source terminal determination unit 3 makes the connection generation unit 4 create the nth connection in the connection source terminal list. Ask.
  • connection creation This step is a connection creation process in the connection creation unit 4.
  • the connection creation unit 4 acquires the terminal information of the connection source terminal and the corresponding connection destination terminal from the connection source terminal number specified by the connection source terminal determination unit 3.
  • the p-th terminal information in the connection source terminal list and the p-th terminal information in the connection destination terminal list are acquired.
  • After obtaining the terminal information create connection information that connects both terminals. If either terminal information cannot be obtained, connection information is not created.
  • the creation of connection information specifically refers to creation of a connection object having attributes such as start point coordinates, end point coordinates, bent corner coordinates, line color, and line width.
  • the connection creation unit 4 updates the connection terminal information of the connection source terminal and the connection destination terminal in the terminal information storage area when creating the connection information.
  • Step ST16 Display This step is a display process in the display unit 5.
  • the connection information received from the connection creation unit 4 is displayed on the display unit 5. When multiple pieces of connection information are received, that number is displayed. After the display, the process returns to step ST3 and waits for the next event. With the above internal processing, the connection creation processing in the present embodiment is realized.
  • the mode change button 54 shown in FIG. 3 is used to change from the normal edit mode to the continuous connection edit mode.
  • the process proceeds with steps ST1, ST2, ST3 internally.
  • the subsequent procedures there are three types of procedures depending on the difference in the designation order of the connection source part and the connection destination terminal.
  • the procedures A, B, and C are respectively shown in FIG. 11, FIG. 12, and FIG. Each figure includes an upper part, a middle part, and a lower part, and represents the display state of the editing area 53 in time series from top to bottom.
  • connection source part specification unit 1 displays a part palette showing a list of parts on the editing screen, for example, and the user selects a part from the part palette using the pointing device 104. To specify the wiring source part.
  • any designation method may be used, such as selecting a part to be designated from the part menu or directly inputting a part name using the keyboard 103.
  • the ABS output terminal is designated using the pointing device 104 as the first connection destination terminal.
  • the first input terminal (connection source terminal) of the SUB and the output terminal (connection destination terminal) of the ABS are associated with each other, and the connection is displayed.
  • the highlighting of the first input terminal of the SUB is canceled and the second input terminal of the SUB to be connected next is highlighted (in the middle part of FIG. 11).
  • the process proceeds internally with steps ST4, ST9, ST11, ST12, ST13, ST14, ST15, ST16, ST3.
  • the SQRT output terminal is designated using the pointing device 104 as the second connection destination terminal.
  • the second input terminal (connection source terminal) of the SUB and the output terminal (connection destination terminal) of the SQRT are associated with each other, and the connection is displayed.
  • the highlighting of the second input terminal of the SUB is canceled and the output terminal of the SUB to be connected next is highlighted (lower part of FIG. 11).
  • the process proceeds internally with steps ST4, ST9, ST11, ST12, ST13, ST14, ST15, ST16, ST3.
  • the output terminal of SQRT is designated using the pointing device 104 as the second connection destination terminal.
  • the designated terminal is highlighted and a number “2” indicating the designation order is displayed in the vicinity of the terminal (middle part of FIG. 12).
  • the process proceeds internally with steps ST4, ST9, ST11, ST12, ST13, ST3.
  • the SUB is designated using the pointing device 104 as a connection source component.
  • the first input terminal (connection source terminal) of SUB and the output terminal (connection destination terminal) of ABS, the second input terminal (connection source terminal) of SUB, and the output terminal (connection destination terminal) of SQRT are associated with each other. Each connection is displayed.
  • connection source part is specified while the connection destination terminal is specified, and then the connection destination part is continuously specified.
  • the ABS output terminal is designated using the pointing device 104 as the first connection destination terminal.
  • the designated terminal is highlighted and a number “1” indicating the designation order is displayed in the vicinity of the terminal (upper part of FIG. 13).
  • the process proceeds internally with steps ST4, ST9, ST11, ST12, ST13, ST3.
  • the SUB is designated using the pointing device 4 as the connection source component.
  • the first input terminal (connection source terminal) of the SUB and the output terminal (connection destination terminal) of the ABS are associated with each other, and the connection is displayed.
  • the SQRT output terminal is designated using the pointing device 104 as the second connection destination terminal.
  • the second input terminal (connection source terminal) of the SUB is associated with the output terminal (connection destination terminal) of the SQRT, and the connection is displayed.
  • the highlighting of the second input terminal of the SUB is canceled and the output terminal of the SUB to be connected next is highlighted (lower part of FIG. 13).
  • the process proceeds internally with steps ST4, ST9, ST11, ST12, ST13, ST14, ST15, ST16, ST3.
  • connection was created by specifying the connection source terminal and the connection destination terminal of each connection. Therefore, when creating two connections, use a pointing device or the like four times (two One connection source terminal and two connection destination terminals) had to be specified.
  • connection source component it is not necessary to explicitly specify the connection source terminal, so three times (one connection source component and two connection destinations). It is possible to create two connections by specifying the terminal, and the number of steps for creating the connection is reduced. In this example, two connections are created from the connection source parts. However, as the number of connections starting from the connection source parts increases, the effect of reducing the number of labor compared to the conventional method increases.
  • connection creation process is the same as any of the above-described three types of procedures, and thus description thereof is omitted here.
  • connection creation process when the connection creation process is performed, if there is no connection destination terminal yet, it is possible to hold the connection source terminal that is not connected as an empty terminal. It is.
  • the procedure A described above a procedure when the first input terminal of the SUB is an empty terminal and only the second input terminal of the SUB is connected will be described.
  • the state of the editing area 53 is shown in FIG.
  • a SUB is designated using the pointing device 104 as a connection source part. At this time, the SUB is highlighted as the connection source part, and the first input terminal of the SUB to be connected is highlighted (upper part in FIG. 15).
  • the process proceeds internally with steps ST4, ST5, ST7, ST8, ST3.
  • the first input terminal of the SUB is designated using the pointing device 104 in order to make the first input terminal of the SUB an empty terminal. As a result, the first input terminal of the SUB is not connected to any terminal, the highlighting of the first input terminal of the SUB is released, and the second input terminal of the SUB to be connected next is highlighted (FIG. 3). 15 middle).
  • the designation of the empty terminal is realized by designating the connection source terminal when designating the connection destination terminal.
  • the process proceeds internally with steps ST4, ST9, ST11, ST12, ST13, ST14, ST15, ST16, ST3.
  • step ST15 since the connection source terminal and the connection destination terminal are the same terminal, no connection is created.
  • connection between the second input terminals of SQRT and SUB is performed by the same processing as in procedure A (see the lower part of FIG. 15).
  • the connection source terminal without the connection destination terminal is reserved as an empty terminal, and the connection with the connection destination terminal is present.
  • the connection creation processing it is possible to perform the connection creation processing according to the present invention.
  • the empty terminal is specified by specifying the connection source terminal using the pointing device 104 when specifying the connection destination terminal.
  • the method of specifying the empty terminal is not limited to this operation. For example, by using the pointing device 104, a position that is neither a circuit component nor a terminal on the editing area 53 is specified, or a space key, a Tab key, or the like on the keyboard 103 is pressed, and an empty terminal is specified. May be performed.
  • connection source part ⁇ Continuous designation of wiring source parts>
  • ABS is designated as the connection source component from the final state of procedure A
  • the result is as shown in the upper part of FIG. 16, and the ABS and ABS input terminals are highlighted.
  • the process proceeds internally with steps ST4, ST5, ST6, ST7, ST8, ST3.
  • step ST5 since SUB is designated as the connection source part, the process proceeds to step ST6, where data initialization processing is performed, and the process is advanced using ABS as a new connection source part.
  • step ST6 since the SUB is designated as the connection source part, the process proceeds to step ST6, where data initialization processing is performed, and the process is advanced using ABS as a new connection source part.
  • the SUB output terminal is designated as the connection destination terminal
  • the ABS input terminal to be connected is connected to the SUB output terminal designated as the connection destination terminal (lower part of FIG. 16).
  • the ABS connection process can be continuously performed without ending the continuous connection edit mode.
  • connection creation process can be performed continuously by the above method, but the connection destination terminal corresponding to ( ⁇ ) Is designated before the designation of the connection source part ( ⁇ ), the connection creation processing can be continuously performed by the following method.
  • the subsequent connection destination terminal specification is associated with the connection source part ( ⁇ ) specified thereafter, so an explicit operation is performed.
  • the connection creation process for ( ⁇ ) can be performed.
  • ( ⁇ ) has an unconnected terminal and you want to specify a connection destination terminal corresponding to the next connection source part ( ⁇ )
  • a connection creation process for ( ⁇ ) can be performed. For example, an operation of simultaneously pressing the left and right buttons of the pointing device may be assigned to an end operation of the connection creation process for the current connection source component.
  • connection creation method In the present embodiment, after the association between the connection destination terminal and the connection source terminal is confirmed, the connection between the terminals is drawn without an explicit instruction.
  • Various policies can be considered for establishing a connection route at that time.
  • the shortest route is calculated by a combination of a vertical line and a horizontal line, and drawing is performed according to the route.
  • an automatic route search method disclosed in Japanese Patent Application Laid-Open No. 60-8982 can be used. If an obstacle such as another circuit component exists on the calculated route, the route that bypasses the obstacle is recalculated as shown in FIG. 17, and the connection is drawn according to the bypass route.
  • connection shifted from the position of the existing connection may be recalculated and the connection drawn according to the route.
  • the connection is realized by a combination of a vertical line and a horizontal line, but an oblique line may be used as shown in FIG.
  • the policy of taking the shortest route is used, but other policies such as a policy for minimizing the number of bends and a policy for minimizing the intersection of connection lines can be considered.
  • a route calculation method may be used.
  • connection destination component a component having a connection destination terminal (connection destination component) may be specified.
  • connection destination component a component having a connection destination terminal
  • the processing proceeds with the unconnected terminal as the connection destination terminal.
  • the process proceeds with the connection terminal having the smallest terminal number among the unconnection terminals of the connection destination part.
  • connection source component designating unit for designating the connection source component
  • connection destination terminal designating unit for designating the connection destination terminal
  • unconnected connection source component When connecting from the terminal to the connection destination terminal, the connection source part to be connected based on the specified order of the connection destination terminal by the connection destination terminal specifying unit and the predetermined terminal order of the unconnected terminal of the connection source part
  • a connection source terminal determination unit for associating an unconnected terminal with a connection destination terminal
  • a connection creation unit for connecting between the unconnection terminal and the connection destination terminal associated with each other at the connection source terminal determination unit Therefore, it is possible to realize connection between desired terminals without explicitly designating the connection source terminal, and therefore, it is possible to reduce the trouble of editing the circuit diagram.
  • connection source terminal determination unit is responsive to the specification of the connection source component by the connection source component specification unit and the specification of the connection destination terminal by the connection destination terminal specification unit. Since the unconnected terminal and the connection destination terminal of the connection source part are associated with each other, the specification of the connection source part and the specification of the connection destination terminal can be performed in any order. Connections can be created with a flexible operation procedure according to the situation.
  • the circuit diagram editing apparatus according to the present embodiment performs connection creation processing according to different operation procedures, changes some operation modes, and the like, as described as procedure A, procedure B, and procedure C in the embodiment. Therefore, the user can create a connection using a desired operation procedure.
  • circuit diagram editing program of the first embodiment when connecting from the unconnected terminal of the connection source component to the specified connection destination terminal, the specified order of the connection destination terminal and the connection source component Based on a predetermined terminal order in the connection terminal, a connection source terminal determination unit for associating an unconnection terminal and a connection destination terminal of a connection source component to be connected, and a connection source terminal determination unit that is not associated with the connection source terminal determination unit Since it is made to function as a connection creation unit that connects between the connection terminal and the connection destination terminal, a circuit diagram editing apparatus that can reduce the trouble of circuit diagram editing can be realized on a computer.
  • FIG. 19 is a configuration diagram showing a circuit diagram editing apparatus according to the second embodiment.
  • the configuration of the circuit diagram editing apparatus according to the present embodiment is the same as that of the first embodiment except that the terminal order determining unit 6 is added to the configuration of the first embodiment.
  • the terminal order determination unit 6 is configured to determine the terminal order of the unconnected terminals of the connection source part according to a predetermined terminal order determination rule when the connection source part is specified by the connection source part specification unit 1.
  • the hardware configuration for realizing the circuit diagram editing apparatus according to the present embodiment is the same as the circuit configuration shown in FIG. 2.
  • a program corresponding to the function is stored in the hard disk 107. It is realized by being stored and executed by the CPU 105.
  • the circuit diagram editing apparatus includes a terminal order determination unit 6 that determines the terminal order according to a predetermined terminal order determination rule.
  • the terminal order of the unconnected terminals of the connection source component is dynamically changed according to the component arrangement status.
  • the terminal order determination unit 6 has a terminal order determination rule inside.
  • the terminal order determination rule includes a condition part and a priority designation part. When the contents written in the condition part are satisfied, the terminal order is corrected according to the contents written in the priority designation part.
  • the flow of internal processing at the time of creating a connection in the present embodiment is the same as that in the first embodiment except for the connection source terminal information storage process in step ST7 in FIG.
  • the flow of the process of step ST7 in this Embodiment is shown in the flowchart of FIG.
  • Step ST21 Terminal Order Determination Rule Determination
  • the terminal order determination unit 6 determines whether the contents of the condition part of the terminal order determination rule are satisfied. If not, nothing is done and the process proceeds to step ST23. If it is established, the process proceeds to step ST22.
  • Step ST22 When the determination result of step ST21 is established, the terminal ID of the connection source terminal is corrected according to the contents written in the priority designation part of the terminal order determination rule.
  • Step ST23 The connection source terminal determination unit 3 stores, in the connection source terminal list, terminal information of unconnected terminals included in the specified connection source component in ascending order of terminal ID.
  • Condition part The wiring source part has an input terminal of the same type as the output terminal of the circuit part arranged immediately before.
  • Priority designation part Prioritizes the corresponding terminal.
  • FUNC is designated as a connection source part, and the second input terminal of FUNC
  • the first input terminal at the upper left is an integer type (INT type)
  • the second input terminal at the lower left is a real number type (REAL type)
  • the output terminal on the right side is an integer type.
  • the terminal order determination unit 6 determines that the output terminal of the SQRT, which is the component placed immediately before, is a real number type, so that the FUNC that is the connection source terminal If there is a real type terminal among the input terminals, the terminal is given priority over other terminals.
  • this terminal is a connection source terminal to be connected first.
  • FUNC is highlighted as the connection source terminal, and the second input terminal is highlighted as the first connection source terminal.
  • the SQRT output terminal and the FUNC second input terminal are connected as shown in the lower part of FIG. 21, and the FUNC first input terminal is connected as the next connection source terminal.
  • the order of designation of the FUNC connection source terminals in the configuration of the first embodiment is the order of the first input terminal, the second input terminal, and the output terminal, but the predetermined terminal order is determined by the configuration of the present embodiment. By applying the rule, the second input terminal, the first input terminal, and the output terminal are changed in this order.
  • the terminal order decision rule that gives priority to the case where the wiring source component has the same type of input terminal as the output terminal type of the circuit component placed immediately before, but the terminal order decision rule is A desired one can be set.
  • a terminal order determination rule may be adopted in which priority is given to the case where the connection source component has the same type of input terminal as that of the unconnected output terminal drawn on the editing area 53.
  • the terminal order of unconnected terminals of the connection source component is determined according to a predetermined terminal order determination rule.
  • a terminal order determination unit that performs connection when the terminal order determination unit determines the terminal order, and associates the unconnected terminal of the connection source component with the connection destination terminal in the terminal order. Therefore, the terminal order of the connection source parts to be connected can be dynamically changed according to the terminal order determination rule, and therefore the connection work can be performed more flexibly.
  • FIG. 22 is a block diagram showing a circuit diagram editing apparatus according to the third embodiment.
  • This circuit diagram editing apparatus is obtained by adding an unconnected terminal determination unit 7 having a junction insertion unit 8 to the circuit diagram editing apparatus of the first embodiment.
  • the unconnected terminal determination unit 7 determines whether or not the connection destination terminal specified by the connection destination terminal specifying unit 2 is an unconnected terminal. If the terminal is not an unconnected terminal, the junction insertion unit 8 determines a junction. It is a functional part to be inserted.
  • the junction insertion unit 8 is a functional unit that inserts a junction for branching a value on the connection.
  • the hardware configuration of the present embodiment is the same as that of the first embodiment, and the unconnected terminal determination unit 7 stores a program corresponding to the function in the hard disk 107 and is read and executed by the CPU 105. Is realized.
  • Step ST31 Unconnected State Determination
  • the unconnected terminal determination unit 7 determines whether the connection destination terminal specified by the connection destination terminal specifying unit 2 is an unconnected terminal. If it is an unconnected terminal, no special processing is performed and the process proceeds to step ST33. If it is not an unconnected terminal, the process proceeds to step ST32.
  • Step ST32 Junction Insertion If the determination result in step ST31 is not an unconnected terminal, the junction insertion unit 8 inserts a junction for branching a value on a line already connected to the connection destination terminal. After inserting the junction, the process proceeds to step ST33.
  • Step ST33 Connection Destination Terminal Information Storage
  • the connection destination terminal designation unit 2 stores the connection destination terminal information in the connection destination terminal list.
  • the junction becomes a connection destination terminal, and information on the junction is stored in the connection destination terminal list.
  • (Operation example)
  • the four parts ADD, ABS, SQRT, and SUB as shown in the upper part of FIG. 24 are arranged, and the second input terminal of ADD and the output terminal of ABS are already connected.
  • the operation when the first input terminal of the SUB and the output terminal of the ABS are connected will be described.
  • a SUB is designated using the pointing device 104 as a connection source part.
  • the SUB is highlighted as the connection source part, and the first input terminal of the SUB to be connected is highlighted (in the middle part of FIG. 24).
  • the process proceeds internally with steps ST4, ST5, ST7, ST8, ST3.
  • an ABS output terminal is designated using the pointing device 104 as a connection destination terminal.
  • the ABS output terminal is already connected to the ADD second input terminal and is not an unconnected terminal, it is determined by the unconnected terminal determination unit 7 that the connection has been completed.
  • the junction that distributes the value to is inserted.
  • the connection which uses this junction as a connection tip terminal is displayed.
  • the highlighting of the first input terminal of the SUB is canceled, and the second input terminal of the SUB to be connected next is highlighted (lower part of FIG. 24).
  • connection destination terminal specified by the connection destination terminal specifying unit is an unconnected terminal.
  • connection processing is performed in consideration of input / output attributes of terminals.
  • the connection processing is performed without considering the input / output attribute of each terminal.
  • the input / output attribute is set in a situation where each terminal has the input / output attribute.
  • An example of connection in consideration is described.
  • connection source terminal determination unit 3 of the fourth embodiment is the same as that of the connection source terminal determination unit 3 of the first embodiment, when the connection process is performed, the connection between the input terminal and the output terminal of the circuit component is performed. It is comprised so that only this connection may be performed. Other configurations are the same as those of the first embodiment.
  • the hardware configuration of the present embodiment is the same as that shown in FIG.
  • connection source terminal list In the first embodiment, three types of connection source terminal list, connection destination terminal list, and connection destination terminal counter are prepared as data holding areas. However, in this embodiment, input and output are provided in each of the three types of areas. There are a total of six types of data holding areas (input connection source terminal list, output connection source terminal list, input connection destination terminal list, output connection destination terminal list, input connection destination terminal counter, and output connection destination terminal counter. seed).
  • the data structure of the input connection source terminal list and the output connection source terminal list is the same as that of the connection source terminal list, and the data structure of the input connection destination terminal list and the output connection source terminal list is the same as that of the connection destination terminal list.
  • the six types of data holding areas are divided into two areas: an input connection destination terminal data holding area and an output connection destination terminal data holding area.
  • the data holding area for the input connection destination terminal is a data holding area used when the connection destination terminal has an input attribute, and consists of three types: an input connection destination terminal list, an input connection destination terminal counter, and an output connection source terminal list.
  • the data holding area for the output connection destination terminal is a data holding area used when the connection destination terminal has an output attribute, and consists of three types: an output connection destination terminal list, an output connection destination terminal counter, and an input connection source terminal list. .
  • a terminal with an input attribute is specified as the connection destination terminal by associating the output connection source terminal list with the input connection destination terminal list, and the input connection source terminal list with the output connection destination terminal list, the output attribute of the connection source part
  • the terminal can be connected to a terminal having an input attribute of the connection source component.
  • FIG. 25 is a flowchart showing internal processing when creating a connection in the circuit diagram editing apparatus according to the present embodiment. This flowchart is different from the contents of processing in several steps, but the basic processing flow is the same as that of the first embodiment shown in FIG. In the following, steps that differ in processing will be described.
  • Step ST402 (Step ST406) (Step ST410) Data initialization
  • the input connection source terminal list, the output connection source terminal list, the input connection destination terminal list, the output connection destination terminal list, and the input connection destination terminal Six types of data holding areas of the counter and the output connection destination terminal counter are initialized by the connection destination terminal designating unit 2 and the connection source terminal determining unit 3.
  • Step ST405 Connection source terminal list determination As a result of the determination in step ST4, if the event is a connection source component designation event, the connection source terminal determination unit 3 has an empty input connection source terminal list and an output connection source terminal list. Determine whether or not. If either the input connection source terminal list or the output connection source terminal list is not empty, the process proceeds to step ST406.
  • connection source terminal information storage The connection source terminal determination unit 3 stores in the input connection source terminal list the terminal information of the unconnected input terminals of the specified connection source parts in ascending order of the terminal IDs, and the output connection In the original terminal list, the terminal information of the unconnected output terminals of the designated connection source component is stored in ascending order of the terminal IDs.
  • connection destination terminal counter value determination The connection source terminal determination part 3 determines the value of an input connection destination terminal counter and an output connection destination terminal counter.
  • step ST3 If the values of both the input connection destination terminal counter and the output connection destination terminal counter are 0, the connection destination terminal is not specified, so the process returns to step ST3 and waits for the next event. If the value of either the input connection destination terminal counter or the output connection destination terminal counter is not 0, the process proceeds to step ST414.
  • connection destination terminal designating unit 2 determines whether or not unconnected terminals remain in the input connection source terminal list and the output connection source terminal list. Check the existence of data in the input connection source terminal list and the output connection source terminal list. If data exists in the input connection source terminal list, the number of data in the input connection source terminal list and the value of the output connection destination terminal counter (this value) If no data exists in the output connection source terminal list, the number of data in the output connection source terminal list is compared with the value of the input connection destination terminal counter (this value is set to ni).
  • step ST411 If there is no data in both the input connection source terminal list and the output connection source terminal list, the connection source component is in an unspecified state, so it is determined that there is an unconnected terminal, and the process proceeds to step ST411. If there is data in the input connection source terminal list and no is less than the number of data in the input connection source terminal list, it is determined that there is an unconnected terminal, and the process proceeds to step ST411. If there is data in the output connection source terminal list and ni is less than the number of data in the output connection source terminal list, it is determined that there is an unconnected terminal, and the process proceeds to step ST411. In cases other than the above, it is determined that there is no unconnected terminal, and the process proceeds to step ST410.
  • Step ST411 Connection destination terminal counter addition If the designated connection destination terminal has an input attribute, the connection destination terminal specifying unit 2 adds 1 to the input connection destination terminal counter. If the designated connection destination terminal has an output attribute, the connection destination terminal specifying unit 2 adds 1 to the output connection destination terminal counter.
  • Step ST412 Connection destination terminal information storage If the designated connection destination terminal has an input attribute, the connection destination terminal designation unit 2 stores the terminal information of the designated connection destination terminal in the nith position of the input connection destination terminal list. store. If the designated connection destination terminal has an output attribute, the connection destination terminal designating unit 2 stores the terminal information of the designated connection destination terminal in the no-th place in the output connection destination terminal list.
  • connection source terminal determination unit 3 receives click information indicating that the connection destination terminal specification unit 2 has specified a terminal, and there is a connection source terminal corresponding to the specified connection destination terminal. Determine whether. If the designated connection destination terminal has an input attribute, it is determined whether or not terminal information exists at the ni-th in the output connection source terminal list. If there is no corresponding terminal information in the output connection source terminal list, the process returns to step ST3 and waits for the next event. If there is terminal information corresponding to the output connection source terminal list, the process proceeds to step ST414. If the designated connection destination terminal is an output attribute, it is determined whether or not terminal information exists in the no-th input connection source terminal list. If there is no corresponding terminal information in the input connection source terminal list, the process returns to step ST3 and waits for the next event. If there is terminal information corresponding to the input connection source terminal list, the process proceeds to step ST414.
  • connection creation instruction The connection source terminal determination unit 3 compares ni and the number of unconnected terminals of the output connection source component, and connects the connection by the smaller value (this value is called mi). Instruct creation. That is, the connection origin terminal determination unit 3 requests the connection creation unit 4 to create mi connections from the first to the mith in the output connection source terminal list. Next, the connection source terminal determination unit 3 compares no and the number of unconnected terminals of the input connection source component, and instructs the creation of connections by the smaller value (this value is called mo). . That is, the connection origin terminal determination unit 3 requests the connection creation unit 4 to create mo connections from the first to the moth in the input connection source terminal list. Moreover, when there exists applicable connection origin terminal information as a result of determination by step ST413, the connection origin terminal determination part 3 requests the connection preparation part 4 to produce the connection about a corresponding connection origin terminal.
  • FIG. 26 The state of the editing area 53 is shown in FIG. As shown in the uppermost part of FIG. 26, four parts of ABS, SQRT, SUB, and ADD are arranged. The left terminal of each component has an input attribute, and the right terminal has an output attribute.
  • a SUB is designated using the pointing device 104 as a connection source part. At this time, the SUB is highlighted as the connection source part, and the first input terminal and the output terminal of the SUB to be connected are highlighted (second from the top in FIG. 26).
  • the process proceeds internally with steps ST4, ST405, ST407, ST408, ST3.
  • the ABS output terminal is designated using the pointing device 104 as the first connection destination terminal.
  • the connection destination terminal is an output terminal
  • the connection source terminal becomes the first input terminal of the SUB that is the connection target terminal having the input attribute, and both terminals are associated with each other and the connection is displayed.
  • the highlighting of the first input terminal of the SUB is canceled, and the second input terminal and the output terminal of the SUB to be connected next are highlighted (third from the top in FIG. 26).
  • the process proceeds internally with steps ST4, ST409, ST411, ST412, ST413, ST414, ST415, ST416, ST3.
  • the first input terminal of the ADD is specified using the pointing device 104 as the second connection destination terminal.
  • the connection destination terminal is an input terminal
  • the connection source terminal becomes an output terminal of a SUB that is a connection target terminal having an output attribute
  • both terminals are associated with each other, and a connection is displayed.
  • the highlighted display of the SUB output terminal is canceled and the second input terminal of the SUB to be connected next is highlighted (fourth from the top in FIG. 26).
  • the process proceeds internally with steps ST4, ST409, ST411, ST412, ST413, ST414, ST415, ST416, ST3.
  • the SQRT output terminal is specified using the pointing device 104 as the third connection destination terminal.
  • the connection destination terminal is the output terminal
  • the connection source terminal becomes the second input terminal of the SUB that is the connection target terminal having the input attribute, and both terminals are associated with each other and the connection is displayed.
  • the highlighting of the SUB and the second input terminal of the SUB is canceled (lowermost part in FIG. 26).
  • the connection source terminal determination unit performs the connection process between the input terminal and the output terminal of the circuit component. Since it is configured to perform only the connection, there is no restriction on the specification order regarding the input / output attributes of the terminal, that is, the output terminal connection process is performed after the input terminal connection process of the connection source part, the input terminal side connection and the output terminal side These connections can be performed in an arbitrary order. However, it is necessary to specify in the terminal order in the input terminal and in the terminal order in the output terminal. Also, terminals with input attributes and terminals with output attributes are never connected, and terminals with input attributes are always connected with terminals with output attributes. It can be correct.
  • FIG. 27 is a block diagram showing a circuit diagram editing apparatus according to the present embodiment.
  • the configuration of the circuit diagram editing apparatus according to the present embodiment is the same as that of the first embodiment except that the component placement unit 9 is added to the configuration of the first embodiment.
  • the component placement unit 9 is configured to place a component and simultaneously designate the placement component as a connection source component.
  • the hardware configuration for realizing the circuit diagram editing apparatus according to the fifth embodiment is the same as that of the first embodiment.
  • the component placement unit 9 stores a program corresponding to the function in the hard disk 107 and is executed by the CPU 105. It is realized by being read and executed.
  • FIG. 28 is a flowchart showing the flow of processing of the fifth embodiment. The processing flow shown in FIG. 28 is obtained by adding steps ST51, ST52, and ST53 to the flowchart of the first embodiment shown in FIG. The processing contents of the added steps are shown below.
  • Step ST51 Placement Event Determination It is determined whether the input event is a component placement event by the component placement unit 9. If it is a component placement event, the process proceeds to step ST52. If it is an event other than a component placement event (connection source component designation event, connection destination terminal designation event, continuous connection editing mode end event), the process proceeds to step ST4, and thereafter the same processing as in the first embodiment is performed.
  • Step ST52 Component Placement Processing When a component placement event is received, the component placement unit 9 places the designated component at the designated coordinates. At the time of arrangement, information on the parts corresponding to the part information storage area and the terminal information storage area and the terminals of the parts are stored.
  • Step ST53 Connection source component designation event issuance
  • the component placement unit 9 issues a connection source component designation event with the placed component as the connection source component after the placement of the components is completed. After issuing the event, the process proceeds from step ST4 to step ST5, and the subsequent processing is the same as in the first embodiment.
  • circuit diagram editing is often performed by repeating component placement work and inter-terminal connection work, such as placing a new part and connecting the terminal of the part to an existing terminal. .
  • a procedure is required in which the arranged component is designated as the connection source component.
  • the editing is started from the situation where the two parts ABS and SQRT as shown in FIG. 29 are already arranged in the editing area 53 on the display 102, and the parts SUB are arranged.
  • a procedure for connecting in this way will be described.
  • the mode change button shown in FIG. 3 is used to change from the normal edit mode to the continuous connection edit mode.
  • the subsequent procedures there are three types of procedures depending on the difference in the order of the parts arrangement and the connection destination terminals.
  • the procedures D, E, and F are respectively shown in FIG. 11, FIG. 30, and FIG. Each figure consists of an upper part, a middle part, and a lower part, and represents the display state of the editing area in time series from top to bottom.
  • connection destination terminals are designated in order.
  • the pointing device 104 is used to select a SUB that is a placement target component from the component button 52, and a desired position on the editing area is designated and placed.
  • the SUB is displayed at the designated position.
  • the arranged SUB is automatically designated as a connection source part, and the first input terminal of SUB and SUB is highlighted (upper part of FIG. 11).
  • the process proceeds internally with steps ST51, ST52, ST53, ST4, ST5, ST7, ST8, ST3.
  • the subsequent processing is the same as the procedure A of the first embodiment.
  • connection destination terminals are first specified in order, and then components that are connection sources are arranged.
  • the ABS output terminal is designated using the pointing device 104 as the first connection destination terminal. At this time, the designated terminal is highlighted and a number “1” indicating the designation order is displayed near the terminal (upper part of FIG. 30).
  • the process proceeds internally with steps ST51, ST4, ST9, ST11, ST12, ST13, ST3.
  • the output terminal of SQRT is designated using the pointing device 104 as the second connection destination terminal. At this time, the designated terminal is highlighted and a number “2” indicating the designation order is displayed in the vicinity of the terminal (the middle part of FIG. 30).
  • the process proceeds internally with steps ST51, ST4, ST9, ST11, ST12, ST13, ST3.
  • the pointing device 104 is used to select the SUB that is the placement target part from the part button 52, and the desired position on the editing area is designated and placed.
  • the SUB is displayed at the designated position.
  • the SUB first input terminal (connection source terminal) and the ABS output terminal (connection destination terminal), and the SUB second input terminal (connection source terminal) and the SQRT output terminal (connection destination terminal) are associated with each other. Each connection is displayed.
  • the process proceeds internally with steps ST51, ST52, ST53, ST4, ST5, ST7, ST8, ST14, ST15, ST16, ST3.
  • connection source component is arranged in the middle of designating a connection destination terminal, and then the connection destination component is continuously designated.
  • the ABS output terminal is designated using the pointing device 104 as the first connection destination terminal.
  • the designated terminal is highlighted and a number “1” indicating the designation order is displayed in the vicinity of the terminal (upper part of FIG. 31).
  • the process proceeds internally with steps ST51, ST4, ST9, ST11, ST12, ST13, ST3.
  • the pointing device 104 is used to select the SUB that is the placement target part from the part button 52, and the desired position on the editing area is designated and placed.
  • the SUB is displayed at the designated position.
  • the first input terminal (connection source terminal) of the SUB and the output terminal (connection destination terminal) of the ABS are associated with each other and the connection is displayed.
  • the number indicating the designation order displayed in the vicinity of the connection destination terminal disappears, the highlighting of the connection destination terminal is canceled, and the SUB that is the connection source component and the second input terminal of the SUB that is the next connection target Is highlighted (the middle part of FIG. 31).
  • the process proceeds internally with steps ST51, ST52, ST53, ST4, ST5, ST7, ST8, ST14, ST15, ST16, ST3.
  • the SQRT output terminal is designated using the pointing device 104 as the second connection destination terminal.
  • the second input terminal (connection source terminal) of the SUB is associated with the output terminal (connection destination terminal) of the SQRT, and the connection is displayed.
  • the highlighting of the second input terminal of the SUB is canceled, and the output terminal of the SUB to be connected next is highlighted (lower part of FIG. 31).
  • the process proceeds internally with steps ST51, ST4, ST9, ST11, ST12, ST13, ST14, ST15, ST16, ST3.
  • connection source terminal may be highlighted not only on the editing area 53 but also on the component button 52.
  • the component is arranged and the component placement unit for designating the component as the connection source component is provided at the same time as the placement, the component to be placed is connected. Since it is automatically specified as the original part, the connection creation process can be executed without explicitly specifying the connection source part, and the labor of editing the circuit diagram can be further reduced.
  • FIG. 32 is a block diagram showing a circuit diagram editing apparatus according to the sixth embodiment.
  • the configuration of the circuit diagram editing apparatus according to the sixth embodiment is obtained by adding a distance determination unit 10 and an indirect label insertion unit 11 to the configuration of the first embodiment.
  • the distance determination unit 10 is a functional unit that determines whether a connection source terminal and a connection destination terminal that are associated as connection targets satisfy a predetermined condition based on a distance between these terminals.
  • the indirect label insertion unit 11 is a functional unit that inserts an indirect label indicating a logical connection relationship on the circuit diagram when the distance determination unit 10 determines that a predetermined condition is satisfied. Since the configuration other than this is the same as that of the first embodiment, the same reference numerals are assigned to the corresponding portions, and the description thereof is omitted.
  • the hardware configuration for realizing the circuit diagram editing apparatus according to the sixth embodiment is the same as that shown in FIG. That is, the distance determination unit 10 and the indirect label insertion unit 11 store programs corresponding to the respective functions in the hard disk 107, read the corresponding programs by the CPU 105, expand them on the memory 106, and execute them. Function is realized.
  • circuit diagram editing apparatus The operation of the circuit diagram editing apparatus according to the sixth embodiment will be described below.
  • a method of inserting an intermediate variable that is an indirect label when the distance from the connection source terminal to the connection destination terminal is long using the distance determination unit 10 and the indirect label insertion unit 11 will be described.
  • the circuit diagram editing program manages a circuit diagram by a concept called a sheet.
  • a part of the sheet is cut out and displayed on the display 102.
  • editing of the circuit diagram proceeds while moving the display range on the editing area 53 using a scroll bar or the like.
  • Become The connection between terminals located on the sheet is long and difficult to see, and it is necessary to scroll to confirm the correspondence between the connection source terminal and the connection destination terminal. is there.
  • an intermediate variable is introduced as an indirect label, and a direct connection is not performed on the sheet, but a method of maintaining a logical connection relationship is used.
  • an intermediate variable is introduced to provide a logical connection relationship between the sheets.
  • Step ST61 Terminal Distance Determination If the result of determination in step ST8 is that the connection destination terminal counter is 1 or more, the connection source terminal determination unit 3 determines whether the connection destination terminal counter value n and the connection source component have The number of connection terminals is compared, and the distance determination unit 10 is requested to determine the distance for the connection source terminals by the smaller value (this value is referred to as m). If the result of determination in step ST13 is that there is terminal information at the nth terminal in the connection source terminal list, the connection source terminal determination unit 3 determines the distance determination for the nth connection source terminal in the connection source terminal list. Request to the determination unit 10.
  • the distance determination unit 10 calculates the distance between both terminals for all requested connection source terminals from the coordinate information of the connection destination terminals corresponding to the connection source terminals. Here, the sum of the square of the difference between the X coordinate values and the square of the difference between the Y coordinate values is taken, and the square root of the value is taken as the distance. If the distance is greater than or equal to the predetermined intermediate variable insertion distance, it is determined as a long distance, and if the distance between both terminals is less than the intermediate variable insertion distance, it is determined as a short distance. When the connection source terminal and the connection destination terminal exist on different sheets, the distance determination unit 10 determines that the distance between both terminals is a long distance.
  • the distance is calculated by the method described above, but the present invention is not limited to this method.
  • the function block diagram since the Y coordinate distance may be more important than the X coordinate distance, only the Y coordinate distance may be used, or a calculation method in which the Y coordinate is weighted is used. May be.
  • a circuit group having a connection relationship may be managed in units of networks, and therefore, determination may be made on the basis of various criteria such as a long distance when the network is remote. .
  • Step ST62 Intermediate Variable Insertion
  • the indirect label insertion unit 11 When the determination result in step ST61 is a long distance, the indirect label insertion unit 11 generates the same intermediate variable in the vicinity of the connection source terminal and the connection destination terminal.
  • Step ST63 Connection Creation Instruction
  • the distance determination unit 10 requests the connection creation unit 4 to create a connection between the connection source terminal and the corresponding connection destination terminal.
  • the indirect label insertion unit 11 connects the connection source unit and the intermediate variable in the vicinity of the connection source terminal to the connection creation unit 4, and the connection destination terminal and the connection destination terminal. Request the creation of a connection between intermediate variables in the vicinity of.
  • the intermediate variable insertion distance setting prepared in the main menu 51 is set before performing the connection creation processing procedure.
  • the intermediate variable insertion distance is a reference distance value for inserting the intermediate variable. If the distance between the connection source terminal and the connection destination terminal is equal to or greater than the intermediate variable insertion distance, the intermediate variable is inserted. If it is less than the intermediate variable insertion distance, the intermediate variable is not inserted. Since a default value (for example, 1000 pixels) is set for the intermediate variable insertion distance, it is possible to insert an intermediate variable without explicitly setting the intermediate variable insertion distance.
  • connection displayed on the editing area 53 is the same as that in the first embodiment, and is equal to or longer than the intermediate variable insertion distance.
  • an intermediate variable is inserted between both terminals, and no physical connection is made, but the logical connection relationship is maintained.
  • the other operation procedures are the same as those in the first embodiment.
  • the intermediate variable M1 is displayed as an indirect label.
  • any label may be used as long as it indicates a logical connection relationship.
  • the distance for determining whether or not the unconnected terminal and the connected terminal of the connection source component satisfy a predetermined condition based on the distance between these terminals is provided so as to be positioned in the vicinity of each terminal. Since it has an indirect label insertion part, it can automatically insert an indirect label when a predetermined condition based on the distance between the terminals is satisfied, such as a long distance or connection between terminals on different sheets. Therefore, the number of indirect label insertion work can be reduced.
  • FIG. 35 is a block diagram showing a circuit diagram editing apparatus according to the seventh embodiment.
  • the configuration of the circuit diagram editing apparatus according to the present embodiment is obtained by adding a signal type determination unit 12, a signal type conversion component insertion unit 13, and a signal type conversion component storage unit 14 to the configuration of the first embodiment.
  • the signal type determination unit 12 is a functional unit that determines the signal types of the connection destination terminal and the connection source terminal specified as the connection target.
  • the signal type indicates the characteristics of the signal input / output to / from the terminal.
  • the signal type conversion component insertion unit 13 converts the signal type of the connection destination terminal from the signal type conversion component storage unit 14 to the signal type of the connection source terminal.
  • This is a functional unit that takes out the signal type conversion component to be converted into, and inserts it between the connection destination terminal and the connection source terminal.
  • the signal type conversion component storage unit 14 is a storage unit that stores signal type conversion components for converting various signal types. Since the configuration other than this is the same as that of the first embodiment, the same reference numerals are assigned to the corresponding portions, and the description thereof is omitted.
  • the hardware configuration for realizing the circuit diagram editing apparatus according to the seventh embodiment is the same as the configuration shown in FIG. That is, the signal type determination unit 12 and the signal type conversion component insertion unit 13 store programs corresponding to the respective functions in the hard disk 107, read the corresponding programs by the CPU 105, expand them on the memory 106, and execute them. Each function is realized.
  • the signal type conversion component storage unit 14 is formed on the hard disk 107 or the memory 106.
  • each terminal has type information as a signal type.
  • the type information is a data type of a value that becomes an input to the terminal or an output from the terminal, and includes an integer type, a real number type, a Boolean type, and the like.
  • circuit diagram editing apparatus if wiring between terminals whose types do not match is made, a compilation error occurs when creating a program for the PLC, and it cannot be executed on the PLC. Therefore, when connecting terminals that do not match the type, place a type conversion component between the two terminals as a signal type conversion component, and output terminal, input terminal of type conversion component, output terminal of type conversion component By connecting the input terminals to each other, the circuit diagram that can be executed on the PLC is eliminated by eliminating the mismatch of the types of both terminals.
  • the type conversion component when such a type conversion component is introduced, the arrangement of the type conversion component and the connection between the type conversion component and both terminals are explicitly performed, and the editing work becomes complicated.
  • the type conversion component when connecting terminals that do not match the type, the type conversion component can be automatically inserted, thereby reducing the number of mold conversion component insertion operations. Can be made.
  • Step ST71 Terminal type determination
  • the connection destination terminal counter is 1 or more
  • the connection source terminal determination unit 3 determines that the connection destination terminal counter value n and the connection source component have no connection.
  • the number of terminals is compared, and the signal type determination unit 12 is requested to determine the type of the connection source terminal by the smaller value (this value is referred to as m).
  • the connection source terminal determination unit 3 signals the type determination for the nth connection source terminal in the connection source terminal list. A request is made to the type determination unit 12.
  • the signal type determination unit 12 acquires the type information of the connection destination terminal corresponding to the connection source terminal for all requested connection source terminals, and determines that both terminals match if the types of both terminals are connectable. If the type of is not connectable, it is determined as a mismatch.
  • Step ST72 Mold Conversion Component Insertion If the determination result in step ST71 does not match, the signal type conversion component insertion unit 13 selects the input type from the signal type conversion component storage unit 14 prepared in advance. A search is performed using the output type as a condition, a type conversion component necessary for type conversion between both terminals is determined, and the determined type conversion component is arranged between the connection source terminal and the connection destination terminal. If there is no corresponding type conversion component in the signal type conversion component storage unit 14, the type conversion component is not arranged.
  • Step ST73 Connection Creation Instruction
  • the signal type determination unit 12 requests the connection creation unit 4 to create a connection between the connection source terminal and the corresponding connection destination terminal.
  • the signal type conversion component insertion unit 13 connects the connection source terminal and the connection source terminal side terminal of the type conversion component to the connection creation unit 4 and the connection destination. Request to create a connection on the terminal side of the terminal and type conversion part.
  • the signal type conversion component insertion unit 13 sends a connection source terminal and a corresponding connection destination terminal to the connection creation unit 4. Request to create a connection between them.
  • the basic operation procedure in the present embodiment is the same as that in the first embodiment.
  • the connection displayed on the editing area 53 is the same as in the first embodiment.
  • a type conversion component is inserted between both terminals.
  • a circuit diagram that can be executed on the PLC by compiling is obtained.
  • the connection source terminal and the connection destination terminal are directly connected in the same manner as in the first embodiment.
  • an INT type (integer type) variable A is set for the ABS input.
  • the ABS outputs an absolute value, and the type of the output terminal is the same as the type of the input terminal. Therefore, the type of the output terminal of the ABS here is the INT type.
  • SQRT outputs the square root of an input value, and the type of the output terminal is a REAL type (real number type) regardless of the type of the input terminal. Further, the output terminal of SQRT and the second input terminal of SUB are connected. In this connection, it is assumed that a connection is created by designating a connection source terminal and a connection destination terminal by a conventional connection creation method.
  • the SUB Since the REAL type SQRT output terminal is connected to the second input terminal of the SUB, the SUB is a circuit component for subtracting a real number at this stage, and all the terminals of the SUB are REAL type. It has become.
  • the upper part of FIG. 37 shows a state in which parts having terminal types are arranged and connected in this way, and SUB is designated as a connection source part. From here, when the ABS output terminal is designated as the connection destination terminal, the first input terminal of the SUB that is the connection source terminal is REAL type, and the output terminal of the ABS that is the connection destination terminal is INT type. Child types do not match.
  • a mold conversion component for eliminating mold mismatch can be automatically inserted at the time of connection.
  • an INT_TO_REAL component that converts an INT type input into a REAL type and outputs it is inserted.
  • the process proceeds internally with steps ST4, ST9, ST11, ST12, ST13, ST71, ST72, ST73, ST15, ST16, ST3.
  • the signal type determination unit that determines the signal type of the connection destination terminal specified as the connection target and the unconnected terminal of the connection source component, and the signal type determination Signal that converts the signal type of the connection destination terminal to the signal type of the unconnected terminal between the connection destination terminal and the unconnected terminal. Since it has a signal type conversion component insertion unit that inserts a type conversion component, when performing connection between terminals that do not match the signal type, it is possible to automatically insert the signal type conversion component, The number of operations for inserting the signal type conversion component can be reduced.
  • the circuit diagram editing apparatus and the circuit diagram editing program according to the present invention relate to a configuration that enables connection between terminals on a circuit diagram to be created with a small number of inputs, and a circuit for a PLC. It is suitable for use in a circuit diagram editing apparatus for editing a diagram.

Abstract

An originating component assignment portion (1) assigns an originating component, and a destination terminal assignment portion (2) assigns a destination terminal. When connecting unconnected terminals of the originating component to destination terminals, an originating terminal determining portion (3) makes the unconnected terminals of the originating component correspond to the destination terminals based on the order in which the destination terminals were assigned by the destination terminal assignment portion (2) and the preliminarily determined order of the unconnected terminals of the originating component. A connection creating portion (4) connects the unconnected terminals and the destination terminals based on the corresponding relationship between these terminals which has been established by the originating terminal determining portion (3).

Description

回路図編集装置及び回路図編集プログラムCircuit diagram editing apparatus and circuit diagram editing program
 この発明は、回路図編集において、回路図上の端子間の結線を容易に実現するための回路図編集装置および回路図編集プログラムに関するものである。 The present invention relates to a circuit diagram editing apparatus and a circuit diagram editing program for easily realizing connection between terminals on a circuit diagram in circuit diagram editing.
 従来の回路図編集装置では、回路図上の端子間を結線する際に、結線元端子と結線先端子の二点を指定している。また、特許文献1や特許文献2のように端子間の結線作業の容易化のために、端子間の自動結線を行う事例も存在する。
特開2005-339143号公報 特開平5-197772号公報
In a conventional circuit diagram editing apparatus, when connecting terminals on a circuit diagram, two points of a connection source terminal and a connection destination terminal are designated. In addition, there are cases in which automatic connection between terminals is performed in order to facilitate connection work between terminals as in Patent Document 1 and Patent Document 2.
JP 2005-339143 A JP-A-5-197772
 従来の回路図編集装置にあっては、結線を行う際、結線元端子と結線先端子の二点を指定しているので、多くの数の結線を作成する場合には入力作業が煩雑であった。
 また、自動結線を行うもののうち、特許文献1については、距離の近さを判断基準として結線を行う端子の組合せを確定しているので、遠い位置にある端子間を結線することや、二本の結線を交差させることはできない等の制約があり、必ずしも所望の端子間の結線を行うことはできなかった。また、特許文献2については、座標の値や端子名を判断材料として結線を行う端子の組合せを確定しているので、座標の位置を判断材料とする場合は、ずれた座標位置にある端子間を結線することや、二本の結線を交差させることなどはできず、また端子名を判断材料とする場合は、端子の命名規則を設けそれに従わなければならないといった制約があり、この自動結線方法においても、所望の端子間の結線が得られない場合があった。
In the conventional circuit diagram editing apparatus, when making a connection, two points of a connection source terminal and a connection destination terminal are specified, and therefore the input work is complicated when creating a large number of connections. It was.
In addition, among those that perform automatic connection, in Patent Document 1, since the combination of terminals to be connected is determined based on the proximity of distance, it is possible to connect terminals at distant positions, However, there is a restriction that it is not possible to cross these connections, and it has not always been possible to connect desired terminals. In addition, with respect to Patent Document 2, since the combination of terminals to be connected is determined using the coordinate value and the terminal name as the determination material, when the coordinate position is used as the determination material, between the terminals at the shifted coordinate positions This automatic connection method has the restriction that a terminal naming rule must be established and followed when the terminal name is used as a judgment material. In some cases, connection between the desired terminals may not be obtained.
 この発明は、上記のような問題点を解決するためになされたものであり、回路図上の所望の組合せの端子間の結線を、少ない入力手数で作成することを目的としている。 The present invention has been made to solve the above-described problems, and has an object to create a connection between terminals in a desired combination on a circuit diagram with a small number of inputs.
 この発明の回路図編集装置は、結線元部品の未結線端子から結線先端子に結線を行う際に、結線先端子の指定順と、結線元部品の未結線端子における予め定められた端子順に基づいて、結線対象となる結線元部品の未結線端子と結線先端子の対応付けを行うようにしたものである。
 このことにより、回路図上の所望の組合せの端子間の結線を、少ない入力手数で作成することができる。
The circuit diagram editing apparatus according to the present invention is based on the designation order of the connection destination terminal and the predetermined terminal order in the unconnection terminal of the connection source component when performing connection from the unconnection terminal of the connection source component to the connection destination terminal. Thus, the unconnected terminal and the connected terminal of the connection source component to be connected are associated with each other.
This makes it possible to create a connection between terminals in a desired combination on the circuit diagram with a small number of inputs.
この発明の実施の形態1による回路図編集装置の構成図である。BRIEF DESCRIPTION OF THE DRAWINGS It is a block diagram of the circuit diagram editing apparatus by Embodiment 1 of this invention. この発明の実施の形態1による回路図編集装置のハードウェア構成図である。It is a hardware block diagram of the circuit diagram editing apparatus by Embodiment 1 of this invention. この発明の実施の形態1による回路図編集装置の画面例の説明図である。It is explanatory drawing of the example of a screen of the circuit diagram editing apparatus by Embodiment 1 of this invention. この発明の実施の形態1による回路図編集装置の部品情報保管領域の説明図である。It is explanatory drawing of the components information storage area | region of the circuit diagram editing apparatus by Embodiment 1 of this invention. この発明の実施の形態1による回路図編集装置の端子情報保管領域の説明図である。It is explanatory drawing of the terminal information storage area | region of the circuit diagram editing apparatus by Embodiment 1 of this invention. この発明の実施の形態1による回路図編集装置の結線元端子リストの説明図である。It is explanatory drawing of the connection origin terminal list | wrist of the circuit diagram editing apparatus by Embodiment 1 of this invention. この発明の実施の形態1による回路図編集装置の結線先端子リストの説明図である。It is explanatory drawing of the connection destination terminal list | wrist of the circuit diagram editing apparatus by Embodiment 1 of this invention. この発明の実施の形態1による回路図編集装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the circuit diagram editing apparatus by Embodiment 1 of this invention. この発明の実施の形態1による回路図編集装置の編集エリアの結線前の画面事例を示す説明図である。It is explanatory drawing which shows the screen example before the connection of the edit area of the circuit diagram editing apparatus by Embodiment 1 of this invention. この発明の実施の形態1による回路図編集装置の編集エリアの結線後の画面事例を示す説明図である。It is explanatory drawing which shows the screen example after the connection of the edit area of the circuit diagram editing apparatus by Embodiment 1 of this invention. この発明の実施の形態1による回路図編集装置の編集エリアの画面事例(手順A)を示す説明図である。It is explanatory drawing which shows the screen example (procedure A) of the edit area of the circuit diagram editing apparatus by Embodiment 1 of this invention. この発明の実施の形態1による回路図編集装置の編集エリアの画面事例(手順B)を示す説明図である。It is explanatory drawing which shows the screen example (procedure B) of the edit area of the circuit diagram editing apparatus by Embodiment 1 of this invention. この発明の実施の形態1による回路図編集装置の編集エリアの画面事例(手順C)を示す説明図である。It is explanatory drawing which shows the screen example (procedure C) of the edit area of the circuit diagram editing apparatus by Embodiment 1 of this invention. この発明の実施の形態1による回路図編集装置の編集エリアの画面事例(結線の交差)を示す説明図である。It is explanatory drawing which shows the screen example (intersection of connection) of the edit area of the circuit diagram editing apparatus by Embodiment 1 of this invention. この発明の実施の形態1による回路図編集装置の編集エリアの画面事例(空き端子の指定)を示す説明図である。It is explanatory drawing which shows the screen example (designation of an empty terminal) of the edit area of the circuit diagram editing apparatus by Embodiment 1 of this invention. この発明の実施の形態1による回路図編集装置の編集エリアの画面事例(結線元部品の連続指定)を示す説明図である。It is explanatory drawing which shows the screen example (continuous designation | designated of a connection origin component) of the edit area of the circuit diagram editing apparatus by Embodiment 1 of this invention. この発明の実施の形態1による回路図編集装置の編集エリアの画面事例(迂回経路)を示す説明図である。It is explanatory drawing which shows the screen example (detour route) of the edit area of the circuit diagram editing apparatus by Embodiment 1 of this invention. この発明の実施の形態1による回路図編集装置の編集エリアの画面事例(斜め線での結線)を示す説明図である。It is explanatory drawing which shows the screen example (connection by an oblique line) of the edit area of the circuit diagram editing apparatus by Embodiment 1 of this invention. この発明の実施の形態2による回路図編集装置の構成図である。It is a block diagram of the circuit diagram editing apparatus by Embodiment 2 of this invention. この発明の実施の形態2による回路図編集装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the circuit diagram editing apparatus by Embodiment 2 of this invention. この発明の実施の形態2による回路図編集装置の編集エリアの画面事例を示す説明図である。It is explanatory drawing which shows the screen example of the edit area of the circuit diagram editing apparatus by Embodiment 2 of this invention. この発明の実施の形態3による回路図編集装置の構成図である。It is a block diagram of the circuit diagram editing apparatus by Embodiment 3 of this invention. この発明の実施の形態3による回路図編集装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the circuit diagram editing apparatus by Embodiment 3 of this invention. この発明の実施の形態3による回路図編集装置の編集エリアの画面事例を示す説明図である。It is explanatory drawing which shows the screen example of the edit area of the circuit diagram editing apparatus by Embodiment 3 of this invention. この発明の実施の形態4による回路図編集装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the circuit diagram editing apparatus by Embodiment 4 of this invention. この発明の実施の形態4による回路図編集装置の編集エリアの画面事例を示す説明図である。It is explanatory drawing which shows the screen example of the edit area of the circuit diagram editing apparatus by Embodiment 4 of this invention. この発明の実施の形態5による回路図編集装置の構成図である。It is a block diagram of the circuit diagram editing apparatus by Embodiment 5 of this invention. この発明の実施の形態5による回路図編集装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the circuit diagram editing apparatus by Embodiment 5 of this invention. この発明の実施の形態5による回路図編集装置の編集エリアの画面事例(編集開始前)を示す説明図である。It is explanatory drawing which shows the screen example (before an edit start) of the edit area of the circuit diagram editing apparatus by Embodiment 5 of this invention. この発明の実施の形態5による回路図編集装置の編集エリアの画面事例(手順E)を示す説明図である。It is explanatory drawing which shows the screen example (procedure E) of the edit area of the circuit diagram editing apparatus by Embodiment 5 of this invention. この発明の実施の形態5による回路図編集装置の編集エリアの画面事例(手順F)を示す説明図である。It is explanatory drawing which shows the screen example (procedure F) of the edit area of the circuit diagram editing apparatus by Embodiment 5 of this invention. この発明の実施の形態6による回路図編集装置の構成図である。It is a block diagram of the circuit diagram editing apparatus by Embodiment 6 of this invention. この発明の実施の形態6による回路図編集装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the circuit diagram editing apparatus by Embodiment 6 of this invention. この発明の実施の形態6による回路図編集装置の編集エリアの画面事例を示す説明図である。It is explanatory drawing which shows the screen example of the edit area of the circuit diagram editing apparatus by Embodiment 6 of this invention. この発明の実施の形態7による回路図編集装置の構成図である。It is a block diagram of the circuit diagram editing apparatus by Embodiment 7 of this invention. この発明の実施の形態7による回路図編集装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the circuit diagram editing apparatus by Embodiment 7 of this invention. この発明の実施の形態7による回路図編集装置の編集エリアの画面事例を示す説明図である。It is explanatory drawing which shows the screen example of the edit area of the circuit diagram editing apparatus by Embodiment 7 of this invention.
 以下、この発明をより詳細に説明するために、この発明を実施するための最良の形態について、添付の図面に従って説明する。
実施の形態1.
 図1は、この発明の実施の形態1による回路図編集装置の構成図である。
 図1に示す回路図編集装置は、結線元部品を指定する結線元部品指定部1、結線先端子を指定する結線先端子指定部2、結線元部品指定部1が指定した結線元部品情報と、結線先端子指定部2が端子を指定したことを示すクリック情報を受け、結線元部品の持つ未結線端子の予め定められている端子順と結線先端子の指定順とを対応付け、結線元端子を確定する結線元端子確定部3、結線先端子指定部2が指定した結線先端子情報と、結線元端子確定部3からの結線元端子情報を用いて、両端子間の結線情報を作成する結線作成部4、結線作成部4から結線情報を受け、結線を表示する表示部5を備えている。
Hereinafter, in order to describe the present invention in more detail, the best mode for carrying out the present invention will be described with reference to the accompanying drawings.
Embodiment 1 FIG.
1 is a block diagram of a circuit diagram editing apparatus according to Embodiment 1 of the present invention.
The circuit diagram editing apparatus shown in FIG. 1 includes a connection source component designating unit 1 for designating a connection source component, a connection destination terminal designating unit 2 for designating a connection destination terminal, and connection source component information designated by the connection source component designating unit 1. The connection destination terminal designation unit 2 receives the click information indicating that the terminal has been designated, and associates the predetermined terminal order of the unconnected terminals of the connection source component with the specified order of the connection destination terminals, Creates connection information between both terminals using the connection destination terminal information specified by the connection source terminal determination unit 3 and the connection destination terminal specification unit 2 to determine the terminal and the connection source terminal information from the connection source terminal determination unit 3 And a display unit 5 that receives connection information from the connection generation unit 4 and displays the connection.
 図2は、本発明の実施の形態1による回路図編集装置を実現するハードウェアの構成を示すブロック図である。
 回路図編集装置は、PC(パーソナルコンピュータ)で実現され、制御部101とディスプレイ102とキーボード103とポインティングデバイス104からなる。制御部101は、CPU105とメモリ106とハードディスク107を備えている。制御部101は、キーボード103及びポインティングデバイス104の入力に基づいて各種の処理を行い、処理結果をディスプレイ102に出力するものである。ディスプレイ102は、回路図を画面表示するための表示装置である。キーボード103やポインティングデバイス104は、種々の入力を行うための入力装置である。CPU105は、回路図編集装置としての演算処理を行う演算処理装置である。メモリ106は各種のデータやプログラムを格納すると共に、CPU105による演算処理の作業領域を構成する記憶部である。ハードディスク107は、種々のデータやプログラムを格納するための記憶装置である。尚、表示装置はディスプレイ102に、入力装置はキーボード103やポインティングデバイス104に、記憶装置はメモリ106やハードディスク107に限定されるものではない。
FIG. 2 is a block diagram showing a hardware configuration for realizing the circuit diagram editing apparatus according to Embodiment 1 of the present invention.
The circuit diagram editing apparatus is realized by a PC (personal computer), and includes a control unit 101, a display 102, a keyboard 103, and a pointing device 104. The control unit 101 includes a CPU 105, a memory 106, and a hard disk 107. The control unit 101 performs various processes based on inputs from the keyboard 103 and the pointing device 104, and outputs the processing results to the display 102. The display 102 is a display device for displaying a circuit diagram on a screen. The keyboard 103 and the pointing device 104 are input devices for performing various inputs. The CPU 105 is an arithmetic processing device that performs arithmetic processing as a circuit diagram editing device. The memory 106 is a storage unit that stores various data and programs and constitutes a work area for arithmetic processing by the CPU 105. The hard disk 107 is a storage device for storing various data and programs. The display device is not limited to the display 102, the input device is not limited to the keyboard 103 or the pointing device 104, and the storage device is not limited to the memory 106 or the hard disk 107.
 また、図1における各機能部と図2におけるハードウェア構成との対応関係は次の通りである。即ち、結線元部品指定部1~結線作成部4は、それぞれの機能に対応したプログラムがハードディスク107内に格納され、これらのプログラムをCPU105が読み出し、メモリ106を用いて実行することにより実現される。また、結線元部品指定部1および結線先端子指定部2は、ディスプレイ102への表示機能とキーボード103やポインティングデバイス104からの入力を受け付ける機能を有している。更に、表示部5は、ディスプレイ102とその表示機能を含んで構成されている。あるいは、結線元部品指定部1~結線作成部4を専用のハードウェアで構成してもよい。 Also, the correspondence between each functional unit in FIG. 1 and the hardware configuration in FIG. 2 is as follows. That is, the connection source part designation unit 1 to the connection creation unit 4 are realized by storing programs corresponding to the respective functions in the hard disk 107, reading these programs by the CPU 105, and executing them using the memory 106. . The connection source component designating unit 1 and the connection destination terminal designating unit 2 have a display function on the display 102 and a function of receiving input from the keyboard 103 and the pointing device 104. Furthermore, the display unit 5 includes the display 102 and its display function. Alternatively, the connection source part designation unit 1 to the connection creation unit 4 may be configured with dedicated hardware.
 本実施の形態における回路図編集装置が、ディスプレイ102を用いて提供する回路図編集プログラムの実行画面例を図3に示す。ここでは、回路図編集プログラムの一つであるPLC(プログラマブルロジックコントローラ)上で実行可能なプログラム作成時にファンクションブロック図を用いる回路図編集プログラムに関して説明を行う。回路図編集プログラムの実行画面は、メインメニュー51、ファンクションブロックやファンクションなどの部品を配置するための部品ボタン52、回路図を記述する編集エリア53、編集モードを切り替えるモード変更ボタン54を持つ。本回路図編集プログラムは、従来通りの手法で結線元端子と結線先端子を指定し、両端子間の結線を作成する通常編集モードと、本発明の特長を生かして結線元端子を指定することなく結線を作成することができる連続結線編集モードとの二つの編集モードを持つ。これらのモードは、モード変更ボタン54にある連続結線ボタンや標準ボタンの押下やメインメニュー51内の該当するメニュー項目の選択により自由に切り替えることができる。 FIG. 3 shows an execution screen example of a circuit diagram editing program provided by the circuit diagram editing apparatus according to the present embodiment using the display 102. Here, a circuit diagram editing program that uses a function block diagram when creating a program that can be executed on a PLC (programmable logic controller), which is one of circuit diagram editing programs, will be described. The execution screen of the circuit diagram editing program has a main menu 51, a component button 52 for arranging components such as function blocks and functions, an edit area 53 for describing a circuit diagram, and a mode change button 54 for switching an edit mode. This circuit diagram editing program specifies the connection source terminal and the connection destination terminal using the conventional method, creates the connection between both terminals, and specifies the connection source terminal taking advantage of the features of the present invention. There are two editing modes, continuous connection editing mode, which can create connections without any problems. These modes can be freely switched by pressing a continuous connection button or standard button on the mode change button 54 or selecting a corresponding menu item in the main menu 51.
●(内部処理)
 本実施の形態の回路図編集装置の内部においては、編集エリア53に配置された部品に対して、配置順に部品IDを割り当てて管理している。各部品が持つ端子には、左上から左下、次に右上から右下の順に端子IDを割り当てて管理している。これにより、部品IDと端子IDの組合せで、端子を一意に指定することができる。本実施の形態では、部品IDと端子IDを組み合わせたものを端子情報と呼ぶ。
● (Internal processing)
In the circuit diagram editing apparatus according to the present embodiment, component IDs are assigned to the components arranged in the editing area 53 and managed in the arrangement order. Terminal IDs are assigned to the terminals of the respective components in order from the upper left to the lower left and then from the upper right to the lower right. Thereby, a terminal can be uniquely specified by a combination of a component ID and a terminal ID. In this embodiment, a combination of a component ID and a terminal ID is called terminal information.
 本実施の形態の回路図編集装置では、メモリ106上に図4に示す部品情報保管領域と、図5に示すような端子情報保管領域の二種の回路図情報を保管するための領域を備えており、これらの情報を用いて編集エリア53に回路図を表示している。部品情報保管領域は、部品IDと部品種別と座標情報(X座標、Y座標)からなる。端子情報保管領域は、端子情報と座標情報と入出力種別と結線端子情報からなる。入出力種別とは、その端子が入力属性か出力属性かを示すものである。結線端子情報とは、その端子の結線相手の端子を示すものであり、結線されている場合は結線相手の端子情報が保管され、結線されていない場合は部品IDと端子IDはともに0となる。編集エリア53において、部品配置や端子間結線等の編集が行われた場合は、部品情報保管領域と端子情報保管領域の情報を更新する。 The circuit diagram editing apparatus according to the present embodiment includes an area for storing two types of circuit diagram information, that is, a component information storage area shown in FIG. 4 and a terminal information storage area as shown in FIG. A circuit diagram is displayed in the editing area 53 using these pieces of information. The component information storage area includes a component ID, a component type, and coordinate information (X coordinate, Y coordinate). The terminal information storage area includes terminal information, coordinate information, input / output types, and connection terminal information. The input / output type indicates whether the terminal has an input attribute or an output attribute. The connection terminal information indicates the terminal of the connection partner of the terminal. When the connection is established, the terminal information of the connection partner is stored, and when the connection is not established, both the component ID and the terminal ID are 0. . In the editing area 53, when editing of component arrangement, inter-terminal connection, or the like is performed, information on the component information storage area and the terminal information storage area is updated.
 本実施の形態の回路図編集装置を用いた結線作成処理の実行時には、メモリ106上に用意された結線元端子リスト(図6参照)、結線先端子リスト(図7参照)、結線先端子カウンタ(図示省略)の三つのデータ保存領域を、結線元部品指定部1~表示部5が共有し利用しながら処理を進める。それぞれのデータ保存領域の説明を以下に記す。 At the time of execution of connection creation processing using the circuit diagram editing apparatus of the present embodiment, a connection source terminal list (see FIG. 6), a connection destination terminal list (see FIG. 7), and a connection destination terminal counter prepared on the memory 106. The three data storage areas (not shown) are shared and used by the connection source component designating unit 1 to the display unit 5, and the process proceeds. Each data storage area is described below.
・結線元端子リスト
 結線元部品指定部1によって指定された部品の持つ未結線状態である端子の端子情報を、端子ID順に保持する。本実施の形態における単一の部品が持ち得る端子の最大数をMAX_NUMとすると、本リストは、1番目からMAX_NUM番目までのMAX_NUM個の領域を持つ。また本リストの部品IDは、全てが結線元部品の部品IDとなり同一な値となる。
-Connection source terminal list The terminal information of the terminal which is in the unconnected state of the component specified by the connection source component specifying unit 1 is held in the order of the terminal ID. If the maximum number of terminals that a single component can have in this embodiment is MAX_NUM, this list has MAX_NUM areas from the first to the MAX_NUMth. Further, all the component IDs in this list are the component IDs of the connection source components and have the same value.
・結線先端子リスト
 結線先端子指定部2によって指定された端子の端子情報を、指定順に保持する。本リストは、結線元端子リストと同様に、1番目からMAX_NUM番目までのMAX_NUM個の領域を持つ。
-Connection destination terminal list The terminal information of the terminals specified by the connection destination terminal specification unit 2 is held in the specified order. Similar to the connection source terminal list, this list has MAX_NUM areas from the first to the MAX_NUMth.
・結線先端子カウンタ
 0以上の整数値を保持する領域である。結線先端子指定部2によって指定された端子の数を保持する。この値は、結線先端子リストに入っている端子情報の数と同じ値となる。
• Connection destination terminal counter This area holds an integer value of 0 or more. The number of terminals specified by the connection destination terminal specifying unit 2 is held. This value is the same as the number of terminal information included in the connection destination terminal list.
 次に、本実施の形態による回路図編集装置の結線作成処理を、図8に示すフローチャートを用いて説明する。以降の説明では、結線先端子カウンタのその時点での値をnとして説明を行う。
 (ステップST1)連続結線編集モード開始イベント待ち
 先ず、通常編集モードから連続結線編集モードへ変更するための連続結線編集モード開始イベントの入力を待つ。
 (ステップST2)データ初期化
 ステップST1において連続結線編集モード開始イベントを受けた場合、結線先端子指定部2と結線元端子確定部3は、データ保存領域の初期化処理を行う。初期化処理として、結線元端子リストと結線先端子リストを空にし、結線先端子カウンタの値を0とする。
 (ステップST3)入力イベント待ち
 入力されるイベントを待つ。ここで受ける可能性のあるイベントは、結線元部品指定イベント、結線先端子指定イベント、連続結線編集モード終了イベントの三種類である。
 (ステップST4)入力イベント判定
 ステップST3においてイベントが入力されたら、イベントの内容を判定する。
 イベントが連続結線編集モード終了イベントであった場合、連続結線編集モードを終了し、通常編集モードに戻る。イベントが、結線元部品指定イベントであった場合、ステップST5に進む。イベントが、結線先端子指定イベントであった場合、ステップST9に進む。
Next, the connection creation processing of the circuit diagram editing apparatus according to the present embodiment will be described with reference to the flowchart shown in FIG. In the following description, the value at that time of the connection destination terminal counter is assumed to be n.
(Step ST1) Wait for continuous connection edit mode start event First, wait for the input of a continuous connection edit mode start event for changing from the normal edit mode to the continuous connection edit mode.
(Step ST2) Data Initialization When a continuous connection editing mode start event is received in step ST1, the connection destination terminal designation unit 2 and the connection source terminal determination unit 3 perform initialization processing of the data storage area. As initialization processing, the connection source terminal list and the connection destination terminal list are emptied, and the value of the connection destination terminal counter is set to zero.
(Step ST3) Wait for input event Wait for an input event. There are three types of events that can be received here: a connection source component designation event, a connection destination terminal designation event, and a continuous connection editing mode end event.
(Step ST4) Input Event Determination When an event is input in step ST3, the content of the event is determined.
If the event is a continuous connection editing mode end event, the continuous connection editing mode is ended and the normal editing mode is restored. If the event is a connection source component designation event, the process proceeds to step ST5. If the event is a connection destination terminal designation event, the process proceeds to step ST9.
 (ステップST5)結線元端子リスト判定
 ステップST4での判定の結果、イベントが結線元部品指定イベントであった場合、結線元端子確定部3が、結線元端子リストが空かどうかを判定する。結線元端子リストが空でない場合、ステップST6に処理が進む。結線元端子リストが空である場合、ステップST7に処理が進む。
 (ステップST6)データ初期化
 ステップST5での判定の結果、結線元端子リストが空でない場合、つまり結線元部品が指定済みの状態で新たな結線元部品が指定された場合は、データ保存領域の初期化処理を行う。初期化処理の内容はステップST2と同様である。これにより、直前の結線処理対象であった結線元部品に関する情報が破棄され、今回指定された結線元部品が新たな結線処理対象となり、ステップST7に処理が進む。
 (ステップST7)結線元端子情報保管
 結線元端子確定部3が、結線元端子リストに、指定された結線元部品が持つ未結線端子の端子情報を端子IDの若い順に保管する。
 (ステップST8)結線先端子カウンタ値判定
 結線元端子確定部3が、結線先端子カウンタの値を判定する。結線先端子カウンタの値が0であれば、結線先端子が未指定なので、ステップST3に戻って次のイベントを待つ。結線先端子カウンタの値が0でなければ、ステップST14に進む。
(Step ST5) Connection Source Terminal List Determination If the event is a connection source component designation event as a result of the determination in step ST4, the connection source terminal determination unit 3 determines whether or not the connection source terminal list is empty. If the connection source terminal list is not empty, the process proceeds to step ST6. If the connection source terminal list is empty, the process proceeds to step ST7.
(Step ST6) Data Initialization If the result of determination in step ST5 is that the connection source terminal list is not empty, that is, if a new connection source component is specified with the connection source component already specified, the data storage area Perform initialization processing. The contents of the initialization process are the same as in step ST2. As a result, the information related to the connection source part that was the previous connection process target is discarded, the connection source part specified this time becomes a new connection process target, and the process proceeds to step ST7.
(Step ST7) Connection source terminal information storage The connection source terminal determination unit 3 stores the terminal information of unconnected terminals of the specified connection source component in the connection source terminal list in ascending order of terminal ID.
(Step ST8) Connection Destination Terminal Counter Value Determination The connection source terminal determination unit 3 determines the value of the connection destination terminal counter. If the value of the connection destination terminal counter is 0, the connection destination terminal is not specified, so the process returns to step ST3 to wait for the next event. If the value of the connection destination terminal counter is not 0, the process proceeds to step ST14.
 (ステップST9)未結線端子残存判定
 ステップST4での判定の結果、イベントが結線先端子指定イベントであった場合、結線先端子指定部2が、結線元端子リストに未結線端子が残っているかを判定する。具体的には、結線元端子リストのデータの有無を調べ、データが存在する場合は、結線元端子リストのデータ数と結線先端子カウンタの値nを比較する。結線元端子リストにデータが存在しない場合は、結線元部品が未指定の状態であるため、未結線端子は有ると判定しステップST11に進む。結線元端子リストにデータが存在し、nが結線元端子リストのデータ数未満であれば、未結線端子は有ると判定しステップST11に進む。また、結線元端子リストにデータが存在し、nが結線元端子リストのデータ数以上であれば、未結線端子は無いと判定し、ステップST10に進む。
(Step ST9) Unconnected Terminal Remaining Determination As a result of the determination in step ST4, if the event is a connection destination terminal designation event, the connection destination terminal designation unit 2 determines whether or not an unconnected terminal remains in the connection source terminal list. judge. Specifically, the presence or absence of data in the connection source terminal list is checked. If data exists, the number of data in the connection source terminal list is compared with the value n of the connection destination terminal counter. If there is no data in the connection source terminal list, it is determined that there is an unconnection terminal because the connection source component is not specified, and the process proceeds to step ST11. If data exists in the connection source terminal list and n is less than the number of data in the connection source terminal list, it is determined that there is an unconnected terminal, and the process proceeds to step ST11. If data exists in the connection source terminal list and n is equal to or greater than the number of data in the connection source terminal list, it is determined that there is no unconnected terminal, and the process proceeds to step ST10.
 (ステップST10)データ初期化
 ステップST9での判定の結果、未結線端子が無い場合、つまり指定された結線元部品の全ての端子が結線済みの状態で新たな結線先端子が指定された場合は、データ保存領域の初期化処理を行う。初期化処理の内容はステップST2と同様である。これにより、直前の結線処理対象であった結線元部品に関する情報が破棄され、ステップST11に処理が進む。
 (ステップST11)結線先端子カウンタ加算
 結線先端子指定部2が、結線先端子カウンタに1を加える。
 (ステップST12)結線先端子情報保管
 結線先端子指定部2が、結線先端子リストのn番目に、指定された結線先端子の端子情報を保管する。
 (ステップST13)結線元端子判定
 結線先端子指定部2が端子を指定したことを示すクリック情報を、結線元端子確定部3が受け、指定された結線先端子に対応する結線元端子が存在するかを判定する。具体的には、結線元端子リストのn番目に端子情報が存在するかを判定する。結線元端子リストのn番目に端子情報が無い場合、ステップST3に戻り次のイベントを待つ。結線元端子リストのn番目に端子情報が有る場合、ステップST14に処理が進む。
(Step ST10) Data initialization As a result of the determination in step ST9, when there is no unconnected terminal, that is, when all the terminals of the specified connection source component are already connected, and a new connection destination terminal is specified. Initialize the data storage area. The contents of the initialization process are the same as in step ST2. As a result, the information related to the connection source component that was the previous connection processing target is discarded, and the process proceeds to step ST11.
(Step ST11) Connection destination terminal counter addition The connection destination terminal designation | designated part 2 adds 1 to a connection destination terminal counter.
(Step ST12) Connection Destination Terminal Information Storage The connection destination terminal designation unit 2 stores the terminal information of the designated connection destination terminal at the nth position in the connection destination terminal list.
(Step ST13) Connection Source Terminal Determination The connection source terminal determination unit 3 receives click information indicating that the connection destination terminal specifying unit 2 has specified a terminal, and there is a connection source terminal corresponding to the specified connection destination terminal. Determine whether. Specifically, it is determined whether or not terminal information exists at the nth position in the connection source terminal list. When there is no terminal information at the nth position in the connection source terminal list, the process returns to step ST3 and waits for the next event. When there is terminal information at the nth position in the connection source terminal list, the process proceeds to step ST14.
 (ステップST14)結線作成指示
 ステップST8での判定の結果、結線先端子カウンタが1以上であれば、結線元端子確定部3が、結線先端子カウンタの値nと、結線元部品の持つ未結線端子の数を比較し、小さい方の値(この値をmと呼ぶ)の数だけ結線の作成を指示する。つまり、結線元端子確定部3が、結線元端子リストの1番目からm番目までのm本の結線の作成を結線作成部4に依頼する。また、ステップST13での判定の結果、結線元端子リストのn番目に端子情報があった場合、結線元端子確定部3が、結線元端子リストのn番目の結線の作成を結線作成部4に依頼する。
(Step ST14) Connection Creation Instruction If the result of determination in step ST8 is that the connection destination terminal counter is 1 or more, the connection source terminal determination unit 3 determines that the connection destination terminal counter value n and the connection source component have no connection. The number of terminals is compared, and creation of connections is instructed by the smaller value (this value is called m). That is, the connection source terminal determination unit 3 requests the connection creation unit 4 to create m connections from the first to the m-th in the connection source terminal list. Further, as a result of the determination in step ST13, if there is terminal information in the nth connection source terminal list, the connection source terminal determination unit 3 makes the connection generation unit 4 create the nth connection in the connection source terminal list. Ask.
 (ステップST15)結線作成
 本ステップは、結線作成部4における結線作成処理である。
 結線作成部4は、結線元端子確定部3から指定された結線元端子番号から、結線元端子とそれに対応する結線先端子の端子情報を取得する。指定された番号をpとすると、結線元端子リストのp番目の端子情報と結線先端子リストのp番目の端子情報を取得する。端子情報の取得後、両端子間を接続する結線情報を作成する。どちらかの端子情報の取得ができなかった場合は、結線情報の作成を行わない。複数本の結線情報の作成を行う場合は、上記処理を本数分だけ繰り返す。
 ここで、結線情報を作成するとは、具体的には、始点座標、終点座標、折れ曲がりの角の座標、線色、線幅等の属性を持つ結線オブジェクトを作成することを指す。
 また、結線作成部4は、結線情報を作成する際に、端子情報保管領域の結線元端子と結線先端子の結線端子情報を更新する。
(Step ST15) Connection Creation This step is a connection creation process in the connection creation unit 4.
The connection creation unit 4 acquires the terminal information of the connection source terminal and the corresponding connection destination terminal from the connection source terminal number specified by the connection source terminal determination unit 3. When the designated number is p, the p-th terminal information in the connection source terminal list and the p-th terminal information in the connection destination terminal list are acquired. After obtaining the terminal information, create connection information that connects both terminals. If either terminal information cannot be obtained, connection information is not created. When creating multiple pieces of connection information, the above process is repeated for the number of pieces.
Here, the creation of connection information specifically refers to creation of a connection object having attributes such as start point coordinates, end point coordinates, bent corner coordinates, line color, and line width.
Further, the connection creation unit 4 updates the connection terminal information of the connection source terminal and the connection destination terminal in the terminal information storage area when creating the connection information.
 (ステップST16)表示
 本ステップは、表示部5における表示処理である。結線作成部4から受けた結線情報を表示部5において表示する。複数の結線情報を受けた場合は、その数だけ表示する。表示後はステップST3に戻り、次のイベントを待つ。
 以上の内部処理により、本実施の形態における結線作成処理は実現される。
(Step ST16) Display This step is a display process in the display unit 5. The connection information received from the connection creation unit 4 is displayed on the display unit 5. When multiple pieces of connection information are received, that number is displayed. After the display, the process returns to step ST3 and waits for the next event.
With the above internal processing, the connection creation processing in the present embodiment is realized.
●(動作事例)
 以下、本実施の形態の回路図編集装置を用いた回路図作成の具体的な動作を説明する。
 図9に示すようなABS、SQRT、SUBの三つの部品が既に編集エリア53に配置されている状況で、これらの部品を図10に示すように結線する手順について説明する。
 ここで、回路部品ABSは左側の入力端子に入力された値の絶対値を、右側の出力端子に出力するファンクションである。回路部品SQRTは左側の入力端子に入力された値の平方根を、右側の出力端子に出力するファンクションである。回路部品SUBは、左上の第一入力端子に入力された値から、左下の第二入力端子に入力された値を引いた値を、右側の出力端子に出力するファンクションである。
 以降では、ABSの出力端子とSUBの第一入力端子、及びSQRTの出力端子とSUBの第二入力端子を結線する手順について説明する。
● (Operation example)
The specific operation of creating a circuit diagram using the circuit diagram editing apparatus of this embodiment will be described below.
In the situation where three parts ABS, SQRT, and SUB as shown in FIG. 9 are already arranged in the editing area 53, a procedure for connecting these parts as shown in FIG. 10 will be described.
Here, the circuit component ABS is a function that outputs the absolute value of the value input to the left input terminal to the right output terminal. The circuit component SQRT is a function that outputs the square root of the value input to the left input terminal to the right output terminal. The circuit component SUB is a function that outputs, to the right output terminal, a value obtained by subtracting the value input to the lower left second input terminal from the value input to the upper left first input terminal.
Hereinafter, a procedure for connecting the ABS output terminal and the SUB first input terminal, and the SQRT output terminal and the SUB second input terminal will be described.
 先ず、図3に示すモード変更ボタン54を用いて、通常編集モードから連続結線編集モードに変更する。モード変更ボタン54を押す際、内部では、ステップST1,ST2,ST3と処理が進む。
 以降の手順に関しては、結線元部品と結線先端子の指定順の違いにより三通りの手順が存在する。それぞれを手順A、B、Cとし、編集エリア53の状態を図11、図12、図13に示す。各図は上部・中部・下部からなり、編集エリア53の表示状態を時系列に上から下へ表現したものである。
First, the mode change button 54 shown in FIG. 3 is used to change from the normal edit mode to the continuous connection edit mode. When the mode change button 54 is pressed, the process proceeds with steps ST1, ST2, ST3 internally.
Regarding the subsequent procedures, there are three types of procedures depending on the difference in the designation order of the connection source part and the connection destination terminal. The procedures A, B, and C are respectively shown in FIG. 11, FIG. 12, and FIG. Each figure includes an upper part, a middle part, and a lower part, and represents the display state of the editing area 53 in time series from top to bottom.
(手順A)
 ここでは、結線元部品を最初に指定し、その後、結線先端子を順に指定する方法について述べる。
 先ず、結線元部品として、ポインティングデバイス104を用いてSUBを指定する。
 このとき、SUBが結線元部品として強調表示され、さらに結線対象となるSUBの第一入力端子が強調表示される(図11上部)。SUBを指定する際、内部では、ステップST4,ST5,ST7,ST8,ST3と処理が進む。尚、結線元部品の指定方法としては、結線元部品指定部1により、例えば、編集画面上に部品の一覧を示す部品パレットを表示させ、この部品パレットから利用者がポインティングデバイス104により部品を選択することで結線元部品を指定する。あるいは、部品メニューから指定する部品を選択したり、キーボード103により部品名を直接入力する等、どのような指定方法であってもよい。
(Procedure A)
Here, a method of designating a connection source part first and then designating a connection destination terminal in order will be described.
First, a SUB is designated using the pointing device 104 as a connection source part.
At this time, the SUB is highlighted as the connection source part, and the first input terminal of the SUB to be connected is highlighted (upper part of FIG. 11). When designating a SUB, the process proceeds internally with steps ST4, ST5, ST7, ST8, ST3. As a method of specifying the connection source part, the connection source part specification unit 1 displays a part palette showing a list of parts on the editing screen, for example, and the user selects a part from the part palette using the pointing device 104. To specify the wiring source part. Alternatively, any designation method may be used, such as selecting a part to be designated from the part menu or directly inputting a part name using the keyboard 103.
 次に、最初の結線先端子として、ポインティングデバイス104を用いてABSの出力端子を指定する。これにより、SUBの第一入力端子(結線元端子)とABSの出力端子(結線先端子)が対応付けられ、結線が表示される。同時に、SUBの第一入力端子の強調表示が解除され、次の結線対象となるSUBの第二入力端子が強調表示される(図11中部)。ABSの出力端子を指定する際、内部では、ステップST4,ST9,ST11,ST12,ST13,ST14,ST15,ST16,ST3と処理が進む。 Next, the ABS output terminal is designated using the pointing device 104 as the first connection destination terminal. Thus, the first input terminal (connection source terminal) of the SUB and the output terminal (connection destination terminal) of the ABS are associated with each other, and the connection is displayed. At the same time, the highlighting of the first input terminal of the SUB is canceled and the second input terminal of the SUB to be connected next is highlighted (in the middle part of FIG. 11). When designating the output terminal of the ABS, the process proceeds internally with steps ST4, ST9, ST11, ST12, ST13, ST14, ST15, ST16, ST3.
 二番目の結線先端子として、ポインティングデバイス104を用いてSQRTの出力端子を指定する。これにより、SUBの第二入力端子(結線元端子)とSQRTの出力端子(結線先端子)が対応付けられ、結線が表示される。同時に、SUBの第二入力端子の強調表示が解除され、次の結線対象となるSUBの出力端子が強調表示される(図11下部)。SQRTの出力端子を指定する際、内部では、ステップST4,ST9,ST11,ST12,ST13,ST14,ST15,ST16,ST3と処理が進む。 The SQRT output terminal is designated using the pointing device 104 as the second connection destination terminal. Thereby, the second input terminal (connection source terminal) of the SUB and the output terminal (connection destination terminal) of the SQRT are associated with each other, and the connection is displayed. At the same time, the highlighting of the second input terminal of the SUB is canceled and the output terminal of the SUB to be connected next is highlighted (lower part of FIG. 11). When designating the output terminal of SQRT, the process proceeds internally with steps ST4, ST9, ST11, ST12, ST13, ST14, ST15, ST16, ST3.
(手順B)
 ここでは、先ず結線先端子を順に指定し、その後結線元部品を指定する方法について述べる。
 先ず、最初の結線先端子として、ポインティングデバイス104を用いてABSの出力端子を指定する。このとき、指定した端子が強調表示され、端子の近傍に指定順を表す“1”という数字が表示される(図12上部)。ABSの出力端子を指定する際、内部では、ステップST4,ST9,ST11,ST12,ST13,ST3と処理が進む。
(Procedure B)
Here, a method of designating the connection destination terminal in order and then designating the connection source component will be described.
First, the ABS output terminal is designated using the pointing device 104 as the first connection destination terminal. At this time, the designated terminal is highlighted and a number “1” indicating the designation order is displayed in the vicinity of the terminal (upper part of FIG. 12). When designating the output terminal of the ABS, the process proceeds internally with steps ST4, ST9, ST11, ST12, ST13, ST3.
 次に、二番目の結線先端子として、ポインティングデバイス104を用いてSQRTの出力端子を指定する。このとき、指定した端子が強調表示され、端子の近傍に指定順を表す“2”という数字が表示される(図12中部)。SQRTの出力端子を指定する際、内部では、ステップST4,ST9,ST11,ST12,ST13,ST3と処理が進む。
 この状態で、結線元部品として、ポインティングデバイス104を用いてSUBを指定する。
 これにより、SUBの第一入力端子(結線元端子)とABSの出力端子(結線先端子)、及びSUBの第二入力端子(結線元端子)とSQRTの出力端子(結線先端子)が対応付けられ、それぞれの結線が表示される。それと同時に、結線先端子の近傍に表示されていた指定順を表す数字が消え、結線先端子の強調表示が解除され、結線元部品であるSUBと次の結線対象となるSUBの出力端子が強調表示される(図12下部)。SUBを指定する際、内部では、ステップST4,ST5,ST7,ST8,ST14,ST15,ST16,ST3と処理が進む。
Next, the output terminal of SQRT is designated using the pointing device 104 as the second connection destination terminal. At this time, the designated terminal is highlighted and a number “2” indicating the designation order is displayed in the vicinity of the terminal (middle part of FIG. 12). When designating the output terminal of SQRT, the process proceeds internally with steps ST4, ST9, ST11, ST12, ST13, ST3.
In this state, the SUB is designated using the pointing device 104 as a connection source component.
Thereby, the first input terminal (connection source terminal) of SUB and the output terminal (connection destination terminal) of ABS, the second input terminal (connection source terminal) of SUB, and the output terminal (connection destination terminal) of SQRT are associated with each other. Each connection is displayed. At the same time, the number indicating the designated order displayed near the connection destination terminal disappears, the highlighting of the connection destination terminal is canceled, and the output terminal of the SUB that is the connection source component and the SUB that is the next connection target is emphasized. Is displayed (lower part of FIG. 12). When designating a SUB, the process proceeds internally with steps ST4, ST5, ST7, ST8, ST14, ST15, ST16, ST3.
(手順C)
 ここでは、結線先端子を指定している途中に結線元部品を指定し、その後結線先部品の指定を続ける方法について述べる。
 先ず、最初の結線先端子として、ポインティングデバイス104を用いてABSの出力端子を指定する。このとき、指定した端子が強調表示され、端子の近傍に指定順を表す“1”という数字が表示される(図13上部)。ABSの出力端子を指定する際、内部では、ステップST4,ST9,ST11,ST12,ST13,ST3と処理が進む。
 この状態で、結線元部品として、ポインティングデバイス4を用いてSUBを指定する。
 これにより、SUBの第一入力端子(結線元端子)とABSの出力端子(結線先端子)が対応付けられ、結線が表示される。それと同時に、結線先端子の近傍に表示されていた指定順を表す数字が消え、結線先端子の強調表示が解除され、結線元部品であるSUBと次の結線対象となるSUBの第二入力端子が強調表示される(図13中部)。SUBを指定する際、内部では、ステップST4,ST5,ST7,ST8,ST14,ST15,ST16,ST3と処理が進む。
(Procedure C)
Here, a method will be described in which the connection source part is specified while the connection destination terminal is specified, and then the connection destination part is continuously specified.
First, the ABS output terminal is designated using the pointing device 104 as the first connection destination terminal. At this time, the designated terminal is highlighted and a number “1” indicating the designation order is displayed in the vicinity of the terminal (upper part of FIG. 13). When designating the output terminal of the ABS, the process proceeds internally with steps ST4, ST9, ST11, ST12, ST13, ST3.
In this state, the SUB is designated using the pointing device 4 as the connection source component.
Thus, the first input terminal (connection source terminal) of the SUB and the output terminal (connection destination terminal) of the ABS are associated with each other, and the connection is displayed. At the same time, the number indicating the designation order displayed in the vicinity of the connection destination terminal disappears, the highlighting of the connection destination terminal is canceled, and the second input terminal of the SUB that is the connection source component and the next SUB to be connected Is highlighted (middle of FIG. 13). When designating a SUB, the process proceeds internally with steps ST4, ST5, ST7, ST8, ST14, ST15, ST16, ST3.
 二番目の結線先端子として、ポインティングデバイス104を用いてSQRTの出力端子を指定する。このとき、SUBの第二入力端子(結線元端子)とSQRTの出力端子(結線先端子)が対応付けられ、結線が表示される。それと同時に、SUBの第二入力端子の強調表示が解除され、次の結線対象となるSUBの出力端子が強調表示される(図13下部)。SQRTの出力端子を指定する際、内部では、ステップST4,ST9,ST11,ST12,ST13,ST14,ST15,ST16,ST3と処理が進む。 The SQRT output terminal is designated using the pointing device 104 as the second connection destination terminal. At this time, the second input terminal (connection source terminal) of the SUB is associated with the output terminal (connection destination terminal) of the SQRT, and the connection is displayed. At the same time, the highlighting of the second input terminal of the SUB is canceled and the output terminal of the SUB to be connected next is highlighted (lower part of FIG. 13). When designating the output terminal of SQRT, the process proceeds internally with steps ST4, ST9, ST11, ST12, ST13, ST14, ST15, ST16, ST3.
 以上のように、図10のような所望の二本の結線の作成は、手順A、B、Cのどの方法によっても同じ入力手数で実現可能である。 As described above, the creation of the desired two connections as shown in FIG. 10 can be realized with the same input effort by any of the procedures A, B, and C.
 従来手法の場合、それぞれの結線の結線元端子と結線先端子を指定することで結線を作成していたので、二本の結線を作成する場合には、ポインティングデバイス等を用いて四回(二つの結線元端子と二つの結線先端子)の指定を行わねばならなかった。
 それに対して、本実施の形態の回路図編集装置では、結線元部品を指定することで結線元端子の明示的な指定を不要としているため、三回(一つの結線元部品と二つの結線先端子)の指定で二本の結線の作成が実現でき、結線作成のための手数が減少している。今回は、結線元部品から二本の結線を作成する例を挙げたが、結線元部品を起点とする結線の数が多いほど、従来手法と比較した手数減少の効果は増す。
In the case of the conventional method, the connection was created by specifying the connection source terminal and the connection destination terminal of each connection. Therefore, when creating two connections, use a pointing device or the like four times (two One connection source terminal and two connection destination terminals) had to be specified.
On the other hand, in the circuit diagram editing apparatus according to the present embodiment, by specifying the connection source component, it is not necessary to explicitly specify the connection source terminal, so three times (one connection source component and two connection destinations). It is possible to create two connections by specifying the terminal, and the number of steps for creating the connection is reduced. In this example, two connections are created from the connection source parts. However, as the number of connections starting from the connection source parts increases, the effect of reducing the number of labor compared to the conventional method increases.
<結線の交差>
 また、本実施の形態の回路図編集装置を用いることで、距離に基づく自動結線処理では困難であった交差した結線も容易に作成できる。例えば、上記の三種類の説明においては、結線先端子の指定時には、ABSの出力端子の指定後にSQRTの出力端子を指定しているが、これらの端子の指定順を逆にすることで、図14のような従来の自動結線手法では作成ができない交差した結線が容易に作成可能となる。尚、結線作成処理の具体的な動作は、上述した三種類の手順のいずれかと同様であるため、ここでの説明は省略する。
<Intersection of connection>
In addition, by using the circuit diagram editing apparatus according to the present embodiment, it is possible to easily create crossed connections that were difficult in the automatic connection processing based on distance. For example, in the above three types of descriptions, when designating the connection destination terminal, the output terminal of SQRT is designated after the designation of the output terminal of ABS, but by reversing the designation order of these terminals, FIG. It is possible to easily create a crossed connection that cannot be created by a conventional automatic connection method such as 14. Note that the specific operation of the connection creation process is the same as any of the above-described three types of procedures, and thus description thereof is omitted here.
<空き端子の指定>
 本実施の形態の回路図編集装置においては、結線作成処理を行う際に、まだ結線先端子が存在していない場合などには、結線を行わない結線元端子を空き端子として保留することも可能である。例えば、上記手順Aにおいて、SUBの第一入力端子を空き端子とし、SUBの第二入力端子のみを結線する場合の手順を説明する。編集エリア53の状態を図15に示す。
<Specifying empty terminals>
In the circuit diagram editing apparatus according to the present embodiment, when the connection creation process is performed, if there is no connection destination terminal yet, it is possible to hold the connection source terminal that is not connected as an empty terminal. It is. For example, in the procedure A described above, a procedure when the first input terminal of the SUB is an empty terminal and only the second input terminal of the SUB is connected will be described. The state of the editing area 53 is shown in FIG.
 先ず、結線元部品として、ポインティングデバイス104を用いてSUBを指定する。
 このとき、SUBが結線元部品として強調表示され、さらに結線対象となるSUBの第一入力端子が強調表示される(図15上部)。SUBを指定する際、内部では、ステップST4,ST5,ST7,ST8,ST3と処理が進む。
 次に、SUBの第一入力端子を空き端子とするため、ポインティングデバイス104を用いてSUBの第一入力端子を指定する。そうすると、SUBの第一入力端子は、どの端子とも結線が行われず、SUBの第一入力端子の強調表示が解除され、次の結線対象となるSUBの第二入力端子が強調表示される(図15中部)。つまり、結線先端子の指定時に結線元端子を指定することで、空き端子の指定を実現する。SUBの第一入力端子を指定する際、内部では、ステップST4,ST9,ST11,ST12,ST13,ST14,ST15,ST16,ST3と処理が進む。但し、ステップST15においては、結線元端子と結線先端子が同一端子であるので、結線の作成は行わない。
First, a SUB is designated using the pointing device 104 as a connection source part.
At this time, the SUB is highlighted as the connection source part, and the first input terminal of the SUB to be connected is highlighted (upper part in FIG. 15). When designating a SUB, the process proceeds internally with steps ST4, ST5, ST7, ST8, ST3.
Next, the first input terminal of the SUB is designated using the pointing device 104 in order to make the first input terminal of the SUB an empty terminal. As a result, the first input terminal of the SUB is not connected to any terminal, the highlighting of the first input terminal of the SUB is released, and the second input terminal of the SUB to be connected next is highlighted (FIG. 3). 15 middle). That is, the designation of the empty terminal is realized by designating the connection source terminal when designating the connection destination terminal. When the first SUB input terminal is designated, the process proceeds internally with steps ST4, ST9, ST11, ST12, ST13, ST14, ST15, ST16, ST3. However, in step ST15, since the connection source terminal and the connection destination terminal are the same terminal, no connection is created.
 次に、手順Aと同様の処理により、SQRTとSUBの第二入力端子間の結線を行う(図15下部参照)。
 これにより、結線元部品の全端子に対応する結線先端子が編集エリア53上に存在しない場合には、結線先端子が存在しない結線元端子を空き端子として保留し、結線先端子が存在する結線元端子に対しては、本発明による結線作成処理を行うことが可能となる。
Next, the connection between the second input terminals of SQRT and SUB is performed by the same processing as in procedure A (see the lower part of FIG. 15).
Thereby, when there is no connection destination terminal corresponding to all the terminals of the connection source part on the editing area 53, the connection source terminal without the connection destination terminal is reserved as an empty terminal, and the connection with the connection destination terminal is present. For the original terminal, it is possible to perform the connection creation processing according to the present invention.
 尚、ここでは結線先端子の指定時にポインティングデバイス104を用いて結線元端子を指定することで空き端子を指定したが、空き端子の指定方法は、この操作に限定するものではない。例えば、ポインティングデバイス104を用いて編集エリア53上の回路部品でも端子でも無い位置を指定したり、キーボード103のスペースキーやTabキーなどのキーを押下したり、などといった操作で、空き端子の指定を行うようにしてもよい。 In this case, the empty terminal is specified by specifying the connection source terminal using the pointing device 104 when specifying the connection destination terminal. However, the method of specifying the empty terminal is not limited to this operation. For example, by using the pointing device 104, a position that is neither a circuit component nor a terminal on the editing area 53 is specified, or a space key, a Tab key, or the like on the keyboard 103 is pressed, and an empty terminal is specified. May be performed.
<結線元部品の連続指定>
 ここまで、単一の結線元部品を指定し、その部品の持つ未結線端子に対して結線を行う処理について述べたが、もちろん複数の結線元部品を連続指定し結線処理を行うことも可能である。ある部品(α)を結線元部品として指定した状態で結線処理を進め、その後、部品(β)を結線元部品として指定した場合には、結線元部品の指定が(α)から(β)に移り、以降で指定する結線先端子は部品(β)の未結線端子と端子順に対応付けられ、結線が作成される。
<Continuous designation of wiring source parts>
Up to this point, we have described the process of specifying a single connection source part and connecting to the unconnected terminals of that part, but of course it is also possible to specify multiple connection source parts in succession and perform connection processing. is there. If a part (α) is specified as the connection source part and the connection process proceeds, and then the part (β) is specified as the connection source part, the connection source part designation is changed from (α) to (β). The connection destination terminal to be specified in the following is associated with the unconnected terminal of the component (β) in the terminal order, and a connection is created.
 例えば、手順Aの最終状態から、結線元部品としてABSを指定すると図16上部のようになり、ABSとABSの入力端子が強調表示される。ABSを指定する際、内部では、ステップST4,ST5,ST6,ST7,ST8,ST3と処理が進む。ステップST5において、結線元部品としてSUBが指定されているので、ステップST6に進みデータ初期化処理を行い、ABSを新たな結線元部品として処理を進める。
 次に、結線先端子としてSUBの出力端子を指定すると、結線対象となっているABSの入力端子と結線先端子に指定したSUBの出力端子が結線される(図16下部)。
 このように、SUBの結線処理を行った後に、連続結線編集モードを終了させることなく、ABSの結線処理を連続で行うことが可能である。
For example, when ABS is designated as the connection source component from the final state of procedure A, the result is as shown in the upper part of FIG. 16, and the ABS and ABS input terminals are highlighted. When the ABS is designated, the process proceeds internally with steps ST4, ST5, ST6, ST7, ST8, ST3. In step ST5, since SUB is designated as the connection source part, the process proceeds to step ST6, where data initialization processing is performed, and the process is advanced using ABS as a new connection source part.
Next, when the SUB output terminal is designated as the connection destination terminal, the ABS input terminal to be connected is connected to the SUB output terminal designated as the connection destination terminal (lower part of FIG. 16).
As described above, after the SUB connection process is performed, the ABS connection process can be continuously performed without ending the continuous connection edit mode.
 結線元部品(β)の指定を(β)に対応する結線先端子の指定より先に行う場合は、上記の方法で結線作成処理を連続して行えるが、(β)に対応する結線先端子の指定を結線元部品(β)の指定より先に行う場合は、以下のような方法で連続して結線作成処理を行える。(α)の持つ全端子が結線済み状態になった場合には、以降の結線先端子の指定は、その後指定される結線元部品(β)に対応付けられるため、明示的な操作を行うことなく(β)に対する結線作成処理を行うことができる。(α)が未結線端子を持った状態で、次の結線元部品(β)に対応する結線先端子を指定する場合は、明示的に(α)に対する結線作成処理の終了操作を行うことで(β)に対する結線作成処理を行うことができる。例えば、ポインティングデバイスの左右のボタンを同時に押下する操作を、現状の結線元部品に対する結線作成処理の終了操作に割り当てても良い。 If the connection source part (β) is specified prior to the specification of the connection destination terminal corresponding to (β), the connection creation process can be performed continuously by the above method, but the connection destination terminal corresponding to (β) Is designated before the designation of the connection source part (β), the connection creation processing can be continuously performed by the following method. When all terminals of (α) are in the connected state, the subsequent connection destination terminal specification is associated with the connection source part (β) specified thereafter, so an explicit operation is performed. The connection creation process for (β) can be performed. When (α) has an unconnected terminal and you want to specify a connection destination terminal corresponding to the next connection source part (β), you must explicitly end the connection creation process for (α). A connection creation process for (β) can be performed. For example, an operation of simultaneously pressing the left and right buttons of the pointing device may be assigned to an end operation of the connection creation process for the current connection source component.
<入力または出力端子の限定>
 本実施の形態においては、結線元部品の端子の入出力属性に関係無く全ての端子を結線元端子として結線処理を行う方法について述べてきたが、結線元部品の端子の入出力属性を考慮し、入力端子のみ、または出力端子のみを結線元端子の対象とすることもできる。これは明示的に切り替える手段を用意しても良いし、回路図編集装置の機能として事前に決定されていても良い。例えば、結線元部品の入力端子のみを結線元端子の対象とする構成が考えられる。この場合の回路図編集装置の内部処理における相違点は、ステップST7において結線元端子情報を保管する際に、入力属性の端子のみを結線元端子リストに保管する点である。
<Limitation of input or output terminals>
In the present embodiment, the method of performing the connection processing using all terminals as the connection source terminals regardless of the input / output attributes of the terminals of the connection source parts has been described, but considering the input / output attributes of the terminals of the connection source parts. In addition, only the input terminal or only the output terminal can be the target of the connection source terminal. For this, a means for explicitly switching may be prepared, or the function of the circuit diagram editing apparatus may be determined in advance. For example, the structure which makes only the input terminal of a connection origin component the object of a connection origin terminal can be considered. The difference in the internal processing of the circuit diagram editing apparatus in this case is that only the terminals having the input attribute are stored in the connection source terminal list when the connection source terminal information is stored in step ST7.
<結線作成方法>
 本実施の形態においては、結線先端子と結線元端子の対応付けが確定した後、明示的な指示をすることなく端子間の結線が描画される。その際の結線の経路策定のポリシーには、様々なものが考えられるが、ここでは、垂直線と水平線の組合せで最短になる経路を算出し、その経路にしたがって描画を行う。経路を算出する方法としては、例えば特開昭60-8982号公報に示される経路の自動探索方法などを用いることができる。
 算出した経路上に、他の回路部品等の障害物が存在した場合は、図17のように、障害物を迂回する経路を算出し直し、その迂回経路に従って結線の描画を行う。また、算出された経路上に、既に他の結線が存在し、複数の線が重なる場合は、既存の結線の位置からずらした経路を算出し直し、その経路に従って結線の描画を行っても良い。尚、算出された経路上に、他の結線や他の回路部品等が存在するか否かは、回路部品や端子のX,Y座標に基づいて判定することができる。
 本実施の形態においては、結線を垂直線と水平線の組合せで実現したが、図18のように、斜め線を用いてもよい。
 尚、ここでは経路算出の際、最短経路をとるポリシーを用いているが、それ以外にも、曲がり角の数を最小にするポリシー、結線の交差を最小にするポリシー等が考えられ、これらを組み合わせた経路算出手法でも良い。
<Connection creation method>
In the present embodiment, after the association between the connection destination terminal and the connection source terminal is confirmed, the connection between the terminals is drawn without an explicit instruction. Various policies can be considered for establishing a connection route at that time. Here, the shortest route is calculated by a combination of a vertical line and a horizontal line, and drawing is performed according to the route. As a method for calculating a route, for example, an automatic route search method disclosed in Japanese Patent Application Laid-Open No. 60-8982 can be used.
If an obstacle such as another circuit component exists on the calculated route, the route that bypasses the obstacle is recalculated as shown in FIG. 17, and the connection is drawn according to the bypass route. If another connection already exists on the calculated route and a plurality of lines overlap, the route shifted from the position of the existing connection may be recalculated and the connection drawn according to the route. . Note that whether or not there are other connections or other circuit components on the calculated path can be determined based on the X and Y coordinates of the circuit components and terminals.
In the present embodiment, the connection is realized by a combination of a vertical line and a horizontal line, but an oblique line may be used as shown in FIG.
In addition, here, when calculating the route, the policy of taking the shortest route is used, but other policies such as a policy for minimizing the number of bends and a policy for minimizing the intersection of connection lines can be considered. A route calculation method may be used.
<結線先部品の指定>
 本実施の形態においては、結線先端子を指定する際に、該当する端子を指定してきたが、結線先端子を持つ部品(結線先部品)を指定しても良い。結線先部品の持つ未結線端子がただ一つの場合は、その未結線端子を結線先端子として処理を進める。結線先部品の持つ未結線端子が複数存在した場合は、結線先部品の持つ未結線端子のうち最も端子番号の小さいものを結線先端子として処理を進める。
<Specifying connection destination parts>
In the present embodiment, when a connection destination terminal is specified, the corresponding terminal has been specified, but a component having a connection destination terminal (connection destination component) may be specified. When there is only one unconnected terminal of the connection destination component, the processing proceeds with the unconnected terminal as the connection destination terminal. When there are a plurality of unconnected terminals of the connection destination part, the process proceeds with the connection terminal having the smallest terminal number among the unconnection terminals of the connection destination part.
 以上のように、実施の形態1の回路図編集装置によれば、結線元部品を指定する結線元部品指定部と、結線先端子を指定する結線先端子指定部と、結線元部品の未結線端子から結線先端子に結線を行う際に、結線先端子指定部による結線先端子の指定順と、結線元部品の未結線端子における予め定められた端子順に基づいて、結線対象となる結線元部品の未結線端子と結線先端子の対応付けを行う結線元端子確定部と、結線元端子確定部で対応付けられた未結線端子と結線先端子の間を結線する結線作成部とを備えたので、結線元端子を明示的に指定することなく所望の端子間の結線を実現することができ、従って、回路図編集の手数を軽減することができる。 As described above, according to the circuit diagram editing apparatus of the first embodiment, the connection source component designating unit for designating the connection source component, the connection destination terminal designating unit for designating the connection destination terminal, and the unconnected connection source component When connecting from the terminal to the connection destination terminal, the connection source part to be connected based on the specified order of the connection destination terminal by the connection destination terminal specifying unit and the predetermined terminal order of the unconnected terminal of the connection source part A connection source terminal determination unit for associating an unconnected terminal with a connection destination terminal, and a connection creation unit for connecting between the unconnection terminal and the connection destination terminal associated with each other at the connection source terminal determination unit Therefore, it is possible to realize connection between desired terminals without explicitly designating the connection source terminal, and therefore, it is possible to reduce the trouble of editing the circuit diagram.
 また、実施の形態1の回路図編集装置によれば、結線元端子確定部は、結線元部品指定部による結線元部品の指定と、結線先端子指定部による結線先端子の指定の順序に応じて、結線元部品の未結線端子と結線先端子の対応付けを行うようにしたので、結線元部品の指定と結線先端子の指定を任意の順に行うことができ、このため、利用者の好みに応じた柔軟な操作手順で結線を作成することができる。例えば、本実施の形態における回路図編集装置は、実施の形態中に手順A、手順B、手順Cとして記載したように、異なった操作手順による結線作成処理を、何らかの動作モードの変更等を行うことなく実現することができるので、利用者は所望の操作手順を用いて結線を作成することができる。 In addition, according to the circuit diagram editing apparatus of the first embodiment, the connection source terminal determination unit is responsive to the specification of the connection source component by the connection source component specification unit and the specification of the connection destination terminal by the connection destination terminal specification unit. Since the unconnected terminal and the connection destination terminal of the connection source part are associated with each other, the specification of the connection source part and the specification of the connection destination terminal can be performed in any order. Connections can be created with a flexible operation procedure according to the situation. For example, the circuit diagram editing apparatus according to the present embodiment performs connection creation processing according to different operation procedures, changes some operation modes, and the like, as described as procedure A, procedure B, and procedure C in the embodiment. Therefore, the user can create a connection using a desired operation procedure.
 また、実施の形態1の回路図編集プログラムによれば、結線元部品の未結線端子から、指定された結線先端子に結線を行う際に、結線先端子の指定順と、結線元部品の未結線端子における予め定められた端子順に基づいて、結線対象となる結線元部品の未結線端子と結線先端子の対応付けを行う結線元端子確定部と、結線元端子確定部で対応付けられた未結線端子と結線先端子の間を結線する結線作成部として機能させるようにしたので、回路図編集の手数を軽減することのできる回路図編集装置をコンピュータ上に実現させることができる。 Further, according to the circuit diagram editing program of the first embodiment, when connecting from the unconnected terminal of the connection source component to the specified connection destination terminal, the specified order of the connection destination terminal and the connection source component Based on a predetermined terminal order in the connection terminal, a connection source terminal determination unit for associating an unconnection terminal and a connection destination terminal of a connection source component to be connected, and a connection source terminal determination unit that is not associated with the connection source terminal determination unit Since it is made to function as a connection creation unit that connects between the connection terminal and the connection destination terminal, a circuit diagram editing apparatus that can reduce the trouble of circuit diagram editing can be realized on a computer.
実施の形態2.
 実施の形態2は、結線元部品の持つ未結線端子の端子順を、予め定められた端子順決定規則に従って動的に決定するようにしたものである。
 図19は、実施の形態2による回路図編集装置を示す構成図である。
 本実施の形態による回路図編集装置の構成は、実施の形態1の構成に端子順決定部6を加えたものであり、それ以外は実施の形態1と同様の構成である。端子順決定部6は、結線元部品指定部1によって結線元部品が指定された場合、その結線元部品の持つ未結線端子の端子順を、予め定められた端子順決定規則に従って決定するよう構成されている。
 また、本実施の形態による回路図編集装置を実現するハードウェアの構成は、図2に示した回路構成と同様であり、端子順決定部6については、その機能に対応したプログラムがハードディスク107に格納され、CPU105によって実行されることで実現されている。
Embodiment 2. FIG.
In the second embodiment, the terminal order of the unconnected terminals of the connection source component is dynamically determined according to a predetermined terminal order determination rule.
FIG. 19 is a configuration diagram showing a circuit diagram editing apparatus according to the second embodiment.
The configuration of the circuit diagram editing apparatus according to the present embodiment is the same as that of the first embodiment except that the terminal order determining unit 6 is added to the configuration of the first embodiment. The terminal order determination unit 6 is configured to determine the terminal order of the unconnected terminals of the connection source part according to a predetermined terminal order determination rule when the connection source part is specified by the connection source part specification unit 1. Has been.
The hardware configuration for realizing the circuit diagram editing apparatus according to the present embodiment is the same as the circuit configuration shown in FIG. 2. For the terminal order determination unit 6, a program corresponding to the function is stored in the hard disk 107. It is realized by being stored and executed by the CPU 105.
 以下、実施の形態2の動作について説明する。
 実施の形態1においては、ある回路部品の持つ端子順は予め定められており、変更されることは無かった。
 それに対し、本実施の形態における回路図編集装置では、端子順を予め定められた端子順決定規則に従って決定する端子順決定部6を備えているため、結線元部品指定時の状況(他の回路部品の配置状況等)に応じて、結線元部品の持つ未結線端子の端子順は動的に変更される。
Hereinafter, the operation of the second embodiment will be described.
In the first embodiment, the terminal order of a certain circuit component is determined in advance and is not changed.
On the other hand, the circuit diagram editing apparatus according to the present embodiment includes a terminal order determination unit 6 that determines the terminal order according to a predetermined terminal order determination rule. The terminal order of the unconnected terminals of the connection source component is dynamically changed according to the component arrangement status.
●(内部処理)
 端子順決定部6は、内部に端子順決定規則を持つ。端子順決定規則は、条件部と優先指定部からなり、条件部に書かれている内容が成立した場合に、優先指定部に書かれている内容に従って、端子順を補正する。
 本実施の形態における結線作成時の内部処理の流れは、図8におけるステップST7の結線元端子情報保管処理以外は、実施の形態1と同様の処理となる。本実施の形態におけるステップST7の処理の流れを図20のフローチャートに示す。
● (Internal processing)
The terminal order determination unit 6 has a terminal order determination rule inside. The terminal order determination rule includes a condition part and a priority designation part. When the contents written in the condition part are satisfied, the terminal order is corrected according to the contents written in the priority designation part.
The flow of internal processing at the time of creating a connection in the present embodiment is the same as that in the first embodiment except for the connection source terminal information storage process in step ST7 in FIG. The flow of the process of step ST7 in this Embodiment is shown in the flowchart of FIG.
 (ステップST21)端子順決定規則判定
 端子順決定部6は、端子順決定規則の条件部の内容が成立するかを判定する。不成立であれば、何も行わずステップST23に進む。成立であれば、処理はステップST22に進む。
 (ステップST22)
 ステップST21の判定結果が成立の場合は、端子順決定規則の優先指定部に書かれている内容に従って、結線元端子の端子IDを補正する。
 (ステップST23)
 結線元端子確定部3が、結線元端子リストに、指定された結線元部品が持つ未結線端子の端子情報を端子IDの若い順に保管する。
(Step ST21) Terminal Order Determination Rule Determination The terminal order determination unit 6 determines whether the contents of the condition part of the terminal order determination rule are satisfied. If not, nothing is done and the process proceeds to step ST23. If it is established, the process proceeds to step ST22.
(Step ST22)
When the determination result of step ST21 is established, the terminal ID of the connection source terminal is corrected according to the contents written in the priority designation part of the terminal order determination rule.
(Step ST23)
The connection source terminal determination unit 3 stores, in the connection source terminal list, terminal information of unconnected terminals included in the specified connection source component in ascending order of terminal ID.
●(動作事例)
 ここでは、端子順決定規則として以下のような内容のものが指定されている場合の動作について説明する。
 条件部:直前に配置された回路部品の出力端子の型と同一の型の入力端子を結線元部品が持つ。
 優先指定部:該当の端子を優先する。
● (Operation example)
Here, the operation when the following content is specified as the terminal order determination rule will be described.
Condition part: The wiring source part has an input terminal of the same type as the output terminal of the circuit part arranged immediately before.
Priority designation part: Prioritizes the corresponding terminal.
 編集エリア53(図3参照)に、図21上部に示すようなABSとSQRTとFUNCの三つの部品が配置されている状況で、FUNCを結線元部品として指定し、FUNCの第二入力端子とSQRTの出力端子を結線する場合の動作について説明する。
 FUNCという部品は、左上の第一入力端子が整数型(INT型)であり、左下の第二入力端子が実数型(REAL型)であり、右側の出力端子が整数型である。またここでは、直前に配置された部品はSQRTであるとする。
In the situation where three parts of ABS, SQRT, and FUNC as shown in the upper part of FIG. 21 are arranged in the editing area 53 (see FIG. 3), FUNC is designated as a connection source part, and the second input terminal of FUNC The operation when connecting the output terminals of the SQRT will be described.
In the part called FUNC, the first input terminal at the upper left is an integer type (INT type), the second input terminal at the lower left is a real number type (REAL type), and the output terminal on the right side is an integer type. Here, it is assumed that the component placed immediately before is SQRT.
 結線元部品指定部1によって、FUNCを結線元端子として指定した場合、端子順決定部6は、直前に配置された部品であるSQRTの出力端子は実数型であるので、結線元端子であるFUNCの入力端子の中で、実数型の端子があれば、その端子を他の端子より優先する。
 ここでは、条件に合う端子として、FUNCの第二入力端子があるので、この端子が最初に結線される結線元端子となる。図21中部にあるように、FUNCが結線元端子として強調表示され、最初の結線元端子として第二入力端子が強調表示される。
 次に、結線先端子として、SQRTを指定すると、図21下部にあるように、SQRTの出力端子とFUNCの第二入力端子が結線され、次の結線元端子として、FUNCの第一入力端子が強調表示される。
 実施の形態1の構成におけるFUNCの結線元端子の指定順は、第一入力端子、第二入力端子、出力端子の順となるが、本実施の形態の構成により、予め決められた端子順決定規則を適用することで、第二入力端子、第一入力端子、出力端子の順に変わることとなる。
When FUNC is specified as the connection source terminal by the connection source component specifying unit 1, the terminal order determination unit 6 determines that the output terminal of the SQRT, which is the component placed immediately before, is a real number type, so that the FUNC that is the connection source terminal If there is a real type terminal among the input terminals, the terminal is given priority over other terminals.
Here, since there is a second input terminal of FUNC as a terminal that meets the conditions, this terminal is a connection source terminal to be connected first. As shown in the middle part of FIG. 21, FUNC is highlighted as the connection source terminal, and the second input terminal is highlighted as the first connection source terminal.
Next, if SQRT is specified as the connection destination terminal, the SQRT output terminal and the FUNC second input terminal are connected as shown in the lower part of FIG. 21, and the FUNC first input terminal is connected as the next connection source terminal. Highlighted.
The order of designation of the FUNC connection source terminals in the configuration of the first embodiment is the order of the first input terminal, the second input terminal, and the output terminal, but the predetermined terminal order is determined by the configuration of the present embodiment. By applying the rule, the second input terminal, the first input terminal, and the output terminal are changed in this order.
 ここでは、直前に配置された回路部品の出力端子の型と同一の型の入力端子を結線元部品が持つ場合に優先するという端子順決定規則で事例を説明したが、端子順決定規則は、所望のものを設定可能である。例えば、編集エリア53上に描画されている未結線の出力端子の型と同一の型の入力端子を結線元部品が持つ場合に優先する、などという端子順決定規則でもよい。 Here, the case was explained with the terminal order decision rule that gives priority to the case where the wiring source component has the same type of input terminal as the output terminal type of the circuit component placed immediately before, but the terminal order decision rule is A desired one can be set. For example, a terminal order determination rule may be adopted in which priority is given to the case where the connection source component has the same type of input terminal as that of the unconnected output terminal drawn on the editing area 53.
 以上のように、実施の形態2の回路図編集装置によれば、結線元部品が指定された場合、結線元部品の持つ未結線端子の端子順を、予め定められた端子順決定規則に従って決定する端子順決定部を備え、結線元端子確定部は、端子順決定部で端子順が決定された場合は、端子順で結線元部品の未結線端子と結線先端子の対応付けを行うようにしたので、結線対象とする結線元部品の端子順を、端子順決定規則に従って動的に変更することができ、このため、より柔軟に結線作業を進めることができる。 As described above, according to the circuit diagram editing apparatus of the second embodiment, when a connection source component is designated, the terminal order of unconnected terminals of the connection source component is determined according to a predetermined terminal order determination rule. A terminal order determination unit that performs connection when the terminal order determination unit determines the terminal order, and associates the unconnected terminal of the connection source component with the connection destination terminal in the terminal order. Therefore, the terminal order of the connection source parts to be connected can be dynamically changed according to the terminal order determination rule, and therefore the connection work can be performed more flexibly.
実施の形態3.
 実施の形態3は、結線上に値の分岐を行うためのジャンクションを挿入するようにしたものである。
 図22は、実施の形態3による回路図編集装置を示す構成図である。
 本回路図編集装置は、実施の形態1の回路図編集装置に、ジャンクション挿入部8を有する未結線端子判定部7を付加したものである。未結線端子判定部7は、結線先端子指定部2で指定された結線先端子が未結線端子であるか否かを判定し、未結線端子でなかった場合は、ジャンクション挿入部8によってジャンクションを挿入する機能部である。また、ジャンクション挿入部8は、結線上に値の分岐を行うためのジャンクションを挿入する機能部である。これ以外の構成は、実施の形態1と同様であるため、対応する部分に同一符号を付してその説明を省略する。
 また、本実施の形態のハードウェア構成は、実施の形態1と同様であり、未結線端子判定部7は、その機能に対応したプログラムがハードディスク107に格納され、CPU105によって読み出されて実行されることで実現されている。
Embodiment 3 FIG.
In the third embodiment, a junction for branching a value is inserted on the connection.
FIG. 22 is a block diagram showing a circuit diagram editing apparatus according to the third embodiment.
This circuit diagram editing apparatus is obtained by adding an unconnected terminal determination unit 7 having a junction insertion unit 8 to the circuit diagram editing apparatus of the first embodiment. The unconnected terminal determination unit 7 determines whether or not the connection destination terminal specified by the connection destination terminal specifying unit 2 is an unconnected terminal. If the terminal is not an unconnected terminal, the junction insertion unit 8 determines a junction. It is a functional part to be inserted. The junction insertion unit 8 is a functional unit that inserts a junction for branching a value on the connection. Since the configuration other than this is the same as that of the first embodiment, the same reference numerals are given to corresponding portions, and the description thereof is omitted.
The hardware configuration of the present embodiment is the same as that of the first embodiment, and the unconnected terminal determination unit 7 stores a program corresponding to the function in the hard disk 107 and is read and executed by the CPU 105. Is realized.
 以下、実施の形態3の動作について説明する。
 本実施の形態では、実施の形態1において結線先端子として指定した端子が未結線端子で無い場合の処理について説明する。未結線端子で無い場合、結線上に値の分岐を行うジャンクションを自動的に挿入する。これにより、明示的にジャンクションを挿入する手間が軽減される。
Hereinafter, the operation of the third embodiment will be described.
In the present embodiment, processing when the terminal designated as the connection destination terminal in Embodiment 1 is not an unconnected terminal will be described. If it is not an unconnected terminal, a junction for branching the value is automatically inserted on the connection. Thereby, the trouble of explicitly inserting the junction is reduced.
●(内部処理)
 本実施の形態における結線作成時の内部処理の流れは、図8におけるステップST12の結線先端子情報保管処理以外は実施の形態1の流れと同様の処理となる。本実施の形態におけるステップST12の処理の流れを図23に示すフローチャートに示す。
 (ステップST31)未結線状態判定
 未結線端子判定部7では、結線先端子指定部2が指定した結線先端子が、未結線端子かどうかを判定する。未結線端子であれば、何も特別な処理は行わずステップST33に進む。未結線端子でなければ、処理はステップST32に進む。
 (ステップST32)ジャンクション挿入
 ステップST31での判定結果が未結線端子でない場合は、ジャンクション挿入部8が、結線先端子に既に結線されている線上に値を分岐するためのジャンクションを挿入する。ジャンクション挿入後、ステップST33に進む。
 (ステップST33)結線先端子情報保管
 結線先端子指定部2は、結線先端子情報を結線先端子リストに保管する。ここで、ステップST32においてジャンクションが挿入されていた場合は、そのジャンクションが結線先端子となり、ジャンクションの情報を結線先端子リストに保管する。
● (Internal processing)
The flow of internal processing at the time of creating a connection in the present embodiment is the same as the flow of the first embodiment except for the connection destination terminal information storage process in step ST12 in FIG. The flow of the process of step ST12 in this Embodiment is shown in the flowchart shown in FIG.
(Step ST31) Unconnected State Determination The unconnected terminal determination unit 7 determines whether the connection destination terminal specified by the connection destination terminal specifying unit 2 is an unconnected terminal. If it is an unconnected terminal, no special processing is performed and the process proceeds to step ST33. If it is not an unconnected terminal, the process proceeds to step ST32.
(Step ST32) Junction Insertion If the determination result in step ST31 is not an unconnected terminal, the junction insertion unit 8 inserts a junction for branching a value on a line already connected to the connection destination terminal. After inserting the junction, the process proceeds to step ST33.
(Step ST33) Connection Destination Terminal Information Storage The connection destination terminal designation unit 2 stores the connection destination terminal information in the connection destination terminal list. Here, when a junction is inserted in step ST32, the junction becomes a connection destination terminal, and information on the junction is stored in the connection destination terminal list.
●(動作事例)
 編集エリア53(図3参照)に、図24上部に示すようなADD、ABS、SQRT、SUBの四つの部品が配置され、ADDの第二入力端子とABSの出力端子が既に結線されている状況で、SUBの第一入力端子とABSの出力端子を結線する場合の動作について説明する。
 先ず、結線元部品として、ポインティングデバイス104を用いてSUBを指定する。このとき、SUBが結線元部品として強調表示され、更に結線対象となるSUBの第一入力端子が強調表示される(図24中部)。SUBを指定する際、内部では、ステップST4,ST5,ST7,ST8,ST3と処理が進む。
 次に、結線先端子として、ポインティングデバイス104を用いてABSの出力端子を指定する。このとき、ABSの出力端子はADDの第二入力端子と既に結線されており未結線端子ではないので、未結線端子判定部7によって結線済みと判定され、ジャンクション挿入部8により、既にある結線上に値を分配するジャンクションが挿入される。そして、このジャンクションを結線先端子とする結線が表示される。それと同時に、SUBの第一入力端子の強調表示が解除され、次の結線対象となるSUBの第二入力端子が強調表示される(図24下部)。ABSの出力端子を指定する際、内部では、ステップST4,ST9,ST11,ST31,ST32,ST33,ST13,ST14,ST15,ST16,ST3と処理が進む。
● (Operation example)
In the editing area 53 (see FIG. 3), the four parts ADD, ABS, SQRT, and SUB as shown in the upper part of FIG. 24 are arranged, and the second input terminal of ADD and the output terminal of ABS are already connected. The operation when the first input terminal of the SUB and the output terminal of the ABS are connected will be described.
First, a SUB is designated using the pointing device 104 as a connection source part. At this time, the SUB is highlighted as the connection source part, and the first input terminal of the SUB to be connected is highlighted (in the middle part of FIG. 24). When designating a SUB, the process proceeds internally with steps ST4, ST5, ST7, ST8, ST3.
Next, an ABS output terminal is designated using the pointing device 104 as a connection destination terminal. At this time, since the ABS output terminal is already connected to the ADD second input terminal and is not an unconnected terminal, it is determined by the unconnected terminal determination unit 7 that the connection has been completed. The junction that distributes the value to is inserted. And the connection which uses this junction as a connection tip terminal is displayed. At the same time, the highlighting of the first input terminal of the SUB is canceled, and the second input terminal of the SUB to be connected next is highlighted (lower part of FIG. 24). When designating the output terminal of the ABS, the process proceeds internally with steps ST4, ST9, ST11, ST31, ST32, ST33, ST13, ST14, ST15, ST16, ST3.
 以上のように、実施の形態3の回路図編集装置によれば、結線先端子指定部で指定された結線先端子が未結線端子であるか否かを判定し、未結線端子でなかった場合は、結線上に値の分岐を行うジャンクションを挿入する未結線端子判定部を備えたので、値の分岐を行うジャンクションが自動で挿入され、未結線端子でない端子も結線先端子として容易に選択可能となる。 As described above, according to the circuit diagram editing apparatus of the third embodiment, it is determined whether or not the connection destination terminal specified by the connection destination terminal specifying unit is an unconnected terminal. Is equipped with an unconnected terminal determination unit that inserts a junction that branches a value on the connection, so that a junction that branches a value is automatically inserted, and a terminal that is not an unconnected terminal can be easily selected as a connection destination terminal It becomes.
実施の形態4.
 実施の形態4は、端子の入出力属性を考慮して結線処理を行うようにしたものである。
 実施の形態1においては、各端子の入出力属性を考慮せずに結線処理を行っているが、本実施の形態では、各端子が入出力属性を持っている状況で、その入出力属性を考慮して結線を行う事例について述べる。端子の入出力属性を考慮する場合、入力端子同士や出力端子同士の結線は不可能とし、入力端子と出力端子間の結線のみを可能とする。
 ここで、図面上の構成は実施の形態1の図1と同様であるため、図1を用いて説明する。実施の形態4の結線元端子確定部3は、基本的な機能は実施の形態1の結線元端子確定部3と同様であるが、結線処理を行う場合、回路部品の入力端子と出力端子間の結線のみを行うよう構成されている。その他の構成は実施の形態1と同様である。また、本実施の形態のハードウェア構成は、図2に示したものと同様である。
Embodiment 4 FIG.
In the fourth embodiment, connection processing is performed in consideration of input / output attributes of terminals.
In the first embodiment, the connection processing is performed without considering the input / output attribute of each terminal. However, in this embodiment, the input / output attribute is set in a situation where each terminal has the input / output attribute. An example of connection in consideration is described. When considering the input / output attributes of the terminals, the connection between the input terminals and the output terminals is impossible, and only the connection between the input terminal and the output terminal is possible.
Here, since the configuration on the drawing is the same as that of FIG. 1 of the first embodiment, description will be made with reference to FIG. Although the basic function of the connection source terminal determination unit 3 of the fourth embodiment is the same as that of the connection source terminal determination unit 3 of the first embodiment, when the connection process is performed, the connection between the input terminal and the output terminal of the circuit component is performed. It is comprised so that only this connection may be performed. Other configurations are the same as those of the first embodiment. The hardware configuration of the present embodiment is the same as that shown in FIG.
 以下、実施の形態4の動作について説明する。
●(内部処理)
 実施の形態1では、データ保持領域として結線元端子リスト、結線先端子リスト、結線先端子カウンタの三種を用意していたが、本実施の形態においては、三種それぞれの領域に入力用と出力用があり、合計六種のデータ保持領域を持つ(入力結線元端子リスト、出力結線元端子リスト、入力結線先端子リスト、出力結線先端子リスト、入力結線先端子カウンタ、出力結線先端子カウンタの六種)。
 入力結線元端子リスト、出力結線元端子リストのデータ構造は結線元端子リストと同様であり、入力結線先端子リスト、出力結線先端子リストのデータ構造は結線先端子リストと同様である。
Hereinafter, the operation of the fourth embodiment will be described.
● (Internal processing)
In the first embodiment, three types of connection source terminal list, connection destination terminal list, and connection destination terminal counter are prepared as data holding areas. However, in this embodiment, input and output are provided in each of the three types of areas. There are a total of six types of data holding areas (input connection source terminal list, output connection source terminal list, input connection destination terminal list, output connection destination terminal list, input connection destination terminal counter, and output connection destination terminal counter. seed).
The data structure of the input connection source terminal list and the output connection source terminal list is the same as that of the connection source terminal list, and the data structure of the input connection destination terminal list and the output connection source terminal list is the same as that of the connection destination terminal list.
 端子の持つ入出力属性に従った結線を実現するために、六種のデータ保持領域を入力結線先端子用データ保持領域と、出力結線先端子用データ保持領域の二つに分ける。入力結線先端子用データ保持領域とは、結線先端子が入力属性を持つ場合に用いられるデータ保持領域であり、入力結線先端子リスト、入力結線先端子カウンタ、出力結線元端子リストの三種からなる。出力結線先端子用データ保持領域とは、結線先端子が出力属性を持つ場合に用いられるデータ保持領域であり、出力結線先端子リスト、出力結線先端子カウンタ、入力結線元端子リストの三種からなる。 In order to realize connection according to the input / output attributes of the terminal, the six types of data holding areas are divided into two areas: an input connection destination terminal data holding area and an output connection destination terminal data holding area. The data holding area for the input connection destination terminal is a data holding area used when the connection destination terminal has an input attribute, and consists of three types: an input connection destination terminal list, an input connection destination terminal counter, and an output connection source terminal list. . The data holding area for the output connection destination terminal is a data holding area used when the connection destination terminal has an output attribute, and consists of three types: an output connection destination terminal list, an output connection destination terminal counter, and an input connection source terminal list. .
 出力結線元端子リストと入力結線先端子リスト、入力結線元端子リストと出力結線先端子リストを対応付けることで、結線先端子として入力属性を持つ端子が指定された場合は、結線元部品の出力属性を持つ端子と結線を行い、結線先端子として出力属性を持つ端子が指定された場合は、結線元部品の入力属性を持つ端子と結線を行うことができる。 If a terminal with an input attribute is specified as the connection destination terminal by associating the output connection source terminal list with the input connection destination terminal list, and the input connection source terminal list with the output connection destination terminal list, the output attribute of the connection source part When a terminal having an output attribute is designated as a connection destination terminal, the terminal can be connected to a terminal having an input attribute of the connection source component.
 本実施の形態の回路図編集装置の結線作成時の内部処理を示すフローチャートを図25に示す。このフローチャートは、いくつかのステップにおける処理の内容に違いはあるものの、基本的な処理の流れは、図8に示す実施の形態1のフローチャートと同様である。以降では、処理に相違のあるステップについて述べる。 FIG. 25 is a flowchart showing internal processing when creating a connection in the circuit diagram editing apparatus according to the present embodiment. This flowchart is different from the contents of processing in several steps, but the basic processing flow is the same as that of the first embodiment shown in FIG. In the following, steps that differ in processing will be described.
 (ステップST402)(ステップST406)(ステップST410)データ初期化
 データ初期化処理においては、入力結線元端子リスト、出力結線元端子リスト、入力結線先端子リスト、出力結線先端子リスト、入力結線先端子カウンタ、出力結線先端子カウンタの六種のデータ保持領域を結線先端子指定部2および結線元端子確定部3によって初期化する。
 (ステップST405)結線元端子リスト判定
 ステップST4での判定の結果、イベントが結線元部品指定イベントであった場合、結線元端子確定部3が、入力結線元端子リストと出力結線元端子リストが空かどうかを判定する。入力結線元端子リストと出力結線元端子リストのどちらかが空でない場合、ステップST406に処理が進む。入力結線元端子リストと出力結線元端子リストが空である場合、ステップST407に処理が進む。
 (ステップST407)結線元端子情報保管
 結線元端子確定部3が、入力結線元端子リストに、指定された結線元部品が持つ未結線入力端子の端子情報を端子IDの若い順に保管し、出力結線元端子リストに、指定された結線元部品が持つ未結線出力端子の端子情報を端子IDの若い順に保管する。
 (ステップST408)結線先端子カウンタ値判定
 結線元端子確定部3が、入力結線先端子カウンタと出力結線先端子カウンタの値を判定する。入力結線先端子カウンタと出力結線先端子カウンタの両方の値が0であれば、結線先端子が未指定なので、ステップST3に戻って次のイベントを待つ。入力結線先端子カウンタと出力結線先端子カウンタのどちらかの値が0でなければ、ステップST414に進む。
(Step ST402) (Step ST406) (Step ST410) Data initialization In the data initialization process, the input connection source terminal list, the output connection source terminal list, the input connection destination terminal list, the output connection destination terminal list, and the input connection destination terminal Six types of data holding areas of the counter and the output connection destination terminal counter are initialized by the connection destination terminal designating unit 2 and the connection source terminal determining unit 3.
(Step ST405) Connection source terminal list determination As a result of the determination in step ST4, if the event is a connection source component designation event, the connection source terminal determination unit 3 has an empty input connection source terminal list and an output connection source terminal list. Determine whether or not. If either the input connection source terminal list or the output connection source terminal list is not empty, the process proceeds to step ST406. If the input connection source terminal list and the output connection source terminal list are empty, the process proceeds to step ST407.
(Step ST407) Connection source terminal information storage The connection source terminal determination unit 3 stores in the input connection source terminal list the terminal information of the unconnected input terminals of the specified connection source parts in ascending order of the terminal IDs, and the output connection In the original terminal list, the terminal information of the unconnected output terminals of the designated connection source component is stored in ascending order of the terminal IDs.
(Step ST408) Connection destination terminal counter value determination The connection source terminal determination part 3 determines the value of an input connection destination terminal counter and an output connection destination terminal counter. If the values of both the input connection destination terminal counter and the output connection destination terminal counter are 0, the connection destination terminal is not specified, so the process returns to step ST3 and waits for the next event. If the value of either the input connection destination terminal counter or the output connection destination terminal counter is not 0, the process proceeds to step ST414.
 (ステップST409)未結線端子残存判定
 結線先端子指定部2が、入力結線元端子リストと出力結線元端子リストに未結線端子が残っているかを判定する。入力結線元端子リストと出力結線元端子リストのデータの有無を調べ、入力結線元端子リストにデータが存在する場合は、入力結線元端子リストのデータ数と出力結線先端子カウンタの値(この値をnoとする)を比較し、出力結線元端子リストにデータが存在する場合は、出力結線元端子リストのデータ数と入力結線先端子カウンタの値(この値をniとする)を比較する。
 入力結線元端子リストと出力結線元端子リストの両方にデータが存在しない場合は、結線元部品が未指定の状態であるため、未結線端子は有ると判定しステップST411に進む。入力結線元端子リストにデータが存在し、noが入力結線元端子リストのデータ数未満であれば、未結線端子は有ると判定しステップST411に進む。出力結線元端子リストにデータが存在し、niが出力結線元端子リストのデータ数未満であれば、未結線端子は有ると判定しステップST411に進む。
 上記以外の場合は、未結線端子は無いと判定し、ステップST410に進む。
(Step ST409) Unconnected terminal remaining determination The connection destination terminal designating unit 2 determines whether or not unconnected terminals remain in the input connection source terminal list and the output connection source terminal list. Check the existence of data in the input connection source terminal list and the output connection source terminal list. If data exists in the input connection source terminal list, the number of data in the input connection source terminal list and the value of the output connection destination terminal counter (this value) If no data exists in the output connection source terminal list, the number of data in the output connection source terminal list is compared with the value of the input connection destination terminal counter (this value is set to ni).
If there is no data in both the input connection source terminal list and the output connection source terminal list, the connection source component is in an unspecified state, so it is determined that there is an unconnected terminal, and the process proceeds to step ST411. If there is data in the input connection source terminal list and no is less than the number of data in the input connection source terminal list, it is determined that there is an unconnected terminal, and the process proceeds to step ST411. If there is data in the output connection source terminal list and ni is less than the number of data in the output connection source terminal list, it is determined that there is an unconnected terminal, and the process proceeds to step ST411.
In cases other than the above, it is determined that there is no unconnected terminal, and the process proceeds to step ST410.
 (ステップST411)結線先端子カウンタ加算
 指定された結線先端子が入力属性であれば、結線先端子指定部2が、入力結線先端子カウンタに1を加える。指定された結線先端子が出力属性であれば、結線先端子指定部2が、出力結線先端子カウンタに1を加える。
 (ステップST412)結線先端子情報保管
 指定された結線先端子が入力属性であれば、結線先端子指定部2が、入力結線先端子リストのni番目に、指定された結線先端子の端子情報を保管する。指定された結線先端子が出力属性であれば、結線先端子指定部2が、出力結線先端子リストのno番目に、指定された結線先端子の端子情報を保管する。
 (ステップST413)結線元端子判定
 結線先端子指定部2が端子を指定したことを示すクリック情報を、結線元端子確定部3が受け、指定された結線先端子に対応する結線元端子が存在するかを判定する。指定された結線先端子が入力属性であれば、出力結線元端子リストのni番目に端子情報が存在するかを判定する。出力結線元端子リストに該当する端子情報が無い場合、ステップST3に戻り次のイベントを待つ。出力結線元端子リストに該当する端子情報が有る場合、ステップST414に処理が進む。指定された結線先端子が出力属性であれば、入力結線元端子リストのno番目に端子情報が存在するかを判定する。入力結線元端子リストに該当する端子情報が無い場合、ステップST3に戻り次のイベントを待つ。入力結線元端子リストに該当する端子情報が有る場合、ステップST414に処理が進む。
(Step ST411) Connection destination terminal counter addition If the designated connection destination terminal has an input attribute, the connection destination terminal specifying unit 2 adds 1 to the input connection destination terminal counter. If the designated connection destination terminal has an output attribute, the connection destination terminal specifying unit 2 adds 1 to the output connection destination terminal counter.
(Step ST412) Connection destination terminal information storage If the designated connection destination terminal has an input attribute, the connection destination terminal designation unit 2 stores the terminal information of the designated connection destination terminal in the nith position of the input connection destination terminal list. store. If the designated connection destination terminal has an output attribute, the connection destination terminal designating unit 2 stores the terminal information of the designated connection destination terminal in the no-th place in the output connection destination terminal list.
(Step ST413) Connection source terminal determination The connection source terminal determination unit 3 receives click information indicating that the connection destination terminal specification unit 2 has specified a terminal, and there is a connection source terminal corresponding to the specified connection destination terminal. Determine whether. If the designated connection destination terminal has an input attribute, it is determined whether or not terminal information exists at the ni-th in the output connection source terminal list. If there is no corresponding terminal information in the output connection source terminal list, the process returns to step ST3 and waits for the next event. If there is terminal information corresponding to the output connection source terminal list, the process proceeds to step ST414. If the designated connection destination terminal is an output attribute, it is determined whether or not terminal information exists in the no-th input connection source terminal list. If there is no corresponding terminal information in the input connection source terminal list, the process returns to step ST3 and waits for the next event. If there is terminal information corresponding to the input connection source terminal list, the process proceeds to step ST414.
 (ステップST414)結線作成指示
 結線元端子確定部3が、niと、出力結線元部品の持つ未結線端子の数を比較し、小さい方の値(この値をmiと呼ぶ)の数だけ結線の作成を指示する。つまり、結線元端子確定部3が、出力結線元端子リストの1番目からmi番目までのmi本の結線の作成を結線作成部4に依頼する。次に、結線元端子確定部3が、noと、入力結線元部品の持つ未結線端子の数を比較し、小さい方の値(この値をmoと呼ぶ)の数だけ結線の作成を指示する。つまり、結線元端子確定部3が、入力結線元端子リストの1番目からmo番目までのmo本の結線の作成を結線作成部4に依頼する。また、ステップST413での判定の結果、該当する結線元端子情報があった場合、結線元端子確定部3が、該当する結線元端子についての結線の作成を結線作成部4に依頼する。
(Step ST414) Connection creation instruction The connection source terminal determination unit 3 compares ni and the number of unconnected terminals of the output connection source component, and connects the connection by the smaller value (this value is called mi). Instruct creation. That is, the connection origin terminal determination unit 3 requests the connection creation unit 4 to create mi connections from the first to the mith in the output connection source terminal list. Next, the connection source terminal determination unit 3 compares no and the number of unconnected terminals of the input connection source component, and instructs the creation of connections by the smaller value (this value is called mo). . That is, the connection origin terminal determination unit 3 requests the connection creation unit 4 to create mo connections from the first to the moth in the input connection source terminal list. Moreover, when there exists applicable connection origin terminal information as a result of determination by step ST413, the connection origin terminal determination part 3 requests the connection preparation part 4 to produce the connection about a corresponding connection origin terminal.
●(動作事例)
 ここで、本実施の形態の動作事例について述べる。編集エリア53の状態を図26に示す。図26最上部に示すように、ABS、SQRT、SUB、ADDの四つの部品が配置されている。各部品の左側の端子は入力属性を持ち、右側の端子は出力属性を持っている。
 先ず、結線元部品として、ポインティングデバイス104を用いてSUBを指定する。
 このとき、SUBが結線元部品として強調表示され、更に結線対象となるSUBの第一入力端子と出力端子が強調表示される(図26の上から二番目)。SUBを指定する際、内部では、ステップST4,ST405,ST407,ST408,ST3と処理が進む。
● (Operation example)
Here, an operation example of the present embodiment will be described. The state of the editing area 53 is shown in FIG. As shown in the uppermost part of FIG. 26, four parts of ABS, SQRT, SUB, and ADD are arranged. The left terminal of each component has an input attribute, and the right terminal has an output attribute.
First, a SUB is designated using the pointing device 104 as a connection source part.
At this time, the SUB is highlighted as the connection source part, and the first input terminal and the output terminal of the SUB to be connected are highlighted (second from the top in FIG. 26). When designating a SUB, the process proceeds internally with steps ST4, ST405, ST407, ST408, ST3.
 次に、最初の結線先端子として、ポインティングデバイス104を用いてABSの出力端子を指定する。このとき、結線先端子が出力端子なので、結線元端子は入力属性を持つ結線対象端子であるSUBの第一入力端子となり、両端子が対応付けられ、結線が表示される。同時に、SUBの第一入力端子の強調表示が解除され、次の結線対象となるSUBの第二入力端子と出力端子が強調表示される(図26の上から三番目)。ABSの出力端子を指定する際、内部では、ステップST4,ST409,ST411,ST412,ST413,ST414,ST415,ST416,ST3と処理が進む。 Next, the ABS output terminal is designated using the pointing device 104 as the first connection destination terminal. At this time, since the connection destination terminal is an output terminal, the connection source terminal becomes the first input terminal of the SUB that is the connection target terminal having the input attribute, and both terminals are associated with each other and the connection is displayed. At the same time, the highlighting of the first input terminal of the SUB is canceled, and the second input terminal and the output terminal of the SUB to be connected next are highlighted (third from the top in FIG. 26). When designating the output terminal of the ABS, the process proceeds internally with steps ST4, ST409, ST411, ST412, ST413, ST414, ST415, ST416, ST3.
 二番目の結線先端子として、ポインティングデバイス104を用いてADDの第一入力端子を指定する。このとき、結線先端子が入力端子なので、結線元端子は出力属性を持つ結線対象端子であるSUBの出力端子となり、両端子が対応付けられ、結線が表示される。同時に、SUBの出力端子の強調表示が解除され、次の結線対象となるSUBの第二入力端子が強調表示される(図26の上から四番目)。ADDの第一入力端子を指定する際、内部では、ステップST4,ST409,ST411,ST412,ST413,ST414,ST415,ST416,ST3と処理が進む。 The first input terminal of the ADD is specified using the pointing device 104 as the second connection destination terminal. At this time, since the connection destination terminal is an input terminal, the connection source terminal becomes an output terminal of a SUB that is a connection target terminal having an output attribute, both terminals are associated with each other, and a connection is displayed. At the same time, the highlighted display of the SUB output terminal is canceled and the second input terminal of the SUB to be connected next is highlighted (fourth from the top in FIG. 26). When designating the first input terminal of ADD, the process proceeds internally with steps ST4, ST409, ST411, ST412, ST413, ST414, ST415, ST416, ST3.
 三番目の結線先端子として、ポインティングデバイス104を用いてSQRTの出力端子を指定する。このとき、結線先端子が出力端子なので、結線元端子は入力属性を持つ結線対象端子であるSUBの第二入力端子となり、両端子が対応付けられ、結線が表示される。それと同時に、SUBの持つ全端子の結線が完了したので、SUBとSUBの第二入力端子の強調表示が解除される(図26最下部)。SQRTの出力端子を指定する際、内部では、ステップST4,ST409,ST411,ST412,ST413,ST414,ST415,ST416,ST3と処理が進む。 The SQRT output terminal is specified using the pointing device 104 as the third connection destination terminal. At this time, since the connection destination terminal is the output terminal, the connection source terminal becomes the second input terminal of the SUB that is the connection target terminal having the input attribute, and both terminals are associated with each other and the connection is displayed. At the same time, since the connection of all the terminals of the SUB is completed, the highlighting of the SUB and the second input terminal of the SUB is canceled (lowermost part in FIG. 26). When designating the output terminal of SQRT, the process proceeds internally with steps ST4, ST409, ST411, ST412, ST413, ST414, ST415, ST416, ST3.
 以上のように、実施の形態4の回路図編集装置によれば、端子の入出力属性を考慮し、結線元端子確定部は、結線処理を行う場合、回路部品の入力端子と出力端子間の結線のみを行うよう構成したので、結線元部品の入力端子の結線処理の後に出力端子の結線処理を行うという端子の入出力属性に関する指定順序の制約が無くなり、入力端子側の結線と出力端子側の結線を任意の順に行うことが可能となる。但し、入力端子の中で端子順に指定し、出力端子の中で端子順に指定する必要はある。
 また、入力属性を持つ端子同士や出力属性を持つ端子同士は結線されることは無く、必ず入力属性を持つ端子と出力属性の持つ端子が結線されるので、端子の入出力属性の接続関係を正しいものとすることができる。
As described above, according to the circuit diagram editing apparatus of the fourth embodiment, in consideration of the input / output attribute of the terminal, the connection source terminal determination unit performs the connection process between the input terminal and the output terminal of the circuit component. Since it is configured to perform only the connection, there is no restriction on the specification order regarding the input / output attributes of the terminal, that is, the output terminal connection process is performed after the input terminal connection process of the connection source part, the input terminal side connection and the output terminal side These connections can be performed in an arbitrary order. However, it is necessary to specify in the terminal order in the input terminal and in the terminal order in the output terminal.
Also, terminals with input attributes and terminals with output attributes are never connected, and terminals with input attributes are always connected with terminals with output attributes. It can be correct.
実施の形態5.
 実施の形態5は、部品の配置と同時にその部品を結線元部品として指定するようにしたものである。
 図27は、本実施の形態による回路図編集装置を示す構成図である。本実施の形態による回路図編集装置の構成は、実施の形態1の構成に部品配置部9を加えたものであり、それ以外は実施の形態1と同様の構成である。部品配置部9は、部品を配置すると共に、その配置と同時に配置部品を結線元部品として指定するよう構成されている。
 また、実施の形態5による回路図編集装置を実現するハードウェアの構成は、実施の形態1と同様であり、部品配置部9は、その機能に対応したプログラムがハードディスク107に格納され、CPU105によって読み出されて実行されることで実現されている。
Embodiment 5. FIG.
In the fifth embodiment, a part is designated as a connection source part simultaneously with the placement of the part.
FIG. 27 is a block diagram showing a circuit diagram editing apparatus according to the present embodiment. The configuration of the circuit diagram editing apparatus according to the present embodiment is the same as that of the first embodiment except that the component placement unit 9 is added to the configuration of the first embodiment. The component placement unit 9 is configured to place a component and simultaneously designate the placement component as a connection source component.
The hardware configuration for realizing the circuit diagram editing apparatus according to the fifth embodiment is the same as that of the first embodiment. The component placement unit 9 stores a program corresponding to the function in the hard disk 107 and is executed by the CPU 105. It is realized by being read and executed.
 本実施の形態においては、この部品配置部9を用いて部品が配置される際に、配置対象となった部品を結線元部品として自動的に指定することで結線を作成する方法について説明する。
●(内部処理)
 本実施の形態では、部品配置部9が部品を配置する際に、結線元部品指定イベントを発行する。これにより、自動的に配置対象部品が結線元部品となり、結線処理を行うことができる。
 図28は、実施の形態5の処理の流れを示すフローチャートである。
 図28に示す処理の流れは、図8に示す実施の形態1のフローチャートにステップST51,ST52,ST53を付加したものである。以下、付加されたステップの処理内容を示す。
In the present embodiment, a method for creating a connection by automatically designating a component to be arranged as a connection source component when the component is arranged using the component arrangement unit 9 will be described.
● (Internal processing)
In the present embodiment, when the component placement unit 9 places a component, a connection source component designation event is issued. As a result, the component to be arranged automatically becomes the connection source component, and the connection process can be performed.
FIG. 28 is a flowchart showing the flow of processing of the fifth embodiment.
The processing flow shown in FIG. 28 is obtained by adding steps ST51, ST52, and ST53 to the flowchart of the first embodiment shown in FIG. The processing contents of the added steps are shown below.
 (ステップST51)配置イベント判定
 入力されたイベントが部品配置部9による部品配置イベントかどうかを判定する。部品配置イベントであった場合、ステップST52に処理が進む。部品配置イベント以外のイベント(結線元部品指定イベント、結線先端子指定イベント、連続結線編集モード終了イベント)であった場合はステップST4に進み、以降は実施の形態1と同様の処理となる。
 (ステップST52)部品配置処理
 部品配置イベントを受けた場合、部品配置部9が指定された座標に指定された部品を配置する。配置時には、部品情報保管領域と端子情報保管領域に該当する部品および部品の持つ端子の情報を保管する。
 (ステップST53)結線元部品指定イベント発行
 部品配置部9は、部品の配置終了後に、配置した部品を結線元部品とする結線元部品指定イベントを発行する。イベント発行後は、ステップST4からステップST5に進み、以降は実施の形態1と同様の処理となる。
(Step ST51) Placement Event Determination It is determined whether the input event is a component placement event by the component placement unit 9. If it is a component placement event, the process proceeds to step ST52. If it is an event other than a component placement event (connection source component designation event, connection destination terminal designation event, continuous connection editing mode end event), the process proceeds to step ST4, and thereafter the same processing as in the first embodiment is performed.
(Step ST52) Component Placement Processing When a component placement event is received, the component placement unit 9 places the designated component at the designated coordinates. At the time of arrangement, information on the parts corresponding to the part information storage area and the terminal information storage area and the terminals of the parts are stored.
(Step ST53) Connection source component designation event issuance The component placement unit 9 issues a connection source component designation event with the placed component as the connection source component after the placement of the components is completed. After issuing the event, the process proceeds from step ST4 to step ST5, and the subsequent processing is the same as in the first embodiment.
●(動作事例)
 実際の回路図の編集作業においては、新たに部品を配置し、その部品の端子と既存の端子を結線するというように、部品配置作業と端子間結線作業を繰り返す回路図の編集がよく行われる。この方法で回路図の編集を行う場合、実施の形態1の構成では、配置した部品を結線元部品として指定するという手順が必要となる。配置した部品を自動的に結線元部品として処理することで、結線元部品の指定が不要となり、回路図編集の手数を軽減することができる。
● (Operation example)
In actual circuit diagram editing work, circuit diagram editing is often performed by repeating component placement work and inter-terminal connection work, such as placing a new part and connecting the terminal of the part to an existing terminal. . When the circuit diagram is edited by this method, in the configuration of the first embodiment, a procedure is required in which the arranged component is designated as the connection source component. By automatically processing the arranged parts as the connection source parts, it is not necessary to specify the connection source parts, and it is possible to reduce the trouble of editing the circuit diagram.
 図29に示すようなABSとSQRTの二つの部品が既にディスプレイ102上の編集エリア53に配置されている状況から編集を開始し、部品SUBを配置し、実施の形態1と同様に図10のように結線する手順について説明する。
 先ず、図3に示すモード変更ボタンを用いて、通常編集モードから連続結線編集モードに変更する。
 以降の手順に関しては、部品配置と結線先端子の指定順の違いにより三通りの手順が存在する。それぞれを手順D、E、Fとし、編集エリア53の状態を、図11と図30および図31に示す。各図は上部・中部・下部からなり、編集領域の表示状態を時系列に上から下へ表現したものである。
The editing is started from the situation where the two parts ABS and SQRT as shown in FIG. 29 are already arranged in the editing area 53 on the display 102, and the parts SUB are arranged. A procedure for connecting in this way will be described.
First, the mode change button shown in FIG. 3 is used to change from the normal edit mode to the continuous connection edit mode.
Regarding the subsequent procedures, there are three types of procedures depending on the difference in the order of the parts arrangement and the connection destination terminals. The procedures D, E, and F are respectively shown in FIG. 11, FIG. 30, and FIG. Each figure consists of an upper part, a middle part, and a lower part, and represents the display state of the editing area in time series from top to bottom.
(手順D)
 ここでは、結線元となる部品を最初に配置し、その後、結線先端子を順に指定する方法について述べる。
 先ず、ポインティングデバイス104を用いて部品ボタン52から配置対象部品であるSUBを選択し、編集エリア上の所望の位置を指定し配置する。配置処理実行後、SUBが指定位置に表示される。その際に、配置されたSUBが結線元部品として自動的に指定され、SUBとSUBの第一入力端子が強調表示される(図11上部)。SUBを配置する際、内部では、ステップST51,ST52,ST53,ST4,ST5,ST7,ST8,ST3と処理が進む。以降の処理は、実施の形態1の手順Aと同様である。
(Procedure D)
Here, a method will be described in which components that are connection sources are arranged first, and then connection destination terminals are designated in order.
First, the pointing device 104 is used to select a SUB that is a placement target component from the component button 52, and a desired position on the editing area is designated and placed. After executing the placement process, the SUB is displayed at the designated position. At that time, the arranged SUB is automatically designated as a connection source part, and the first input terminal of SUB and SUB is highlighted (upper part of FIG. 11). When placing a SUB, the process proceeds internally with steps ST51, ST52, ST53, ST4, ST5, ST7, ST8, ST3. The subsequent processing is the same as the procedure A of the first embodiment.
(手順E)
 ここでは、最初に結線先端子を順に指定し、その後結線元となる部品を配置する方法について述べる。
 先ず、最初の結線先端子として、ポインティングデバイス104を用いてABSの出力端子を指定する。このとき、指定した端子が強調表示され、端子の近傍に指定順を表す“1”という数字が表示される(図30上部)。ABSの出力端子を指定する際、内部では、ステップST51,ST4,ST9,ST11,ST12,ST13,ST3と処理が進む。
 次に、二番目の結線先端子として、ポインティングデバイス104を用いてSQRTの出力端子を指定する。このとき、指定した端子が強調表示され、端子の近傍に指定順を表す“2”という数字が表示される(図30中部)。SQRTの出力端子を指定する際、内部では、ステップST51,ST4,ST9,ST11,ST12,ST13,ST3と処理が進む。
 この状態で、ポインティングデバイス104を用いて部品ボタン52から配置対象部品であるSUBを選択し、編集エリア上の所望の位置を指定し配置する。配置処理実行後、SUBが指定位置に表示される。このとき、SUBの第一入力端子(結線元端子)とABSの出力端子(結線先端子)、及びSUBの第二入力端子(結線元端子)とSQRTの出力端子(結線先端子)が対応付けられ、それぞれの結線が表示される。それと同時に、結線先端子の近傍に表示されていた指定順を表す数字が消え、結線先端子の強調表示が解除され、結線元部品であるSUBと次の結線対象となるSUBの出力端子が強調表示される(図30下部)。SUBを配置する際、内部では、ステップST51,ST52,ST53,ST4,ST5,ST7,ST8,ST14,ST15,ST16,ST3と処理が進む。
(Procedure E)
Here, a method will be described in which connection destination terminals are first specified in order, and then components that are connection sources are arranged.
First, the ABS output terminal is designated using the pointing device 104 as the first connection destination terminal. At this time, the designated terminal is highlighted and a number “1” indicating the designation order is displayed near the terminal (upper part of FIG. 30). When designating the output terminal of the ABS, the process proceeds internally with steps ST51, ST4, ST9, ST11, ST12, ST13, ST3.
Next, the output terminal of SQRT is designated using the pointing device 104 as the second connection destination terminal. At this time, the designated terminal is highlighted and a number “2” indicating the designation order is displayed in the vicinity of the terminal (the middle part of FIG. 30). When designating the output terminal of SQRT, the process proceeds internally with steps ST51, ST4, ST9, ST11, ST12, ST13, ST3.
In this state, the pointing device 104 is used to select the SUB that is the placement target part from the part button 52, and the desired position on the editing area is designated and placed. After executing the placement process, the SUB is displayed at the designated position. At this time, the SUB first input terminal (connection source terminal) and the ABS output terminal (connection destination terminal), and the SUB second input terminal (connection source terminal) and the SQRT output terminal (connection destination terminal) are associated with each other. Each connection is displayed. At the same time, the number indicating the designated order displayed near the connection destination terminal disappears, the highlighting of the connection destination terminal is canceled, and the output terminal of the SUB that is the connection source component and the SUB that is the next connection target is emphasized. Is displayed (lower part of FIG. 30). When placing a SUB, the process proceeds internally with steps ST51, ST52, ST53, ST4, ST5, ST7, ST8, ST14, ST15, ST16, ST3.
(手順F) ここでは、結線先端子を指定している途中に結線元となる部品を配置し、その後結線先部品の指定を続ける方法について述べる。
 先ず、最初の結線先端子として、ポインティングデバイス104を用いてABSの出力端子を指定する。このとき、指定した端子が強調表示され、端子の近傍に指定順を表す“1”という数字が表示される(図31上部)。ABSの出力端子を指定する際、内部では、ステップST51,ST4,ST9,ST11,ST12,ST13,ST3と処理が進む。
(Procedure F) Here, a method will be described in which a connection source component is arranged in the middle of designating a connection destination terminal, and then the connection destination component is continuously designated.
First, the ABS output terminal is designated using the pointing device 104 as the first connection destination terminal. At this time, the designated terminal is highlighted and a number “1” indicating the designation order is displayed in the vicinity of the terminal (upper part of FIG. 31). When designating the output terminal of the ABS, the process proceeds internally with steps ST51, ST4, ST9, ST11, ST12, ST13, ST3.
 この状態で、ポインティングデバイス104を用いて部品ボタン52から配置対象部品であるSUBを選択し、編集エリア上の所望の位置を指定し配置する。配置処理実行後、SUBが指定位置に表示される。このとき、SUBの第一入力端子(結線元端子)とABSの出力端子(結線先端子)が対応付けられ結線が表示される。それと同時に、結線先端子の近傍に表示されていた指定順を表す数字が消え、結線先端子の強調表示が解除され、結線元部品であるSUBと次の結線対象となるSUBの第二入力端子が強調表示される(図31中部)。SUBを配置する際、内部では、ステップST51,ST52,ST53,ST4,ST5,ST7,ST8,ST14,ST15,ST16,ST3と処理が進む。
 二番目の結線先端子として、ポインティングデバイス104を用いてSQRTの出力端子を指定する。このとき、SUBの第二入力端子(結線元端子)とSQRTの出力端子(結線先端子)が対応付けられ、結線が表示される。それと同時に、SUBの第二入力端子の強調表示が解除され、次の結線対象となるSUBの出力端子が強調表示される(図31下部)。SQRTの出力端子を指定する際、内部では、ステップST51,ST4,ST9,ST11,ST12,ST13,ST14,ST15,ST16,ST3と処理が進む。
In this state, the pointing device 104 is used to select the SUB that is the placement target part from the part button 52, and the desired position on the editing area is designated and placed. After executing the placement process, the SUB is displayed at the designated position. At this time, the first input terminal (connection source terminal) of the SUB and the output terminal (connection destination terminal) of the ABS are associated with each other and the connection is displayed. At the same time, the number indicating the designation order displayed in the vicinity of the connection destination terminal disappears, the highlighting of the connection destination terminal is canceled, and the SUB that is the connection source component and the second input terminal of the SUB that is the next connection target Is highlighted (the middle part of FIG. 31). When placing a SUB, the process proceeds internally with steps ST51, ST52, ST53, ST4, ST5, ST7, ST8, ST14, ST15, ST16, ST3.
The SQRT output terminal is designated using the pointing device 104 as the second connection destination terminal. At this time, the second input terminal (connection source terminal) of the SUB is associated with the output terminal (connection destination terminal) of the SQRT, and the connection is displayed. At the same time, the highlighting of the second input terminal of the SUB is canceled, and the output terminal of the SUB to be connected next is highlighted (lower part of FIG. 31). When designating the output terminal of SQRT, the process proceeds internally with steps ST51, ST4, ST9, ST11, ST12, ST13, ST14, ST15, ST16, ST3.
 以上のように、所望の部品の配置と二本の結線の作成は、手順D、E、Fのどの方法によっても同じ入力手数で実現可能である。
 また、結線元端子を示す強調表示は、編集エリア53だけでなく、部品ボタン52上で強調表示しても良い。
As described above, the arrangement of desired parts and the creation of two connections can be realized with the same input effort by any of the procedures D, E, and F.
The highlighting indicating the connection source terminal may be highlighted not only on the editing area 53 but also on the component button 52.
 以上のように、実施の形態5の回路図編集装置によれば、部品を配置すると共に、配置と同時に部品を結線元部品として指定する部品配置部を設けたので、配置対象となる部品が結線元部品に自動的に指定されるため、明示的に結線元部品を指定することなく結線作成処理を実行でき、回路図編集の手数を更に軽減することができる。 As described above, according to the circuit diagram editing apparatus of the fifth embodiment, since the component is arranged and the component placement unit for designating the component as the connection source component is provided at the same time as the placement, the component to be placed is connected. Since it is automatically specified as the original part, the connection creation process can be executed without explicitly specifying the connection source part, and the labor of editing the circuit diagram can be further reduced.
実施の形態6.
 実施の形態6は、回路図上で論理的な接続関係を示す間接ラベルを付与するようにしたものである。
 図32は、実施の形態6の回路図編集装置を示す構成図である。
 実施の形態6による回路図編集装置の構成は、実施の形態1の構成に距離判定部10と間接ラベル挿入部11を加えたものである。距離判定部10は、結線対象として対応付けられた結線元端子と結線先端子が、これら端子間の距離に基づく所定の条件を満たすか否かを判定する機能部である。また、間接ラベル挿入部11は、距離判定部10によって、所定の条件を満たすと判定された場合、回路図上の論理的な接続関係を示す間接ラベルを挿入する機能部である。これ以外の構成は実施の形態1と同様であるため、対応する部分に同一符号を付してその説明を省略する。
Embodiment 6 FIG.
In the sixth embodiment, an indirect label indicating a logical connection relationship is given on a circuit diagram.
FIG. 32 is a block diagram showing a circuit diagram editing apparatus according to the sixth embodiment.
The configuration of the circuit diagram editing apparatus according to the sixth embodiment is obtained by adding a distance determination unit 10 and an indirect label insertion unit 11 to the configuration of the first embodiment. The distance determination unit 10 is a functional unit that determines whether a connection source terminal and a connection destination terminal that are associated as connection targets satisfy a predetermined condition based on a distance between these terminals. The indirect label insertion unit 11 is a functional unit that inserts an indirect label indicating a logical connection relationship on the circuit diagram when the distance determination unit 10 determines that a predetermined condition is satisfied. Since the configuration other than this is the same as that of the first embodiment, the same reference numerals are assigned to the corresponding portions, and the description thereof is omitted.
 また、実施の形態6による回路図編集装置を実現するハードウェアの構成は、図2に示したものと同様である。即ち、距離判定部10および間接ラベル挿入部11は、それぞれの機能に対応したプログラムがハードディスク107に格納され、CPU105が対応したプログラムを読み込んでメモリ106上に展開して実行することにより、それぞれの機能が実現される。 The hardware configuration for realizing the circuit diagram editing apparatus according to the sixth embodiment is the same as that shown in FIG. That is, the distance determination unit 10 and the indirect label insertion unit 11 store programs corresponding to the respective functions in the hard disk 107, read the corresponding programs by the CPU 105, expand them on the memory 106, and execute them. Function is realized.
 以下、実施の形態6の回路図編集装置の動作について説明する。
 本実施の形態においては、距離判定部10および間接ラベル挿入部11を用いて、結線元端子から結線先端子までの距離が遠い場合に、間接ラベルである中間変数を挿入する方法について述べる。
The operation of the circuit diagram editing apparatus according to the sixth embodiment will be described below.
In the present embodiment, a method of inserting an intermediate variable that is an indirect label when the distance from the connection source terminal to the connection destination terminal is long using the distance determination unit 10 and the indirect label insertion unit 11 will be described.
 回路図編集プログラムは、回路図をシートと呼ばれる概念で管理している。編集エリア53は、シートの一部分を切り出してディスプレイ102上に表示しており、シートが大きくなると、スクロールバー等を用いて編集エリア53上の表示範囲を移動させながら回路図の編集を進めることになる。
 シート上の離れた位置にある端子間の結線は、結線が長くなり見にくく、結線元端子と結線先端子の対応を確認するためにスクロールを行わねばならず、対応関係が分かりにくい等の問題がある。この問題への対応策として、間接ラベルとして中間変数を導入し、シート上では直接の結線を行わないが、論理的な接続関係を保つという手法が用いられている。また、異なるシート上の端子間を接続したい場合、結線を行うことは不可能であるため、中間変数を導入し、シート間での論理的な接続関係を持たせている。
The circuit diagram editing program manages a circuit diagram by a concept called a sheet. In the editing area 53, a part of the sheet is cut out and displayed on the display 102. When the sheet becomes large, editing of the circuit diagram proceeds while moving the display range on the editing area 53 using a scroll bar or the like. Become.
The connection between terminals located on the sheet is long and difficult to see, and it is necessary to scroll to confirm the correspondence between the connection source terminal and the connection destination terminal. is there. As a countermeasure against this problem, an intermediate variable is introduced as an indirect label, and a direct connection is not performed on the sheet, but a method of maintaining a logical connection relationship is used. In addition, when it is desired to connect terminals on different sheets, it is impossible to connect them, so an intermediate variable is introduced to provide a logical connection relationship between the sheets.
 従来、このような中間変数を導入する際には、中間変数の作成と中間変数と端子間の結線を明示的に行っており、編集作業が煩雑になっていた。本実施の形態における回路図編集装置では、遠距離または異なるシート上の端子間の結線を行う場合には、自動的に中間変数を挿入することができるため、中間変数挿入作業の手数を減少させることができる。 Conventionally, when such an intermediate variable is introduced, the intermediate variable is created and the connection between the intermediate variable and the terminal is explicitly performed, and the editing work becomes complicated. In the circuit diagram editing apparatus according to the present embodiment, when connecting between terminals on a long distance or different sheets, intermediate variables can be automatically inserted, so that the number of intermediate variable insertion operations is reduced. be able to.
●(内部処理)
 本実施の形態における結線作成時の内部処理の流れは、ステップST14の処理以外は図8に示す実施の形態1のフローチャートと同様の処理となる。本実施の形態におけるステップST14の処理の流れを図33のフローチャートに示す。
 (ステップST61)端子間距離判定
 ステップST8での判定の結果、結線先端子カウンタが1以上であれば、結線元端子確定部3が、結線先端子カウンタの値nと、結線元部品の持つ未結線端子の数を比較し、小さい方の値(この値をmと呼ぶ)の数だけ、結線元端子についての距離判定を距離判定部10に依頼する。また、ステップST13での判定の結果、結線元端子リストのn番目に端子情報があった場合、結線元端子確定部3が、結線元端子リストのn番目の結線元端子についての距離判定を距離判定部10に依頼する。
● (Internal processing)
The flow of internal processing at the time of creating a connection in the present embodiment is the same processing as the flowchart of the first embodiment shown in FIG. 8 except for the processing in step ST14. The flow of the process of step ST14 in this Embodiment is shown in the flowchart of FIG.
(Step ST61) Terminal Distance Determination If the result of determination in step ST8 is that the connection destination terminal counter is 1 or more, the connection source terminal determination unit 3 determines whether the connection destination terminal counter value n and the connection source component have The number of connection terminals is compared, and the distance determination unit 10 is requested to determine the distance for the connection source terminals by the smaller value (this value is referred to as m). If the result of determination in step ST13 is that there is terminal information at the nth terminal in the connection source terminal list, the connection source terminal determination unit 3 determines the distance determination for the nth connection source terminal in the connection source terminal list. Request to the determination unit 10.
 距離判定部10では、依頼された全ての結線元端子について、結線元端子と対応する結線先端子の座標情報から両端子間の距離を算出する。ここでは、X座標の値の差の二乗とY座標の値の差の二乗の和をとり、その値の平方根を距離とする。その距離が事前に決められている中間変数挿入距離以上であれば遠距離と判定し、両端子間の距離が中間変数挿入距離未満であれば近距離と判定する。また、結線元端子と結線先端子が異なるシート上に存在する場合には、距離判定部10は、両端子間の距離を遠距離と判定する。
 尚、ここでは上記のような方法で距離を算出したが、この算出方法に限定するものではない。例えば、ファンクションブロック図においては、X座標の距離よりY座標の距離が重視されることがあるので、Y座標の距離だけを利用しても良いし、Y座標に重みを付けた算出方法を用いても良い。また、ファンクションブロック図においては、接続関係を持つ回路群をネットワークという単位で管理することもあるので、ネットワークが離れている場合に遠距離とするなど、種々の基準を条件として判定しても良い。
The distance determination unit 10 calculates the distance between both terminals for all requested connection source terminals from the coordinate information of the connection destination terminals corresponding to the connection source terminals. Here, the sum of the square of the difference between the X coordinate values and the square of the difference between the Y coordinate values is taken, and the square root of the value is taken as the distance. If the distance is greater than or equal to the predetermined intermediate variable insertion distance, it is determined as a long distance, and if the distance between both terminals is less than the intermediate variable insertion distance, it is determined as a short distance. When the connection source terminal and the connection destination terminal exist on different sheets, the distance determination unit 10 determines that the distance between both terminals is a long distance.
Here, the distance is calculated by the method described above, but the present invention is not limited to this method. For example, in the function block diagram, since the Y coordinate distance may be more important than the X coordinate distance, only the Y coordinate distance may be used, or a calculation method in which the Y coordinate is weighted is used. May be. In the function block diagram, a circuit group having a connection relationship may be managed in units of networks, and therefore, determination may be made on the basis of various criteria such as a long distance when the network is remote. .
 (ステップST62)中間変数挿入
 ステップST61での判定結果が遠距離であった場合は、間接ラベル挿入部11が、結線元端子の近傍と結線先端子の近傍に同一の中間変数を生成する。
 (ステップST63)結線作成指示
 ステップST61での判定結果が近距離の場合、距離判定部10は、結線作成部4に対して結線元端子とそれに対応する結線先端子間の結線の作成を依頼する。ステップST62において中間変数が作成された場合は、間接ラベル挿入部11は、結線作成部4に対して、結線元端子と結線元端子の近傍の中間変数間の結線および結線先端子と結線先端子の近傍の中間変数間の結線の作成を依頼する。
(Step ST62) Intermediate Variable Insertion When the determination result in step ST61 is a long distance, the indirect label insertion unit 11 generates the same intermediate variable in the vicinity of the connection source terminal and the connection destination terminal.
(Step ST63) Connection Creation Instruction When the determination result in step ST61 is a short distance, the distance determination unit 10 requests the connection creation unit 4 to create a connection between the connection source terminal and the corresponding connection destination terminal. . When the intermediate variable is created in step ST62, the indirect label insertion unit 11 connects the connection source unit and the intermediate variable in the vicinity of the connection source terminal to the connection creation unit 4, and the connection destination terminal and the connection destination terminal. Request the creation of a connection between intermediate variables in the vicinity of.
●(動作事例)
 本実施の形態においては、結線作成処理の手順を行う前に、メインメニュー51内に用意されている中間変数挿入距離設定を行う。中間変数挿入距離とは、中間変数が挿入するための基準となる距離の値であり、結線元端子と結線先端子の間の距離が中間変数挿入距離以上の場合は、中間変数が挿入され、中間変数挿入距離未満であった場合は、中間変数は挿入されない。中間変数挿入距離には、デフォルト値(例えば1000ピクセル)が設定されているため、明示的に中間変数挿入距離の設定を行わなくても中間変数を挿入することは可能である。
● (Operation example)
In the present embodiment, the intermediate variable insertion distance setting prepared in the main menu 51 is set before performing the connection creation processing procedure. The intermediate variable insertion distance is a reference distance value for inserting the intermediate variable. If the distance between the connection source terminal and the connection destination terminal is equal to or greater than the intermediate variable insertion distance, the intermediate variable is inserted. If it is less than the intermediate variable insertion distance, the intermediate variable is not inserted. Since a default value (for example, 1000 pixels) is set for the intermediate variable insertion distance, it is possible to insert an intermediate variable without explicitly setting the intermediate variable insertion distance.
 即ち、結線元端子と結線先端子間の距離が中間変数挿入距離未満であった場合は、編集エリア53上に表示される結線は、実施の形態1と同様のものとなり、中間変数挿入距離以上であった場合は、両端子間に中間変数が挿入され、物理的な結線は行われていないが論理的な接続関係は保持した状態になる。それ以外の操作手順は、実施の形態1と同様である。 That is, when the distance between the connection source terminal and the connection destination terminal is less than the intermediate variable insertion distance, the connection displayed on the editing area 53 is the same as that in the first embodiment, and is equal to or longer than the intermediate variable insertion distance. In this case, an intermediate variable is inserted between both terminals, and no physical connection is made, but the logical connection relationship is maintained. The other operation procedures are the same as those in the first embodiment.
 例えば、実施の形態1の図16の事例において、ABSの入力端子とSUBの出力端子の距離が中間変数挿入距離以上であった場合は、SUBの出力端子を結線先端子として指定する際に、中間変数M1が自動的に挿入され、図34のような形態の回路図となる。SUBの出力端子を指定する際、内部では、ステップST4,ST9,ST11,ST12,ST13,ST61,ST62,ST63,ST15,ST16,ST3と処理が進む。 For example, in the case of FIG. 16 of the first embodiment, when the distance between the ABS input terminal and the SUB output terminal is equal to or longer than the intermediate variable insertion distance, when designating the SUB output terminal as the connection destination terminal, The intermediate variable M1 is automatically inserted, resulting in a circuit diagram of the form as shown in FIG. When the SUB output terminal is designated, the process proceeds internally with steps ST4, ST9, ST11, ST12, ST13, ST61, ST62, ST63, ST15, ST16, ST3.
 尚、上記例では、間接ラベルとして中間変数M1を表示するようにしたが、論理的な接続関係を示すものであればどのようなラベルであってもよい。 In the above example, the intermediate variable M1 is displayed as an indirect label. However, any label may be used as long as it indicates a logical connection relationship.
 以上のように、実施の形態6の回路図編集装置によれば、結線元部品の未結線端子と結線先端子が、これら端子間の距離に基づく所定の条件を満たすか否かを判定する距離判定部と、距離判定部で所定の条件を満たすと判定した場合、結線元部品の端子と結線先端子との論理的な接続関係を示す間接ラベルを、それぞれの端子近傍に位置するよう付与する間接ラベル挿入部とを備えたので、遠距離または異なるシート上の端子間の結線といったように、端子間の距離に基づく所定の条件を満たした場合は、自動的に間接ラベルを挿入することができるため、間接ラベル挿入作業の手数を減少させることができる。 As described above, according to the circuit diagram editing apparatus of the sixth embodiment, the distance for determining whether or not the unconnected terminal and the connected terminal of the connection source component satisfy a predetermined condition based on the distance between these terminals. When the determination unit and the distance determination unit determine that the predetermined condition is satisfied, an indirect label indicating a logical connection relationship between the terminal of the connection source component and the connection destination terminal is provided so as to be positioned in the vicinity of each terminal. Since it has an indirect label insertion part, it can automatically insert an indirect label when a predetermined condition based on the distance between the terminals is satisfied, such as a long distance or connection between terminals on different sheets. Therefore, the number of indirect label insertion work can be reduced.
実施の形態7.
 実施の形態7は、結線先端子と結線元端子との信号種別が不一致であった場合に、これを一致させるための信号種別変換部品を挿入するようにしたものである。
 図35は、実施の形態7による回路図編集装置を示す構成図である。
 本実施の形態による回路図編集装置の構成は、実施の形態1の構成に信号種別判定部12と信号種別変換部品挿入部13と信号種別変換部品保管部14とを加えたものである。信号種別判定部12は、結線対象として指定された結線先端子と結線元端子との信号種別を判定する機能部である。ここで信号種別とは、端子に入出力される信号の特徴を示すものであり、例えば、整数型や実数型といったデータの型情報や、端子の出力電圧や入力電圧といった電圧情報などを指している。信号種別変換部品挿入部13は、信号種別判定部12で、信号種別が不一致であると判定された場合、信号種別変換部品保管部14から、結線先端子の信号種別を結線元端子の信号種別に変換する信号種別変換部品を取り出し、結線先端子と結線元端子間に挿入する機能部である。信号種別変換部品保管部14は、種々の信号種別を変換するための信号種別変換部品を保管する格納部である。これ以外の構成は実施の形態1と同様であるため、対応する部分に同一符号を付してその説明を省略する。
Embodiment 7 FIG.
In the seventh embodiment, when the signal types of the connection destination terminal and the connection source terminal do not match, a signal type conversion component for matching them is inserted.
FIG. 35 is a block diagram showing a circuit diagram editing apparatus according to the seventh embodiment.
The configuration of the circuit diagram editing apparatus according to the present embodiment is obtained by adding a signal type determination unit 12, a signal type conversion component insertion unit 13, and a signal type conversion component storage unit 14 to the configuration of the first embodiment. The signal type determination unit 12 is a functional unit that determines the signal types of the connection destination terminal and the connection source terminal specified as the connection target. Here, the signal type indicates the characteristics of the signal input / output to / from the terminal. For example, it refers to data type information such as integer type or real number type, voltage information such as output voltage or input voltage of the terminal, etc. Yes. When the signal type determination unit 12 determines that the signal types do not match, the signal type conversion component insertion unit 13 converts the signal type of the connection destination terminal from the signal type conversion component storage unit 14 to the signal type of the connection source terminal. This is a functional unit that takes out the signal type conversion component to be converted into, and inserts it between the connection destination terminal and the connection source terminal. The signal type conversion component storage unit 14 is a storage unit that stores signal type conversion components for converting various signal types. Since the configuration other than this is the same as that of the first embodiment, the same reference numerals are assigned to the corresponding portions, and the description thereof is omitted.
 また、実施の形態7による回路図編集装置を実現するハードウェアの構成は、図2に示す構成と同様である。即ち、信号種別判定部12および信号種別変換部品挿入部13は、それぞれの機能に対応したプログラムがハードディスク107に格納され、CPU105が対応したプログラムを読み込んでメモリ106上に展開して実行することにより、それぞれの機能が実現されている。また、信号種別変換部品保管部14は、ハードディスク107またはメモリ106上に形成されている。 The hardware configuration for realizing the circuit diagram editing apparatus according to the seventh embodiment is the same as the configuration shown in FIG. That is, the signal type determination unit 12 and the signal type conversion component insertion unit 13 store programs corresponding to the respective functions in the hard disk 107, read the corresponding programs by the CPU 105, expand them on the memory 106, and execute them. Each function is realized. The signal type conversion component storage unit 14 is formed on the hard disk 107 or the memory 106.
 以下、実施の形態7の動作について説明する。
 本実施の形態においては、信号種別判定部12、信号種別変換部品挿入部13および信号種別変換部品保管部14を用いて、結線元端子と結線先端子の信号種別が一致していない場合に、信号種別変換部品を挿入する方法について述べる。
 PLC向けプログラム作成にファンクションブロック図を用いる回路図編集プログラムにおいては、各端子が信号種別として型情報を持っている。ここでいう型情報とは、端子への入力や端子からの出力となる値が持つデータ型のことで、整数型、実数型、ブール型等が存在する。回路図編集装置において、型が不一致な端子間の結線を行うと、PLC向けのプログラムを作成する際にはコンパイルエラーとなり、PLC上では実行できない。そのため、型が一致していない端子間を接続する場合には、信号種別変換部品として型変換部品を両端子の間に配置し、出力端子と型変換部品の入力端子、型変換部品の出力端子と入力端子を結線することで、両端子の型の不一致を解消することで、PLC上で実行可能な回路図としている。
Hereinafter, the operation of the seventh embodiment will be described.
In the present embodiment, when the signal type of the connection source terminal and the connection destination terminal do not match using the signal type determination unit 12, the signal type conversion component insertion unit 13, and the signal type conversion component storage unit 14, A method for inserting the signal type conversion component will be described.
In a circuit diagram editing program that uses a function block diagram for creating a PLC program, each terminal has type information as a signal type. The type information here is a data type of a value that becomes an input to the terminal or an output from the terminal, and includes an integer type, a real number type, a Boolean type, and the like. In the circuit diagram editing apparatus, if wiring between terminals whose types do not match is made, a compilation error occurs when creating a program for the PLC, and it cannot be executed on the PLC. Therefore, when connecting terminals that do not match the type, place a type conversion component between the two terminals as a signal type conversion component, and output terminal, input terminal of type conversion component, output terminal of type conversion component By connecting the input terminals to each other, the circuit diagram that can be executed on the PLC is eliminated by eliminating the mismatch of the types of both terminals.
 従来、このような型変換部品を導入する際には、型変換部品の配置と型変換部品と両端子間の結線を明示的に行っており、編集作業が煩雑になっていた。本実施の形態における回路図編集装置では、型が一致していない端子間の結線を行う場合には、自動的に型変換部品を挿入することができるため、型変換部品挿入作業の手数を減少させることができる。 Conventionally, when such a type conversion component is introduced, the arrangement of the type conversion component and the connection between the type conversion component and both terminals are explicitly performed, and the editing work becomes complicated. In the circuit diagram editing apparatus according to the present embodiment, when connecting terminals that do not match the type, the type conversion component can be automatically inserted, thereby reducing the number of mold conversion component insertion operations. Can be made.
●(内部処理)
 本実施の形態における結線作成時の内部処理の流れは、ステップST14の処理以外は図8のフローチャートと同様の処理となる。本実施の形態におけるステップST14の処理の詳細な流れを図36に示すフローチャートに示す。
 (ステップST71)端子型判定
 ステップST8での判定の結果、結線先端子カウンタが1以上であれば、結線元端子確定部3が、結線先端子カウンタの値nと、結線元部品の持つ未結線端子の数を比較し、小さい方の値(この値をmと呼ぶ)の数だけ、結線元端子についての型判定を信号種別判定部12に依頼する。また、ステップST13での判定の結果、結線元端子リストのn番目に端子情報があった場合、結線元端子確定部3が、結線元端子リストのn番目の結線元端子についての型判定を信号種別判定部12に依頼する。
 信号種別判定部12では、依頼された全ての結線元端子について、結線元端子と対応する結線先端子の型情報を取得し、両端子の型が接続可能であれば一致と判定し、両端子の型が接続不可能であれば不一致と判定する。
● (Internal processing)
The flow of internal processing at the time of creating a connection in the present embodiment is the same processing as the flowchart of FIG. 8 except for the processing in step ST14. A detailed flow of the process of step ST14 in the present embodiment is shown in the flowchart shown in FIG.
(Step ST71) Terminal type determination As a result of the determination in step ST8, if the connection destination terminal counter is 1 or more, the connection source terminal determination unit 3 determines that the connection destination terminal counter value n and the connection source component have no connection. The number of terminals is compared, and the signal type determination unit 12 is requested to determine the type of the connection source terminal by the smaller value (this value is referred to as m). If the result of determination in step ST13 is that there is terminal information in the nth connection source terminal list, the connection source terminal determination unit 3 signals the type determination for the nth connection source terminal in the connection source terminal list. A request is made to the type determination unit 12.
The signal type determination unit 12 acquires the type information of the connection destination terminal corresponding to the connection source terminal for all requested connection source terminals, and determines that both terminals match if the types of both terminals are connectable. If the type of is not connectable, it is determined as a mismatch.
 (ステップST72)型変換部品挿入
 ステップST71での判定結果が不一致であった場合は、信号種別変換部品挿入部13が、予め用意してある信号種別変換部品保管部14の中から、入力型と出力型を条件として検索し、両端子間の型変換において必要となる型変換部品を確定し、結線元端子と結線先端子の間に、確定した型変換部品を配置する。信号種別変換部品保管部14の中に、該当する型変換部品が存在しなかった場合は、型変換部品は配置しない。
(Step ST72) Mold Conversion Component Insertion If the determination result in step ST71 does not match, the signal type conversion component insertion unit 13 selects the input type from the signal type conversion component storage unit 14 prepared in advance. A search is performed using the output type as a condition, a type conversion component necessary for type conversion between both terminals is determined, and the determined type conversion component is arranged between the connection source terminal and the connection destination terminal. If there is no corresponding type conversion component in the signal type conversion component storage unit 14, the type conversion component is not arranged.
 (ステップST73)結線作成指示
 ステップST71での判定結果が一致の場合、信号種別判定部12は、結線作成部4に対して結線元端子とそれに対応する結線先端子間の結線の作成を依頼する。ステップ72において型変換部品が作成された場合は、信号種別変換部品挿入部13は、結線作成部4に対して、結線元端子と型変換部品の結線元端子側の端子との結線および結線先端子と型変換部品の結線先端子側の結線の作成を依頼する。また、ステップST72において該当する型変換部品が無かったため、型変換部品が作成されなかった場合、信号種別変換部品挿入部13は、結線作成部4に対して結線元端子とそれに対応する結線先端子間の結線の作成を依頼する。
(Step ST73) Connection Creation Instruction When the determination results in step ST71 match, the signal type determination unit 12 requests the connection creation unit 4 to create a connection between the connection source terminal and the corresponding connection destination terminal. . When the type conversion component is created in step 72, the signal type conversion component insertion unit 13 connects the connection source terminal and the connection source terminal side terminal of the type conversion component to the connection creation unit 4 and the connection destination. Request to create a connection on the terminal side of the terminal and type conversion part. In addition, when there is no corresponding type conversion component in step ST72 and no type conversion component is created, the signal type conversion component insertion unit 13 sends a connection source terminal and a corresponding connection destination terminal to the connection creation unit 4. Request to create a connection between them.
●(動作事例)
 本実施の形態における基本的な操作手順は、実施の形態1と同様である。
 実施の形態1と同様の操作手順において、結線元端子と結線先端子の型情報が一致している場合は、編集エリア53上に表示される結線は、実施の形態1と同様のものとなり、型情報に不一致がある場合は、両端子間に型変換部品が挿入される。これにより、コンパイルを行うことでPLC上において実行可能な回路図となる。
 また、結線元端子と結線先端子の型情報の不一致を解消するための型変換部品が存在しなかった場合は、結線元端子と結線先端子を実施の形態1と同様に直接結線する。
● (Operation example)
The basic operation procedure in the present embodiment is the same as that in the first embodiment.
In the same operation procedure as in the first embodiment, when the type information of the connection source terminal and the connection destination terminal match, the connection displayed on the editing area 53 is the same as in the first embodiment. When there is a mismatch in the type information, a type conversion component is inserted between both terminals. Thus, a circuit diagram that can be executed on the PLC by compiling is obtained.
Further, when there is no type conversion component for eliminating the mismatch of the type information between the connection source terminal and the connection destination terminal, the connection source terminal and the connection destination terminal are directly connected in the same manner as in the first embodiment.
 ここで、図37に示した編集エリア53の状態を事例として動作を説明する。
 図37上部において、ABSの入力にはAというINT型(整数型)の変数が設定されている。ABSは絶対値を出力するものであり、出力端子の型は入力端子の型と同一の型になるため、ここでのABSの出力端子の型はINT型である。SQRTは、入力された値の平方根を出力するものであり、出力端子の型は入力端子の型に関わらずREAL型(実数型)である。また、SQRTの出力端子とSUBの第二入力端子が接続されている。この接続は、従来からある結線作成手法で、結線元端子と結線先端子を指定して結線を作成したものとする。
Here, the operation will be described using the state of the editing area 53 shown in FIG. 37 as an example.
In the upper part of FIG. 37, an INT type (integer type) variable A is set for the ABS input. The ABS outputs an absolute value, and the type of the output terminal is the same as the type of the input terminal. Therefore, the type of the output terminal of the ABS here is the INT type. SQRT outputs the square root of an input value, and the type of the output terminal is a REAL type (real number type) regardless of the type of the input terminal. Further, the output terminal of SQRT and the second input terminal of SUB are connected. In this connection, it is assumed that a connection is created by designating a connection source terminal and a connection destination terminal by a conventional connection creation method.
 SUBの第二入力端子に、REAL型であるSQRTの出力端子が接続されているので、この段階でSUBは実数の減算を行う回路部品となっており、SUBの持つ全ての端子はREAL型となっている。図37上部は、このように端子型を持つ部品が配置、結線されており、SUBを結線元部品として指定した状態である。
 ここから、結線先端子としてABSの出力端子を指定した場合、結線元端子であるSUBの第一入力端子はREAL型であり、結線先端子であるABSの出力端子はINT型であるため、両端子の型は一致しない。本実施の形態においては、図37下部のように、型の不一致を解消するための型変換部品を結線時に自動的に挿入することができる。ここでは、INT型の入力をREAL型に変換して出力するINT_TO_REAL部品が挿入される。ABSの出力端子を指定する際、内部では、ステップST4,ST9,ST11,ST12,ST13,ST71,ST72,ST73,ST15,ST16,ST3と処理が進む。
Since the REAL type SQRT output terminal is connected to the second input terminal of the SUB, the SUB is a circuit component for subtracting a real number at this stage, and all the terminals of the SUB are REAL type. It has become. The upper part of FIG. 37 shows a state in which parts having terminal types are arranged and connected in this way, and SUB is designated as a connection source part.
From here, when the ABS output terminal is designated as the connection destination terminal, the first input terminal of the SUB that is the connection source terminal is REAL type, and the output terminal of the ABS that is the connection destination terminal is INT type. Child types do not match. In the present embodiment, as shown in the lower part of FIG. 37, a mold conversion component for eliminating mold mismatch can be automatically inserted at the time of connection. Here, an INT_TO_REAL component that converts an INT type input into a REAL type and outputs it is inserted. When designating the output terminal of the ABS, the process proceeds internally with steps ST4, ST9, ST11, ST12, ST13, ST71, ST72, ST73, ST15, ST16, ST3.
 以上のように、実施の形態7の回路図編集装置によれば、結線対象として指定された結線先端子と結線元部品の未結線端子の信号種別を判定する信号種別判定部と、信号種別判定部で、結線先端子と未結線端子の信号種別が不一致であると判定した場合、これら結線先端子と未結線端子間に、結線先端子の信号種別を未結線端子の信号種別に変換する信号種別変換部品を挿入する信号種別変換部品挿入部とを備えたので、信号種別が一致していない端子間の結線を行う場合には、自動的に信号種別変換部品を挿入することができるため、信号種別変換部品を挿入する作業の手数を減少させることができる。 As described above, according to the circuit diagram editing apparatus of the seventh embodiment, the signal type determination unit that determines the signal type of the connection destination terminal specified as the connection target and the unconnected terminal of the connection source component, and the signal type determination Signal that converts the signal type of the connection destination terminal to the signal type of the unconnected terminal between the connection destination terminal and the unconnected terminal. Since it has a signal type conversion component insertion unit that inserts a type conversion component, when performing connection between terminals that do not match the signal type, it is possible to automatically insert the signal type conversion component, The number of operations for inserting the signal type conversion component can be reduced.
 以上のように、この発明に係る回路図編集装置および回路図編集プログラムは、回路図上の端子間の結線を少ない入力手数で作成することを可能とする構成に関するものであり、PLC用の回路図を編集する回路図編集装置に用いるのに適している。 As described above, the circuit diagram editing apparatus and the circuit diagram editing program according to the present invention relate to a configuration that enables connection between terminals on a circuit diagram to be created with a small number of inputs, and a circuit for a PLC. It is suitable for use in a circuit diagram editing apparatus for editing a diagram.

Claims (7)

  1.  結線元部品を指定する結線元部品指定部と、
     結線先端子を指定する結線先端子指定部と、
     前記結線元部品の未結線端子から前記結線先端子に結線を行う際に、前記結線先端子指定部による前記結線先端子の指定順と、前記結線元部品の未結線端子における予め定められた端子順に基づいて、結線対象となる前記結線元部品の未結線端子と前記結線先端子の対応付けを行う結線元端子確定部と、
     前記結線元端子確定部で対応付けられた前記未結線端子と前記結線先端子の間を結線する結線作成部とを備えたことを特徴とする回路図編集装置。
    A connection source part designating part for specifying a connection source part;
    A connection destination terminal designating unit for designating a connection destination terminal;
    When connecting from the unconnected terminal of the connection source component to the connection destination terminal, the predetermined order of the connection destination terminal by the connection destination terminal specifying unit and the predetermined terminal in the unconnection terminal of the connection source component Based on the order, a connection source terminal determination unit that associates an unconnected terminal of the connection source component to be connected with the connection destination terminal,
    A circuit diagram editing apparatus, comprising: a connection creation unit that connects between the unconnected terminal and the connection destination terminal associated by the connection source terminal determination unit.
  2.  結線元部品が指定された場合、当該結線元部品の持つ未結線端子の端子順を、予め定められた端子順決定規則に従って決定する端子順決定部を備え、結線元端子確定部は、前記端子順決定部で端子順が決定された場合は、当該端子順で結線元部品の未結線端子と結線先端子の対応付けを行うことを特徴とする請求項1記載の回路図編集装置。 When a wiring source part is specified, the wiring source part includes a terminal order determination unit that determines the terminal order of unconnected terminals of the wiring source part according to a predetermined terminal order determination rule. The circuit diagram editing apparatus according to claim 1, wherein when the terminal order is determined by the order determination unit, the unconnected terminal of the connection source component and the connection destination terminal are associated in the terminal order.
  3.  結線元部品指定部による結線元部品の指定は、結線先端子指定部による結線先端子の指定前、指定後、および指定途中のいずれかで行われることを特徴とする請求項1記載の回路図編集装置。 2. The circuit diagram according to claim 1, wherein the designation of the connection source component by the connection source component designation unit is performed before, after or during the designation of the connection destination terminal by the connection destination terminal designation unit. Editing device.
  4.  部品を配置すると共に、当該配置と同時に前記部品を結線元部品として指定する部品配置部を設けたことを特徴とする請求項1記載の回路図編集装置。 2. The circuit diagram editing apparatus according to claim 1, further comprising: a part placement unit that places the part and designates the part as a connection source part simultaneously with the placement.
  5.  結線元部品の未結線端子と結線先端子が、これら端子間の距離に基づく所定の条件を満たすか否かを判定する距離判定部と、
     前記距離判定部で所定の条件を満たすと判定した場合、前記未結線端子と前記結線先端子との論理的な接続関係を示す間接ラベルを、それぞれの端子近傍に位置するよう付与する間接ラベル挿入部とを備えたことを特徴とする請求項1記載の回路図編集装置。
    A distance determination unit that determines whether the unconnected terminal and the connection destination terminal of the connection source component satisfy a predetermined condition based on a distance between these terminals,
    Indirect label insertion that provides an indirect label indicating a logical connection relationship between the unconnected terminal and the connection destination terminal so as to be positioned in the vicinity of each terminal when the distance determination unit determines that a predetermined condition is satisfied The circuit diagram editing apparatus according to claim 1, further comprising: a section.
  6.  結線対象として指定された結線先端子と結線元部品の未結線端子の信号種別を判定する信号種別判定部と、
     前記信号種別判定部で、前記結線先端子と前記未結線端子の信号種別が不一致であると判定した場合、これら結線先端子と未結線端子間に、当該結線先端子の信号種別を前記未結線端子の信号種別に変換する信号種別変換部品を挿入する信号種別変換部品挿入部とを備えたことを特徴とする請求項1記載の回路図編集装置。
    A signal type determination unit that determines a signal type of a connection destination terminal specified as a connection target and an unconnected terminal of the connection source component;
    When the signal type determination unit determines that the signal types of the connection destination terminal and the unconnected terminal do not match, the signal type of the connection destination terminal is set between the connection destination terminal and the unconnected terminal. 2. The circuit diagram editing apparatus according to claim 1, further comprising: a signal type conversion component insertion unit that inserts a signal type conversion component for converting into a signal type of a terminal.
  7.  回路図の編集を行うコンピュータを、結線元部品の未結線端子から、指定された結線先端子に結線を行う際に、前記結線先端子の指定順と、前記結線元部品の未結線端子における予め定められた端子順に基づいて、結線対象となる前記結線元部品の未結線端子と前記結線先端子の対応付けを行う結線元端子確定部と、前記結線元端子確定部で対応付けられた前記未結線端子と前記結線先端子の間を結線する結線作成部として機能させることを特徴とする回路図編集プログラム。 When the computer that edits the circuit diagram is connected from the unconnected terminal of the connection source part to the specified connection destination terminal, the specified order of the connection destination terminal and the unconnected terminal of the connection source part in advance Based on the determined terminal order, a connection source terminal determination unit for associating an unconnection terminal of the connection source component to be connected with the connection destination terminal, and the connection source terminal determination unit that is associated with the connection source terminal determination unit A circuit diagram editing program that functions as a connection creation unit that connects between a connection terminal and the connection destination terminal.
PCT/JP2008/001127 2008-04-30 2008-04-30 Schematic editor and schematic editing program WO2009133590A1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
PCT/JP2008/001127 WO2009133590A1 (en) 2008-04-30 2008-04-30 Schematic editor and schematic editing program
JP2010509959A JP4990395B2 (en) 2008-04-30 2008-04-30 Circuit diagram editing apparatus and circuit diagram editing program
TW097127091A TW200945084A (en) 2008-04-30 2008-07-17 Circuit diagram editing device and circuit diagram editing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2008/001127 WO2009133590A1 (en) 2008-04-30 2008-04-30 Schematic editor and schematic editing program

Publications (1)

Publication Number Publication Date
WO2009133590A1 true WO2009133590A1 (en) 2009-11-05

Family

ID=41254822

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2008/001127 WO2009133590A1 (en) 2008-04-30 2008-04-30 Schematic editor and schematic editing program

Country Status (3)

Country Link
JP (1) JP4990395B2 (en)
TW (1) TW200945084A (en)
WO (1) WO2009133590A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010277506A (en) * 2009-06-01 2010-12-09 Mitsubishi Electric Corp Circuit diagram editing device and circuit diagram editing program
JP2012205021A (en) * 2011-03-24 2012-10-22 Yamaha Corp Editing device and program
JPWO2013146276A1 (en) * 2012-03-28 2015-12-10 日本電気株式会社 Power system tree design support system and power system tree design method
WO2022259411A1 (en) * 2021-06-09 2022-12-15 日本電信電話株式会社 Data flow control device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0728859A (en) * 1993-07-08 1995-01-31 Hitachi Ltd Editor system for logic circuit diagram
JPH09101980A (en) * 1995-10-06 1997-04-15 Fujitsu Ltd Wiring processor for circuit diagram editor
JPH10154055A (en) * 1996-11-25 1998-06-09 Toshiba Corp Processor
JPH11259551A (en) * 1998-03-13 1999-09-24 Hitachi Ltd Printed board parts layout and wiring cad device
JP2005339143A (en) * 2004-05-26 2005-12-08 Yamaha Corp Signal path setting device and signal path setting program

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2948524B2 (en) * 1995-05-26 1999-09-13 松下電器産業株式会社 Design method of semiconductor integrated circuit
JP2000123065A (en) * 1998-10-20 2000-04-28 Pfu Ltd Marking design system and marking method and recording medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0728859A (en) * 1993-07-08 1995-01-31 Hitachi Ltd Editor system for logic circuit diagram
JPH09101980A (en) * 1995-10-06 1997-04-15 Fujitsu Ltd Wiring processor for circuit diagram editor
JPH10154055A (en) * 1996-11-25 1998-06-09 Toshiba Corp Processor
JPH11259551A (en) * 1998-03-13 1999-09-24 Hitachi Ltd Printed board parts layout and wiring cad device
JP2005339143A (en) * 2004-05-26 2005-12-08 Yamaha Corp Signal path setting device and signal path setting program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010277506A (en) * 2009-06-01 2010-12-09 Mitsubishi Electric Corp Circuit diagram editing device and circuit diagram editing program
JP2012205021A (en) * 2011-03-24 2012-10-22 Yamaha Corp Editing device and program
JPWO2013146276A1 (en) * 2012-03-28 2015-12-10 日本電気株式会社 Power system tree design support system and power system tree design method
WO2022259411A1 (en) * 2021-06-09 2022-12-15 日本電信電話株式会社 Data flow control device

Also Published As

Publication number Publication date
JP4990395B2 (en) 2012-08-01
TW200945084A (en) 2009-11-01
TWI371700B (en) 2012-09-01
JPWO2009133590A1 (en) 2011-08-25

Similar Documents

Publication Publication Date Title
US6854111B1 (en) Library manager for automated programming of industrial controls
US6477435B1 (en) Automated programming system for industrial control using area-model
JP3763937B2 (en) Object-oriented programming device and object combination program storage medium
KR101495936B1 (en) Creating, displaying, and editing a sub-process within a process diagram
JPH103374A (en) Method for reutilizing parts of configuration tool for controlling design
US20080028328A1 (en) System and method to dynamically change object data patterns
JP4990395B2 (en) Circuit diagram editing apparatus and circuit diagram editing program
JPH07302195A (en) Dsp programming device and dsp device
US20170351646A1 (en) User Interface with Movable Mini-Tabs
US8370791B2 (en) System and method for performing next placements and pruning of disallowed placements for programming an integrated circuit
JPH08328795A (en) Method for setting tool button and editing device
JP5185988B2 (en) Design support apparatus, design support method, and design support program
TWI412947B (en) Computer readable medium, integrated circuit, and method for layout editing
US20080005675A1 (en) Method, system and program product for displaying nodes of a network
JP5183571B2 (en) Circuit diagram editing apparatus and circuit diagram editing program
US8271897B2 (en) Method and system for navigating a user dialog configured to accomplish a task
US20090327967A1 (en) Engineering tool
JP2010033500A (en) Gui data conversion system and gui data conversion method
JP4857168B2 (en) Design method using cell concept, drawing creation device, program, and recording medium
JP3810704B2 (en) Object-oriented programming device and object combination program storage medium
US20210405836A1 (en) Splice and patch panel gui for cable layout and design
JP2003271676A (en) Collective selection program and collective selection method for a plurality of elements
Munro et al. Forming Relationships
JP4161961B2 (en) Editing apparatus and program
JPH05242171A (en) Method and device for supporting designing

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

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2010509959

Country of ref document: JP

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 08751652

Country of ref document: EP

Kind code of ref document: A1