Specifications
Section 13. PakBus Communication Instructions
13-10
Parameter
& Data Type
Enter
ResultCode
Variable
The variable in which a response code for the transmission will be stored.
A negative value indicates that communication was achieved but the
command failed. See table 13.1-2 for a list of failure codes. A positive
value indicates the number of communications failures. A zero indicates
successful communication.
ComPort
Constant
The communications port that will be used to communicate with the
destination device. Enter a numeric or alphanumeric code listed in table
12.1-1.
NeighborAddr
Constant
A static route to the destination datalogger. If 0 is entered, the destination
device is assumed to be a neighbor
PakBusAddr
Integer(1-4094)
The Pakbus address of the destination 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.
Security
Integer
The security code of the datalogger to which variables will be sent. 0 is
entered for this parameter if no security is set in the destination datalogger.
TimeOut
Constant or
Variable
The amount of time, in 0.01 seconds, that the datalogger should wait for a
response from the destination device before considering the instruction to
have failed. If 0 is entered for this parameter, then the datalogger will use a
time based on its known route to the destination device.
SendVariables
Variable or
Variable Array
The variable(s) that will be sent from this datalogger to a destination
datalogger.
SendSwath
Constant or
Variable
The number of variables that will be sent to the destination datalogger.
GetVariables
Variable or
Variable Array
The variable or variable array in which values retrieved from the
destination datalogger will be stored. This variable must be dimensioned
to the size of the GetSwath parameter.
GetSwath
Constant or
Variable
The number of variables that will be received from the destination
datalogger.
SendGetVariables Program Example
In this example, a datalogger with Pakbus address 109 is programmed to send
three variables to a datalogger with an address of 1 using the
TimeUntilTransmit and SendGetVariables instructions. Three variables are
sent to address 1 when the TimeUntilTransmit = 0. The variables are sent out
the CS I/O port configured as SDC7 with MD-485 modems.