AC Motor Drive User Manual

Appendix D How to Use PLC Function|
Revision June 2008, 04EE, SW--PW V1.11/CTL V2.11 D-23
D.4.6 The Features and Functions of Counter
Features:
Item 16 bits counters 32 bits counters
Type General General High speed
Count direction Count up Count up/down
Settings 0~32,767 -2,147,483,648~+2,147,483,647
Designate for
constant
Constant K or data register D Constant K or data register D (2 for designated)
Present value
change
Counter will stop when
attaining settings
Counter will keep on counting when attaining
settings
Output contact
When count attains settings,
contact will be On and
latched.
When count up attains settings, contact will be On
and latched.
When count down attains settings, contact will
reset to Off.
Reset action
The present value will reset to 0 when RST command is executed and contact
will reset to Off.
Present register 16 bits 32 bits
Contact action After scanning, act together.
After scanning,
act together.
Act immediately when count
attains. It has no relation with
scan period.
Functions:
When pulse input signal of counter is from Off to On, the present value of counter equals to settings
and output coil is On. Settings are decimal system and data register D can also be used as settings.
16-bit counters C0~C7:
1. Setting range of 16-bit counter is K0~K32,767. (K0 is the same as K1. output contact will
be On immediately at the first count.
2. General counter will be clear when PLC is power loss. If counter is latched, it will
remember the value before power loss and keep on counting when power on after power
loss.
3. If using MOV command, WPLSoft to send a value, which is large than setting to C0,
register, at the next time that X1 is from Off to On, C0 counter contact will be On and
present value will be set to the same as settings.
4. The setting of counter can use constant K or register D (not includes special data register
D1000~D1044) to be indirect setting.
5. If using constant K to be setting, it can only be positive number but if setting is data
register D, it can be positive/negative number. The next number that counter counts up
from 32,767 is -32,768.