Sie sind auf Seite 1von 21

AP P L I CATI O N E X AM P L E

AC500 BACNET
CONNECT A PLC TO CP600
Contents
1 Disclaimer .................................................................................................................................... 3

2 Introduction ............................................................................................................................... 4
2.1 Scope of the document ............................................................................................................. 4
2.2 Compatibility ............................................................................................................................... 4

3 BACnet protocol – what is BACnet ............................................................................................5

4 BACnet in AC500 / CP600 applications .................................................................................. 6

5 Overview of available object types ........................................................................................... 7

6 CP600 BACnet IP configuration ............................................................................................... 8

7 CP600 BACnet MS/TP configuration ...................................................................................... 11

8 AC500 BACnet IP configuration ..............................................................................................14


8.1 BACnet Server .............................................................................................................................14
8.2 BACnet Device ............................................................................................................................ 15
8.3 BACnet Device ............................................................................................................................ 16

9 AC500 BACnet MS/TP configuration ...................................................................................... 17


9.1 BACnet Server ............................................................................................................................. 17
9.2 BACnet Device ............................................................................................................................18
9.3 BACnet Device ............................................................................................................................ 19

2 3ADR010192, 1, en_US
AC5 00 BACNET

1 Disclaimer
A. For customers domiciled outside Germany /

Für Kunden mit Sitz außerhalb Deutschlands

„Warranty, Liability:

The user shall be solely responsible for the use of this products described within this file. ABB
shall be under no warranty whatsoever. ABB's liability in connection with application of the
products or examples provided or the files included within this products, irrespective of the
legal ground, shall be excluded. The exclusion of liability shall not apply in the case of inten-
tion or gross negligence. The present declaration shall be governed by and construed in ac-
cordance with the laws of Switzerland under exclusion of its conflict of laws rules and of the
Vienna Convention on the International Sale of Goods (CISG)."

„Gewährleistung und Haftung:

Der Nutzer ist allein für die Verwendung des in diesem Dokument beschriebenen Produkte
und beschriebenen Anwendungsbeispiele verantwortlich.

ABB unterliegt keiner Gewährleistung. Die Haftung von ABB im Zusammenhang mit diesem
Anwendungsbeispiel oder den in dieser Datei enthaltenen Dateien - gleich aus welchem
Rechtsgrund - ist ausgeschlossen. Dieser Ausschluss gilt nicht im Falle von Vorsatz oder gro-
ber Fahrlässigkeit. Diese Erklärung unterliegt Schweizer Recht unter Ausschluss der Verwei-
sungsnormen und des UN-Kaufrechts (CISG)."

B. Nur für Kunden mit Sitz in Deutschland

„Gewährleistung und Haftung:

Die in diesem Dokument beschriebenen Anwendungsbeispiele oder enthaltenen Dateien be-


schreiben eine mögliche Anwendung der AC500 bzw. zeigen eine mögliche Einsatzart. Sie
stellen nur Beispiele für Programmierungen dar, sind aber keine fertigen Lösungen. Eine Ge-
währ kann nicht übernommen werden.

Der Nutzer ist für die ordnungsgemäße, insbesondere vollständige und fehlerfreie Program-
mierung der Steuerungen selbst verantwortlich. Im Falle der teilweisen oder ganzen Über-
nahme der Programmierbeispiele können gegen ABB keine Ansprüche geltend gemacht wer-
den.

Die Haftung von ABB, gleich aus welchem Rechtsgrund, im Zusammenhang mit den Anwen-
dungsbeispielen oder den in dieser Datei enthaltenen Beschreibung wird ausgeschlossen.
Der Haftungsausschluss gilt jedoch nicht in Fällen des Vorsatzes, der groben Fahrlässigkeit,
bei Ansprüchen nach dem Produkthaftungsgesetz, im Falle der Verletzung des Lebens, des
Körpers oder der Gesundheit oder bei schuldhafter Verletzung einer wesentlichen Vertrags-
pflicht. Im Falle der Verletzung einer wesentlichen Vertragspflicht ist die Haftung jedoch auf
den vertragstypischen, vorhersehbaren Schaden begrenzt, soweit nicht zugleich ein anderer
der in Satz 2 dieses Unterabsatzes erwähnten Fälle gegeben ist. Eine Änderung der Beweis-
last zum Nachteil des Nutzers ist hiermit nicht verbunden.

Es gilt materielles deutsches Recht unter Ausschluss des UN-Kaufrechts."

3ADR010192, 1, en_US 3
2 Introduction

2.1 Scope of the document


This document describes an example for the communication via BACnet protocol, where an
AC500 acts as a BACnet Server and the CP600 HMI as client. At the moment, we have only
BACnet server functionality for the PLC. If you want to use any AC500 PLC as BACnet client,
please contact us.

