User`s guide
Call-Back Configuration for the CR800/CR1000 – MultiLogger Application Note #19 – Page 5 of 12
The last step involves configuring the phone number to be called in the case of a call-back event. Click on
the gear button located to the left of the Alarm Action. This loads the programming into an editor for
modification. Notice the Phone Number placeholders in the ModemCallBack instruction, as illustrated
below.
Enter the appropriate phone number to call for call-back in place of the nnnnnnnnnn values, keeping the
numbers enclosed in quotes.
Note: Do not enter any other commands, such as the ATDT command for dialing, or carriage
returns, these are supplied by the ModemCallBack instruction. Additional AT commands can be
entered by separating them with a semi-colon. Use two semi-colons in a row to insert a 1 second
delay. Use CHR(13) to send a carriage return.
'Initiate call-back from logger using COM220 connected to CSI I/O port
'Use COM220 defaults of SDC7 and 115200bps
'Receiving number must be enabled to accept call-back events
'Enter the phone number to call in place of "nnnnnnnnnn", use 2 semi-colons for 1 second delay
'Repetitive alarms are ignored, alarm status must go low to initiate following call-back
'Flag(1) is used to prevent repetitive call-back events
'Check for Alarm
if mlFlag8 then
'Check if Call-back already sent
if not mlFlag1 then
'Make sure AbortExp is reset
CallBackAbort = 0
'Initiate call-back
ModemCallBack(CallBackStatus,ComSDC7,-115200,0,"nnnnnnnnnn","",60,120,CallBackAbort)
'Set our call-back sent flag
mlFlag1 = -1
endif
else
'Reset our Call-back sent flag
mlFlag1 = 0
endif
Note: It is very important that the Interface Type and Baud Rate match the connected device. For
example, SDC7 and 115200 baud are the default settings for the COM220. There are configuration
DIP switches located inside the COM220 enclosure for selecting an alternate interface and baud
rate. The minus sign in front of the baud rate setting also configures auto-baud. Generally the
auto-baud setting should be used, otherwise the port becomes fixed at the selected baud rate,
regardless of what device is connected to the port.
Lines in blue are the CRBasic programming lines. Flag 1 is set once an alarm is set, described by the
general alarm flag 8. Further call-backs won’t be activated until values return to normal. To disable this
feature and initiate call-back with every measurement interval remove the setting of the flag 1 location, as
highlighted. Additional logic could be incorporated to allow call-backs after a certain number of
measurement iterations or at a certain time of day.
Phone Number
Baud Rate
Interface Type
Connect String