Programming
(* THE DATA SHOULD APPEAR BETWEEN THE FIRST AND SECOND | *) | |
(* | RING. | *) |
(* |
| *) |
(***********************************************************************)
(*DEVICE NUMBER DEFINITIONS GO BELOW*)
(***********************************************************************)
DEFINE_DEVICE
DTMF | = | 96 | (* | *) | |
TP | = | 128 | (* | TOUCHPANEL | *) |
(***********************************************************************)
(*CONSTANT DEFINITIONS GO BELOW*)
(***********************************************************************)
DEFINE_CONSTANT
(***********************************************************************)
(*VARIABLE DEFINITIONS GO BELOW*)
(***********************************************************************)
DEFINE_VARIABLE |
|
|
|
DTMF_BUFFER[100] | (* INCOMING DATA FROM | DTMF CARD | *) |
ID_DATA[100] | (* | *) | |
ID_DATE[5] |
| (* | *) |
ID_TIME[5] |
| (* | *) |
ID_NUMBER[12] |
| (* | *) |
ID_NAME[20] | (* | *) |
(***********************************************************************)
(*LATCHING DEFINITIONS GO BELOW*) (***********************************************************************)
DEFINE_LATCHING
(***********************************************************************)
(* MUTUALLY EXCLUSIVE DEFINITIONS GO BELOW*) (***********************************************************************)
DEFINE_MUTUALLY_EXCLUSIVE
(***********************************************************************)
(*SUBROUTINE DEFINITIONS GO BELOW*) (***********************************************************************)
(***********************************************************************)
(*STARTUP CODE GOES BELOW*) (***********************************************************************)
DEFINE_START
CREATE_BUFFER DTMF,DTMF_BUFFER | (* START LISTENING TO THE CARD *) |
(***********************************************************************)
(*THE ACTUAL PROGRAM GOES BELOW*) (***********************************************************************)
Continued
25 |
| |
|
|
|