Beruflich Dokumente
Kultur Dokumente
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
2 3ADR010192, 1, en_US
AC5 00 BACNET
1 Disclaimer
A. For customers domiciled outside Germany /
„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)."
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)."
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.
3ADR010192, 1, en_US 3
2 Introduction
Using any AC500 PLC requires a BACnet library. This library is licensed.
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
4 3ADR010192, 1, en_US
AC5 00 BACNET
3ADR010192, 1, en_US 5
4 BACnet in AC500 / CP600 applications
6 3ADR010192, 1, en_US
AC5 00 BACNET
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.
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.
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
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.
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.
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.
14 3ADR010192, 1, en_US
AC5 00 BACNET
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
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.
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.
3ADR010192, 1, en_US 17
Select your correct COM port. Here we are using Sub D9 COM 2 port.
The object name of the device can any name like “BACnet PM5xx Device”.
18 3ADR010192, 1, en_US
AC5 00 BACNET
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
REVISION HISTORY
__ __
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