epics support for building automation i.e. “bacnet · 2 managed by ut-battelle...

16
EPICS support for Building Automation i.e. “BACnetBrad Webb, SNS [email protected]

Upload: others

Post on 08-Oct-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: EPICS support for Building Automation i.e. “BACnet · 2 Managed by UT-Battelle Presentation_namefor the U.S. Department of Energy What Is BACnet? •Data communication protocol

EPICS support for

Building Automation

i.e. “BACnet”

Brad Webb,

SNS

[email protected]

Page 2: EPICS support for Building Automation i.e. “BACnet · 2 Managed by UT-Battelle Presentation_namefor the U.S. Department of Energy What Is BACnet? •Data communication protocol

2 Managed by UT-Battelle for the U.S. Department of Energy Presentation_name

What Is BACnet?

• Data communication protocol.

• Stands for: Building Automation and Control Networks.

• Developed by ASHRAE ~1987.

Page 3: EPICS support for Building Automation i.e. “BACnet · 2 Managed by UT-Battelle Presentation_namefor the U.S. Department of Energy What Is BACnet? •Data communication protocol

3 Managed by UT-Battelle for the U.S. Department of Energy Presentation_name

Example Of BACnet Network.

Page 4: EPICS support for Building Automation i.e. “BACnet · 2 Managed by UT-Battelle Presentation_namefor the U.S. Department of Energy What Is BACnet? •Data communication protocol

4 Managed by UT-Battelle for the U.S. Department of Energy Presentation_name

Process Automation

Vs.

Building Automation

Page 5: EPICS support for Building Automation i.e. “BACnet · 2 Managed by UT-Battelle Presentation_namefor the U.S. Department of Energy What Is BACnet? •Data communication protocol

5 Managed by UT-Battelle for the U.S. Department of Energy Presentation_name

BACnet?

Page 6: EPICS support for Building Automation i.e. “BACnet · 2 Managed by UT-Battelle Presentation_namefor the U.S. Department of Energy What Is BACnet? •Data communication protocol

6 Managed by UT-Battelle for the U.S. Department of Energy Presentation_name

How does EPICS interface to BACnet?

• Physically.

• Ethernet (BACnet/IP)…

• Twisted-Pair (MSTP)…

• Mentally (software).

• EPICS BACnet support drivers…

Page 7: EPICS support for Building Automation i.e. “BACnet · 2 Managed by UT-Battelle Presentation_namefor the U.S. Department of Energy What Is BACnet? •Data communication protocol

7 Managed by UT-Battelle for the U.S. Department of Energy Presentation_name

Inside a BACnet device.

• BACnet Device Object Example…

BACnet Device

OBJECT TYPE DESCRIPTION

(0) Analog Input Resistivity?

(1) Analog Output Positioner?

(3) Binary Input Interlock?

(4) Binary Output Enable/Disable?

Page 8: EPICS support for Building Automation i.e. “BACnet · 2 Managed by UT-Battelle Presentation_namefor the U.S. Department of Energy What Is BACnet? •Data communication protocol

8 Managed by UT-Battelle for the U.S. Department of Energy Presentation_name

Inside a BACnet device.

• BACnet Object & Properties…

BACnet Device

OBJECT TYPE PROPERTIES VALUE

(0) Analog Input

(85) Present_Value: 27.0237689

(77) Object_Name: “Resistivity_1”

(79) Object_Type: Analog-Input

(81) Out_Of_Service:

FALSE

(117) Units: Rs

Page 9: EPICS support for Building Automation i.e. “BACnet · 2 Managed by UT-Battelle Presentation_namefor the U.S. Department of Energy What Is BACnet? •Data communication protocol

9 Managed by UT-Battelle for the U.S. Department of Energy Presentation_name

How does EPICS interface to BACnet?

(Continued.)

• BACnet “Services” Supported:

• Who-Is and I-Am

• Read-Property

• Write-Property

• Subscribe-COV

Page 10: EPICS support for Building Automation i.e. “BACnet · 2 Managed by UT-Battelle Presentation_namefor the U.S. Department of Energy What Is BACnet? •Data communication protocol

10 Managed by UT-Battelle for the U.S. Department of Energy Presentation_name

EPICS Record Support?

• Record Types Supported:

• Analog In & Out.

• Binary In & Out.

• MBBI.

• String-In.

Page 11: EPICS support for Building Automation i.e. “BACnet · 2 Managed by UT-Battelle Presentation_namefor the U.S. Department of Energy What Is BACnet? •Data communication protocol

11 Managed by UT-Battelle for the U.S. Department of Energy Presentation_name

EPICS Startup Command File…

(Example “st.cmd”)

• Define a BACnet field-device (i.e. a server). • bacnetDefineServer(<arbitraryName>, <instance number>, <port>, <poll-delay ms>)

• bacnetDefineServer(“siemens_1”, “8025”, “47808”, “25”)

• bacnetDefineServer(“siemens_2”, “8026”, “47808”, “25”)

• bacnetDefineServer(“jci_1”, “2025”, “47808”, “25”)

• …

Page 12: EPICS support for Building Automation i.e. “BACnet · 2 Managed by UT-Battelle Presentation_namefor the U.S. Department of Energy What Is BACnet? •Data communication protocol

12 Managed by UT-Battelle for the U.S. Department of Energy Presentation_name

EPICS Record Example.

• AI record example: record(ai, “DTL:TT2101:F”) {

field(DTYP, “BACNet”)

field(INP, “@siemens_1 0 4 85”)

field(SCAN, “1 second”)

}

• AI record example (COV): record(ai, “DTL:TT2101:F”) {

field(DTYP, “BACNet”)

field(INP, “@siemens_1 0 1 85 c60”)

field(SCAN, “1 second”)

}

Page 13: EPICS support for Building Automation i.e. “BACnet · 2 Managed by UT-Battelle Presentation_namefor the U.S. Department of Energy What Is BACnet? •Data communication protocol

13 Managed by UT-Battelle for the U.S. Department of Energy Presentation_name

EPICS Record Example.

• field(INP,@siemens_1 0 4 85)

Device Name

Object Type (Enum)

Object Instance

Property ID (Enum)

Page 14: EPICS support for Building Automation i.e. “BACnet · 2 Managed by UT-Battelle Presentation_namefor the U.S. Department of Energy What Is BACnet? •Data communication protocol

14 Managed by UT-Battelle for the U.S. Department of Energy Presentation_name

Summary

• BACnet is industrial protocol.

• There is an EPICS driver.

• Operational at SNS for <1 Year.

• For more, see: http://ics-web.sns.ornl.gov/webb/

Page 15: EPICS support for Building Automation i.e. “BACnet · 2 Managed by UT-Battelle Presentation_namefor the U.S. Department of Energy What Is BACnet? •Data communication protocol

15 Managed by UT-Battelle for the U.S. Department of Energy Presentation_name

Who’s using BACnet?

• Spallation Neutron Source…

• Fritz-Haber-Institute in Berlin, Germany.

Page 16: EPICS support for Building Automation i.e. “BACnet · 2 Managed by UT-Battelle Presentation_namefor the U.S. Department of Energy What Is BACnet? •Data communication protocol

16 Managed by UT-Battelle for the U.S. Department of Energy Presentation_name

Process Automation

Vs.

Building Automation