Campbell RF410 Manuál s instrukcemi Strana 51

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 124
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 50
PakBus Networking Guide
45
6.2 CRBasic PakBus Dataloggers
The CR205 is a CRBasic programmed, PakBus compatible datalogger. Soon to
come is CSI’s full featured, CRBasic programmed, PakBus datalogger - the
CR1000.
6.2.1 SendGetData
Purpose
The SendGetData instruction is used in remote CR200 Series dataloggers to
send an array of values to the host datalogger, and/or retrieve an array of data
from the host datalogger. A TimeUntilTransmit instruction is required to
control the timing of the SendGetData instruction allowing it to transmit in the
time slot assigned by the host P193 instruction. For a more complete program
example, see Appendix F.
Example
Public TimeUntilTx
…..
TimeUntilTx = TimeUntilTransmit(1) ' 1 = RF, 2 = RS-232
…..
If TimeUntilTransmit(1) = 0 then ' time to communicate
SendGetData (Response, Control(),Measurements(),1,1,1,00000)
Endif
Syntax
SendGetData (ResponseDest, GetData, SendData, Port, HostAddr, RouterAddr,
Security)
Remarks
The host datalogger must be a CR10XPB, CR510PB, or CR23XPB datalogger
(CR200 to CR200 data transfer is not supported).
Parameters
ResponseDest
The ResponseDest parameter is the variable in which a response code for
the transmission will be stored. The response code indicates whether or not
the transmission was successful. The codes that can be returned are:
Code Description
0 Successful
-1 Response received but permission denied
-2 Response received but insufficient resources
1, 2..n The number of timeouts waiting for a response
Zobrazit stránku 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 ... 123 124

Komentáře k této Příručce

Žádné komentáře