Chapter 2 Devices 2.2.11 Counters Characteristics of the 16-bit counter 2_ Function of the counter Each time the input switches from OFF to ON, the value of the counter is the same as the output coil. You can 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 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 power is lost.
If the counter is latching, the current value of the counter and the state of the contact before power was lost power are retained. The latched counter counts from the current value when the power supply is restored. 3. If you use the MOV instruction or ISPSoft to transmit a value larger than the counter setting value to the current value register C0, the contact of the counter C0 is ON and the current value becomes the same as the counter setting value the next time X1 switches from OFF to ON. 4. You can use either the constant or the value in the data register as the counter setting value. 5. The counter setting value can be positive or negative.
If the counter counts up from 32,767, the next value is 0. 2-47 Item 16-bit counter Type General type Number C0–C511 Direction Counting up Setting value 0–32,767 Specifying the counter setting value The setting value can be either the constant or the value in the data register. Change of the current value The counter stops counting when the value of the counter matches the counter setting value. Output contact The contact is ON when the value of the counter matches the counter setting value. Reset When the instruction RST is executed, the current value is cleared to zero, and the contact is reset of OFF. Action of the contact After the scan is complete, the contact acts.