Task 3: Report and Documentation - sebastianguerra6/Workshop-3 GitHub Wiki

Task 3: Report and Documentation

4.1 Design Process Explanation

  1. Tank Level States: Defined the necessary states (empty, low, correct, high, error).
  2. Ladder Logic: Implemented rungs based on sensor inputs and required outputs.
  3. CODESYS HMI: Created a visualization to simulate sensor toggles and view LED indicators.
  4. OpenPLC Validation: Confirmed the logic works on a separate platform, ensuring compatibility with real hardware.

4.2 Implementation and Testing Notes

  • Implementation:
    • All variables are declared globally for easy reference in both CODESYS and OpenPLC.
    • The HMI uses dynamic properties to update colors or show/hide indicators based on boolean variables.
  • Testing:
    • Each sensor combination was tried to verify that the corresponding output LED behaves correctly.
    • Error states (physically impossible scenarios) trigger H5 as intended.