Specifications

Section 13. PakBus Communication Instructions
13-13
Parameter
& Data Type
Enter
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.
TableName
Name
The data table in the destination datalogger to which the value(s) will be
sent. Values can be sent only to the Public (or Inlocs) or Status table.
TableName must be entered as a string (enclosed in quotes).
FieldName
Constant or
Variable
The name of the variable or variable array in the destination datalogger to
which data will be sent. FieldName must be entered as a string (enclosed in
quotes). If the variable in the destination datalogger has been assigned an
Alias, the alias must be used for Fieldname.
Variable
Variable or
Variable Array
The variable or variable array that holds the values to be sent to the
destination datalogger. This variable must be dimensioned equal to or
greater than the Swath of values that will be sent.
Swath
Constant or
Variable
The number of values that will be sent to the destination datalogger.
When sending a value to an input location in an Edlog-
programmed PakBus datalogger (CR10XPB, CR510PB, or
CR23XPB), the TableName is "Inlocs" and the FieldName is the
input location label.
If RF400 radios are being used for communication and retries are
enabled, a negative value should not be used on the COMPort,
and at least 2 seconds should be used for the TimeOut parameter.
SendVariables Example
In the following program, the datalogger will attempt to send 8 values to a
destination datalogger with a PakBus ID of 1 each time Flag 1 is high (non
zero). The data values to be sent are from the TCTemp variable.
Public RXResponse, TCTemp(8), RefTemp, Flag(1)
BeginProg
Scan (1 ,sec,0,0)
PanelTemp (RefTemp,250)
TCDiff (TCTemp(),8,mV20C,1,TypeT,RefTemp,True ,0,250,1.0,0)
If Flag(1) Then
SendVariables (RXResponse,ComSDC7,0,1,0,0,"Public","Temp()",TCTemp(),8)
EndIf
NextScan
EndProg
NOTES