Specifications
Section 13. PakBus Communication Instructions
13-6
Parameter
& Data Type
Enter
GetVariables
Variable or
Variable Array
The variable or variable array in which values retrieved from the
destination datalogger will be stored. If multiple values are being returned
by multiple destination devices, this variable must be a multi-dimensional
array large enough to accommodate the values returned. For example, if 2
values are being returned by each of 4 destination devices, the variable
should be dimensioned to (4, 2).
Dest device #, Value = Store In
Dest device #, Value = Store In
Dest device 1, value 1 = (1, 1) Dest device 1, value 2 = (1, 2)
Dest device 2, value 1 = (2, 1) Dest device 2, value 2 = (2, 2)
Dest device 3, value 1 = (3, 1) Dest device 3, value 2 = (3, 2)
Dest device 4, value 1 = (4, 1) Dest device 4, value 2 = (4, 2)
SendSwath
Constant or
Variable
The number of values that will be sent to the destination datalogger. If
values are being sent to multiple destination devices, this is the number
being sent to each destination device.
SendVariables
Variable or
Variable Array
The variable(s) that will be sent from this datalogger to the destination
datalogger(s). If values are being sent to multiple destination dataloggers,
the variable for this parameter must be a multi-dimensional array
containing the values to be sent to each destination device. For instance, if
you are sending 2 values to each of 3 destination devices, the variable
should be dimensioned to (3, 2). The results would be:
Dest device #, Value = Send From
Dest device #, Value = Send From
Dest device 1, value 1 = (1, 1) Dest device 1, value 2 = (1, 2)
Dest device 2, value 1 = (2, 1) Dest device 2, value 2 = (2, 2)
Dest device 3, value 1 = (3, 1) Dest device 3, value 2 = (3, 2)
Network Example
This example program is written to set up two CR3000 dataloggers (addresses
109 and 110) to send and receive data via a SendGetVariables instruction in
each of the destination devices. The Network instruction sends setup
information to the destination dataloggers, which includes variable names and
time values that are used by the TimeUntilTransmit instruction.
For the program that is run in the destination devices, see the
SendGetVariables example.