© EPRAD Incorporated
When a resource (instruction or CAI command) sets a timer, that resource maintains ownership of
the timer. There are four possible users of timers: Program/Macro Instruction, CAI Channel 1, CAI
Channel 2 and CAI Channel 3. The ownership rules apply as follows:
• Setting timer to 00:00 stops the timer and releases ownership (and prevents a trigger
event from occurring).
• When a timer expires, ownership is released automatically.
• When another user does not own the timer, setting the timer to 00:01 through 99:98
starts the timer and reserves ownership of the timer until it expires. If another user
already owns the timer, the timer is not set (CAI commands are NAK’ed).
• Setting the timer to 99:99 unconditionally takes over ownership of the timer indefinitely
and prevents the timer from ticking (infinity time). This can be used to reserve the timer
indefinately.
• Once a user owns the timer, that owner can do anything with it.
Be aware that the value of the timers are stored in battery-backed RAM. If any timer is ticking
previous to a power down, it will continue to tick on the next power up. If this is not desirable, you
may want to create a macro to clear all timers on a power up.
Timer Instruction
This instruction is used to pause or resume a timer. This can be useful for suspending timers on a
fault or a stop condition.
Timer m1 m2
m1 = Tmr1 to Tmr15
m2 = Pause/Resume
Be aware that the value of the timers are stored in battery-backed RAM. If any timer is paused
previous to a power down, it will be in a paused state on the next power up.
Display Timer Instruction
This instruction allows a timer to be displayed on the local and browser status screens.
Display Timer m
m = Tmr1 to Tmr15
If (flag) Instruction
This instruction allows conditional branching forward to any line number or exiting the macro based
on an eCNA status or control flag.
If (flag) m1 m2 m3
m1 = Status and Control Flags
m2 = On, Off
m3 = Then Exit, Then Goto 1 - 16
69
eCNA-10 Operation and Installation Manual Version 1.270-00