6F3B0250

7. Instructions

CNT

Counter

Expression

Count input

C CNT Q

Output

Enable input

E A B

Function

While the enable input is ON, this instruction counts the number of the count input changes from OFF to ON. The count value is stored in the counter register B. When the count value reaches the set value A, the output and the counter device corresponding to B are turned ON. When the enable input comes OFF, B is cleared to 0 and the output and the counter device are turned OFF.

The available data range for operand A is 0 to 65535.

Execution condition

Enable

Operation

Output

input

 

 

OFF

No operation (B is cleared to 0)

OFF

ON

Count value (B) < set value (A)

OFF

 

Count value (B) ³ set value (A)

ON

Operand

 

Name

 

 

Device

 

 

 

 

 

 

Register

 

 

 

 

Constant

Index

 

 

X

Y

R

S

T.

C.

XW

YW

RW

SW

T

C

D

I

J

K

 

 

A

Set value

 

 

 

 

 

 

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

Ö

0 - 65535

 

B

Count value

 

 

 

 

 

 

 

 

 

 

 

Ö

 

 

 

 

 

 

Example

X001

X002

C010

 

 

 

2

3

 

4

5

 

 

 

2

3

 

1

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

C.010

Y021

Note

·No transitional contact is required for the count input. The count input rising edge is detected by this instruction.

·For the count input, direct linking to a connecting point is not allowed. In this case, insert a dummy contact (always ON = S04F, etc.) just before the input.

Refer to Note of Shift register FUN 074.

·Multiple counter instructions (CNT) with the same counter register are not allowed.

150 T1/T1S User’s Manual

CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

Page 152
Image 152
Toshiba PROSEC T1 T1S, 6F3B0250 user manual Cnt, Counter