Appendix D How to Use PLC Function

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 K or data register D

Constant K or data register D (2 for designated)

constant

 

 

 

 

 

 

Present value

Counter will stop when

Counter will keep on counting when attaining

change

attaining settings

settings

 

 

 

 

 

When count attains settings,

When count up attains settings, contact will be On

 

and latched.

 

Output contact

contact will be On and

 

When count down attains settings, contact will

 

latched.

 

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

 

 

 

 

 

 

 

After scanning,

Act immediately when count

Contact action

After scanning, act together.

attains. It has no relation with

act together.

 

 

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.

Revision June 2008, 04EE, SW--PW V1.11/CTL V2.11

D-23

Page 306
Image 306
Delta Electronics VFD-E manual Features and Functions of Counter