Using any AC500 PLC requires a BACnet library. This library is licensed.

BACnet Library conforming to B-ASC Device Profile

2.2 Compatibility
The application example explained in this document have been used with the below engineer-
ing system versions. They should also work with other versions, nevertheless some small ad-
aptations may be necessary, for future versions.

 AC500 V2 PLC

 Automation Builder 1.2.4 or newer

4 3ADR010192, 1, en_US
AC5 00 BACNET

3 BACnet protocol – what is BACnet

 Xx BACnet is a data communication protocol


for Building Automation and Control networks
 BACnet is a truly open protocol
 Designed for open systems
 Original standard published 1995: ANSI standard 135
 ISO Standard 16484-5
 BACnet is a registered trademark of ASHRAE.
 American Society of Heating Ventilating and Air-Conditioning Engineers

 BACnet is not a fieldbus


 BACnet is a communication protocol for building automation systems
 BACnet is not “Plug-and-Play”
 Engineering skills are needed
 BACnet is a common language for exchanging data between different systems and
vendors.
 BACnet is vendor neutral
 BACnet International
 BIG-EU (BACnet Interest Group-Europe)

3ADR010192, 1, en_US 5
4 BACnet in AC500 / CP600 applications

Overview of an example BACnet network.

6 3ADR010192, 1, en_US
AC5 00 BACNET

5 Overview of available object types

This picture shows an overview what BACnet object types are available.

3ADR010192, 1, en_US 7
6 CP600 BACnet IP configuration

1. Inside the Panel Builder configuration we select Protocols configuration, we select BACnet
protocol
2. We enter a Panel Device ID. This is a unique ID for the panel and not be used in the BACnet
setup anymore.

3. We set an Object name for the CP600 panel like “CP635 HMI”.
4. We select the media type. In this case “IP”
5. All other settings we keep as defaults.

6. Be sure you have set the “LocalIP”. This is the IP address from the CP600 Panel itself and is
required.

8 3ADR010192, 1, en_US
AC5 00 BACNET

7. It is not necessary to edit the “Comm” settings, because we are using IP and not MS/TP.
8. After we have set the protocol settings, we will add a tag for data exchange.
9. Navigate to Tags and add a new Tag by click on the plus sign.

10. Select an Object Type, we select “Analog Input”


11. Select a “Device ID”. Ur AC500 PLC has a Device ID 40100, so, we add this value here. Later
we will see how to add the Device ID into an AC500 Function block.
12. Select a “Data Type”. Analog Input object types have always float data type.

13. Set the Object instance. For this object. This is the direct connection from the Panel to the
PLC.
14. For this example we want to read the “current value” this means we need to set 85 as an ob-
ject property. If you want to read another value like unit or something else, you need to
change the value according to the BACnet settings.

15. Keep the Write Priority to 0.

3ADR010192, 1, en_US 9
Now, have configured successfully the BACnet protocol and one tag inside the Panel.
The next step is to download the project to the Panel.
Select RUN - > Download to Target and select your connected Panel.

Once, you have selected your Panel IP address, the download is starting.

10 3ADR010192, 1, en_US
AC5 00 BACNET

7 CP600 BACnet MS/TP configuration

1. Inside the Panel Builder configuration we select Protocols configuration, we select BACnet
protocol
2. We enter a Panel Device ID. This is a unique ID for the panel and not be used in the BACnet
setup anymore.
3. We set an Object name for the CP600 panel like “CP635 HMI MSTP”.
4. We select the media type. In this case “MS/TP”
5. All other settings we keep as defaults.

3ADR010192, 1, en_US 11
6. For MS/TP, we need also to set the “Comm” settings. Please select the “Comm…” button and
set the communications settings as same as in the PLC configuration.
For CP600 Panels we have only COM 1 available.
Set your baud rate, Parity, Stop bits and Mode. We are using RS485.

7. After we have set the protocol settings, we will add a tag for data exchange.
8. Navigate to Tags and add a new Tag by click on the plus sign.

9. Select an Object Type, we select “Analog Input”


10. Select a “Device ID”. Ur AC500 PLC has a Device ID 40100, so, we add this value here. Later
we will see how to add the Device ID into an AC500 Function block.

11. Select a “Data Type”. Analog Input object types have always float data type.

12. Set the Object instance. For this object. This is the direct connection from the Panel to the
PLC.

12 3ADR010192, 1, en_US
AC5 00 BACNET

13. For this example we want to read the “current value” this means we need to set 85 as an ob-
ject property. If you want to read another value like unit or something else, you need to
change the value according to the BACnet settings.
14. Keep the Write Priority to 0.

