Presentation is loading. Please wait.

Presentation is loading. Please wait.

A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.

Similar presentations


Presentation on theme: "A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department."— Presentation transcript:

1 A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department of Energy EPICS Collaboration Love Controller Support David Kline April 27, 2005

2 Asyn-based device support for the Love Controller 2 Pioneering Science and Technology Office of Science U.S. Department of Energy Contents Overview, Hardware Configurations, Communication protocol, Software Architecture, loveApp standalone application, Reporting (dbior), MEDM screens, Distribution, Improvements, Acknowledgements,

3 Asyn-based device support for the Love Controller 3 Pioneering Science and Technology Office of Science U.S. Department of Energy Overview Love Controller, -Instrument to measure voltage, current, pressure, or temperature, -Support models 1600 and 16A, -Communication is through 2-wire RS485, Device support, -Part of synApps, -Old support based on MPF, -New support based on Asyn, -The echoServer and devMPC were departure points, -Includes an interpose interface, -Standalone application is available, -IP-Octal RS232 and RS485 modules can be used, Purpose of the new device support, -Use as a learning tool for Asyn-based device support, -Migrate from the unsupported MPF to Asyn, -Appoint one as the owner of the module, -Provide OS independence,

4 Asyn-based device support for the Love Controller 4 Pioneering Science and Technology Office of Science U.S. Department of Energy Hardware Configuration – RS232 RS485 Love Controller Model 1600 1 SBS XM-Octal-IO Love Controller Model 16A 2 Love Controller Model 1600 n-1 Love Controller Model 1600 n B&B Electronics 485LDRC Converter B(+) A(-) RS485RS232 TD RD MVME5100 SBS 626 (TVME200) IP-OCTAL

5 Asyn-based device support for the Love Controller 5 Pioneering Science and Technology Office of Science U.S. Department of Energy MVME5100 Hardware Configuration – RS485 Love Controller Model 1600 1 SBS XM-Octal-IO Love Controller Model 16A 2 Love Controller Model 1600 n-1 Love Controller Model 1600 n B(+) A(-) SBS 626 (TVME200) IP-OCTAL

6 Asyn-based device support for the Love Controller 6 Pioneering Science and Technology Office of Science U.S. Department of Energy Communication 2-wire RS485, Master/slave protocol, command, response messages, Message format (simple), -Sent and received as ASCII hex, -Command: - Read: L - Write: L -Response: - Data: L - Error: L N How does device support know commands? -INP/OUT fields, -“@asyn(PORT,ADDR) CMD MODEL”,

7 Asyn-based device support for the Love Controller 7 Pioneering Science and Technology Office of Science U.S. Department of Energy Software Architecture drvAsynSerialPort asynCommon asynOctet asynOption interposeEos asynOctetBase interposeLovelink asynOctet devAsynLove MBBIBOBIAOAI asyn Port “S0”

8 Asyn-based device support for the Love Controller 8 Pioneering Science and Technology Office of Science U.S. Department of Energy loveApp standalone application Sample application, New with the release (R3-0-1), Supports vxWorks and Linux, Database with PVs for each command,

9 Asyn-based device support for the Love Controller 9 Pioneering Science and Technology Office of Science U.S. Department of Energy Reporting (dbior) General Information Controller Address Controller Model Controller Command Record Type PV Name Asyn Status Access Counter Asyn Port Name PACT State

10 Asyn-based device support for the Love Controller 10 Pioneering Science and Technology Office of Science U.S. Department of Energy MEDM screens

11 Asyn-based device support for the Love Controller 11 Pioneering Science and Technology Office of Science U.S. Department of Energy Distribution Standard directories, -Configuration, - Requires Asyn 4-2 and Ipac 2-8, -Documentation, - Controller and converter Information, - Release notes, known issues, - Wiring diagram, -Database, record instance files, -iocBoot for Linux and vxWorks (startup scripts), -MEDM displays, Contains the sources, -devAsynLove.c, -interposeLovelink.c, -devLove.cc, -loveServer.cc,

12 Asyn-based device support for the Love Controller 12 Pioneering Science and Technology Office of Science U.S. Department of Energy Improvements Current issues, -Cannot easily debug an individual controller, -Tight coupling between device support and model type (i.e. INP/OUT), -Device support controls the command / response processing, Solutions, -Develop a multidevice driver, -Employ different approach to reduce coupling,

13 Asyn-based device support for the Love Controller 13 Pioneering Science and Technology Office of Science U.S. Department of Energy Improvements – Multidevice port driver Develop a multidevice port driver, Replaces the existing interposeLovelink layer, Placed on top of drvAsynSerialPort, Creates multiple connections to an Asyn port, Allows connections to individual controllers, Monitor individual controller communication,

14 Asyn-based device support for the Love Controller 14 Pioneering Science and Technology Office of Science U.S. Department of Energy Improvements – Multidevice port driver drvAsynSerialPort asynCommon asynOctet asynOptioninterposeEos asynOctetBase asyn Port “S0” drvLove asynOctet asynOctetBase asyn Port “L0” devLove AI “L0” addr=1 AO addr=1 BI addr=3 BO addr=4 MBBI addr=5 asynCommon

15 Asyn-based device support for the Love Controller 15 Pioneering Science and Technology Office of Science U.S. Department of Energy Improvements – Different approach Modify the information supplied to INP/OUT, -“@asyn(PORT,ADDR) function”, Employ the drvAsynSerialPort and drvLove drivers, Implement an interface layer to, -Define a specific interface (i.e. ifaceLove), -Provide a methods to, - Associate the controller address with a model type, - Read and write a value, setup during record initialization, -Reduces the need for conditional statements, -Introducing new model type is cleaner,

16 Asyn-based device support for the Love Controller 16 Pioneering Science and Technology Office of Science U.S. Department of Energy Improvements – Different approach, cont… drvAsynSerialPort asynCommon asynOctet asynOptioninterposeEos asynOctetBase asyn Port “S0” asyn Port “L0” devLove Interface Love ifaceLove AI “L0” addr=1 AO addr=1 BI addr=3 BO addr=4 MBBI addr=5 asyn Port “L0” drvLove asynOctet asynOctetBase asynCommon

17 Asyn-based device support for the Love Controller 17 Pioneering Science and Technology Office of Science U.S. Department of Energy Acknowledgements Marty Kraimer, John Maclean, Ron Sluiter,

18 Asyn-based device support for the Love Controller 18 Pioneering Science and Technology Office of Science U.S. Department of Energy Thank You EPICS Collaboration Beamline Controls and Data Acquisition APS Operations Division


Download ppt "A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department."

Similar presentations


Ads by Google