Specifications

Section 12. Serial Input and Output Functions
12-2
Parameter
& Data Type
Enter
BaudRate
Used to set the rate, in bps, for communication. The options are 300, 1200,
4800, 9600, 19200, 38400, 57600, and 115200. Selecting one of these options
fixes the baud rate at that rate of communication. If a negative baud rate is
entered, the first communication attempt will be at the specified baud rate, but
if communication fails at that rate, the datalogger will go into autobaud mode
where it will try different rates until successful or until the instruction times
out.
DialString
Telephone
number and
access codes
The telephone number and any other codes used to dial the modem. A comma
in the DialString inserts a 2 second pause.
ResponseString
String
Used to specify the response code expected back from the modem when a
connection is made. An entry for this parameter is required. If no response is
expected, enter a null string. When a null string is entered ("") the default is
"1"+CHR(13) (1 + Control M, or carriage return).
DialSequence (PakBusAddr) . . . EndDialSequence (DialSuccess)
Used to define the code necessary to route packets to a PakBus datalogger.
Syntax
DialSequence ( PakBusAddr )
dialing instructions; e.g., DialSuccess = DialModem (ComPort, DialString,
ResponseString)
EndDialSequence (DialSuccess )
Remarks
The DialSequence instruction indicates the beginning of the code; the
EndDialSequence indicates the ending. The code is entered in the declarations
section of the program, prior to the main program (defined by the
BeginProg/EndProg instructions).
Any time an instruction in the main program requires that communication be
made with the remote datalogger identified by the PakBusAddr parameter, the
DialSequence code for that datalogger will be executed. The code will also be
executed if the datalogger receives a message from another PakBus device that
needs to be routed to the remote datalogger.
This instruction runs sequentially from the processing task sequencer,
regardless of whether the datalogger is in pipeline or sequential mode.