Chapter 4. CPU module
4 - 8
(3) Increment/Decrement Counter
•
It should have Increment input condition (CU), Decrement input condition (CD), load (LD) and
setting value (PV).
CTUD
BOOL
▶
CU QU BOOL
BOOL
▶
CD QD BOOL
BOOL R
BOOL LD
INT PV CV INT
•
If reset signal(R) turns on, counting value (CV) is set to ‘0’.
•
If load signal(LD) turns on, counting value is set to setting value(PV).
•
It is increased by 1at the rising edge of increment input(CU) and decreased by 1 at the edge of
decrement input(CD). If counting value(CV) is equal or larger than setting value(PV),QU will be on,
and if counting value(CV) is equal or less than setting value(PV),QD will be on.
2) Counting speed
•
The counting speed is decided by scan time and it will be counted when on time or off time of input
condition is larger than each scan time.
Max. Counting speed (Cmax.) = n / 100
×
1 / ts [pps] [ n : Duty(%), ts : scan time(s) ]
•
Duty is percent of on time / off time.
on
off
T1 T2
T1
≤
T2 : n = T1 / (T1+T2)
×
100 [ % ]
T1
>
T2 : n = T2 / (T1+T2)
×
100 [ % ]
NAME