
Function Block Library 4–53
1336 FORCE — 5.9 August 1995
OUTPUTS
Dir — A signed integer that indicates counter direction —
–1 if decrementing, 0 if no change, 1 if incrementing.
@Hi Lim — A logic value = true only when the accumulator >
Max.
@Lo Lim — A logic value = true only when the accumulator <
Min.
Output — A signed integer that is the counter’s output.
FUNCTION
1. If Set ≠ 0, the accumulator = Preset.
2. When Select = 0 and Time = time since last adjustment of
accumulator:
If Inc ≠ 0, the accumulator = accumulator + UD1, and Dir = 1.
If Dec ≠ 0, The accumulator = accumulator – UD1, and Dir = –1.
3. When Select ≠ 0 and Time = time since last adjustment of
accumulator:
If Inc ≠ 0, the accumulator = accumulator + UD2, and Dir = 1
If Dec ≠ 0, The accumulator = accumulator – UD2, and Dir = –1.
4. When the accumulator > Max:
The accumulator = Max, @Hi Lim = true, and @Lo Lim = false.
5. When the accumulator < Min:
The accumulator = Min, @Hi Lim = false, and @Lo Lim = true.
6. When the accumulator is < Max and > Min:
@Lo Lim = @Hi Lim = false.
7. When Output = accumulator, Dir = 0.
PARAMETERS DATA TYPE LINKABLE DEFAULT VALUE RANGE
Set Logic Input Yes False True/False
Inc Logic Input Yes False True/False
Dec Logic Input Yes False True/False
Max Signed Integer No 0
±32767
Min Signed Integer No 0
±32767
UD1 Signed Integer No 0 0 to +32767
UD2 Signed Integer No 0 0 to +32767
Select Logic Input No False True/False
Preset Signed Integer No 0
±32767
Time Unsigned Integer No 0 0 to 65535
Dir Signed Integer No —
±32767
@Hi Lim Logic Input No — True/False
@Lo Lim Logic Input No — True/False
Output Signed Integer No —
±32767
UP/DWN CNTR
(continued)
Commenti su questo manuale