1. Field of the Invention
The present invention relates to a device for supporting creation of configuration information of an input/output signal operative window for performing simulation so as to debug a sequence program to be executed by a controller such as a programmable controller and a numerical controller.
2. Description of Related Art
When a sequence control program is created and implemented by a controller, such as a programmable controller and a numerical controller, it is required to debug whether an input/output unit (input/output device) that is connected to the controller to be controlled by the sequence control program can be properly operated. The debugging is eventually carried out in the controller that implements the sequence control program. In a well known simulation method, by using an input/output signal operative window instead of the input/output unit, an input signal is preliminarily and simulatively generated in the input/output signal operative window. The input signal is inputted into a controller, and an output signal from the controller is displayed in the input/output signal operative window.
For instance, Unexamined Japanese Patent Publication No. 7-314284 describes a method for verifying a ladder program and circuit by registering an I/O device number for input (X040) and that for output (Y050) with respect to buttons of an operating portion and creating pseudo data of an input/output device using an operation specification file in which operation specifications of the input/output device are registered.
When the debugging of the sequence control program is carried out by using the input/output signal operative window, it has conventionally been required to assign input/output signals to input buttons, output lamps, and the like of the input/output signal operative window as described above. It takes a lot of work and time and is then bothersome to manually set the input/output signals to the buttons and lamps of the input/output signal operative window.
The present invention provides a simulation data creation supporting device that facilitates creation of an input/output signal operative window for debugging a sequence control program using simulative signals.
A simulation data creation supporting device of the present invention supports creation of an input/output signal operative window configuration information for simulating execution of a sequence control program to be executed by a controller that performs a sequence control of input/output units connected thereto using a signal memory provided in the controller. The simulation data creation supporting device comprises: reading means that reads preset configuration set-up information on the input/output units stored in the controller; storage means that stores preset explanatory information on input/output signals for objective input/output signal addresses in the signal memory; and adding means that adds input/output signal explanatory information concerning input/output signal addresses extracted from the read configuration set-up information to the extracted input/output signal addresses, referring to the input/output signal explanatory information stored in the storage means, to thereby create the input/output signal operative window configuration information.
The adding means may create extracted information by extracting input/output signal addresses for each of the input/output units from the configuration set-up information, and create the configuration information of the input/output signal operative window using the extracted information. The input/output signal explanatory information may include symbol names and/or comments of the objective input/output signal address.
According to the present invention, it is possible to automatically create and set the information for simulation, which is to be set in the input/output signal operative window in which the input/output signal subjected to debugging is generated and displayed, according to the configuration set-up information of the input/output unit, and this makes it possible to efficiently perform debugging work.
a and 7b are explanatory views of the input/output signal operative window according to the embodiment;
The simulation data creation supporting device 100, the controller 102, and the input/output unit simulation device 101 are connected to one another through a communication path 51.
The simulation data creation supporting device 100 has a processor 1, a display 2, a keyboard 3, a communication interface 4, a RAM 5, and the like, which are connected to one another through a bus 12. The RAM 5 stores a program for creating input/output signal operative window configuration information 6 for creating an input/output signal operative window in which an input/output signal of an input/output unit is simulatively generated, and simulation is performed. The RAM 5 also reads out and stores configuration set-up information 35 of input/output units 50, which is stored in the controller 102 (referred to as “configuration set-up information 7” in
In the controller 102, a processor 31, a ROM 32 for storing a system program, a RAM 33, a display 36, a keyboard 37, a signal memory 38 for storing the input/output signal and the like, and a communication interface 39 are connected to one another through a bus 40. The input/output units 50 are also connected to the bus 40 through an input/output interface, not shown.
In the RAM 33, a control program (sequence control program) 34, the configuration set-up information 35 of the input/output units 50 connected to the controller 102, and the like are set and stored in association with the present invention.
In the input/output unit simulation device 101, a processor 21, a RAM 22, a display 24, a keyboard 25, and a communication interface 26 are connected to a bus 27. The input/output signal operative window configuration information 11 that is created by the simulation data creation supporting device 100 is transferred to the RAM 22 and is stored as input/output signal operative window configuration information 23.
The simulation data creation supporting device 100, the controller 102, and the input/output unit simulation device 101 are connected to one another by a communication path 51 through communication interfaces 4, 39 and 26, to thereby send/receive information.
As described above, the input/output units 50 are connected to the controller 102, and the configuration set-up information 35 of the input/output units 50 connected thereto is set and stored in the RAM 33 of the controller 102. At the same time, the RAM 33 stores the control program (sequence control program) 34 that carries out sequence control of the input/output units 50. The configuration set-up information 35 stored in the RAM 33 is transferred to the simulation data creation supporting device 100 and stored in the RAM 5 as the configuration set-up information 7 of the input/output unit. The processor 1 of the simulation data creation supporting device 100 receives the extracted information 9 obtained by extracting the input/output signal information with respect to each input/output unit from the configuration set-up information 7 of the input/output unit, and adds the input/output signal explanatory information 10 for explaining contents of the input/output signal including a symbol and a comment to the input/output signal information of the extracted information 9, to thereby create the input/output signal operative window configuration information 11. The input/output signal operative window configuration information 11 which is created in the simulation data creation supporting device 100 is transferred to the input/output unit simulation device 101 and stored in the RAM 22 as the input/output signal operative window configuration information 23.
The input/output unit simulation device 101, on the basis of the input/output signal operative window configuration information 23 stored therein, displays an input/output signal operative window for simulating the control program (sequence control program) 34 on the display 24. While the input/output signal operative window is operated, the control program (sequence control program) 34 is simulated, and debugging is carried out.
Addresses “X . . . ” and “Y . . . ” indicate addresses of signals stored in the signal memory 38. The address “X . . . ” represents an address in which an input signal to be inputted from the input/output units 50 to the controller 102 is stored (X represents the input signal). The address “Y . . . ” represents an address in which an output signal to be outputted from the controller 102 to the input/output units 50 is stored (Y represents the output signal).
With respect to the addresses, “GROUP,” “BASE,” and “SLOT” indicative of connecting positions in hardware are stored, and at the same, assigned names indicative of the number of input/output bytes are inputted and stored as the configuration set-up information 35.
The simulation data creation supporting device 100 reads out the configuration set-up information 35 stored in the RAM 33 of the controller 102, and stores the configuration set-up information 35 in the RAM 5 as the configuration set-up information 7.
The information indicative of the mechanical connecting positions included in the configuration set-up information 7, that is, “GROUP,” “BASE” and “SLOT,” are not necessary for the creation of the input/output signal operative window configuration information 11. For this reason, the above information is not extracted from the configuration set-up information 7. Instead, the input/output signal information, namely the input address “X . . . ” and the output address “Y . . . ” are extracted with respect to each input/output unit name.
With respect to each address of an input/output signal, a symbol and comment of the corresponding signal is stored. In the example shown in
As shown in
The input/output signal operative window configuration information 11 thus created is transferred to the input/output unit simulation device 101, and is stored in the RAM 22 as the input/output signal operative window configuration information 23.
Based upon the input/output signal operative window configuration information 23 thus stored, the input/output signal operative window for simulation is displayed on the display 24. By operating the input/output signal operative window, the simulation of the control program is performed, and the debugging is carried out.
a and 7b show examples of the input/output signal operative window for simulation, which are displayed on the display 24 of the input/output unit simulation device 101.
Input buttons 61 are displayed correspondingly to the input addresses “X . . . ”, and output lamps 62 to the output addresses “Y . . . ” In the display, numbers 0 to 7 arranged above the line of the input buttons 61 indicate numerical values after decimal points of numerical values of the input/output addresses.
In the input buttons 61 and the output lamps 62, the respective symbols are displayed according to the input/output signal operative window configuration information 23 shown in
In the same manner, in the input/output signal operative window of the input/output (I/O) unit B shown in
If a cursor or a pointer on the input/output signal operative window are placed on one of the input buttons 61 or output lamps 62 by using a pointing device, such as a cursor key provided to the keyboard 25 and a mouse, a tool tip 63 is displayed as shown in
When the simulation of the control program (sequence control program) 34 is carried out, one of the input buttons 61 is selected and inputted with the cursor or pointing device, and the input signal (X address) of the selected input button 61 is transmitted to the controller 102 as in conventional art. The input signal is then processed by the control program in the controller 102, and an output signal (Y address) is transmitted to the input/output unit simulation device 101. As a result, the output lamp 62 corresponding to the above output signal is turned on. After the presence of the output signal is confirmed, the debugging of the control program 34 is carried out.
First, the configuration set-up information 35 of the input/output units, which is set and stored in the controller 102, is read and stored in the RAM 5 as the configuration set-up information 7 (Step a1). Secondly, as shown in
The symbols and the comments of the input/output signal explanatory information 10 are added to the input/output signal information (input and output addresses) for each of the extracted input/output unit names, to thereby obtain the input/output signal operative window configuration information 11 for simulation (Step a3). The input/output signal operative window configuration information is transferred to the input/output unit simulation device 101 (Step a4), and the processing of the simulation data creation supporting device 100 is ended.
When an input/output unit name is selected and inputted, the processor 21 of the input/output unit simulation device 101 displays on the display 24 an input/output signal operative window for simulation for the selected input/output unit based on the input/output signal operative window configuration information, as shown in
Subsequently, the input/output units are sequentially selected by using the input/output signal operative window displayed on the display 24 of the input/output unit simulation device 101 and the keyboard 25, and the simulation and debugging of the control program are carried out.
According to the above-described embodiment, the input/output signal operative window configuration information 11 shown in
Number | Date | Country | Kind |
---|---|---|---|
2006-352809 | Dec 2006 | JP | national |