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

Function Block Library
4–54
1336 FORCE — 5.9 August 1995
Example 1 — Horizontal Scale = 1 S/Division
A UP/DWN CNTR Output
+ 32767
"
– 32767
"
0
"
A–––––––––––––––––––––––– 7.4 Seconds ––––––––––––––––––––––––"
Preset = + 32767
Select = 0
UD1 = 2048
Time = 240 mS
Inc = 1
Dec = 0
Min = – 32767
Max = + 32767
The number of iterations required to decrement the output from it’s Preset value of + 32767
to the Min value of – 32767 would be:
Total Iterations = Range
÷
Increment = 65534
÷
2048 = 31.99
≈
31.
The time it takes to traverse from a Max setting of + 32767 to – 32767 would be:
Total Time = Total Iterations
÷
Time Input = 31
×
240 mS = 7.44 S or approximately 7.4 S.
Example 2 — Horizontal Scale = 1 S/Division
UP/DWN CNTR Output
"
+ 32767
"
– 32767
"
0
"
A–––––––––––––––––––––––– 7.4 Seconds ––––––––––––––––––––––––"
Preset = – 32767
Select = 0
UD1 = 2048
Time = 240 mS
Inc = 0
Dec = 1
Min = – 32767
Max = + 32767
Example 2 is similar to Example 1 except the UP/DWN CNTR must count up from a Preset
value of – 32767.
UP/DWN CNTR
(continued)