128k views
3 votes
Write PLC program that uses two up counters to turn on an output when a count is equal to 10 and will turn of the output when a count is equal to 20. A NO reser 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 ROOTKILL
by
7.9k points

1 Answer

7 votes

Final answer:

We can create a PLC program using ladder logic programming in SLC500 to turn on and off an output based on count values.

Step-by-step explanation:

To create a PLC program that uses two up counters to turn on and off an output based on count values, we can use ladder logic programming in SLC500. Here is an example program:

Input: I1 - Reset button

Input: I2 - Increment button

Output: O1 - Output

Counter: C1 - Counter 1

Counter: C2 - Counter 2

Network 1: C1.INC -| |---> C1.PRE

| |

| |

--|>[ ]--[ ]--[ ]--[ ]--[ ]--O1

| I2

|

--|>[ ]--[ ]--[ ]--[ ]--[ ]--O1

|

|

| C1=DN | C2=DN

|

[ -R | | |

|-R<--I1[ -R | | |

|-R| |-R | | |

| | |-R<--I1[ -R | |

| | |-R| |-R |

C1 reset [ ]-[ ]-[ ) ]-[ ]-O1 |

|-R | |-R

|-R<--|-R | |

| |-R |

| |

| C2 reset | |

Output O1 will turn on when the count in either C1 or C2 reaches 10, and it will turn off when the count reaches 20.

The reset button (I1) will reset both counters, and the increment button (I2) will increment either counter.

User Mango
by
7.4k points