History of Multiple Timer Script
Webb - all rights reserved - ©2004

modified by Russ Webb on  2004-04-22 21:07:32

Author - Jann Scheuer
Email: scheuer@coco.ihi.ku.dk

Summary: Multiple purpose timer

Instructions: Application Timer consists of four units

J-Timer - timer control
J-TimerSh - unit for showing timer parameters
J-Tmod - timer clock unit
J-Ring - alarm unit

Only the first of these, J-Timer, should be chosen as the current function
set in rpn. The others are called from J-Timer.

The J-Timer is a multiple function multi-timer. You can put on the stack
as many values to count from as you like, and they will be handled by the
timer ind different ways depending on the setting of the parameters.

Timer continues counting when pilot is off. Alarms does not sound when
pilot is off.

1 Main page:

> - activate timer
! - set timer parameters
? - show timer parameters
Dn-button - activate timer
Up-button - delete tos

Usage: Choose parameters, put values on the stack and press Dn-button or

! Set parameters menu:

Tp: timer type:
Ser - serial timer, count on one value at a time
Rep - repeat counting
Par - count on all values in stack at once!

Di: counting direction:
Up - upwards
Dn - downwards
->0 - towards zero

St: stopping
First 0 - timer stops at first 0
Last 0 - timer stops at last 0

Sg: Periodical signal with fixed intervals

Wa: Warning signal before timer expires. Good for chess timing.

Al: Alarms
Long - long alarm when individual timers expire. Endless randomized alarm
in blues-scale when last timer expires.
Short - shorter, non-endless alarms.

Sp: Special timer
Sport - Sports timer. Counts from tos to playing time and sounds signal
every 5 minutes. Displays time played and time left. Displays  stoppage
time with signal every 1 minute.
Set playing time by putting it on stack before choosing sports timer.

? Show parameters menu:

Much the same as menu in main page.

2 Timer running page:

Shift - rotate stack so that different timers become active
Pause - pause and/or stop timer
Up-button - rotate stack
Dn-button - stop timer

3 Alarm page:

Stop - stop alarm
Dn-button - stop alarm


Soccer timer:
Put 45 on the stack. Choose ! and Sp and Sport.
Put starting time on the stack (say 10 minutes if 10 minutes has been
played already).
Press Dn-button.
To get out of sports timer function, choose ! and Sp and no.

Chess timer:
Put 5 and -5 on the stack.
Choose ! and Tp and serial timer.
Choose ! and Di and counting towards 0.
Choose ! and St and First 0.
Choose ! and Wa and 1m warning.
Press Dn-button to activate timer.
Press Up-button to shift between players.

Noisy timer:
Put 0.1, 0.2, 0.3, 0.4, 0.5 on the stack.
Choose ! and Tp and parallel timer.
Choose ! and St and Last 0.
Choose ! and Sg and 10s signal interval.
Choose ! and Al and short.
Press Dn-button to activate timer.

Good luck! It probably takes practices to use this.

Comments to: scheuer@coco.ihi.ku.dk


RPN.1.g-2 \ J-Timer
[b]h0=0(D'Timer: write one or more\values to count from.\Format:
min.sec' d1.)
xg(g1xg>g20<|(D'Value for sports timer\is outside
interval.|Ok|'d1xgUdD'Playing time set to|Ok|'d1d1.))
xaxbxcxdxexfxg G'J-Tmod';
D'Set timer functions\Choose parameter|Tp|Di|St|Sg|Wa|Al|Sp|-|'c(
D'Timer type?|Ser|Rep|Par|-|'
D'Counting direction?|Up|Down|->0|-|'
D'Stop by|First 0|Last 0|-|'
D'Periodical signal every|No|10s|1m|5m|10m|15m|-|'
c(0Xg:h(Xg:D'Push playing time on stack\and try again.|Ok|'d1):,):;);

RPN.2.g \ J-TimerSh
D'Show parameters for timer\function|Tp|Di|St|Sg|Wa|Al|-|'
c(xac(D'Serial timer|Ok|':
D'Repeting timer|Ok|':
D'Parallel timer|Ok|'):
xbc(D'Counting up|Ok|':
D'Counting down|Ok|':
D'Counting towards 0|Ok|'):
xcc(D'Stopping by first 0|Ok|':
D'Stopping by last 0|Ok|'):
xdc(D'No periodical signal|Ok|':
D'Signal every 10s|Ok|':
D'Signal every 1m|Ok|':
D'Signal every 5m|Ok|':
D'Signal every 10m|Ok|':
D'Signal every 15m|Ok|'):
xec(D'No warning|Ok|':
D'10s|Ok|':D\20s|Ok|\ = D\ 30s|Ok|\ = D\45s|Ok|\ = D'1m|Ok|'):
xfc(D'No alarm|Ok|':
D'Short|Ok|':D'Long|Ok|'):0): D'Sports timer|Ok|'d1xgUdD'Playing
"^Timer" G'J-Timer';

RPN.2.k-2 \ J-Tmod
[l]g10 [c]g10>!(Ce);

RPN.2.c-2 \ J-Ring
\ 25