Specifications
Section 13. PakBus Communication Instructions
13-12
SendTableDef Example Program
The following example program sends the table definitions from Table1 to
PakBus device ID 4094 every hour.
DataTable (Table1,True,-1)
DataInterval (0,1,Sec,10)
Sample (1,Temp,FP2)
EndTable
BeginProg
Scan (1,Sec,3,0)
PanelTemp (Temp,250)
IF IfTime (0,1,Hr) Then
SendTableDef (ComRS232,0,4094,Table1)
EndIF
CallTable (Table1)
NextScan
EndProg
SendVariables (ResultCode, ComPort, NeighborAddr, PakBusAddr,
Security, TimeOut, "TableName", "FieldName", Variable, Swath)
The SendVariables instruction is used to send value(s) from a variable or
variable array to a data table in a remote datalogger.
Syntax
SendVariables ( ResultCode, ComPort, NeighborAddr, PakBusAddr, Security,
TimeOut, "TableName", "FieldName", Variable, Swath )
Remarks
Values can only be sent to the remote datalogger's Public or Status table. The
Dest and Swath parameters are used to determine what values will be sent to
the remote datalogger. The first value to be sent is defined with Dest, and the
number of values is specified by Swath. The most recent value(s) stored in the
table are sent.
If security is enabled in the remote datalogger, it must be unlocked to level 2
for this instruction to be successful.
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.