Specifications
Section 13. PakBus Communication Instructions
13-7
Public PTemp, batt_volt,Result(2),Rx(2,3),Tx(2,1)
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)
PanelTemp (PTemp,250)
Battery (Batt_volt)
Tx(1,1)=Tx(1,1)+1
If Tx(1,1)=60 Then
Tx(1,1)=0
EndIf
Tx(2,1)=Tx(1,1)
Network (Result(),2,109,0,30,0,3,Rx(),1,Tx())
CallTable Test
NextScan
EndProg
This instruction does not initiate communication with the
destination dataloggers; communication is initiated by the
destination devices using the SendGetVariables instruction.
PakBusClock (PakBusAddr)
Set the datalogger’s clock to the clock value of a sending datalogger with the
specified PakBus address.
Syntax
PakBusClock (PakBusAddr)
Remarks
The PakBusAddr parameter is the address of the remote datalogger from which
this datalogger will accept a ClockReport. This must be an integer between 1
and 4094. The ClockReport instruction is used in the remote datalogger to
send its clock value to this datalogger.
PakBusClock Program Example
In the following example program, if the datalogger receives a ClockReport
from a PakBus datalogger with an address of 1, this datalogger's clock will be
set.
Also see the ClockReport example.
BeginProg
Scan (1,Sec,3,0)
PakBusClock (1)
NextScan
EndProg
NOTE