Design a PLC ladder logic program to control the operation of an alarm system consisting
of three (3) Horns (HORN_1, HORN_2, and HORN_3) and four (4) normally open input
sensors for malfunction (INPUT_1, INPUT_2, INPUT_3, and INPUT_4) using the
following sequence:
- HORN_1 must be energized if any two of the inputs are activated.
- HORN_2 and only HORN_2 must be energized if any three of the inputs are
activated.
- HORN_3 and only HORN_3 must be energized if all four inputs are activated.
- Notice that no two Horns can be activated at the same time.
- Do not use latch and unlatch instructions.
- Assign sequential addresses to the input and output devices starting from bit 1.of three (3) Horns (HORN_1, HORN_2, and HORN_3) and four (4) normally open input
sensors for malfunction (INPUT_1, INPUT_2, INPUT_3, and INPUT_4) using the
following sequence:
- HORN_1 must be energized if any two of the inputs are activated.
- HORN_2 and only HORN_2 must be energized if any three of the inputs are
activated.
- HORN_3 and only HORN_3 must be energized if all four inputs are activated.
- Notice that no two Horns can be activated at the same time.
- Do not use latch and unlatch instructions.