Specifications

Section 13. PakBus Communication Instructions
13-11
Public PTemp, batt_volt, RxData, TxData(3), RxResponse, counter, time
DataTable (Test,1,-1)
DataInterval (0,15,Sec,10)
Minimum (1,batt_volt,FP2,0,False)
Sample (1,PTemp,FP2)
EndTable
BeginProg
Scan (1,Sec,0,0)
counter=counter+1
If counter=100 Then
counter=0
EndIf
PanelTemp (PTemp,250)
Battery (Batt_volt)
TxData(1)=PTemp
TxData(2)=Batt_volt
TxData(3)=counter
time = TimeUntilTransmit
If time = 0 Then
SendGetVariables (RxResponse,ComSDC7,0,1,0000,0,TxData,3,RxData,1)
EndIf
CallTable Test
NextScan
EndProg
SendTableDef (ComPort, NeighborAddr, PakBusAddr, DataTable)
The SendTableDef instruction is used to send the table definitions from a data
table to a remote PakBus device.
Syntax
SendTableDef (ComPort, NeighborAddr, PakBusAddr, DataTable)
Remarks
This instruction can be used to send table definitions from a datalogger to a PC
running the LoggerNet server.
Parameter
& Data Type
Enter
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.
DataTable
Name
The name of the table from which the last record should be sent.