Summary of the invention
Fundamental purpose of the present invention, be to address the aforementioned drawbacks, avoid defective to exist, according to the present invention, when a plurality of controllers communicate to connect, can detect untapped transmission interface in the built-in programmable logic controller (PLC) of each controller (PLC), share and the interface function setting by program setting, use as extended interface for other controller, to reduce the cost of buying expansion board.
For achieving the above object, the invention provides a kind of shared connection expanding device of controller, comprising:
A plurality of controllers, The built-in has programmable logic controller (PLC), and this programmable logic controller (PLC) has a plurality of transmission interfaces; And
Signal transmission interface, be electrically connected between above-mentioned a plurality of controller, when signal transmission interface is connected to form intercommunication, can detect the untapped transmission interface of the built-in programmable logic controller (PLC) of arbitrary controller (PLC), set and the interface function setting by sharing, can be used as the extended interface of other controller.
To achieve these goals, the invention provides a kind of expanding shared connection of controller, its method step comprises:
Provide a plurality of controllers, built-in programmable logic controller (PLC) (PLC) in each controller, a plurality of connecting interfaces, and built-in program; And
Between above-mentioned a plurality of controllers, establish a communications link, by communicate to connect detect each controller untapped transmission interface in the built-in programmable logic controller (PLC) (PLC), and untapped transmission interface shared by program set and interface function is set, use as the transmission interface that expands for other controller.
Description of drawings
Fig. 1 is that known frequency converter connecting interface expands the framework block diagram;
Fig. 2 is the shared formula expanded structure block diagram of one embodiment of the invention;
Fig. 3 is the shared formula expansion connection diagram that the present invention is applied to frequency converter embodiment;
Fig. 4 is the method step process flow diagram of one embodiment of the invention;
Fig. 5 is that the not use interface of one embodiment of the invention detects and the shared flow chart of steps of setting; And
Fig. 6 is that the call duration time of a plurality of master controllers in interface inquiry step of one embodiment of the invention divided the setting synoptic diagram.
In the accompanying drawing, the list of parts of each label representative is as follows:
Known primary clustering symbol description:
Frequency converter 1
Simulating signal connecting interface 11,12
Digital signal connecting interface 13,14
Communication connection interface 15
Primary clustering symbol description of the present invention:
Controller 2,3,4
First 2a of system
Second 4a of system
Signal transmission interface 5,9
First frequency converter 7
Second frequency converter 8
Analog input interface 21,31,41
Analog signal output interface 22,32,42
Digital signal input interface 23,33,43
Digital signal output interface 24,34,44
Communication interface 25,35,45
Digital input interface 71,72,81,82
Digital output interface 73,74,83,84
Analog input interface 75,85
Simulation output interface 76,86
Process step 600~606
Process step 610~620
Embodiment
Below in conjunction with accompanying drawing technology contents of the present invention is elaborated:
Fig. 2 is the shared connection expanding device block diagram of controller of the present invention.As shown in the figure: the shared connection expanding device of controller of the present invention comprises a plurality of controllers 2,3,4 that are electrical connection, and aforesaid each the controller all built-in programmable logic controller (PLC)s in 2,3,4 inside (PLC) (not shown), this programmable logic controller (PLC) (PLC) comprises analog input interface (Analog input) 21,31,41 to the transmission interface of the control end connection of outside; Analog signal output interface (Analog output) 22,32,42; Digital signal input interface (Digital In) 23,33,43; Digital signal output interface (Digital Out) 24,34,44 and communication interface (Communication) 25,35,45 etc.When above-mentioned controller 2,3,4 moves, if the transmission interface (empty pin position) that some controllers are arranged is not when being used, can share to another controller and use, to reach the shared utilization of transmission interface (empty pin position), can save cost and usage quantity that expansion board spends, The whole control is connected be more prone to, efficient.
Above-mentioned controller 2,3,4 is made a general reference the may command unit that has programmable logic controller (PLC) (PLC) in various, comprises any of frequency converter, server, human-computer interface device, temperature control module etc.The signal transmission interface 5 that controller is 2,3,4, be meant the intercommunication mutually that forms 2,3,4 of each controllers by CANBUS, RS485 or internetwork connection mode, by communications interface 5, controller 2,3,4 can be known the remaining each other transmission interface that is not used, and untapped transmission interface is shared to the controller use that needs.Like this, just can utilize the obsolete transmission interface of other controller to come, or give different systems and use, expand cost with effective reduction as expansion from body controller.
As shown in Figure 2, as three group controllers 2,3,4 o'clock, controller 2,4 can be set at main (master), and be divided into first 2a of system and second 4a of system, and the transmission interface of controller 3 will be split into three parts, first is the untapped digital signal input interface of programmable logic controller (PLC) (PLC) (Digital input) 33 that controller 3 is built-in, sets as sharing for controller 2, forms the connecting interface that the extendibility of controller 2 is used; Second portion is analog input interface (Analog input) 31 and digital signal output interface (Digital Out) 34; Third part is with untapped analog signal output interface of the programmable logic controller (PLC) of controller 3 (PLC) (Analog output) 32 and communication interface (Communication) 35, set as sharing and use the connecting interface that the extendibility of formation controller 4 is used for controller 4.
Fig. 3 is the shared expansion connection diagram that is applied to frequency converter embodiment of the present invention.As shown in the figure: at programmable logic controller (PLC) (PLC, when Programmable Logic-Controller) being integrated in first and second frequency converter 7,8 inside, first frequency converter 7 is electrically connected with second frequency converter 8 by signal transmission interface 9, and first and second frequency converter 7,8 is respectively equipped with two-digit input interface (DI0, DI1) 71,72,81,82; Two-digit output interface (DO0, DO1) 73,74,83,84; An analog input interface (AI0) 75,85 and simulations output interface (AO0) 76,86.
Can predict first frequency converter, 7 built-in programmable logic controller (PLC)s (PLC) by the connection of built-in program by internal signal transmission interface 9 and use a digital input interface (DI0) 71, two-digit output interface (DO0, DO1) 73,74 and analog input interfaces (AI0) 75; In other words, first frequency converter, 7 built-in programmable logic controller (PLC)s (PLC) have a untapped digital input interface (DI1) 72 and simulations output interface (AO0) 76, the user can set for other frequency converter by program and interface function and expand use, certainly the user can further cooperate the ID parameter of setting second frequency converter 8, the extendibility connecting interface that makes first frequency converter, the 7 built-in untapped digital input interface of programmable logic controller (PLC) (PLC) (DI1) 72 and simulations output interfaces (AO0) 76 be set at second frequency converter 8 uses, in other words, second frequency converter 8 can directly utilize built-in programmable logic controller (PLC) (PLC) or parameter directly to control and share a untapped digital input interface (DI1) 72 and simulations output interface (AO0) 76 of first frequency converter 7.
Since the present invention with a plurality of controllers by communicating to connect, utilize built-in program can learn each controller the built-in untapped transmission interface of programmable logic controller (PLC) (PLC), and shared and interface function setting by program setting, expand use for other controller that communicates to connect, the outside that can expand controller connects, improve its extendibility and fully use untapped transmission interface, also reduced the cost of buying and dispose expansion board.
Fig. 4 has shown the above-mentioned expanding device embodiment according to the present invention, connects the schematic flow sheet of an embodiment of extending method with the shared formula of carrying out controller, describes the operating process of the inventive method in detail.
As step 600, a plurality of controllers are provided, and in each controller, have programmable logic controller (PLC) (PLC), this programmable logic controller (PLC) (PLC) has a plurality of transmission interfaces;
In Connection Step,,, between above-mentioned a plurality of controllers, set up communicating to connect of intercommunication mutually by communications modes such as CANBUS, RS485 or networks as step 602;
Then, in detecting step, as step 604, by above-mentioned built-in program by each controller of signal transmission interface joint detection the untapped transmission interface of built-in programmable logic controller (PLC) (PLC);
Then, share in the setting step at interface, as step 606, outside according to each controller connects the control requirement, with each controller of above-mentioned detection the built-in untapped transmission interface of programmable logic controller (PLC) (PLC), share setting and interface function setting by program, use as the connecting interface that expands for other controller that communicates to connect.
Fig. 5 has shown that the shared formula of controller of the present invention connects extending method, in detecting the shared setting of step and interface step, does not use the detection of transmission interface and shares the steps flow chart of setting for programmable logic controller (PLC) in the controller (PLC), comprising:
Start each controller, as step 610, the master controller that comprises at least one setting that communicates to connect (as shown in Figure 2, controller 2,4 is set at main (master)), and at least one is set at slave controller (as shown in Figure 2, controller 3 is set at the controller that can share transmission interface), master controller judges whether use expansion programmable logic controller (PLC) (PLC) function;
Postpone and the warming-up step, as step 612, behind above-mentioned each controller setting up procedure, use the function that expands programmable logic controller (PLC) (PLC) if desired, then master controller can postpone a period of time wait warming-up, and this warming-up program is to pass through parameter-definition by the user;
Expand in the determination step at interface,, whether will use the function that expands programmable logic controller (PLC) (PLC) according to parameter decision by the master controller of setting as step 614;
Interface inquiry step, whether master controller will read each slave controller through communicating to connect again according to parameter decision, as step 616; If be set at be, whether master controller will send interrogating signal one by one has sharable transmission interface to each slave controller inquiry, and slave controller detects and sends the signal that untapped transmission interface is arranged oneself automatically according to the query signal, as step 618, in other words, if master controller is carried out the inquiry of not using interface to a slave controller, return path signal is when not having to share interface, master controller can wait a period of time earlier, waiting time is to pass through parameter setting by the user, and lasting master controller has by the time been inquired all slave controllers;
In addition, under the situation that is provided with a plurality of master controllers (Master), in above-mentioned interface inquiry step, each master controller (Master) is by communicating to connect to each slave controller to send whether sharable transmission interface interrogating signal is arranged, cause blurring for fear of sending simultaneously, the call duration time that interrogating signal transmits is set by dividing, if 4 master controllers (Master) are arranged, then call duration time is divided into 4 equal portions, as shown in Figure 6, wherein set and use by first master controller (Master) in the transmission channel of the first section time, and use by second master controller (Master) in the transmission channel of the second section time, by that analogy, and cycling, just can realize each master controller (Master) inquires whether each slave controller has sharable transmission interface, and slave controller detects and sends the signal that untapped transmission interface is arranged oneself automatically according to the query signal.
The correspondence that interface is shared is set step, and as step 620, master controller is carried out the inquiry result who obtains according to each step of above-mentioned interface inquiry step, can carry out internal processes to change corresponding slave controller and untapped transmission interface thereof.
Being set as follows of the parameter literary style of above-mentioned corresponding slave controller in programmable logic controller (PLC) (PLC), for example the literary style of input of user's numeral and output interface is 0xAABB, wherein AA is the name of station of slave controller slave station, and BB is numeral input and the output of sharing.In addition, analog input and output interface be for corresponding to 2 inner buffers of programmable logic controller (PLC) (PLC), and one of them is corresponding to from the station control name, and another is a numerical value, is 0~FFFF as the numerical value in 16.
Share extending method by above-mentioned interface, the transmission interface that makes the built-in programmable logic controller (PLC) of each controller (PLC) is by efficient application, the user can set up the untapped transmission interface of each controller on their own to share to other controller use simultaneously, and the function of setting each the untapped transmission interface that is shared, thereby reach the maneuverability of expansion, and reduce the cost of purchasing expansion board in addition.
The above is the preferred embodiments of the present invention only, is not so promptly limits claim of the present invention, and the equivalence that claim and description are carried out according to the present invention changes or modifies, and should belong to patent covering scope of the present invention.