150 likes | 346 Views
iLon. Brad Webb, SNS webbsb@ornl.gov. What Is iLon And What Is Its Purpose?. EPICS Driver. Gateway, To “CF” type systems. Typical Systems (But not limited to) Chillers… Boilers… HVAC… Variable Frequency Drives (VFDs)… LonWorks Communication Protocol. What Is LonWorks?.
E N D
iLon Brad Webb, SNS webbsb@ornl.gov
What Is iLon And What Is Its Purpose? • EPICS Driver. • Gateway, To “CF” type systems. • Typical Systems (But not limited to) • Chillers… • Boilers… • HVAC… • Variable Frequency Drives (VFDs)… • LonWorks Communication Protocol.
What Is LonWorks? • LonTalk/LonWorks • Acronym • Communication Protocol • Software • Kinda like Modbus • ANSI/CEA-709.1-B protocol • Local Operating Network • Open platform • One, configures all • Yeah, but not really
Example Of Communication… Devices speak directly to each other, using a standard of network variable types…
Who’s using Lon? • Spallation Neutron Source…
Benefits of a LonWorks system? • Your, choice of vendors. • Use of third-party tools. • Easy integration. • Easy additions and changes. • Reduced installation cost. • Lower life-cycle cost.
How does EPICS interface to LonWorks? • Echelon iLon Server. • EPICS iLon Driver. (1100001110101011) • EPICS IOC. VxWorks || Linux Network EPICS IOC SOAP/XML
About the iLon server. • Imbedded OS • Flexibility • Variable updates • VxWorks • Customizable with Eclipse • Event driven or polled
Protocol Detail Network EPICS IOC SOAP/XML
EPICS Support • Record Types: • Analog In & Out. • Binary In & Out. • MBBO In & Out. • String In & Out. • Data Types: Elements of structure.
EPICS Startup Command File…(Example “st.cmd”) • Define a server. • iLonDefineServer(“arbitraryName”, “i.p. address”, “port”) • iLonDefineServer(“iLon1”, “192.168.0.1”, “80”) • Define an alias that points to the variable in the server • iLonDefineFunctionBlock(“alias”, “networkName”, “channelName”, “serverName”, “functionBlockName”) • iLonDefineFunctionBlock(“FB1”, “SNS_BmLn”, “Channel_1”, “BmLnSmartServer”, “WebServer_0”) • Define an alias to LonMark format string (Optional) • iLonDefineFormatString(“alias”, “lonMarkFormat”) Standard Network Variable Types • iLonDefineFormatString(“state”, “SNVT_switch.state”) ON/OFF • iLonDefineFormatString(“value”, “SNVT_switch.value”) 0-100.0%
EPICS Record Example(VFD/Pump Speed and Status…) • nvoPumpSpd; (Structured SNVT, {value & state}) {55.5 1}; • AI record, that reads pump speed from ABB VFD Record(ai, “PumpSpeed”) { field(DTYP, “iLon”) field(INP, “@iLon1 FB1 ‘nviPumpSpd’ value”) • BI record, that reads pump status from ABB VFD Record(bi, “PumpStatus”) { field(DTYP, “iLon”) field(INP, “@iLon1 FB1 ‘nviPumpSpd’ state”)
Summary • iLon is industrial protocol. • There is an EPICS driver. • Operational at SNS for 1 Year, 15 devices. • For more, see: http://ics-web.sns.ornl.gov/webb/