187k views
3 votes
Write a PLC program that uses two up-counters to turn on an output when a count is less than 10 and when the count is greater than or equal to 20 . A NO reset push-button input will reset the counters, and another NO push-button will cause the counters to increment. You must use only needed counter bits (no Chapter 10 comparison instructions). Use correct SLC500 counter addresses.

User Kwah
by
8.1k points

1 Answer

4 votes

Final answer:

To write a PLC program that uses two up-counters to turn on an output when the count is less than 10 and when the count is greater than or equal to 20, you can use ladder logic programming.

Step-by-step explanation:

To write a PLC program that uses two up-counters to turn on an output when the count is less than 10 and when the count is greater than or equal to 20, you can use ladder logic programming. Below is an example program:

OTE O:2/0 // Output to be turned on when conditions are met

XIC I:1/0 // NO push-button input for incrementing counters
OTE O:2/1 // Output for incrementing counters
TON TOF_Counter_1, 1s // 1-second timer to increment Counter_1
TON TOF_Counter_2, 1s // 1-second timer to increment Counter_2


To make this program work:
  1. Connect the NO reset push-button input to I:1/0.
  2. Connect the NO push-button for incrementing counters to I:1/1.
  3. Use the appropriate counter addresses for Counter_1 and Counter_2 in the TON instructions (TOF_Counter_1 and TOF_Counter_2).

User Adamfowlerphoto
by
8.2k points