User`s guide

Call-Back Configuration for the CR800/CR1000 – MultiLogger Application Note #19 – Page 2 of 12
The second step involves configuring the
location used for storing the call-back status
used in the call-back instructions. Use the
menu item Program | Input Locations or the
Input Locations button to display the Configure
Input Locations form. Use the Location
selector to advance to the second available
user location at location 32. Alternately
advance to the end of the list to create a new
location.
Note: Some measurement types utilize
User Location 1 so User Location 2 is
selected to avoid potential conflicts.
Use the Alias edit to name the location
CallBackStatus.
By default further call-back events WILL NOT be generated unless measurements return to non-alarm
values. This can be modified by editing the programming associated with the RS-232 Direct Call-Back
selection. Use the gear button located to the left of the drop-down to edit the programming, shown below.
'Note: Flag1 is used to disable repetitive alarms, it is reset if alarms go low
'Remove the mlFlag1 references to enable repetitive alarms
'Configure RS-232 port for call-back event
'Note this becomes the baud rate setting for MultiLogger
SetStatus("BaudrateRS232","-115200")
'Check our Alarm flag and alarm sent flag
if mlFlag8 then
if not mlFlag1 then
'Send Call-back variable
SendVariables(CallbackStatus,ComRS232,0,4094,0,0,"Public","CallBack",CallBackStatus,1)
'Set our alarm sent flag
mlFlag1 = -1
Endif
Else
'Reset our alarm sent flag
mlFlag1 = 0
Endif
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. See the following section for an example of avoiding
additional call-backs until a specified number of measurement iterations are passed. Contact Canary
Systems for help with your specific application.
Note: When operating in more complex PakBus networking environments be sure to configure the
Pakbus Neighbor Address and PakBus Address settings in the SendVariables statement. In the
default configuration be sure the MultiLogger Gateway PakBus Address matches, default is 4094.
PakBus Neighbor Address
PakBus Address