
PakBus Networking Guide
41
Example:
9: PakBus - Wireless Network Master (P193)
1: 10 Number of Remotes
2: 1 First Remote Address ; 1st CR205 "Datalogger Address"
3: 0 Time Into Transmit Interval (sec)
4: 60 Transmit Interval (sec, 0 = use execution interval)
5: 3 Transmit Delay Between Remotes (sec)
6: 4 Swath to Receive ; Number of data values each CR205
7: 11 First Loc for Data Received [ DataRcvd_1 ]
8: 5 Swath to Send
9: 21 First Loc to Send [ HostBattr_1 ]
10: 3 Result Code Loc [ Response ] ; RCV’d, -1 = successful
According to the Number of Remotes parameter, you must assign Input
Location groups to accommodate Data Received and Loc to Send. For
example, with 10 remotes and Swath to Send = 5 you would use Input Loc
Editor to assign 50 Input Locations with appropriate labels for data to be sent.
With Swath to Receive = 4 you would assign 40 Input Locations for data to be
received.
The remote will keep its clock synchronized by retrieving the host’s clock and
setting its own with each communication with the datalogger during their time
slot.
Once set up, P193 does not initiate any communications but responds to any
port (CSDC 7, CSDC 8, or M.E.) that receives a SendGetData message from a
CR200 Series or non-CRBasic datalogger’s P196 instruction.
Result Codes
When the datalogger receives a message from one of its remotes, the
corresponding Result Code Location is set to -1. When Instruction 193 is
executed, the Result Code Location is incremented by 1. Therefore, if
communication is successful, the Result Code Location will be 0 after the
execution of Instruction 193. If data transfer is unsuccessful, the Result Code
Location for the remote that failed will be incremented, and will continue to
increment with each failed attempt.
Multiple Instruction 193s can be used in a program to configure up to four
different groups of dataloggers/wireless sensors.
6.1.4 P194 – Time Until Transmit
Purpose:
Used in conjunction with a conditional statement to determine how many
seconds remain until the remote datalogger’s Wireless Remote Instruction
(P196) should be executed to initiate the next scheduled communications with a
master datalogger.
Comentários a estes Manuais