Now, have configured successfully the BACnet protocol and one tag inside the Panel.
The next step is to download the project to the Panel.

Select RUN - > Download to Target and select your connected Panel.

Once, you have selected your Panel IP address, the download is starting.

3ADR010192, 1, en_US 13
8 AC500 BACnet IP configuration
For BACnet IP there is no special AB configuration necessary.

For PLC BACnet programming, we always need BASC_SERVER, BASC_DEVICE and optional
BACnet_Objects like BASC_ANALOG_IN, BASC_ANALOG_VAL and so on.

8.1 BACnet Server


We prefer to set the BASC_SERVER in a separate task. The inputs should be look like this
picture.

Here you can see the Server is always enabled. Com Type is set to IP (BASC_IP_COM) because
we want to use BACnet IP.

It is not possible to run BACnet IP and BACnet MS/TP in parallel.


Only one function block can be used.

Set the BACnet port. By default: 16#BAC0

14 3ADR010192, 1, en_US
AC5 00 BACNET

8.2 BACnet Device

We set the BASC Device to enable the whole time.

Also, we have set the Object ID from the device to 40100 as we have set in the Panel tag IP
configuration. This is important.

The object name of the device can any name like “BACnet PM5xx Device”.

3ADR010192, 1, en_US 15
8.3 BACnet Device

At the end we need also an object. As we have configured in the panel, we are using a
BASC_ANALOG_IN object. To enable the object, set EN to true.
Set a unique Object ID for example 40101. Remember our device has 40100
If you want to can set a unit for the input value. This value can be access by the panel via the
object property.

The “IN” value can be set and will be displayed in the panel but cannot be changed in the
panel. If you want to change or modify the value from the Panel please use a
BASC_ANALOG_VAL or BASC_ANALOG_OUT function block.

16 3ADR010192, 1, en_US
AC5 00 BACNET

9 AC500 BACnet MS/TP configuration


For BACnet MS/TP there is a special AB configuration necessary.
Please be sure you have set the same settings in the panel as here.
Be sure you have selected Telegram for RTS control. Telegram enables RS485 communication.

For PLC BACnet programming, we always need BASC_SERVER, BASC_DEVICE and optional
BACnet_Objects like BASC_ANALOG_IN, BASC_ANALOG_VAL and so on.

9.1 BACnet Server

We prefer to set the BASC_SERVER in a separate task. The inputs should be look like this pic-
ture.

Here you can see the Server is always enabled. Com Type is set to IP (BASC_MSTP_COM) be-
cause we want to use BACnet MS/TP.

It is not possible to run BACnet IP and BACnet MS/TP in parallel.


Only one function block can be used.

3ADR010192, 1, en_US 17
Select your correct COM port. Here we are using Sub D9 COM 2 port.

Set the BACnet port. By default: 16#BAC0.

Set the MSTP Master address and Max address.

9.2 BACnet Device

We set the BASC Device to enable the whole time.


Also, we have set the Object ID from the device to 40100 as we have set in the Panel tag IP
configuration. This is important.

The object name of the device can any name like “BACnet PM5xx Device”.

18 3ADR010192, 1, en_US
AC5 00 BACNET

9.3 BACnet Device

At the end we need also an object. As we have configured in the panel, we are using a
BASC_ANALOG_IN object. To enable the object, set EN to true.
Set a unique Object ID for example 40101. Remember our device has 40100

If you want to can set a unit for the input value. This value can be access by the panel via the
object property.

The “IN” value can be set and will be displayed in the panel but cannot be changed in the
panel. If you want to change or modify the value from the Panel please use a
BASC_ANALOG_VAL or BASC_ANALOG_OUT function block.

3ADR010192, 1, en_US 19
REFERENCES

Titel Document ID Revision

REVISION HISTORY

Rev. Page (P) Change Description Date/Initial


Chapter (C)

1.0 All New Document 2018-03-05


APR/IAMF/

Document Number: 3ADR010192, 1, en_US

__ __

ABB Automation Products GmbH We reserve the right to make technical We reserve all rights in this document and
Eppelheimer Straße 82 changes or modify the contents of this in the subject matter and illustrations con-
69123 Heidelberg, Germany document without prior notice. With re- tained therein. Any reproduction, disclo-
Phone: +49 62 21 701 1444 gard to purchase orders, the agreed par- sure to third parties or utilization of its
Fax : +49 62 21 701 1382 ticulars shall prevail. ABB AG does not ac- contents – in whole or in parts – is forbid-
E-Mail: plc.support@de.abb.com cept any responsibility whatsoever for den without prior written consent of ABB
www.abb.com/plc potential errors or possible lack of infor- AG.
mation in this document. Copyright© 2018 ABB. All rights reserved