Set counter value
This step shows you how to set the counter value to a specific value. The variable Set counter value is used to specify a value and the variable Set counter is used to set the counter value. Both variables can be controlled from the PLC.
Proceed as follows:

- 1. Use the variable Set counter value to specify a value to set as a counter value.
- 2. Then set the variable Set counter to True to apply the settings.
- Only when the variable Set counter is set to True, the value set under Set counter value is applied for the counter value.