The Counter instruction counts up, down, or both in response to OFF-to-ON transitions of enabling rungs. It stores the current count in a register and turns on a completion bit when the count reaches the set point. A reset rung clears the completion bit.
| Language | ladder |
|---|---|
| Code | Counter |
| Group | Counter |
| Name | Data type | Description |
|---|---|---|
| Counter Number | CT memory type | Assigns the counter number. |
| Set Point | Integer constant or DS/DD address | Target count value. |
| Count Type | selection | Count Up, Count Down, or Count Up & Down. |
| Current Value | Counter Data register | Holds the current count; automatically assigned from the counter number. |
| Completion Bit | CT bit | Turns ON when current value reaches the set point; same as counter number. |