Up/dwn cntr – Rockwell Automation 1336T Function Block Prog. Manual, Series A/B User Manual
Page 114

Function Block Library
4–52
1336 FORCE — 5.9 August 1995
UP/DWN CNTR
BLOCK TYPE 24 decimal 18 hexadecimal
Up/Down Counter
ID =
Exec =
NODE 0
Set
NODE 1
@Hi Lim
NODE 11
Dir
NODE 10
Output
NODE 13
@Lo Lim
NODE 12
Inc
NODE 2
Dec
NODE 3
Max
NODE 4
Min
NODE 5
UD1
NODE 6
UD2
NODE 7
Select
NODE 8
Preset
NODE 9
Time
UD1
UD2
t
DEFINITION
An up/down counter function block that can be programmed to count
up or down in a specified, programmable time period.
INPUTS
Set — A logic signal that when
≠
0 sets the counter output to the
value of Preset.
Inc — A logical word that specifies the counter is to increment the
accumulator.
Dec — A logical word that specifies the counter is to decrement the
accumulator.
Max — A signed integer that limits the upper value of the output.
Min — A signed integer that limits the lower value of the output.
UD1 — An signed integer that together with Time determines
the Inc/Dec rate.
UD2 — A signed integer that together with Time determines the
Inc/Dec rate.
Select — An input word value if = 0 selects UD1, if
≠
0 selects
UD2.
Preset — A signed integer that can be preloaded into the output if
Set
≠
0.
Time — An unsigned word that determines the period where the
UD1/UD2 increment is to be added or subtracted from the
accumulator counter value. The Time value is entered in
mS, with a resolution limited by the task interval —
(Time in) / 20mS.