Final answer:
To write a PLC program that uses two up counters to turn on an output when a count is equal to 10 and turn off the output when a count is equal to 20, you can use ladder logic programming language.
Step-by-step explanation:
To write a PLC program that uses two up counters to turn on an output when a count is equal to 10 and turn off the output when a count is equal to 20, you can use ladder logic programming language. Here is the ladder diagram:
Network 1:
- Parallel branch:
- Contact: Counter 1 "DN"
- Coil: Output
Network 2:
- Normally Open (NO) branch:
- Contact: Input1 or Increment Push-button
- Coil: Counter 1
Network 3:
- Normally Open (NO) branch:
- Contact: Reset Push-button
- Coil: Counter 1 "PRE"
Remember that SLC500 counter addresses are in the format N7:x, where x represents the counter number you are using. For example, if you are using Counter 1, the address would be N7:0.