The invention pertains to programming and particularly to various communication protocols of applications. More particularly, the invention pertains to knowledge of numerous protocols needed by application engineers.
The invention is a mechanism for minimization or elimination of a need by application design engineers to have knowledge of one or more protocols while designing control logic applications. The mechanism may provide generic control logic applications that have versions automatically made to be used in controllers of various protocols.
Programming tools used by HVAC (heating, ventilation and air conditioning) application engineers may be quite complex and often expose details of the underlying communication protocols to users. This may force the application engineers to be protocol experts apart from being HVAC experts. This is not necessarily practical for an application engineer as there may be several communication protocols used in HVAC automation. Some protocols may involve those of LonTalk™ (LonTalk, Lon™, Lon), LonWorks™ (LonWorks), and BACnet (Bacnet). LonTalk and Lon are trademarks of Echelon Corp. BACnet is a communications protocol for building automation and control networks.
A Spyder™ (Spyder) programming tool may support programming of Lon Spyder controllers. Spyder is a trademark of Honeywell International Inc. Often, users may need to create the same control application twice, one for Lon Spyder and one for BACnet Spyder which can be time consuming and prone to mistakes. The applications may need to be replicated for the Lon and BACnet versions. Also, any small changes to a Lon application may need to be replicated in the BACnet version of the application.
The Spyder tool may have an application library that is used to create, modify and store Spyder applications for later use. This tool may allow engineers to design a generic application feature in the application library. When a user creates an application, the tool may automatically generate two network interface views (e.g., Lon and BACnet). The user may simply add points on the wire sheet, and tool can automatically create corresponding backend Lon network variables and BACnet objects. This way, one may keep applications generic for Lon and BACnet versions of the applications, and thus applications need not be replicated and any changes to the application may be reflected in both Lon and BACnet versions of the application.
A generic application may improve productivity of field engineers and keep the complexity of communication protocol hidden under the hoods of the system. Figures noted herein show steps that an engineer may go through to create generic applications reusable with various protocols. When an engineer drops a data point in the tool for the purpose of using it in the control logic, the tool may automatically create an underlying protocol object and maintain a mapping/reference between the point and the protocol object. The tool may maintain a reference for every protocol supported; that is, since Lon and BACnet are supported, the tool may maintain two references for every data point dropped by the user into the control logic. This approach may allow the tool to do automatic translation when the control logic is used in a target Spyder device.
The present approach may concern creating generic control applications for Spyder. The first step may be an opening the Spyder application library. This may be achieved by clicking on “window” 12 of a Niagara workbench as shown by screen 11 of
The space temp input point 16 may be connected to function block 21 with a link 38. Setpoint input point 17 may be connected to function block 21 with a link 39. An output of the PID (proportional-integral-derivative) function block 21 may be connected to an input of priority override 22 with a link 46 and life safety app may be connected to another input of priority override 22 with a link 48. An output of priority override 22 may be connected to damper output point 19.
A third step may invoke a configuration screen or menu 25 of the space temperature data point 16 by clicking on data point 16. This step and resulting menu 25 are shown by screen 24 of
“Advanced” button 28 of box 27 may be clicked on to get a dialog box or menu 31 to configure network interface specific properties. A fifth step may include configuring BACnet specific properties by selecting the respective tab 32 of dialog box 31 to get a box 81 for selection of the properties, as shown in screen 29 of
The sixth step may include configuring Lon specific properties by selecting the respective tab 33 of dialog box 31 to get a box 82 for selection of the properties, as shown in screen 34 of
The seventh step may include viewing a mapping of a data point to the network interface by accessing corresponding views as shown by screen 36 of a wiresheet in
The Spyder tool may offer a graphical environment to program the Spyder controller. One may use a wiresheet view in the engineering mode (such as an example shown in screen 36 of
One may note that changing NCI (network configuration input) values, configuration of a schedule block, or daylight savings option, puts the application in a quick download pending state. As long as the application has been downloaded at least once to the controller, these changes just trigger a quick download to the controller.
One may use the control program option to program the Spyder tool. To do this, one may expand Lon Spyder or BACnet Spyder in the Nav palette and double-click control program to display the wiresheet view; display the palette (from the menu bar, select Window>Sidebars>Palette to display the palette).
The palette may appear on the left pane with the following items. Lon Spyder is a device that one may drag on to the Lon network in the Nav palette 59 to create a new device. Note that one cannot drop this on to the wiresheet of any macro or control program or application. BACnet Spyder is a device that one may drag on to the BACnet network in the Nav palette 59 to create a new device. It may be noted that one cannot drop this on to the wiresheet of any macro or control program or application. Physical points may be modulating and binary inputs or outputs. Software points may be used to create a network input, network setpoints, or a network output.
Additional items may include analog function blocks, logic function blocks, math function blocks, control function blocks, data-function function blocks, zone arbitration function blocks, and built-in function blocks.
It may be noted that a macro may be a group of functional blocks grouped together that define a specific functionality. Commonly used program elements may be defined as macros so that they could be reused across applications. An application may include macros and logic that one can define and use in applications. Standard applications may be provided for the Spyder used to build application logic.
One may drag any of these noted items on to the wiresheet of a control program in its engineering mode and make the connections between physical points, software points, and function blocks to create a control program or an application.
A wiresheet view may be used to drag the physical points and function blocks to build the application logic. One may save a logic created to be used later and also shared with other users. One may build several applications and store them in a Spyder library along with standard applications.
After one has created the application logic and tested the logic using the simulation feature, the application logic may be downloaded to the controller. To download the application logic, one may: 1) on the Nav palette, right-click the device and select Actions>Download (the download dialog box may appear); and 2) select True under full download for a full download or false for a quick download. One may note that a quick download just downloads the modified items from a previous download where as with a full download the entire configuration may be downloaded to the controller replacing the existing configuration. However, if changes have been made to the sensor bus (SBus) wall module by an operator/tenant locally from the display on the wall module, and a full download is performed, the Spyder tool may download the entire configuration to the controller except the SBus (Sylk or sensor bus) wall module configuration. This may be done to avoid losing any changes made locally on the SBus wall module during a download operation. Then at 3), one may click OK. The application logic may be downloaded to the controller based on one's selection.
In the present specification, some of the matter may be of a hypothetical or prophetic nature although stated in another manner or tense.
Although the present system has been described with respect to at least one illustrative example, many variations and modifications will become apparent to those skilled in the art upon reading the specification. It is therefore the intention that the appended claims be interpreted as broadly as possible in view of the prior art to include all such variations and modifications.
Related co-pending applications include application Ser. No. ______, filed Dec. 30, 2009, Attorney Docket No. H0021856-1161.1446101, entitled “A Graphical Approach to Setup Data Sharing between Two Controllers”; application Ser. No. ______, filed Dec. 30, 2009, Attorney Docket No. H0021854-1161.1448101, entitled “Protocol Independent Programming Environment”; application Ser. No. ______, filed Dec. 30, 2009, Attorney Docket No. H0021855-1161.1449101, entitled “Priority Selection Mechanism for Driving Outputs from Control Logic for Controllers of Various Protocols”; application Ser. No. ______, filed Dec. 30, 2009, Attorney Docket No. H0021858-1161.1450101, entitled “An Approach to Automatically Encode Application Enumeration Values to Enable Reuse of Applications across Various Controllers”; application Ser. No. ______, filed Dec. 30, 2009, Attorney Docket No. H212859-1161.1451101, entitled “An Approach for Switching between Point Types without Affecting Control Logic”; and application Ser. No. ______, filed Dec. 30, 2009, Attorney Docket No. H0024800-1161.1479101, entitled “Changeable BACnet Interface”. Related co-pending applications include application Ser. No. ______, filed Dec. 30, 2009, Attorney Docket No. H0021856-1161.1446101, entitled “A Graphical Approach to Setup Data Sharing between Two Controllers”, is hereby incorporated by reference. Application Ser. No. ______, filed Dec. 30, 2009, Attorney Docket No. H0021854-1161.1448101, entitled “Protocol Independent Programming Environment”, is hereby incorporated by reference. Application Ser. No. ______, filed Dec. 30, 2009, Attorney Docket No. H0021855-1161.1449101, entitled “Priority Selection Mechanism for Driving Outputs from Control Logic for Controllers of Various Protocols”, is hereby incorporated by reference. Application Ser. No. ______, filed Dec. 30, 2009, Attorney Docket No. H0021858-1161.1450101, entitled “An Approach to Automatically Encode Application Enumeration Values to Enable Reuse of Applications across Various Controllers”, is hereby incorporated by reference. Application Ser. No.______ filed Dec. 30, 2009, Attorney Docket No. H212859-1161.1451101, entitled “An Approach for Switching between Point Types without Affecting Control Logic”, is hereby incorporated by reference. Application Ser. No. ______ filed Dec. 30, 2009, Attorney Docket No. H0024800-1161.1479101, entitled “Changeable BACnet Interface”, is hereby incorporated by reference. U.S. patent application Ser. No. 12/256,444, filed Oct. 22, 2008, is hereby incorporated by reference. U.S. patent application Ser. No. 11/670,911, filed Feb. 2, 2007, is hereby incorporated by reference. U.S. patent application Ser. No. 11/620,431, filed Jan. 5, 2007, is hereby incorporated by reference. U.S. patent application Ser. No. 11/427,750, filed Jun. 29, 2006, is hereby incorporated by reference. U.S. patent application Ser. No. 11/564,797, filed Nov. 29, 2006, is hereby incorporated by reference. U.S. patent application Ser. No. 11/559,706, filed Nov. 14, 2006, is hereby incorporated by reference. U.S. patent application Ser. No. 10/809,115, filed Mar. 25, 2004, is hereby incorporated by reference.