Programming

(* THE DATA SHOULD APPEAR BETWEEN THE FIRST AND SECOND

*)

(*

RING.

*)

(*

 

*)

(***********************************************************************)

(*DEVICE NUMBER DEFINITIONS GO BELOW*)

(***********************************************************************)

DEFINE_DEVICE

DTMF

=

96

(*

AXB-DTMF+ V X.XX

*)

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]

(* CALLER-ID COPY OF ABOVE

*)

ID_DATE[5]

 

(* CALLER-ID DATE

*)

ID_TIME[5]

 

(* CALLER-ID TIME

*)

ID_NUMBER[12]

 

(* CALLER-ID NUMBER

*)

ID_NAME[20]

(*

CALLER-ID NAME

*)

(***********************************************************************)

(*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

AXB-DTMF+ DTMF+ Interface

25

 

 

 

 

Page 29
Image 29
AMX AXB-DTMF+ instruction manual Dtmf Card