Chapter 5 Device Counter function Each time the input switches from OFF to ON, the value of the counter is the same as the output coil. Use either the decimal constant or the value in the data register as the counter setting value. 16-bit counter: 1. Setting range: 0–32,767. The setting values 0 and 1 both mean the same thing in that the output contact is ON when the counter counts for the first time. 2. For the general-purpose counter, the current value of the counter is cleared when there is a power interruption. If the counter is latching, the current value of the counter and the state of the contact before the power interruption are retained.
The latched counter counts from the current value when the power supply is restored. 3. If you use the instruction MOV or ISPSoft to transmit a value bigger than the counter setting value to the 5_ current value register C0, the contact of the counter C0 is ON and the current value becomes the same as the counter setting value next time X0.1 switches from OFF to ON. 4. Use either the constant or the value in the data register as the counter setting value. 5. The counter setting value can be a positive or negative value. If the counter counts up from 32,767, the next value is 0. 6. Here we uses the most common application as an example.
You can use this counter with API 1003 CNT instruction; refer to CNT instruction for more description. Example: 5-17 Item 16-bit counter Reset When the instruction RST is executed, the current value is cleared to zero, and the contact is reset to OFF. Action of the contact After the scan completes, the contact acts.