Swath to send, First location to send, Result code location – Campbell Scientific TD Operating System Addendum for CR510, CR10X, and CR23X User Manual

Page 56: Seconds until transmit (p194)

Advertising
background image

Section 12. Program Control Instructions

12-12

For general information on input locations, see Input Locations.

Swath to Send

The number of data values that will be sent to each remote when data is
transferred.

First Location to Send

The input location which holds the first value that should be sent to the
dataloggers/wireless sensors in the group. The range of values sent to the
remote(s) is determined by the Swath to Send parameter (parameter 8).

For general information on input locations, see Input Locations.

Result Code Location

The input location in which a code is stored to indicate the result of the data
transfer. A 0 indicates the data transfer was successful; any number greater
than 0 indicates a failure.

Note: One Result Code Location is required for each remote (specified by
Number of Remotes, parameter 1). These input locations must be allocated
manually.

When the datalogger receives a wireless message from a remote, 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.

Seconds Until Transmit (P194)

A program control instruction that places in an input location the number of
seconds until it is time to transmit data to the host datalogger. This instruction
is used in conjunction with a conditional statement to determine when the
Wireless Network Remote instruction (P196) is executed to initiate
communication with the host. The communication schedule is determined by
the host (or master) datalogger and is set in the remote when it first initiates
communication. If no communication has taken place and the value has not
been set, or if scheduled communication was not successful, Seconds Until
Transmit will return a random offset into a one minute interval.

5: PakBus - Seconds Until Transmit (P194)
1: 0000 Loc with Seconds Until Transmit [ ______________ ]

Note: If the datalogger is not being used as a wireless sensor (i.e., Instruction
196 is not in the program), this instruction can be used to place a random
number of seconds into a minute interval in the specified input location. The
random seed is based on the datalogger's PakBus address.

Advertising