13
Interfacing EPICS IOCs Interfacing EPICS IOCs With Allen Bradley With Allen Bradley PLCs PLCs Applications Applications Recent enhancements Recent enhancements Backwards compatibility Backwards compatibility Reliability Reliability

Interfacing EPICS IOCs With Allen Bradley PLCs ApplicationsApplications Recent enhancementsRecent enhancements Backwards compatibilityBackwards compatibility

Embed Size (px)

Citation preview

Page 1: Interfacing EPICS IOCs With Allen Bradley PLCs ApplicationsApplications Recent enhancementsRecent enhancements Backwards compatibilityBackwards compatibility

Interfacing EPICS IOCs Interfacing EPICS IOCs With Allen Bradley PLCsWith Allen Bradley PLCs

• ApplicationsApplications

• Recent enhancementsRecent enhancements

• Backwards compatibilityBackwards compatibility

• ReliabilityReliability

Page 2: Interfacing EPICS IOCs With Allen Bradley PLCs ApplicationsApplications Recent enhancementsRecent enhancements Backwards compatibilityBackwards compatibility

EPICS device and driver EPICS device and driver support for Allen Bradley support for Allen Bradley DF1 protocolDF1 protocol

• Originally written for (and funded Originally written for (and funded by) the KECK observatoryby) the KECK observatory

• Recently updated for APT high Recently updated for APT high power RF and personnel safety power RF and personnel safety subsystemssubsystems

Page 3: Interfacing EPICS IOCs With Allen Bradley PLCs ApplicationsApplications Recent enhancementsRecent enhancements Backwards compatibilityBackwards compatibility

DF1 Driver ApplicationsDF1 Driver Applications

• IOC host architecture neutralIOC host architecture neutral– runs on PC, VME, and VXI IOCsruns on PC, VME, and VXI IOCs

• Point to point serial communicationPoint to point serial communication

• Allen Bradley Data Highway Allen Bradley Data Highway communicationcommunication– Allen Bradley KF2 standaloneAllen Bradley KF2 standalone

– Data Link DL PC low cost ISA cardData Link DL PC low cost ISA card

Page 4: Interfacing EPICS IOCs With Allen Bradley PLCs ApplicationsApplications Recent enhancementsRecent enhancements Backwards compatibilityBackwards compatibility

Recent EnhancementsRecent Enhancements

• Support for Allan Bradley PLC5 Support for Allan Bradley PLC5 architecture architecture

• Output trackingOutput tracking

• DF1 serverDF1 server

• OthersOthers

Page 5: Interfacing EPICS IOCs With Allen Bradley PLCs ApplicationsApplications Recent enhancementsRecent enhancements Backwards compatibilityBackwards compatibility

Support for Allan Bradley Support for Allan Bradley PLC5 architecturePLC5 architecture

• PLC5 addressingPLC5 addressing– Thanks to Eric Bjorklund for improved Thanks to Eric Bjorklund for improved

ASCII address parserASCII address parser

• PLC5 protocolPLC5 protocol– Data type safe R/WData type safe R/W

– Elements in filesElements in files• Improved access control granularityImproved access control granularity

Page 6: Interfacing EPICS IOCs With Allen Bradley PLCs ApplicationsApplications Recent enhancementsRecent enhancements Backwards compatibilityBackwards compatibility

Output TrackingOutput Tracking

• IOC initialization does IOC initialization does notnot block for Initial block for Initial output value query completionoutput value query completion– Output records in invalid / undefined alarm Output records in invalid / undefined alarm

state until this query completesstate until this query completes

• Output records track changes occurring Output records track changes occurring in PLC (they are processed)in PLC (they are processed)– Potential side effects when output records Potential side effects when output records

have forward linkshave forward links

Page 7: Interfacing EPICS IOCs With Allen Bradley PLCs ApplicationsApplications Recent enhancementsRecent enhancements Backwards compatibilityBackwards compatibility

DF1 serverDF1 server

• Allan Bradley PLCs see EPICS Allan Bradley PLCs see EPICS records as elements in files in a records as elements in files in a PLC5 on DH+PLC5 on DH+

• Reduced latencyReduced latency

• Occurs when record addresses data Occurs when record addresses data highway node number of IOChighway node number of IOC

Page 8: Interfacing EPICS IOCs With Allen Bradley PLCs ApplicationsApplications Recent enhancementsRecent enhancements Backwards compatibilityBackwards compatibility

Other EnhancementsOther Enhancements

• Specification of independent scan Specification of independent scan rate for each PLC5 filerate for each PLC5 file

• Each serial link or Data Highway may Each serial link or Data Highway may be assigned a different local node be assigned a different local node addressaddress

• ““drvSerial” does not delete tasks drvSerial” does not delete tasks when a link drops outwhen a link drops out

Page 9: Interfacing EPICS IOCs With Allen Bradley PLCs ApplicationsApplications Recent enhancementsRecent enhancements Backwards compatibilityBackwards compatibility

Backward compatibilityBackward compatibility

• Continue to support original addressing Continue to support original addressing and protocol of older PLCsand protocol of older PLCs– additional testing required for this versionadditional testing required for this version

• Driver no-longer aborts a write in the Driver no-longer aborts a write in the queue so that it can be combined with queue so that it can be combined with another subsequent writeanother subsequent write

Page 10: Interfacing EPICS IOCs With Allen Bradley PLCs ApplicationsApplications Recent enhancementsRecent enhancements Backwards compatibilityBackwards compatibility

ReliabilityReliability

• This driver has been supporting the APT This driver has been supporting the APT high level RF and window test systems high level RF and window test systems since the beginning of the calendar yearsince the beginning of the calendar year

• The driver has been very reliable on this The driver has been very reliable on this very lightly loaded PLC5 systemvery lightly loaded PLC5 system

• Now have operational experience with Now have operational experience with Allen Bradley Data HighwayAllen Bradley Data Highway

Page 11: Interfacing EPICS IOCs With Allen Bradley PLCs ApplicationsApplications Recent enhancementsRecent enhancements Backwards compatibilityBackwards compatibility

Getting a copy of the DF1 Getting a copy of the DF1 protocol driver described protocol driver described herehere

• KECK (Allan Honey) is the KECK (Allan Honey) is the distribution point but I have not yet distribution point but I have not yet sent them a copy of this versionsent them a copy of this version

Page 12: Interfacing EPICS IOCs With Allen Bradley PLCs ApplicationsApplications Recent enhancementsRecent enhancements Backwards compatibilityBackwards compatibility

In Memory In Memory Communication with VME Communication with VME Resident Allen Bradley Resident Allen Bradley PLC5?PLC5?• Contact Eric Bjorklund (LANL Contact Eric Bjorklund (LANL

LANSCE-6) for his driverLANSCE-6) for his driver

• Both the DF1 driver (described Both the DF1 driver (described here) and Eric’s VME driver use the here) and Eric’s VME driver use the same common PLC5 enhanced same common PLC5 enhanced device supportdevice support

Page 13: Interfacing EPICS IOCs With Allen Bradley PLCs ApplicationsApplications Recent enhancementsRecent enhancements Backwards compatibilityBackwards compatibility

ConclusionsConclusions

• The Allen Bradley DF1 device / driver The Allen Bradley DF1 device / driver support has been upgraded to support support has been upgraded to support PLC5s, output tracking, and DF1 server PLC5s, output tracking, and DF1 server operation.operation.

• It has been very reliable under It has been very reliable under continuous production, but lightly continuous production, but lightly loaded, operation of the APT high loaded, operation of the APT high power RF system.power RF system.