Processing information in the ADU
ADU has 5 information processing elements:
1. Timers - counting time
2. Tables - lookup tables
3. Switches - virtual switches, counters
4. Numbers - mathematical channels
5. Functions - logic functions
These elements are processed the same way as all elements in the ADU at 500 Hz (every 2 ms).
These elements are processed in the listed above order (Timers first, then Tables, and so on).
Timers
Timers are used for counting time. It is possible to count time from
zero to a predefined value (Count up) or down from predefined value
to zero (Count down).
Timers can store time up to 200 hours with an accuracy of up to 0.01
seconds.
Timers are started by means of a channel defined by Start Channel
and an edge defined by Start edge (Rising or Falling).
Similarly, Timers are stopped by means of a channel defined by Stop Channel and an edge
defined by Stop edge (Rising or Falling).
When a timer is stopped, the starting edge appearing in the Start Channel will always result in
moving to the initial value. When a timer is already started, the starting edge is ignored. A timer
will react to a starting edge only after stopping or counting to the end. This allows starting and
stopping by means of the same channel and edge.
Each created timer has 3 subchannels:
• .value - value of time in seconds (up to 0.01 seconds)
• .elapsed - has a value of “1” when the time has elapsed; it will change to “0” after another
start.
• .running - has a value of “1” when a timer is counting time
Page 100/137