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 (H1
–H5
) 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
Example mapping for real hardware or the simulator:
3.3 Testing Procedures
- Tank Empty: B1, B2, B3 all OFF →
H4
should turn ON. - Too Low: Only B1 ON →
H2
ON. - Correct: B1 and B2 ON, B3 OFF →
H1
ON. - Too High: B1, B2, B3 all ON →
H3
ON. - Error Case: For instance, B3 ON while B1 is OFF →
H5
ON.