Specifications

Section 12. Serial Input and Output Functions
12-3
Each instruction has one parameter:
Parameter
& Data Type
Enter
PakBusAddr
Integer
Identifies the PakBus address of the remote datalogger with which the host
datalogger is trying to communicate. Valid entries are 1 through 4094. Each
PakBus device in the network must have a unique address.
DialSuccess
Variable
A variable that holds the results of the communications attempt. A -1 indicates
communication was successful; 0 indicates a failure. If the communication
attempt fails, the communication link will be closed. A variable holding the
result of DialModem can be used for this parameter.
DialVoice (DialString)
Used to define the dialing string for a COM310 voice modem.
Syntax
DialVoice (DialString)
Remarks
If the DialVoice instruction is set equal to a variable, a -1 (True) will be
returned if the communication attempt was successful or a 0 (False) will be
returned if it failed. VoiceHangup is used after the communication attempt to
hang up the voice modem.
DialString: The DialString is the telephone number and any other codes used
to dial the modem. A comma in the DialString inserts a 2 second pause.
When creating code for voice modems, the VoiceKey instruction should be
used to add a delay before the EndVoice instruction is executed. Otherwise,
the datalogger will end the VoiceSpeak command before the spoken message is
completed.
ModBusMaster (ResultCode, ComPort, BaudRate, ModBusAddr, Function,
Variable, Start, Length, Tries, TimeOut)
The ModBusMaster instruction sets up a datalogger as a ModBus master
device to send or retrieve data to/from a ModBus slave.
Syntax
ModBusMaster ( ResultCode, ComPort, BaudRate, ModBusAddr, Function,
Variable, Start, Length, Tries, TimeOut )
Remarks
The datalogger supports ModBus functions 01-05, 15, and 16 (see Function
parameter below). The ModBusMaster instruction can be placed outside of the
main program (defined by BeginProg/EndProg).