1. Field of the Invention
The present invention relates to a PLC tool device used for constructing and designing a PLC system, and more particularly to a PLC tool device that selects a power source unit which can appropriately be used in a PLC system that is composed of a combination of respective units selected from selection information of various units used for the PCL system that is to be constructed and designed, when a PLC system is constructed and designed.
2. Description of the Related Arts
A PLC (Programmable Logic Controller) that controls a FA (Factory Automation) system installed in a manufacturing field such as a production factory is composed of a combination of various plural units, such as a CPU unit that executes a calculation based upon a control program, an input unit to which input devices such as sensors or switches are connected and which takes in on/off signals of these input devices as an input signal, an output unit to which output devices such as actuators or relays are connected and which sends an output signal to these output devices, a communication unit connected to a host terminal device or the like to send or receive information to or from the same, a power source unit for supplying power source to the respective units, and the like.
The CPU unit has a program memory for storing a control program, a data memory for storing the input signals received from the input unit and the output signals that are the result of the operation of the control program, and a processor (CPU) that executes the operation based upon the control program. The control program in the CPU unit is created with, for example, a ladder language, which is expressed by a ladder chart, by a user of the PLC who operates a programming tool device, before the PLC is started. The symbol in the ladder chart is converted into an instruction word by the programming tool device, and an operand according to each CPU unit is defined, whereby the created user program is downloaded to the target CPU unit. The processor section in the CPU unit sequentially reads out the instruction word of the user program from the program memory, and reads out the information of the input signal from the data memory based upon the address of the memory in accordance with the operand of this instruction word. It then logically operates this data in accordance with the user program, stores the result of the operation in the data memory, and then, outputs the stored result of the operation to the output unit as an output signal. The processor section in the CPU unit executes the input signal reading process, user program executing process and output process of the output process cyclically.
A user should consider what unit configuration the PLC takes suitable for executing the created user program, in simultaneous with, before or after the programming operation by the programming tool device. Specifically, the user has to select desired units, among the available various units, meeting the requirements, and to sufficiently examine how is the most preferable layout of the selected units, before actually constructing the PLC. More specifically, it is necessary to construct the PLC in such a manner that the type and the number of the input unit are selected so as to secure the input portions matching with the number of the input devices, the type and the number of the output unit are selected so as to secure the output portions matching with the number of the output devices, the type and the number of the CPU unit having a processing capability matching with the demand of the processing speed of the PLC are selected, the communication unit is selected with the type of the used network, and an analog operation unit, high-function processing unit or the like is selected in accordance with the content of the control of the whole system. The performance, capability, or the like of each unit is described in a catalog or manual. Accordingly, the user selects the unit configuration meeting various requirements by referring to the manual or the like, to thereby construct the PLC.
The selection of the power source unit is important upon constructing the PLC as described above. The power source unit generally gives electric power to each unit. Therefore, it is necessary to select a rated power source unit that satisfies a total of current consumption of each unit. This is because the rating of the power source unit is different depending upon the type of the unit. The rated current (current consumption) of a power source unit is written on a manual or the like. Accordingly, the user selects a power source unit satisfying the aforesaid various requirements to construct the PLC while referring to a manual or the like, upon selecting a power source unit. A user has to consider the required unit configuration, while considering the performance or capability of each unit in accordance with the used state or the content of the control of the PLC. Further, referring to a manual is troublesome.
Meanwhile, there are two types of the configuration for combining each unit in the PLC. One of them is a type for connecting each unit by using a base unit, while the other one is a type for connecting each unit by using a connector. The base unit connection type is such that predetermined slots are formed at a planar base unit, and desired units are attached in parallel to the slots, whereby each unit is electrically and mechanically coupled to each other. This type is also called as a building-block type. This base unit has wired therein a PLC bus for executing data communication between each unit in the PLC and power source lines for supplying power source to each unit. Each unit accepts the supply of power source via the electric power source lines of the base unit, and can perform data communication via the PLC bus of the base unit. In the connector-connection type, connectors are arranged at both side faces of each unit for electrically and mechanically coupling each unit. The PLC bus (coupled to the connector) wired in each unit is made conductive by coupling the connectors. A DIN rail attaching structure is provided at the back face of each unit in the connector-connection type. Each unit is fixed in parallel via the DIN rail. The width of the PLC is specified by the width of the used base plate in the former case, while is specified by the number of the coupled units and the width of each unit in the latter case.
As described above, many units can be added on as coupled to one another in the latter case. Therefore, the number of the used units can optionally be set, so that the total length (width) of the PLC greatly varies depending upon the number of the coupled units. Accordingly, it is important to check beforehand whether the PLC constructed by combining desired units has the width that can be put in the field of the FA. Like the rated current (current consumption) of the power source unit, the performance or capability of various units, or the like, the width of each unit is also written in a manual or the like. Therefore, a user constructs the unit configuration satisfying the aforesaid various requirements by referring to the manual or the like. Specifically, a user should consider the unit configuration necessary for executing a user program, while considering both the width and current consumption. Further, the more the type of the selectable units increases, the more the number of referring to a manual increases, thus troublesome.
In order to solve this problem, there has been proposed a PLC system construction aiding tool disclosed in Japanese Unexamined Patent Application No. 2002-108421. In the invention disclosed in Japanese Unexamined Patent Application No. 2002-108421, the PLC system construction aiding tool displays, on a layout display screen, a rectangular unit image (image that looks like the actual unit) corresponding to the designated unit, the unit images being successively coupled to each other. Further, it numerically displays the total length (width) of the unit or total of the current consumption at the neighboring of the unit array constructed by coupling the unit images. Thus, the user can easily determine whether the current consumption or size is realizable or not by seeing the numerically displayed values.
In the PLC system construction aiding tool device disclosed in Japanese Unexamined Patent Application No. 2002-108421, a power source unit is firstly selected, and then, various necessary units are added on the screen, wherein the current consumption value of each unit or total width of all units are displayed, so that a user can confirm whether the constructed configuration is placed within the capability of the selected power source unit. In case where a user knows that the total current consumption value exceeds the total amount of current that can be supplied from the power source unit, it is assumed that another rack is formed. Specifically, a user operates the PLC system construction aiding tool device for adding one power source unit on the screen, and he/she connects predetermined units (remaining units by which the total current consumption exceeds the total amount of current that can be supplied from the power source unit) to the added power source unit to form another rack. This PLC system construction aiding tool device displays the total amount of the unit width for every rack on the screen. Accordingly, a user can find out the total amount of the current consumption of each unit for every rack constituting the PLC or the space required for arranging each unit of the rack in the field, thus useful.
However, the PLC system construction aiding tool device causes a user to firstly select a power source unit that is to be arranged at the leftmost of the rack configuration displayed on the screen, and then, causes a user to select and arrange various necessary units. In case where the total amount of the current consumption of each unit in the rack exceeds the total amount of current that can be supplied from the power source unit, it is necessary to reselect a power source unit in order to change the power source unit to a suitable one, which means that a user has to do again the operation on the tool device from the beginning.
An object of the present invention is to provide a PLC tool device that can easily select an optimum power source unit after calculating a total amount of current consumption of each unit from unit configuration information, when selection information of various units used for a PLC system is registered, and a PLC system composed of the selected respective units is constructed and designed.
In order to accomplish the foregoing object, a PLC tool device according to the present invention is a PLC tool device used for constructing and designing a PLC system composed of a combination of various units and a power source unit, comprising: a control section; a display section; and a unit information storing section that stores a type information and a current consumption information of all units and a type information and a supply current information of all power source units; wherein the control section is configured to execute: a process for inputting type information of a plurality of unit used for a PLC system that is to be constructed and designed; a process for obtaining the current consumption information of the plurality of unit by an access to the unit information storing section based upon the inputted type information of the unit, and for calculating a total amount of current consumption of the plurality of unit; a process for extracting type information of a power source unit that supplies the total amount of current consumption based upon the supply current information stored in the unit information storing section; and a process for displaying the type information of the extracted power source unit on the display section.
In the PLC tool device according to the present invention, a CPU 13 in the embodiment corresponds to the control section, a display 12 corresponds to the display section, and a unit information storing section 15 corresponds to the unit information storing means. The “type information of each unit” and “type information of a power source unit” mean information for specifying the model of various units. The “type information” corresponds to the information of model in
The process for extracting a power source unit includes that at least one power source unit that can appropriately be used can be displayed for a reference. It also includes that plural types of the extracted power source units are displayed by a pull-down operation in the embodiment. When a power source unit that can appropriately be used in a PLC system that is constructed and designed by a user is selected with this display, the selected power source unit may be stored in a constructed and designed manner. This storage corresponds to a “registration of a power source unit” in the embodiment.
The “total amount of current consumption” is a total amount of current consumption of each unit in a block of plural coupled units. It corresponds to the maximum current consumption amount in the embodiment. The “supply current of a power source unit” may be the maximum supply current specified by the specification of this power source unit, may be the idealistic value in the design of the power source unit, or may be the value obtained beforehand by actually measuring the maximum supply current value that can withstand the actual use.
Another means to solve the problems is a PLC tool device used for constructing and designing a PLC system composed of a combination of various units and a power source unit, comprising: a control section; a display section; an input section; and a unit information storing section that stores a type information and a current consumption information of all units and a type information and a supply current information of all power source units; wherein the control section is configured to execute: a process for inputting a type information of a plurality of unit used for a PLC system that is to be constructed and designed; a process for obtaining the current consumption information of the plurality of unit by an access to the unit information storing section based upon the inputted type information of the units, and calculate a total amount of a current consumption of the plurality of unit; a process for obtaining the supply current information of a power source unit which is selected through the input section from the unit information storing section; and a process for comparing the obtained supply current information and the calculated total amount of the current consumption, and, in case where the relationship between the supply current information and the calculated total amount of the current consumption does not meet a predetermined condition, for displaying this situation on the display section, and, in case where the relationship between the supply current information and the calculated total amount of the current consumption meets a predetermined condition, for displaying this situation on the display section. With this configuration, a user can easily confirm through the display section whether the selected power source unit is a power source unit that can appropriately be used in the PLC system constructed and designed by a user.
Note that such configuration may be taken in which, when a power source unit that can appropriately be used in the PLC system constructed and designed by a user is selected from the display showing whether the selected power source unit satisfies the appropriate condition or not, this power source unit is stored as constructed and designed. This storage corresponds to “a registration of a power source unit” at S6 in
“The case satisfying the appropriate condition and the case not satisfying the appropriate condition” include the following meanings, for example. The first meaning is “the case in which the supply current of the power source unit is less than the calculated total amount of the current consumption” and “the case in which the supply current of the power source unit is not less than the calculated total amount of the current consumption”. The second meaning is “the case in which the supply current of the power source unit is not more than the calculated total amount of the current consumption” and “the case in which the supply current of the power source unit exceeds the calculated total amount of the current consumption”. The third meaning is “the case in which the supply current of the power source unit is less than the calculated total amount of the current consumption with some degree of allowance” and “the case in which the supply current of the power source unit exceeds the calculated total amount of the current consumption with some degree of allowance”. It is considered that a value obtained by multiplying some coefficient is utilized as an example of the allowance, such as “the case in which the supply current of the power source unit is less than 110% of the calculated total amount of the current consumption” or “the case in which the supply current of the power source unit exceeds 110% of the calculated total amount of the current consumption”.
In the PLC tool device, in case where the unit configuration is changed though the input section after the input of plural units, that are to be coupled to the PLC system to be constructed and designed, is completed in the input process by the control section, the process for calculating the total amount of the current consumption can be configured such that the current consumption information of the re-inputted unit is obtained by an access to the unit information storing means based upon the re-inputted unit, in order to calculate the total amount of the current consumption in the block of the plural coupled units. According to this, even if a change is made in constructing and designing the PLC system, a power source unit that can appropriately be used can be selected every time the change is made.
In the PLC tool device according to the present invention, the control section can be configured to execute a process for displaying a list of the type information and the supply current information of the extracted power source units; and a process for registering the fact that the type information of the selected power source unit can be used in the PLC system that is to be constructed and designed. This configuration corresponds to the display of plural extracted power source units by a pull-down operation in the embodiment.
The PLC tool device according to the present invention can also be configured such that the unit information storing section stores the type information, the current consumption information and the width information of all units constituting a PLC system and the type information, the supply current information and a width information of all power source units, and the control section further executes: a process for obtaining the width information of the selected units and the selected power supply unit used for the PLC system by an access to the unit information storing section, and for calculating the total width of the selected units and the selected power supply unit coupled in a rack; and a process for displaying the calculated total width on the display section. This configuration corresponds to the case of utilizing the width information in the embodiment.
The PLC tool device according to the present invention can also be configured such that the unit information storing section stores the type information, the current consumption information and the width information of all units constituting a PLC system and the type information, the supply current information and a width information of all power source units, and the control section further executes: a process for obtaining the width information of the selected units and the selected power supply unit used for the PLC system by an access to the unit information storing section, and for calculating the total width of the selected units and the selected power supply unit coupled in a rack; and a process for displaying the calculated total width on the display section. This configuration also corresponds to the case of utilizing the width information in the embodiment.
According to the present invention, a total amount of current consumption of each unit is calculated from unit configuration information, and an optimum power source unit can easily be selected based upon the calculated result, when a PLC system is constructed and designed.
The PLC tool device 10 has a PLC system construction aiding function for obtaining a suitable unit configuration upon constructing the PLC system 20 having an optional construction with the combination of various units and upon designing the PLC construction matching with the controlled subject. The tool device in this embodiment may be referred to as a PLC system construction aiding device or configurator. Upon constructing and designing the PLC system, the PLC tool device selects various units used for the PLC system that is to be constructed, selects a power source unit that can appropriately be used in the combination of the selected units, and registers the resultant. As apparent from
In the unit information storing section 15, unit information in which at least “type”, “model”, “current consumption”, “unit width”, “remarks” are associated for every unit, that is a component of the PLC, is stored in a table, as shown in
As for the unit type that supplies power such as a power source unit, unit information in which “model”, “maximum supply current”, and “unit width” of the power source unit are associated is stored in a table, as shown in
The starting operation at S1 is not limited to the above-mentioned case. Various methods can be applied, for example, the menu screen having the names of the used tools listed up is displayed on the display 12, and the PLC tool of the present invention is selected from this menu screen and started.
When it is recognized that the aforesaid “unit configuration information” is clicked, the screen of the unit configuration information shown in
The program proceeds to a step for registering various units that are to be incorporated into each rack on this screen of the unit configuration information (S4). Specifically, in case where the rack that is to be constructed and designed is closed like the initial screen, the “+” button marked at the head of the used (set) rack in the tree-display is clicked to open the appropriate rack as shown in
Subsequently, the actual unit registering process is performed. In the case of a new registration, the user operates the pointing device 11b to select the field of “unset” in the tree-display. When the selected “unset” is double-clicked, the unit selection screen shown in
The user operation will be explained in detail. The user operates the input section 11 such as the pointing device 11b or the like to click the displayed unit that is to be used. With this operation, the control section 13 reversely displays the name of the model of the clicked unit to show that it is temporarily selected. In simultaneous with this, the control section 13 reads out the information associated with the unit from the unillustrated database relating to the unit, and displays the read-out information on the window W3 of “specification”. When “OK” button is clicked, the unit that is temporarily selected is registered to the place designated on the screen of the unit configuration information, and the information such as the model or the like is additionally displayed.
In case where the unit already registered on the screen of the unit configuration information in
When the registration of all units is completed as a result of the operation for registering various units at S3, the program proceeds next to a process for selecting and registering a power source unit. This process executes a process for calculating the current consumption and width of various units registered for every rack and displaying the total value, and a process for registering a power source unit (S5, S6). At S5 and S6, a flowchart specifically shown in
When the processing section 13 of the PLC tool device 10 starts the execution of the flowchart shown in
In case where the answer at the step S12 is Yes, i.e., it is determined that there is a unit, the processing section 13 jumps to the step S14 so as to access to the unit information storing section 15 for obtaining the current consumption and width of this unit and to add the obtained respective values to the current values. The processing section 13 stores each value of the added result to the memory 14. Note that the adding process is executed in the same rack. The processing section 13 repeatedly executes the aforesaid processes (S11 to S14) up to the last unit position of the last rack (S15). It should be noted that, in the adding process of the current consumption and width in the CPU rack, the CPU unit in the CPU rack (the CPU unit of the model “CJ1H-CPU67H” at the top of the tree-display in
After the processes are executed up to the last unit position of the last rack (Yes determination at S15), the total current consumption and width for every rack are calculated according to the execution of the step S14 and stored in the memory 14. Then, the processing section 13 searches a power source unit that can supply the total current consumption based upon the total current consumption (maximum current consumption) for every rack (S16). Specifically, the processing section 13 searches the maximum current supply amount on the table of the power source units stored in the unit information storing section 15, extracts the model information of the power source units having the rating more than the total current consumption, and lists them up. The result of the extraction is stored in the memory.
Subsequently, the processing section 13 displays the information about the sum of the current consumption and the sum of the width of all units for every rack, and the model information of the applicable power source unit (S17).
In
Another power source unit can be selected and registered in a pull-down menu manner in the display field of a power source unit in
Accordingly, various units installed to the rack is firstly registered, then, the total value of the current consumption of the units in the rack is obtained; and thereafter, the applicable power source unit to the rack having the registered units can easily be selected and registered. Compared to the conventional example in which a power source unit is firstly registered, and then, units for the rack are registered, the PLC tool device in this embodiment has a substantial function for registering a power source unit, so that a user can conveniently use it.
For example, the power source unit displayed as a default has the smallest maximum supply current amount that can cope with the total current consumption of this rack. Therefore, even in case where a user plans to supply power from a power source unit to each unit with some degree of allowance, the PLC tool device in this embodiment has a substantial function in which he/she can easily select another power source unit having the maximum supply current amount that is great to some extent.
The rack width information is also displayed upon registering a power source unit, whereby the optimum power source unit can be decided considering the width of the field to which the rack is installed. Even in case where another power source unit having the great maximum supply current amount is selected, the width of the rack using another power source unit is immediately recalculated and displayed. Therefore, a user can instantly understand whether the rack constituted by another power source unit can be installed to the actual field or not, and can determine whether it can be used or not.
As described above, in this embodiment, a unit composing each rack is firstly set, and a power source unit suitable therefor is selected. Therefore, in case where the total current consumption of the units installed to the same rack is increased, the power source unit having the maximum supply current matching with the increased current consumption is only selected.
Although a power source unit having the usable smallest maximum supply current is displayed as a default, the invention is not limited thereto. A power source unit having a greater maximum supply current with some degree of allowance may be displayed as a default.
Although not shown, the rating (maximum supply current) of the displayed power source unit may also be displayed. This can tell a user what allowance there is to the current consumption, so that the selection of a power source unit larger than necessary is prevented, even if there is an allowance in the width dimension.
In the embodiment, the processing section 13 searches a power source unit that can supply the total current consumption based upon the total current consumption (maximum current consumption) for every rack in the step S16, but this step can be omitted. Instead of omitting the step S16, the maximum supply current value of the power source unit displayed in the field of a power source unit in
As for the display of a power source unit as a default, the information of the power source unit stored in the unit information storing section 15 may be displayed so as to be arranged randomly, in the order of an alphabet (in the order of numerical values), or in the order registered in the database without sorting, without considering the relationship with the maximum supply current.
The registering function of a power source unit is not only limited to a new registration of a rack, but also applied to the change of the unit configuration in the rack, as an example of an application of this embodiment. As described above, supposing that a CPU unit in a CPU rack of the PLC is registered, various units are registered, the total current consumption of the units in the rack is obtained, and a power source unit that can be applied to the rack is registered, with the result that the rack configuration is temporarily decided. The PLC tool device 10 can cope with the case where a user plans to change a part of the rack configuration after that. Firstly, the unit that is intended to be changed is selected. In case where the unit is added on, the “unset” in the tree-display on the screen of the unit configuration information in
In case where the changing process of the unit configuration in the rack is carried out, the processing section 13 may automatically calculate the total current consumption of the units installed to the rack, may compare the result of the calculation and the maximum supply current value of the registered power source unit, and if the total current consumption is greater than the maximum supply current of the power source unit, the display for letting the user to know this situation may be made on the screen. In case where the total current consumption is greater than the maximum supply current value as a result of the comparison, the processing section 13 performs a process for automatically promoting the exchange of the power source unit, as another example. For example, the display screen in
The present invention can be utilized, as an example of an application of this embodiment, for the PLC system construction aiding tool device explained in the conventional example. In this case, the PLC system construction aiding tool device firstly accepts the operation of selecting an optional power source unit by a user, and the power source unit is arranged and displayed at the leftmost of the rack configuration on the screen. Thereafter, it accepts the operation for selecting various units that are to be used in the rack configuration, wherein the selected units are arranged and displayed in the rack configuration on the screen every time a unit is selected. The PLC system construction aiding tool device displays the total amount of the current consumption of each unit in the rack. The processes so far are equal to those in the conventional case. Thereafter, the total current consumption of each unit in the rack is calculated, wherein the result of the calculation is compared to the maximum supply current of the registered power source unit. If it is determined that the total current consumption is greater than the maximum supply current of the power source unit, the PLC system construction aiding tool device makes a display for letting a user to know this situation. As another examples of the display, it is considered that the screen is switched to the operation screen for exchanging a power source unit, or that a message for calling the attention such as “please do the operation for exchanging power source unit” is displayed.
As explained in the example of the application of this embodiment, in case where a process for changing the rack configuration (combination of units) to which the power source unit supplies current is carried out even after the power source unit is registered, the processing section 13 can automatically perform a process for confirming the suitability of the power source unit and a process for re-registering a power source unit according to need.
Number | Date | Country | Kind |
---|---|---|---|
P2005-052232 | Feb 2005 | JP | national |
P2006-034850 | Feb 2006 | JP | national |