This application claims priority on Japanese Patent Applications 2007-059763 and 2007-059770 both filed Mar. 9, 2007.
This invention relates to a programmable controller with building blocks (hereinafter referred to as PLC of the building block type), provided with device modules with various functions (such as IO module, analog IO module, process IO module, motion control module, process CPU module and communication modules of various kinds supporting communication protocols) such that these device modules can be appropriately selected and combined into a single unit through specified inter-module connection mechanisms in order to flexibly respond to a wide variety of control specifications on the side of the users.
As disclosed in Japanese Patent Publications Tokkai 2007-18503 and 09-181750, for example, there have been known various kinds of PLCs of the building block type provided with device modules with various functions, making it possible to flexibly respond to a wide variety of users' control specifications by combining them into a single unit through specified inter-module connecting mechanisms. Parallel bus, serial bus and bucket relay systems are known examples of method for carrying out inter-module communications in such a PLC of the building block type.
According to the illustrated example, these modules 20 and 21 are connected together into a single unit through inter-module connection mechanisms of the stacking type. Explained more in detail, these modules 20 and 21 are arranged sequentially in a single line in the right-left direction, with the side surfaces of the mutually adjacent pairs thereof in contact with or near each other and having connectors CN in between. Each connector CN has a left-hand connector half CN(L) and a right-hand connector half CN(R) that together form a pair. The left-hand connector half CN(L) of one of the connectors CN is affixed to the right-hand side surface of the housing of the CPU module 20. The left-hand side surface of the housing of each device module 21 has the right-hand connector half CN(R) of a corresponding one of the connectors CN affixed thereto, and the right-hand side surface of the same housing has the left-hand connector half CN(L) of another connector CN affixed thereto. Each connector CN includes a group of terminals corresponding to signal lines that form a parallel bus PB.
The parallel bus PB, which has its base terminals inside the CPU module 20, is connected to a communication terminal group in the left-hand connector half CN(L) on the right-hand side surface of the housing of the CPU module 20. A communication interface (I/F) 202A is inserted between the parallel bus PB and the CPU system 201.
Inside each of the device modules 21, the communication terminal group inside the right-hand connector half CN(R) on the left-hand side surface of the housing and that inside the left-hand connector half CN(L) on the right-hand side surface of the housing are connected by an internal connector line PCL, and there is a communication interface (I/F) 212A inserted between this internal connector line PCL and the device system 211.
With the modules thus structured, if the housing of each device module 21 is connected to the housing of the CPU module 20 through the connectors CN, the parallel bus PB penetrates through the series of modules 20 and 21, and data of various kinds necessary for the operation of the PLC can be exchanged among the CPU system 201 inside the CPU module 20 and the device systems 211 inside the individual device modules 21.
Inside each of the device modules 21, the communication terminal group inside the right-hand connector half CN(R) on the left-hand side surface of the housing and that inside the left-hand connector half CN(L) on the right-hand side surface of the housing are connected by an internal connector line SCL, and there is a communication interface (I/F) 212B with the serial-parallel conversion function inserted between this internal connector line SCL and the device system 211.
With the modules thus structured, if the housing of each device module 21 is connected to the housing of the CPU module 20 through the connectors CN, the serial bus SB penetrates through the series of modules 20 and 21, and data of various kinds necessary for the operation of the PLC can be exchanged among the CPU system 201 inside the CPU module 20 and the device systems 211 inside the individual device modules 21 through the serial bus SB.
Inside each of the device modules 21, the communication terminal group inside the right-hand connector half CN(R) on the left-hand side surface of the housing is connected to a communication interface (I/F) 212C through a first connection line SCL1, and the communication terminal group inside the left-hand connector half CN(L) on the right-hand side surface of the housing is connected to the communication interface (I/F) 212C through a second connection line SCL2.
With the modules thus structured, if the housing of each device module 21 is connected to the housing of the CPU module 20 through the connectors CN, the serial bus SB penetrates sequentially through the communication interfaces (I/F) 212C of each of the device modules 21. The device system 211 inside each of the device modules 21 will transmit each of the data received from an adjacent module to the other adjacent module in the manner of a bucket relay such that data of various kinds necessary for the operation of the PLC can be exchanged among the CPU system 201 inside the CPU module 20 and the device systems 211 inside the individual device modules 21.
Thus, with a prior art PLC of the building block type, it was a common practice to carry out communications among the modules either through a bus (PB or SB) in multidrop connection by the parallel bus method shown in
If communications between the modules are by the parallel bus method shown by
It is therefore an object of this invention in view of these problems to provide a PLC of the building block type, which is not adversely affected by skews among bits, cross talks or ground bounce and uses a communication method not affected by the increase of the number of connected modules.
Other objects and effects of this invention will become clearly understandable by referencing the disclosure that follows.
A PLC of building block type according to this invention may be characterized as comprising a switch module incorporating a switch part having N-to-N switch function between serial communication lines with a plurality of lines and a plurality of device modules individually incorporating device systems with various advanced-function device module characteristics wherein a CPU system having CPU functions of the PLC is incorporated either in the switch module or in a CPU module that is provided independently of this switch module. The switch module incorporating the CPU system and the plurality of device modules, or the switch module not incorporating the CPU system, the CPU module and the plurality of device modules, are connected together into a single body in a building block structure through module-connecting mechanisms of a specified kind. Dedicated serial communication lines each with a single line or a plurality of lines connect between the switch module incorporating the CPU system and each of the plurality of device modules such that a star-shaped serial communication network is formed with the switch module incorporating the CPU system as a central node and each of the plurality of device modules as a peripheral node, or between the switch module not incorporating the CPU system and the CPU system and each of the plurality of device modules such that a star-shaped serial communication network is formed with the switch module not incorporating the CPU system as a central node and the CPU system and each of the plurality of device modules as a peripheral node.
Since a PLC thus structured is basically for serial communication, there is no need to consider the effects of skews between bits, cross talks or ground bounce, unlike the situation using a parallel bus with multidrop connection. Since dedicated serial communication lines are used instead of bus lines, furthermore, the transmission capability is not adversely affected by an increase in the number of connected modules as long the switching operations by the switch part are appropriately designed. In particular, if a plurality of lines connected in parallel are used for the serial communication lines between each device module or the CPU module and the switch module, an optimal data communication capability can be maintained according to the transmission capacity of each module.
As the module-connecting mechanisms in the above, both the so-called back plane type and the stacking type can be utilized. As is well known by persons skilled in the art, a module-connecting mechanism of the back plane type has a conductor pattern corresponding to communication signal lines provided on a mother board referred to as the back plane and a plurality of modules connected to these signal lines through connectors such that these modules are mechanically and electrically connected. By the stacking method, connector halves are affixed to both side surfaces of each module housing and an inner connection line is provided inside each module to connect these connector halves. These similarly formed modules are connected through the connector halves such that a plurality of modules come to be mechanically and electrically connected into a single unit.
Explained more in detail, a module-connecting mechanism by the stacking method according to this invention may be characterized as including a connecting mechanism (also referred to as the first connecting mechanism for convenience) on the side of the switch module and another connecting mechanism (also referred to as the second connecting mechanism for convenience) on the side of each of the CPU module or one of the plurality of device modules.
In the above, the first connecting mechanism comprises a connector half on the side of the switch module that is provided on one of side surfaces of the module housing of the switch module and has communication terminal groups for a plurality of lines and switch connection lines that connect each of the communication terminal groups of the connector half on the side of the switch module and a corresponding one of communication ports of the switch part inside the switch module, and the second connecting mechanism comprises a near connector half on the CPU module or one of the plurality of device modules that is provided on a side surface of the module housing of the corresponding module on the side nearer the switch module when the modules are connected together and has one or more communication terminal groups corresponding to the number of lines of serial communication lines introduced from another module adjacent on the nearer side, a far connector half on the CPU module or one of the plurality of device modules that is provided on another side surface of the module housing of the corresponding module on the side farther from the switch module when the modules are connected together and has one or more communication terminal groups corresponding to the number of lines of serial communication lines introduced from another module adjacent on the farther side, inner system connection lines connecting one or more of the communication terminal groups of the near connector half that are assigned to the corresponding module and a communication interface incorporated in the corresponding module, and inner connector connection lines connecting remaining ones of the communication terminal groups of the near connector half excluding the one or more assigned communication terminal groups and the communication terminal groups of the far connector half.
In this manner, a CPU module and any plural number of device modules can be connected to a single switch module and a PLC of the building block type having a serial communication network of the so-called star-type can be formed.
According to one aspect of the invention, free location is made possible for each of the modules of the PLC by adopting module-connecting mechanisms of a special type. For this purpose, the arrangement pattern of the plurality of communication terminal groups of the near connector half and that of the plurality of communication terminal groups of the far connector half are arranged to be the same in the second connecting mechanism such that any mutually adjacent modules can be freely connected, and the inner connector connection lines are arranged to connect the near connector half and the far connector half such that aforementioned remaining ones of the communication terminal groups will be shifted as a whole by the number of communication lines assigned to the corresponding device module to the uppermost or lowermost position in the arrangement of communication terminal groups in the far connector half while maintaining the arrangement sequence of the terminal groups.
With such a structure, it is always a serial communication line corresponding to a currently open line that appears in the communication terminal group at the uppermost or lowermost position. In the near connector half of any module, individual modules can be attached to any desired position within a series of modules by structuring the inner circuit board such that the serial communication lines assigned to itself will be introduced from the communication terminal group at the uppermost or lowermost position, or that the so-called free location becomes possible.
As for the switch part incorporated in the switch module, its role may be said to be somewhat like that of a telephone exchange. It comprises a memory that stores setting data for defining an operation form for carrying out the N-to-N switch function and carries out switching operations according to the operation form defined by the setting data stored by the memory. The operation form may be defined in various different ways. As one example, the operation form defined by the setting data is such that any communication frame inputted to one of communication ports of the switch part is unconditionally caused to be outputted from preliminarily determined one or more of the communication ports. This corresponds, for example, to providing a telephone exchange machine with a dedicated line service. By this example, specified ones of the communication ports are always maintained in the connected condition and hence a series of frames can be quickly exchanged among these communication ports without providing any switching command or the like.
As another example, the operation form may be defined such that a communication frame inputted to one of communication ports of the switch part is caused to be outputted from one or more of the communication ports that are determined by Is addressee data contained in the inputted frame. By this example, switching can be controlled on the side of each module. Thus, the addressee data may be appropriately changed such that data communications become possible with the optimum addressee according to the current control conditions among the modules. In the case of a module connected to the switch module through two or more lines, the same or different addressee data may be attached to the frames through the different lines such that multiple or distributed communications can be carried out depending on the current control conditions.
As a third example, the operation form may be defined such that if serial data with a plurality of frames in series are inputted to one of communication ports of the switch part and the first frame contains addressee data and a switch hold command, the switch condition is maintained in a hold condition until the series of frames is completely outputted from one or more of the communication ports that are determined by the addressee data. By this example, although relatively short data of one frame or a small number of frames may usually be transmitted, such a switch hold command can be included in the first frame when a large amount of data formed with a large number of frames are being transmitted such that such a large amount of data can be transmitted summarily to a specified addressee without carrying out the switching operations in units of frames.
According to this invention, furthermore, the aforementioned plurality of device modules include a multi-line supporting device module that has a plurality of communication ports each for connecting to different one of dedicated serial communication lines and a communication interface between the plurality of communication ports and the device system inside. In the above, the communication interface includes a transmission processing part that generates multi-system transmission frames to be transmitted from individual ones of the plurality of communication ports based on single-system original transmission data, and a reception processing part that generates single-system reception frames based on multi-system reception frames obtained from individual ones of the plurality of communication ports.
Since a PLC thus structured is basically for serial communication, there is no need to consider the effects of skews between bits, cross talks or ground bounce, unlike the situation using a parallel bus with multidrop connection. Since dedicated serial communication lines are used instead of bus lines, furthermore, the transmission capability is not adversely affected by an increase in the number of connected modules as long the switching operations by the switch part are appropriately designed. In particular, if a plurality of lines connected in parallel are used for the serial communication lines between each device module or the CPU module and the switch module, an optimal data communication capability can be maintained according to the transmission capacity of each module.
Moreover, according to this invention, an optimum transmission mode can be selected according to the current condition during the operation of the PLC because it is possible to appropriately correlate single-system original communication data and multi-line serial communication lines, instead of transmitting single-system original transmission data directly to a single-system serial communication line. At the time of reception, too, an optimum reception mode can be selected according to the current condition since multi-system reception frames can be received in correlation with single-system reception data, instead of receiving them by individually switching them.
As one example of such transmission modes, each of the multi-system transmission frames may contain data identical to the original transmission data as real transmission data and data identical to the original transmission data may be repeatedly (duplicatingly) transmitted to individual ones of the serial communication lines connected between that device module and the switch module. With such a choice, data requiring a high level of reliability may be transmitted repeatedly to each of multi-line serial communication lines.
As another example of transmission modes, each of the multi-system transmission frames may contain, as real transmission data, individual divided data obtained by dividing the original transmission data and the individual divided data may be transmitted separately to individual ones of the serial communication lines connected between that device module and the switch module. By this mode, the speed of data communication can be increased.
As one example of reception modes, the single-system reception frames may be formed as a single data item selected according to a specified rule from reception data contained in the multiple-system reception frames. By such a mode, a reliable reception operation becomes possible because even if one of the serial communication lines may fail, it is possible to switch to another communication line.
As another example of reception modes, the single-system reception frames may be formed as combined data obtained by combining reception data contained in the multiple-system reception frames. In this manner, since data received in parallel through multi-line serial communication lines are combined together to form combined data, it is possible to reproduce the original data from divided data.
PLCs of the building block type described above may be said to be more advantageous than PLCs of the building block type using the conventional parallel bus, serial bus or link method when the transmission speed of each of the serial communication lines is 2 Gbps or faster.
Since it is basically a serial communication according to this invention, there is no need to consider the effects of skews between bits, cross talks or ground bounce, unlike the situation using a parallel bus with multidrop connection. Since dedicated serial communication lines are used instead of bus lines, furthermore, the transmission capability is not adversely affected by an increase in the number of connected modules as long the switching operations by the switch part are appropriately designed. In particular, if a plurality of lines connected in parallel are used for the serial communication lines between each device module or the CPU module and the switch module, an optimal data communication capability can be maintained according to the transmission capacity of each module.
In summary, it is not that original transmission data are directly transmitted to single-system serial communication lines but that they are appropriately correlated to the multi-line serial communication lines. Thus, optimum transmission and reception modes can be selected as explained above. This is made possible, according to this invention, by providing a multi-line supporting device module provided with a plurality of communication ports each for connecting to different one of dedicated serial communication lines and a communication interface between the plurality of communication ports and the device system inside, the communication interface including a transmission processing part that generates multi-system transmission frames to be transmitted from individual ones of the plurality of communication ports based on single-system original transmission data and a reception processing part that generates single-system reception frames based on multi-system reception frames obtained from individual ones of the plurality of communication ports.
The invention is described next by way of an embodiment with reference to the drawings.
These modules 10, 11 and 12, as will be explained in detail below, are connected together to form a single unit through module-connecting mechanisms using the stacking method for building blocks. Under this connected condition through these module-connecting mechanisms, dedicated serial communication lines SL1-SL4 each with a single line or a plurality of lines (single lines in the illustrated example) are connecting between the switch module 13, the three device modules 11 and the single CPU module 10. In this manner, a star-shaped serial communication network is constructed with the switch module 12 serving as the central node and the CPU modules 10 and the three device modules 11 serving as peripheral nodes.
Next, the module-connecting mechanism is explained in detail. This mechanism comprises mechanisms on the individual sides, that is, a connection mechanism on the side of the switch module 12 and connection mechanisms on the sides of the CPU module 10 and the three device modules 11.
The communication interface (I/F) 112 is provided, according to this example, with an ASIC 112a for carrying out frame generation and parallel-serial conversions at the time of transmission and parallel-serial conversions and data reproduction function at the time of reception, an conversion element (PHY) 112b for carrying out conversion function between a transmission-reception single system signal and a transmission-reception differential pair signal and a RAM 112c which serves as a transmission buffer and a reception buffer.
The device system 111 serves to represent the circuit elements for carrying out the functions required of that device, comprising in the case of this example, a microprocessor (MPU) 111a, a ROM 111b and a RAM 111c. If the device module is an IO module, an analog IO module or a process IO module having input and output functions to the exterior, an external 10 circuit is separately provided.
A flowchart for showing the operations of the ASIC incorporated in each module is shown in
At the time of a transmission process, the MPU 111a prepares transmission data (Step 811) and transmits the prepared data for transmission to the transmission part of the ASIC 112a. The transmission part of the ASIC 112a serves to attach the addressee's address and commands to the received transmission data (Step 812) and also to reform them into a frame (Step 813) and deliver them to the datalink part. Under the condition that the data transmission be possible (YES in Step 814), these data are transmitted (Step 815) and the serial data are thus transmitted from the ASIC 112a (Step 816). If the response in Step 814 is NO, the program may be designed so as to wait until the data transmission becomes possible.
With reference back to
Signals on the transmission lines Tx1-Tx4 respectively from the first through fourth ports of the ASIC 1211 are converted through the first through fourth PHYs into signals on the transmission differential line pairs Tx1±-Tx4±, while signals on the four reception differential line pairs Rx1±-Rx4± arriving from the connector half CN(L) are converted through the first through fourth PHYs into signals on the four reception differential line pairs Rx1±-Rx4±. In this example, the ports of the first through fourth PHYs on the side of the differential line pairs are referred to as communication ports (P1-P4).
The FROM 121b is to function as a memory for storing setting data for defining the switching operations when N-to-N switching operations among the four serial communication lines SL1-SL4 are carried out. The ASIC 1211, which forms the switch part 121, carries out switching operations as defined by these set data stored by the FROM 121b. The data stored by the FROM 121b can be freely changed through the interface 1213 by the operation of the tool 14.
Various operation forms can be defined by the set data stored by the FROM 121b. According to one operation form, the communication frame inputted to one of the communication ports of the switch part 121 is caused to be outputted unconditionally from one or more preliminarily determined communication ports. This is like a situation of operating as dedicated lines of a telephone exchange where, for example, a communication frame arriving at communication port P1 is unconditionally outputted from communication ports P2 and P3.
In such a situation, connections are always maintained among the specified communication ports and hence a series of frames can be exchanged among these ports without providing any switching command for each frame.
According to another operation form, the communication frame inputted to one of the communication ports of the switch part 121 is caused to be outputted from one or more of the other communication ports of the switch part 121 determined by the addressee data contained in that communication frame. If communication ports P3 and P4 are contained as addressee data at the beginning of a communication frame inputted at communication port P2, for example, this communication frame is outputted from communication ports P3 and P4.
In this situation, switching operations can be controlled on the side of each module with addressee data included in each communication frame that is transmitted from each module. Thus, since the addressee data can be freely changed, data communications with the optimal addressee become possible, depending on the current control conditions among a plurality of modules. In the case of a module connected to the switch module through two or more lines, multiple communications or distributed communications can be carried out depending on the current control conditions by attaching the same or different addressee data to frames flowing through different communication lines
According to a third operation form, when serial data having a plurality of communication frames in a series are inputted to one of the communication ports of the switch part 121 and addressee data and a switch hold command are contained in their first frame, the switch condition is maintained in the hold condition until the output of this series of frames from the one or more communication ports of the switch part 121 determined by the addressee data is completed. This is a situation, for example, when serial data having many communication frames are inputted to communication port P4 of the switch part 121 and the first frame contains communication ports P1 and P2 as is addressee data and a switch hold command. Then, the switch condition is maintained in the hold condition until this series of frames is completely outputted from communication ports P1 and P2.
With this construction, although relatively short data of one frame or a small number of frames may usually be transmitted, such a switch hold command can be included in the first frame when a large amount of data formed with a large of number of frames are being transmitted such that such a large amount of data can be transmitted summarily to a specified addressee without carrying out the switching operations in units of frames.
By such a module-connecting mechanism as described above, since a left-hand connector half CN(L) is affixed to the right-hand side surface of the housing of the switch module 12 and a right-hand connector half CN(R) and a left-hand half CN(L) are affixed to the left-hand and right-hand side surfaces of the CPU module 10, and a right-hand connector half CN(R) and a left-hand half CN(L) are affixed to the left-hand and right-hand side surfaces of each of the device modules 11, a connector CN may be completed by connecting these modules 12, 10 and 11 sequentially from the left to the right by connecting the pairs of left-hand and right-hand connector halves CN(L) and CN(R) such that a star-shaped serial communication network having the switch module 12 as the center node and the CPU module 10 and three device modules 11 as peripheral nodes can be automatically completed. Thus, since the CPU module 10 and the switch module 12 are connected by a single dedicated serial communication line and each of the three device modules 11 is also connected to the switch module 12 with a single dedicated serial communication line, data can be exchanged among these modules 10 and 11 at high speeds without being influenced by other modules.
The PLC 1A shown in
With the PLC 1B thus structured, its external look as a whole may become approximately the same as that of a conventional PLC, one or more device modules 11 being connected to the CPU module (or switch module) 13 through the connectors CN.
Next, the structure of device modules for making free location possible will be explained with reference to
As shown, the three communication terminal groups (R11-R14, R21-R24 and R31-R34) of the near connector half CN(R) and the three communication terminal groups (L11-L14, L21-L24 and L31-L34) of the far connector half CN(L) have the same arrangement pattern in order to make a free connection possible between any mutually adjacent pair of modules.
Inner connection lines CL12a and CL12b connect those remaining two communication terminal groups of the near connector half CN(R) (R21-R24 and R31-R34) after the one assigned to the corresponding modules (R11-R14) is excluded with communication terminal groups of the far connector half CN(L) such that these remaining two communication terminals of the near connector half CN(R) (R21-R24 and R31-R34) will shift as a whole by the amount of the communication lines assigned to this device module (the amount corresponding to one line) to the uppermost position in the arrangements of the communication terminal groups in the far connector half CN(L) while the order of arrangement of the terminal groups is maintained. This shift may also be arranged to the lowermost position.
If such a structure is adopted, the uppermost communication terminal group (L11-L14) of the far connector half CN(L) of each module always has an open communication serial line not assigned to any of the modules. Thus, if the connector structure of every module is formed as described above, whether that module is at the first stage, the second stage or the third stage, as shown in
Although
With the module thus structured, two serial communication lines (SL1 and SL2) are occupied and an open serial communication line (SL3) appears at the communication terminal group (L11-L14) at the uppermost position of the far connector half CN(L) as in the other modules.
With PLC of the building block type according to this invention, module structures can be flexibly changed according to the user's control specification and a star-shaped serial communication network with a switch module 13 incorporating a CPU system 131 as the central node and a plurality of device nodes as peripheral nodes (as shown in
Thus, data can be exchanged among the modules without any effect of skews between bits, cross talks or ground bounce, independently of the number of connected modules and at a high constant communication speed. PLCs of the building block type according to this invention are estimated to be characteristically more advantageous than the conventional ones by the parallel or serial bus method when the transmission speed through each of the serial communication lines SL1-SL4 is 2 Gbps or faster.
Although the invention was applied to PLCs of the building block type using module-connecting mechanisms of the stacking type in the embodiments described above, the invention can be broadly applied also to the PLCs of the building block type using module-connecting mechanisms of a conventional back plane method.
Of the plurality of device modules of the PLC of building block type according to this invention, one is what is herein referred to as the multi-line supporting device module that comprises a plurality of communication ports each for connecting to different one of dedicated serial communication lines and a communication interface between the plurality of communication ports and the device system inside.
The device module described above with reference to drawings is a multi-line supporting device module as defined herein, provided with two communication ports (P1 and P2) and the communication interface 112 between these two communication ports (P1 and P2) and the device system 111 which is inside so as to support two communication lines through this communication interface 112.
Moreover, this communication interface 112 comprises a transmission processing part that generates double-system transmission frames to be transmitted from individual ones of these two communication ports (P1 and P2) based on single-system original transmission data and a reception processing part that generates single-system reception frames based on double-system reception frames obtained from individual ones of these two communication ports (P1 and P2).
A functional diagram of the transmission processing part is shown in
The n-system transmission frames thus obtained are transmitted individually to the corresponding one of the serial signal lines (SL1, SL2, . . . SLn) respectively through those of the code conversion circuits 955-1-955-n, the parallel-serial conversion circuits 956-1-956-n and n differential signal pair generating circuits 957-1-957-n.
There are possibly two operation modes to be supported for the data distributor circuit 954. According to one of these operation modes, each of the plurality of transmission frames generated by the transmission processing part contains, as real transmission data, data that are identical to the original transmission data such that these identical data are transmitted repeatedly to the multi-line serial communication lines between this device module and the switch module. Explained more in detail, the operation according to this mode corresponds, for example, to the situation where, as shown in
In the other operation mode, each of the multi-system transmission frames generated by the transmission processing part contains, as real transmission data, individual divided data obtained by dividing the original transmission data into a plurality of parts such that these individual divided data are separately transmitted to different ones of the multi-line serial communication lines between this device module and the switch module. Explained more in detail, the operation according to this mode corresponds, for example, to the situation where, as shown in
A functional diagram of the reception processing part is shown in
There are possibly two operation modes to be supported by the data assembly circuit 1004. According to one of these operation modes, single-system reception data generated by the reception processing part are formed as one reception data item selected by a specified rule from the reception data contained in each of the multi-system reception frames. This corresponds to the process in the situation shown in
According to the other of the operation modes, single-system reception data generated by the reception processing part are formed as combined data obtained by combining reception data contained in the multiple-system reception frames. This corresponds to the situation shown in
Although embodiments were shown above wherein modules are connected to the right-hand side of a switch module sequentially, the other modules may be connected to both sides of the switch module in the middle. If this is done, the serial communication lines from the switch module to the other modules become shorter and hence the design of the signal lines is expected to become easier in the case of PLCs with transmission speed of 2 Gbps or faster.
Since it is basically a serial communication according to this invention, there is no need to consider the effects of skews between bits, cross talks or ground bounce, unlike the situation using a parallel bus with multidrop connection. Since dedicated serial communication lines are used instead of bus lines, furthermore, the transmission capability is not adversely affected by an increase in the number of connected modules as long the switching operations by the switch part are appropriately designed. In particular, if a plurality of lines connected in parallel are used for the serial communication lines between each device module or the CPU module and the switch module, an optimal data communication capability can be maintained according to the transmission capacity of each module.
Thus, according to this invention, an optimum transmission mode can be selected according to the current condition during the operation of the PLC because it is possible to appropriately correlate single-system original communication data and multi-line serial communication lines, instead of transmitting single-system original transmission data directly to a single-system serial communication line. At the time of reception, too, an optimum reception mode can be selected according to the current condition since multi-system reception frames can be received in correlation with single-system reception data, instead of receiving them by individually switching them.
If the serial communication lines between each device module or the CPU module and the switch module are parallel lines, and the communication interface inside a multi-line supporting type of device module is structured so as to include a transmission processing part for generating multi-system transmission frames to be transmitted individually from a plurality of communication ports based on single-system original transmission data and a reception processing part for generating single-system reception data based on multi-system reception frames obtained individually from the plurality of communication ports, it becomes possible to correlate one transmission or reception data item with serial communication serial lines with a plurality of lines such that reliable and speedy data communications are enabled.
Number | Date | Country | Kind |
---|---|---|---|
2007-059763 | Mar 2007 | JP | national |
2007-059770 | Mar 2007 | JP | national |