1 / 28

EPICS Device/Driver for RTP Hardware: Rare Isotope Science Project (RISP)

Introducing the EPICS device/driver for RTP Hardware used in the construction of the Rare Isotope Science Project (RISP), a cutting-edge science facility in Korea. Learn about the RTP hardware, its configuration, EPICS interface, and more.

daisyl
Download Presentation

EPICS Device/Driver for RTP Hardware: Rare Isotope Science Project (RISP)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. EPICS Device/Driver for RTP Hardware 21 September 2016 Sangil Lee RISP 16-23 September 2016 Oak Ridge National Laboratory EPICS Collaboration Meeting 1

  2. Outline • Introduce RISP • RTP Hardware and Configuration • EPICS Interface • Plan • Summary

  3. RISP – Rare Isotope Science Project The RAON, heavy ion accelerator facility of Korea is under construction to support a wide range of cutting edge science programs in nuclear science, material science, bio & medical science, and astrophysics as well as atomic physics science programs. (http://www.risp.re.kr/orginfo/info_blds.do) • Construction: 2018 • Commissioning: 2021

  4. About RTP – http://www.rtpcorp.com/rtp-about.htm • History • Founded in 1968, • RTP Corp in 1997, provided high-performance data acquisition system to the worldwide nuclear market (high-performance and high-reliable I/O hardware) • Entered the safety market with SIS product offering in 2002 • : Highest speed, highest availability and integrity of any safety system. • In 2003, Dual and TMR DCS versions of the system • In 2006, Received SIL-1 to • SIL-3 certification • Recently, RTP 3000 TAS, its • Second generation Quad SIS architecture, • Providing enhanced 3oo4D technology, • MTBF numbers in excess of • 60,000 years 4

  5. About RTP • RTP Hardware • Large-scaled DCS system • High Reliability and Stability with SIL-3(Safety Integrity Level) Certification • Apply field: Mission Critical Area like Nuclear Power Plant, Gas & Oil Plant • Open Protocol • Strength • Ten Year Warranty on Hardware • Single, Dual, Triple or Quadro Modular Redundant(Reliability : 99.9999 %, 6nines) • I /O scan timemuch shorter than PLC (5 msec with 100K tags) • Archive 100K tags/sec redundantly • Stock (HW Life cycle - Korean Nuclear power plant : 40years) • Node Processor (Logic processing) + Chassis Processor (I/O scan processing) → Parallel Processing ⇒ Highest Performance • Scalability(16 chassis per Node Processor) -> 100K tags/node • EPICS device/driver developed, not completed • Cost effective (Single HW module vs Total) • IEC61131-3 standard programming languages

  6. RTP Redundant Configuration

  7. RTP Testbed with RTP 3000 Node Processor – Control Network Switch Node Processor – Chassis Processor Network Switch SwitchPower Supply • Components • Node Processor • Chassis Processor • Power Supply (220VAC) • AI Module Card(32ch) • DI Module Card(32ch) • DO Module Card(24ch) • AO Module Card (16ch) • AI Converter • Thermo Couple Sensor (1) • DI LED Ramp (4) • DO Switch(6) and LED ramp(6) • AI Volt Meter • AO Variable Resistance • Terminal Block and Cable Wiring Node processor Chassis processor AI/AO/DI/DO Module Power supply

  8. RTP Software • RTP NetArrays • Project program for development software following the IEC 61131-3 standard. • Easy to use graphical interface programming. • Provides: • Object-Oriented Programming • Ladder Logic • C++ • Structured Text • PC based Simulator • Advanced Voting Algorithms • Unlimited online downloads • Pre-configured & Comprehensive System Diagnostics • Programs SIF & Critical Control • 3 Levels of Security 11

  9. RTP Software • I/O Configuration – DI/DO, AI/AO Card • Mode Select : Depending on the model of I/O cards • Voltage: 0-10V or voltage +/-10V, • Current: 4-20mA or 0-20mA to match the channel’s input configuration. • Proof Testing : This parameter must be enabled in Safety Instrumented Systems • Error Checking • Channel Error Status • Watchdog Timer • Read-back Status 12

  10. RTP Protocol Message - 1 The total size of the frame is 1455 bytes (1 SYNC bytes + 2 LENGTH bytes + 1 NODE/PHASE byte + 1 COMMAND/RESPONSE byte + 1392 DATA bytes + 58 CRC bytes) SYNC: RTP Communicates Protocol message (frame) is preceded by a SYNC byte to guarantee synchronization. For serial communication, frame detection will not begin at the receiver until a valid SYNC byte is seen. When used with UDP/IP, the SYNC byte is still included. LENGTH: The LENGTH bytes indicates the length of the COMMAND/RESPONSE byte plus the DATA bytes. The COMMAND/RESPONSE byte should always be present, so the LENGTH byte should never be zero. The maximum number of DATA bytes is 1392 (LENGTH = 1393).

  11. RTP Protocol Message - 2 NODE/PHASE: For serial communication, the RTP target always copies the NODE/PHASE byte of a command to the NODE/PHASE byte of the response. Generally the NODE byte is set zero. COMMAND/RESPONSE: The COMMAND/RESPONSE byte contains a command to be executed by the RTP target. Commands always have the MSB set(0x80 – 0xFF) and response always have the MSB cleared (0x00 – 0x7F) If the command was processed correctly and the RTP status is OK, then a zero(0x00) will be returned in the RESPONSE byte. Otherwise, a unique RESPONSE value is returned indication the type of error that occurred.

  12. RTP Protocol Message - 3 DATA: Zero or more DATA bytes may be included in a message. The number of DATA bytes and format of the DATA bytes depends on the COMMAND. The DATA bytes will often contain integer or floating-point value. Integer values are from one to four bytes, with the Least Significant Byte first. Floating-point values are four bytes in IEEE 754 format, with the Least Significant Byte (fraction) first, and the Most Significant Byte (sign and exponent) last. The host computer should access all values in responses as bytes until they are copied, converted and aligned correctly for the host computer. CRC: The COMMAND/RESPONSE byte and DATA bytes of the message are used to compute a CRC values. A 2-byte CRC is computed for every 48 bytes of data. The computed CRCs are sent after the last data byte. If the CRCs do not match, the receiver ignores the frame. When used with UDP/IP the CRC bytes are still included. The CRCs are computed using the HDLC polynomial. The CRC accumulator must be initialized to 0xFFFF. A separate CRC is calculated for each block of 48bytes; the accumulator must be initialized for each block. The resulting CRC is the stored.

  13. RTP Protocol Message - 4

  14. RTP Protocol Message - Example • Normal Response Message (10) • Integer Single Read Command Message (9) • Integer Multiple Read • Command (11)

  15. RTP Protocol Message - code • Integer Single Read Command Message for Request • Integer Multiple Read Command Message

  16. RTP Protocol Message - Example • Normal Response Message (7) • Integer Single Write Command Message (11)

  17. RTP Protocol Message - code • Integer Single Write Command Message

  18. EPICS Device/Driver for RTP

  19. EPICS Device/Driver for RTP • EPICS Database Configuration • RTP_TEMP_TEST: temperature monitor of thermo. couple sensor • RTP_BO_TEST ~ TEST4: DI led ramp (4 ch) • RTP_BI_TEST ~ TEST6: DO contact switch (6 ch) • RTP_AO_TEST: AI volt meter control • RTP_AI_TEST: Variable resistance monitor

  20. EPICS Device/Driver for RTP • Node Number & Index Number • Record INP/OUT Filed Configuration • @RTP(CPU Node Number, Index Number) • Index Number is very important and unique number 26

  21. EPICS Device/Driver for RTP • Node Number & Index Number • Tags and I/O Arrays Browser • Check index number and node number • Index Number can be changed according to I/O configuration • Index Number must be a unique number

  22. RTP Testbed for EPICS IOC • EPICS IOC • EPICS Device Development • EPICS DB Configuration • IOC Shell Function • RTP Software • NetArrays: IO Configuration, Logic Development and Program Download to Logic Processor • PTDBM: Tag Configuration

  23. EPICS IOC Test • Channel Access test for virtual tags of RTP • - Sine value simulation

  24. EPICS IOC Test • RTD Thermocouple (Temp. Sensor(AI)) • Variable Resistance(AI)

  25. EPICS IOC Test • Voltage meter(AO) • LED/On-off Switch(DO)

  26. Plan EPICS code is not fully developed, just verified for TCP/IP communication protocol test (AI, AO, DI, DO) • EPICS device/driver upgrade • Async module • Multiple data fetch by multiple read command message • More effective UDP/IP datagram module • Apply • Run Permit System – Slow Interlock System of Machine Protection System • Totally cost effective with scalability (One node processor and extend I/O chassis) • Goal • : Cheaper than PLC, better performance

  27. Summary • RTP Hardware is • Large-scalable • High reliable and stable with NEQ and SIL-3 • Long warranty (10 year) • Fully redundant • I /O scan time very short • Open protocol (TCP, UDP) • EPICS device/driver • (https://github.com/Sangil-Lee/Work/siteApps/rtp) Also a valuable one of the control system products with EPICS.

  28. Thanks for your attention! Question? silee7103@ibs.re.kr, silee7103@gmail.com EPICS device/driver for RTP communication protocol (https://github.com/Sangil-Lee/Work/siteApps/rtp)

More Related