Specifications
Section 13. PakBus Communication Instructions
13-3
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.
By default, LoggerNet uses PakBus address 4094 and PC400
uses 4093.
ClockReport Example
In the following example program, the host datalogger will send its clock value
to a destination datalogger with PakBus address 10. If the datalogger with
PakBus address 10 has a PakBusClock instruction containing this datalogger's
PakBus ID, the destination datalogger's clock will be set.
Also see the PakBusClock example.
BeginProg
Scan (1,Sec,3,0)
ClockReport (ComSDC7,0,10)
NextScan
EndProg
GetVariables ( ResultCode, ComPort, NeighborAddr, PakBusAddr,
Security, TimeOut, "TableName", "FieldName", Variable, Swath )
Used to retrieve values from a variable or variable array in a data table of a
PakBus datalogger.
Syntax
GetVariables ( ResultCode, ComPort, NeighborAddr, PakBusAddr, Security,
TimeOut, "TableName", "FieldName", Variable, Swath )
Remarks
The TableName and FieldName parameters, along with the Swath parameter,
are used to determine what values will be retrieved from the destination
datalogger. The first value to be retrieved is defined with TableName and
Fieldname, and the number of values is specified by Swath. The most recent
variable(s) stored in the table are retrieved.
If security is enabled in the destination datalogger, it must be unlocked to level
3 for this instruction to be successful.
NOTE