Summary of the invention
The object of this invention is to provide a kind of designs simplification, reduce costs, the bus system of increased functionality, to meet user's user demand.
For realizing object of the present invention, the invention provides a kind of industrial field bus system, described system comprises: PLC controller, gateway, I/O module and spot sensor, described PLC controller is connected by industrial field bus with described gateway, described gateway is connected by internal bus with described I/O module, described I/O module is connected with described spot sensor, described spot sensor is for gathering the data of industry spot, described I/O module is for processing the data of the described industry spot of described spot sensor collection after encapsulation, by described internal bus, send to described gateway, described gateway is for the data of the described industry spot after described I/O resume module is encapsulated, process after encapsulation, by described industrial field bus, send described PLC controller, described in each, gateway is connected with a plurality of described I/O modules, being connected with same described gateway and belonging between a plurality of described I/O module of same branch road is the multistage connection of I/O module, the multistage connection of described I/O module refers to, described in each, I/O module includes an input channel and an output channel, I/O module described in former and later two of adjacent connection, described rear I/O module input channel is connected with the output channel of described front I/O module, and the input channel of first described I/O module is connected with the I/O module interface of described gateway.
Wherein, described in each, gateway comprises a plurality of I/O module interfaces, and described in each, I/O module interface is used for connecting a described branch road.
Wherein, described in each, PLC controller is connected with a plurality of described gateways, and between a plurality of described gateway being connected with same described PLC controller, be the multistage connection of gateway, the multistage connection of described gateway refers to, described in each, gateway includes an input channel and an output channel, former and later two gateway modules of adjacent connection, described rear gateway module input channel is connected with the output channel of described front gateway module, and the input channel of first described gateway is connected with described PLC controller.
Wherein, the communication cable being connected with described I/O module and the integrated setting of primary power cable, auxiliary power supply source cable divides and is arranged; When described I/O module is only opened input function, described auxiliary power supply source cable does not connect; When described I/O module is opened input function, and while opening output function, if when output function does not reach preset value, described auxiliary power supply source cable does not connect simultaneously; When described I/O module is opened input function, and while opening output function simultaneously, if when output function reaches preset value, the I/O module that described auxiliary power supply source cable independently reaches preset value for described output function connects powers; The input function of described I/O module refers to convert electrical signals to digital signal and sends described gateway to, and the input function of described I/O module refers to that digital signal is converted to electric signal sends described spot sensor to.
Wherein, described I/O module comprises: bus is installed earth point and power ground point, described bus is installed earth point and described power ground point is provided with common ground choice structure, described choice structure altogether comprises bus earth lead, power ground wire, conducting nut, when described conducting nut is screwed into described I/O module housing bus installation ground hole, described bus earth lead and the conducting of power ground wire, realize altogether.
Wherein, described I/O module comprises: I/O module working station indicator and spot sensor working station indicator.
Wherein, the mailing address of described I/O module is set separately or is distributed by described gateway, and the mailing address of described I/O module is set and referred to separately, is described I/O module assignment fixed address; Describedly by described gateway, distributed and referred to, after described system powers on, gateway is given the automatic distribution address of carrying out described I/O module in the order of connection.
Wherein, described PLC controller is that described gateway and described I/O module are carried out online upgrading by described industrial field bus and described internal bus.
Wherein, when extremely, reporting to the police to described gateway by described internal bus appears in described I/O module, described gateway is reported to the police to described PLC controller by described industrial field bus again; If described gateway occurs abnormal, by described industrial field bus, to described PLC controller, report to the police.
Wherein, described gateway and described I/O module all adopt encapsulation technology, are 6 grades of dustproof and 7 grades of antiseepages.
Beneficial effect of the present invention is, compared with prior art, can realize the multistage connected mode of I/O module, each I/O module possesses cascade function, changed field bus system of the prior art, structure of the present invention has been carried out simplification, has reduced equipment and cable use cost, has been made to utilize a PLC controller can realize the functional coverage of larger industry spot, has met user's user demand.
Embodiment
In order to make object of the present invention, technical scheme and beneficial effect clearer, below in conjunction with embodiment, the present invention is further elaborated.Should be understood to specific embodiment described herein only in order to explain the present invention, be not limited to protection scope of the present invention.
As shown in Figure 1, the invention provides a kind of bus system, described system comprises: PLC controller, gateway, I/O module and spot sensor, described PLC controller is connected by industrial field bus with described gateway, described gateway is connected by internal bus with described I/O module, described I/O module is connected with described spot sensor, described spot sensor is for gathering the data of industry spot, described I/O module is for processing the data of the described industry spot of described spot sensor collection after encapsulation, by described internal bus, send to described gateway, described gateway is for the data of the described industry spot after described I/O resume module is encapsulated, process after encapsulation, by described industrial field bus, send described PLC controller, described in each, gateway is connected with a plurality of described I/O modules, being connected with same described gateway and belonging between a plurality of described I/O module of same branch road is the multistage connection of I/O module, the multistage connection of described I/O module refers to, described in each, I/O module includes an input channel and an output channel, I/O module described in former and later two of adjacent connection, described rear I/O module input channel is connected with the output channel of described front I/O module, and the input channel of first described I/O module is connected with the I/O module interface of described gateway.
Described in each, gateway comprises a plurality of I/O module interfaces, and described in each, I/O module interface is used for connecting a described branch road.
As shown in Figure 3, in embodiments of the present invention, above-mentioned gateway can be provided with a plurality of I/O module interfaces, according to the quantity of user's request I/O module interface.Preferably in embodiment, above-mentioned gateway comprises four I/O module interfaces, each I/O module interface connects a branch road, can connect a plurality of I/O modules, as shown in Figure 2, each I/O module has an input channel and an output channel, the multistage connection between the end to end a plurality of I/O modules that realize on the branch road being connected with a certain I/O module interface of gateway of a plurality of I/O modules.
In a word, in the present invention, each I/O module possesses cascade function, and each branch road all can be realized cascade expanded function (maximum 31 I/O modules), increases I/O point quantity, and being applicable to meeting has a large amount of I/O point demands in region not far from one another; The simple cable connecting communication distance of above-mentioned branch road can reach 1200 meters farthest, if increase repeater and accessory power supply communication distance can reach 9.6 kilometers, if use optical fiber and accessory power supply communication distance are farther, can meet the demand that different region I/O is ordered.
As shown in Figure 1, in the embodiment of the present invention, described in each, PLC controller can be connected with a plurality of described gateways, and between a plurality of described gateway being connected with same described PLC controller, be the multistage connection of gateway, the multistage connection of described gateway refers to, described in each, gateway includes an input channel and an output channel, former and later two gateway modules of adjacent connection, described rear gateway module input channel is connected with the output channel of described front gateway module, and the input channel of first described gateway is connected with described PLC controller.
Above-mentionedly by gateway, carry out cascade, employing meets the gateway of communication protocol, can in the communication network of this agreement, normally use, and can not impact other equipment in system, can directly utilize existing bus protocol in factory, not need for its independent organization network.
As shown in Figure 1, in the embodiment of the present invention, the communication cable and the primary power cable that are connected with described I/O module can integratedly arrange, and auxiliary power supply source cable can divide and is arranged; When described I/O module is only opened input function, described auxiliary power supply source cable does not connect; When described I/O module is opened input function, and while opening output function, if when output function does not reach preset value, described auxiliary power supply source cable does not connect simultaneously; When described I/O module is opened input function, and while opening output function simultaneously, if when output function reaches preset value, the I/O module that described auxiliary power supply source cable independently reaches preset value for described output function connects powers; The input function of described I/O module refers to convert electrical signals to digital signal and sends described gateway to, and the input function of described I/O module refers to that digital signal is converted to electric signal sends described spot sensor to.
The communication cable of above-mentioned I/O module and primary power cable integrate, and separately, current drain distributes rationally auxiliary power supply source cable; Only need connecting communication cable just can make module normally work, and use input function, do not need auxiliary power supply cable.Use output function, but output function is when less demanding, still can be without auxiliary power supply cable.Use output function, and output function is when have relatively high expectations, and only needs to required module, to use and want auxiliary power supply cable separately, adopts such power supply mode, can effectively reduce wiring cost nearby.Above-mentioned I/O module, when the larger current signal output of needs, can power separately, thereby can meet the high-power output requirement of I/O point.In the present invention, I/O point can be used as spot sensor entrance.I/O module input function is to become digital signal to send gateway to converting electrical signal, and output function is contrary, is that the digital signal conversion of gateway is become to electric signal; Switching value refers to the signal of only opening and close (or 1 and 0) two states; Switching value: divide by voltage levvl, have 220VAC, 110VAC, 24VDC; Refer to 24VDC herein, 1 is 24V, and 0 is 0V;
In the embodiment of the present invention, described I/O module can comprise: bus is installed earth point and power ground point, described bus is installed earth point and described power ground point is provided with common ground choice structure, described choice structure altogether comprises bus earth lead, power ground wire, conducting nut, when described conducting nut is screwed into described I/O module housing bus installation ground hole, described bus earth lead and the conducting of power ground wire, realize altogether.
Above-mentioned I/O module bus connection is carried out bridge joint by RS-485, in some special application scenarios, the signal ground of a low-resistance requisite wire in transmission network need to be coupled together the place of working of two interfaces, make common mode disturbance voltage VGPD by short circuit.For convenience of user, access this earth point, be designed with bus ground hole position is installed in I/O module, when using fixed screw directly to join with I/O module, this point can communicate by power ground;
In the embodiment of the present invention, can described I/O module comprise: I/O module working station indicator and spot sensor working station indicator.
Above-mentioned employing pilot lamp mode is indicated product working status: the duty that represents I/O point and module with different pilot lamp.The duty that near pilot lamp I/O point indicates I/O to order, the duty of the pilot lamp indicating module in module, simply clear.
In the embodiment of the present invention, the mailing address of described I/O module is set separately or is distributed by described gateway, and the mailing address of described I/O module is set and referred to separately, is described I/O module assignment fixed address; Describedly by described gateway, distributed and referred to, after described system powers on, gateway is given the automatic distribution address of carrying out described I/O module in the order of connection.
Setting separately I/O module's address can use I/O module to have specific address function, user can be appointed as I/O module by special instruction the I/O module with fixed address, now this I/O module can only be placed on the position being consistent with self fixed address, if the too much said method of I/O module using is not easy to use, can adopt the moving address function that distributes of gateway oneself, user only need to after end to end getting well power on I/O module successively before system powers on to system, gateway can distribute the address of I/O module in order automatically; Above-mentioned gateway is by carrying out address setting by waterfall sequence between I/O module to the address setting of I/O module, and the method has been cast out the physical interface that I/O module's address is set, and has also reduced user's workload, has greatly improved the pattern of carrying out of existing I/O module;
In the embodiment of the present invention, described PLC controller is that described gateway and described I/O module are carried out online upgrading by described industrial field bus and described internal bus.
I/O module possesses online upgrading function, use and be connected with host computer with the interface of I/O module same bus agreement, by host computer, by special instruction, guide I/O module to enter online upgrading pattern and can carry out upgrade function, after upgrading completes, module can normally enter operational module, need not remove and install again;
In the embodiment of the present invention, when extremely, reporting to the police to described gateway by described internal bus appears in described I/O module, described gateway is reported to the police to described PLC controller by described industrial field bus again; If described gateway occurs abnormal, by described industrial field bus, to described PLC controller, report to the police.
In online mode, carry out detection and the maintenance of product: I/O module and gateway carry out Real-Time Monitoring to self duty, if extremely will report to the police to gateway immediately appears in I/O module.Gateway reinforms PLC controller.If there is extremely directly notifying PLC controller in gateway.Simultaneous faults point is reported to the police with pilot lamp form, conveniently monitors, searches and keep in repair.
In addition, in a preferred embodiment, the present invention has also comprised: gateway and I/O module all adopt encapsulation technology.Reach 6 grades of dust-proof effects, dust can not enter interiors of products completely; Reach 7 grades of anti-seepage effects, the lower 1 meter of depth of water of normal temperature and pressure can not have any impact to product simultaneously.
Internal communication mode can be selected the various ways such as RS422 or RS485: the communication between I/O module and gateway adopts the various ways such as RS422 or RS485, technology maturation, and antijamming capability is strong, and wiring is simple.
Can take M8 or M12 connector: gateway and I/O module all adopt the common universal interface of industry spot, bus portion adopts respective bus agreement regulation interface, is applicable to most client's conventional demand.Can accept customer requirement and customize separately the corresponding interface, meet the individual demand of particular client simultaneously.
Corresponding different bus agreement has multiple gateway optional, and the corresponding different functions of using have multiple I/O module optional, and the various combination of gateway and I/O module just can be realized the application scheme of abundant species.If want, change bus protocol, only need to change gateway, save cost.If want, increase function and only need increase I/O module, and the point of interface reasonable quantity of each I/O modular design, both guaranteed sufficient redundancy, do not have again unnecessary waste.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.