Specifications
Section 13. PakBus Communication Instructions
13-9
By default, LoggerNet uses PakBus address 4094 and PC400
uses 4093.
SendData Example Program
The following example program uses the SendData instruction to send the most
recent record from Table1 to PakBus ID 4094 once per minute. If the PakBus
ID 4094 device is the LoggerNet server, the data will be stored in a data file on
the PC.
Public Temp
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,Min) Then
SendData (ComRS232,0,4094,Table1)
EndIf
CallTable (Table1)
NextScan
EndProg
SendGetVariables (ResultCode, ComPort, NeighborAddr, PakBusAddr,
Security, TimeOut, SendVariable, SendSwath, GetVariable,
GetSwath)
The SendGetVariables instruction is used in a remote datalogger to send an
array of values to the host datalogger, and/or retrieve an array of data from the
host datalogger.
Syntax
SendGetVariables ( ResultCode, ComPort, NeighborAddr, PakBusAddr,
Security, TimeOut, SendVariable, SendSwath, GetVariable, GetSwath )
Remarks
When the SendGetVariables instruction is used in a datalogger, data
transmission times are controlled by a host datalogger. Most often, this
instruction is preceded by the TimeUntilTransmit instruction to trigger the
execution of the SendGetVariables instruction. The program in the host
datalogger must contain the NetWork instruction, which sets the times that the
remote dataloggers should respond.
If security is enabled in the host datalogger, it must be unlocked to level 2 for
this instruction to be successful.
NOTE