Delta Electronics — 2.2.11 Counters

AS Series Programming Manual _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 X0.1 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. 1.

When X0.0=ON, the RST instruction is executed, the current value of C0 is reset to zero, and the output contact of the counter C0 is FF. 2. When X0.1 changes from OFF to ON, the value of the counter increments by one. 3. When the value of the counter C0 reaches the counter setting value of 5, the contact of the counter C0 is ON (the current value of C0 = the counter setting value = 5). After that the trigger from X0.1 is not accepted by C0 and the 2-64 Item 16-bit counter 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.