The input of 16 road digital quantities, output-controlling device based on the general controls bus
Technical field
The utility model relates to a kind of automatic building control system, particularly discloses a kind of input of 16 road digital quantities, output-controlling device based on the general controls bus, realizes controls automatically such as digital quantity I/O control, RS485 bus communication.
Background technology
In recent years, along with the rapid emergence of China's rapid economy development and real estate market, industrial building is more strong to the demand of intelligent building control product.And the intelligent building that often uses on the market control product is based on the total line products of LON, thus the inconvenience of having given field adjustable, maintenance, mounting strap.
For field control, the present controller that is based on the LON bus that generally uses, this just requires the commissioning staff can skillfully use programming language, the interface configuration of this controller, project field adjustable difficulty is big, wayward on the other hand, therefore will inevitably produce many problems in the work progress at the scene.
Summary of the invention
The purpose of this utility model is to address the deficiencies of the prior art, design a kind of input of 16 road digital quantities, output-controlling device based on the general controls bus, use the ModBUS agreement, carry out communication by the RS485 bus interface, realized that problems such as satisfying industry spot by serial communication control commonly used controls, and the project field adjustable difficulty that exists for prior art is big, wayward provide practicable solution and technological means.
The utility model is achieved in that a kind of 16 road digital quantities input based on the general controls bus, output-controlling device, it is characterized in that: comprise kernel control module and interface circuit two parts composition, described interface circuit comprises the RS485 bus interface that links to each other with kernel control module, the digital quantity input/output interface, power interface circuit, described kernel control module comprises a main control chip, described main control chip is the ATMEGA128 chip, it earlier respectively with RS485 bus communication chip, the data selector chip, addressing latch chip connects corresponding interface circuit respectively after linking to each other again.The main control chip of described kernel control module is the ATMEGA128 chip that American ATMEL is produced.
The beneficial effects of the utility model are: the utility model is integrated with digital-quantity input interface, digital-quantity output interface, RS485 bus interface, power interface, kernel control module circuit etc., has realized on-the-spot building automatic control.
Description of drawings
Fig. 1 is the utility model structured flowchart.
Embodiment
With reference to the accompanying drawings, the utility model a kind of input of 16 road digital quantities, output-controlling device based on the general controls bus, its structure comprises kernel control module and interface circuit two parts composition.Wherein interface circuit also comprises some external interfaces, as RS485 bus interface, digital-quantity input interface, digital-quantity output interface, power interface, kernel control module mainly comprises a main control chip and relevant peripheral matched circuit, this kernel control module respectively with after RS485 bus communication chip, data selector chip, addressing latch chip link to each other, connects corresponding interface circuit respectively earlier again.In addition, power interface also is the kernel control module power supply.The ATMEGA128 chip that the main control chip of kernel control module adopts American ATMEL to produce.
The concrete course of work of the present utility model is as follows:
After the normal startup of the utility model, when having action, external unit can get access to signal by digital-quantity input interface, deliver to kernel control module again, through main control chip data are handled, deliver to host computer by the RS485 bus interface again.The main control chip of kernel control module receives order from host computer by the RS485 bus interface, and data is carried out in order handle, and controls outer end equipment by digital quantity amount output interface again.
The utility model uses the ModBUS agreement, carry out communication by the RS485 bus interface, realized satisfying industry spot control by serial communication control commonly used, for problems such as project field adjustable difficulty is big, wayward provide practicable solution and technological means.
Above embodiment is only for the usefulness that the utility model is described; but not to restriction of the present utility model; those skilled in the art are under the situation that does not break away from spirit and scope of the present utility model; can also make various being equal to or equivalent conversion or variation; its technical scheme also should belong to category of the present utility model, and protection domain of the present utility model limits with claim of the present utility model and is as the criterion.