AH500 Motion Control Module Manual AH05PM-5A Characteristics of counters: Functions of counters: If the input signal of a counter is turned from OFF to ON, and the present value of the counter matches the setting value, the output coil will be ON. A setting value can be a constant preceded by K, or the value stored in a data register. 16-bit counter: 1. The setting value of a 16-bit counter must be in the range of K0 to K32,767. (K0 is equal to K1. If the setting value of a counter is K0 or K1, the output contact will be ON after the counter counts for the first time.) 2.
If a value greater than the setting value of C0 is moved to C0 by means of the instruction MOV, the contact C0 will be ON, and the present value of the counter will become the setting value next time X1 is turned from OFF to ON. 3. The setting value of a counter can be a constant preceded by K, or the value stored in a data register. 4. If the setting value of a counter is a value preceded by K, the setting value can only be a positive value. If the setting value of a counter is the value stored in a data register, the setting value can be a positive value or a negative value. If a counter counts up from the present value 32,767, the next value following 32,767 will be -32,768.
3-8 Function Range Remark 16-bit up C0~C199 counter 200 counters 216 If the present value of the counter specified by the 32-bit C240~C255 counters instruction CNT (DCNT) matches the setting value, the up/down 16 counters in total contact represented by the counter will be ON counter (Accumulation) 32-bit Input contact of C200:
X0.8/X0.9 1 counter high-speed C200 in total counter Item 16-bit counter 32-bit counter Type General counter General counter High-speed counter Direction Counting up Counting up/down Setting value 0~32,767 -2,147,483,648~+2,147,483,647 Specification of a setting value Constant preceded by K, or value stored in a data register Constant preceded by K, or value stored in two consecutive data registers Change of the present value If the present value matches the setting value, the counter will stop counting. Even if the present value matches the setting value, the counter will keep counting. Output contact If the present value matches the setting value, the output contact will be ON.
Counting up: If the present value matches the setting value, the output contact will be ON. Counting down: If the present value matches the setting value, the output contact will be reset to OFF. Resetting of a contact If the instruction RST is executed, the present value will becomes zero, and the contact will be reset to OFF. Actions of contacts After the scan of a program is complete, the contacts will act. After the scan of a program is complete, the contacts will act. If the present value matches the setting value, the contact will be ON.