Task 2: Validation Using OpenPLC - sebastianguerra6/Workshop-3 GitHub Wiki

Task 2: Validation Using OpenPLC

3.1 OpenPLC Configuration

The ladder logic is replicated in OpenPLC. Each sensor (B1, B2, B3) and each indicator (H1H5) is mapped to an input or output. OpenPLC allows simulation or real hardware testing by assigning the variables to the correct pins.

3.2 I/O Table

image

Example mapping for real hardware or the simulator:

3.3 Testing Procedures

  1. Tank Empty: B1, B2, B3 all OFF → H4 should turn ON.
  2. Too Low: Only B1 ON → H2 ON.
  3. Correct: B1 and B2 ON, B3 OFF → H1 ON.
  4. Too High: B1, B2, B3 all ON → H3 ON.
  5. Error Case: For instance, B3 ON while B1 is OFF → H5 ON.

image