EasyManua.ls Logo

S-COM 7K - Example: An Activity Timer

Default Icon
400 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7K Chapter 20
20-8
Example: An Activity Timer
The repeater and each receiver input has an activity timer available to cause a
macro to be triggered after activity on the repeater has ceased. But,
sometimes one activity timer is not enough. A User Timer can be used to
implement one or more additional activity timers.
Three macros will be required to implement the activity timer: one is triggered
when the repeater is activated by a receiver, a second is triggered when all
receivers are inactive, and a third is triggered when the timer times out. Our
example triggers a macro that speaks a message, but any commands can be
executed at that time.
For this example, we’ll create macros 8711, 8712, and 8713. We’ll use timer
#8.
First, setup the timer and assign the macros.
; Setup
(PW) 49 08 03 3000 * ; Set Timer 300.0 seconds
(PW) 49 08 02 8713 * ; Set Timer Macro
(PW) 26 11 8711 * ; Set Any-Rx-Active Macro
(PW) 26 09 8712 * ; Set All-Rx-Inactive Macro
Enter the macro that is triggered when any receiver is active. This macro stops
the timer.
; Macro: Any-Rx-Active: Stop Timer
(PW) 20 8711 (PW) 49 08 00 * ; stop timer
Enter the macro that is triggered when all receivers are inactive. This macro
starts the timer.
; Macro: All-Rx-Inactive
(PW) 20 8712 (PW) 49 08 01 * ; start timer
Enter the macro that is triggered when the timer times out. This macro can
perform any operation, but in our example it speaks a message.
; Macro: Timer Timeout, speak 1-second-pause + “Net”
(PW) 20 8713 (PW) 15 9960 0000 0331 *

Table of Contents