Campbell CR23X Spezifikationen Seite 258

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 374
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 257
APPENDIX B. CONTROL PORT SERIAL I/O INSTRUCTION 15
B-14
06: P77 Real Time
01: 110 Day,Hour-Minute
07: P70 Sample Output out of range reading
01: 1 Rep
02: 1 Loc AIR, mb
08: P86 Do Set Intermediate Processing
01: 19 Set high Flag 9 Disable Flag
09: P86 Do Set Flag 1 low
01: 21 Set low Flag 1
10: P95 End End of If Flag Then Do
11: P92 If time is Output mb twice/day
01: 0 minutes into a
02: 720 minute interval
03: 10 Set high Flag 0 (output)
12: P77 Real Time
01: 110 Day,Hour-Minute
13: P71 Average
01: 1 Reps
02: 1 Loc AIR, mb
14: P End Table 1
Input Location Labels:
1:AIR, mb
B.7.2 EXAMPLE 2: CR23X TO CR23X
COMMUNICATION
The following example shows how data can be
sent between CR23X's. The program for the
CR23X sending the data, CR23X#1, includes a
loop which creates data to send; the numbers
are generated and stored in Input Locations 1
through 10. Instruction 15 then transfers the
contents of Locations 1 through 10 to
CR23X#2. Instruction 15 in CR23X#2 receives
and stores the values in Input Locations 11
through 20.
As shown in Figure 2, the DTR from #1 is
connected to control port 8 of CR23X#2. RS-
232 logic is used so DTR is +5V when asserted.
The DTR going high is connected to port 8 of
CR23X#2, causing subroutine 98 to be
executed (refer to CR23X manual, Instruction
85, Section 12). Subroutine 98 contains
Instruction 15, programmed to receive input.
CR23X#2's RTS is connected to CR23X#1's
CTS. When CR23X#2 executes Instruction 15,
the RTS going high signals CR23X#1 to send
data.
CR23X#1 CR23X#2
SEND DATA RECEIVE DATA
FUNCTION PORT PORT FUNCTION
DTR C1 ----------->C8 Interrupt; SBR 98
CTS C2<----------- C1 RTS
TX C5 ----------->C5 RX
FIGURE B-2. Wiring Diagram for CR23X to CR23X Communication Example
Seitenansicht 257
1 2 ... 253 254 255 256 257 258 259 260 261 262 263 ... 373 374

Kommentare zu diesen Handbüchern

Keine Kommentare