AMX AXB-DTMF+ instruction manual Defineprogram If FINDSTRINGDTMFBUFFER,CLID-,1 Start

Page 30

Programming

DEFINE_PROGRAM

 

 

 

IF (FIND_STRING(DTMF_BUFFER,'CLID-',1))

(* START OF

STRING FOUND

*)

{

 

 

 

WAIT 20 'NO VALID STRING FOUND'

(* TIME-OUT AFTER

2.0 SECONDS

*)

{

 

 

 

CANCEL_WAIT_UNTIL 'WAIT FOR END OF STRING' (* DON'T WAIT FOR THE REST *)

CLEAR_BUFFER DTMF_BUFFER(* CLEAR DATA IN BUFFER *) SEND_STRING 0,"'INCOMPLETE STRING RECEIVED',10,13" (* ERROR MESSAGE *)

}

 

WAIT_UNTIL (FIND_STRING(DTMF_BUFFER,"$00",1))

(* END OF STRING FOUND *)

{

 

CANCEL_WAIT 'NO VALID STRING FOUND' ID_DATA = DTMF_BUFFER

CLEAR_BUFFER DTMF_BUFFER

(* NO TIME-OUT NECESSARY *)

(* COPY CONTENTS, SO MORE DATA *) (* WILL NOT AFFECT PROCESSING *)

(* CLEAR DATA IN BUFFER *)

(* PROCESS THE DATA FOUND *)

ID_DATE = "MID_STRING(ID_DATA,6,2),'/',MID_STRING(ID_DATA,8,2)"

ID_TIME = "MID_STRING(ID_DATA,10,2),':',MID_STRING(ID_DATA,12,2)"

ID_NUMBER = "MID_STRING(ID_DATA,15,3),'-', MID_STRING(ID_DATA,18,3),'-',MID_STRING(ID_DATA,21,4)"

ID_NAME = MID_STRING(ID_DATA,26,20)

(*

NOTE: THE FOLLOWING DATA WILL APPEAR ON THE TOUCHPANEL

*)

SEND_COMMAND TP,"'TEXT1-NAME:

',ID_NAME"

(*

CALLER'S

NAME

*)

SEND_COMMAND TP,"'TEXT2-NUMBER:

',ID_NUMBER"

(*

CALLER'S

NUMBER

*)

SEND_COMMAND

TP,"'TEXT3-DATE:

',ID_DATE"

 

(*

DATE

OF THE CALL *)

SEND_COMMAND

TP,"'TEXT4-TIME:

',ID_TIME"

 

(*

TIME

OF THE CALL *)

(*

NOTE:

THE FOLLOWING DATA WILL APPEAR IN THE TERMINAL EMULATOR

*)

SEND_STRING

0,"'NAME:

',ID_NAME,10,13"

(* CALLER'S NAME *)

SEND_STRING

0,"'NUMBER:

',ID_NUMBER,10,13"

(* CALLER'S NUMBER *)

SEND_STRING

0,"'DATE:

',ID_DATE,' (MONTH/DATE)',10,13" (* DATE OF CALL *)

SEND_STRING

0,"'TIME:

',ID_TIME,10,13"

(* TIME OF CALL *)

}

 

 

 

 

 

}

 

 

 

 

 

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

 

(*

 

END OF PROGRAM

*)

 

(*

DO NOT PUT ANY CODE BELOW THIS COMMENT

*)

 

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

 

26

AXB-DTMF+ DTMF+ Interface

 

 

 

Image 30
Contents AXB-DTMF+ AMX Limited Warranty and Disclaimer Table of Contents Table of Contents Specifications AXB-DTMF+ SpecificationsFront panel components FIG Rear panel componentsSetting the Internal Jumpers Auto Answer modePreparing captive wires Wiring the AXB-DTMF+Line Setting mode Wiring guidelinesConnecting External Telephone Lines AudioAudio Out Testing the AXB-DTMF+ Off-hook line and off-hook phone troubleshootingSendCommands Operative SendCommandsOperative System SendCommands Sendcommand DTMF, AUDOUT-ON Sendcommand DTMF, AUDIO-ONSendcommand DTMF, AUDOUT-OFF Sendcommand DTMF, AUTO-ONSendcommand DTMF, Flash Sendcommand DTMF, EXTEN-OFFSendcommand DTMF, EXTEN-ON Sendcommand DTMF, OFF HookTiming System SendCommands Timing System SendCommandsSendcommand DTMF, OBUOFFMIN-45 Sendcommand DTMF, LOSSLCMIN-15Sendcommand DTMF, OBUOFFMAX-65 Sendcommand DTMF, OBUONMAX-65Sendcommand DTMF, OREONMIN-20 Sendcommand DTMF, OREOFFMAX-45Sendcommand DTMF, OREOFFMIN-20 Sendcommand DTMF, ORIOFFMAX-50Sendcommand DTMF, PAUSE-25 Sendcommand DTMF, ORIONMAX-30Sendcommand DTMF, ORIONMIN-25 Sendcommand DTMF, ROHOFFMAX-65Fine Tuning SendCommands Fine Tuning SendCommandsDistinctive Ring Patterns and SendCommands DTMF+ distinctive ring default patterns and time valuesChanging a Default Ring Pattern Distinctive Ring SendCommands Distinctive Ring SendCommandsAxcess Program Example PYZ-XXXBusycount Number of Retries Or RINGING, Send This Is not the 7TH RETRY, Wait Channel Codes Channel CodesOperation Channel # Description on Indicates Minute after call termination Program Example for Caller ID Caller IDCaller ID Data String Description CLID-mmddhhii-nnnnnnnnnn-text,0Dtmf Card Defineprogram If FINDSTRINGDTMFBUFFER,CLID-,1 Start Programming AXB-DTMF+ DTMF+ Interface AMX,