Giter Site home page Giter Site logo

l2si-vac-ads-interface-example's Introduction

L2SI-Vac-ADS-interface-example

This repository is a working example of the ADS interface for gauges in L2SI-Vacuum-Lib (https://github.com/pcdshub/lcls-twincat-vacuum). In the interest of keeping this example simple, the communication is unidirectional.

Terms

  • reader PLC: This is the PLC that will be reading the gauge and valve status from the target PLC. This will PLC will run the reading-plc project.
  • target PLC: This is the PLC that hosts the standard FB_MKS422 and FB_VGC structures to be read by another PLC. This PLC will run the target-plc project.

Operation

  1. Begin by selecting two PLCs on the same subnet.
  2. Select one PLC as the reader PLC (on which we will run the reading-plc project) and another as the PLC to be read from (on which we will run the target-plc project)
  3. From either PLC add a static route to the other PLC using the Static Routes tab on the Routes item in the solution explorer. By selectinig the static option in the menu for the "Target Route" and "Remote Route" both PLCs will recognize one another in a single step.
  4. Add the AMS NET ID and ADS port of the reader PLC in the ads_watch_dog FB call in MAIN in the target-plc project.
  5. Add the AMS NED ID and ADS port of the target PLC in the vgc_reader and gcc_reader FB call in MAIN in the reading-plc project.
  6. Confirm that the interface is not producing errors by checking that bError, located in vgc_reader and gcc_reader located on the reader PLC and ads_watch_dog located on the target-plc is false.
  7. Confirm that the ADS_connection_counter located on the reader PLC is rapidly escalating.
  8. Confirm that after manually changing a value in MAIN.test_gcc.IG or MAIN.test_vgc.iq_stValve on the target PLC the change propagates to the corresponding value in MAIN.gcc_reader.IG or MAIN.vgc_reader.VGC respectively
  9. If the previous three checks succeeded, the interface is functioning correctly.

l2si-vac-ads-interface-example's People

Contributors

n-wbrown avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.