beautypg.com

Campbell Scientific CR10X Measurement and Control System User Manual

Page 247

background image

APPENDIX B. CONTROL PORT SERIAL I/O INSTRUCTION 15

B-15

11:

1

Multiplier

12:

0

Offset

06:

P

End Table 1

Input Location Labels:

1:VALUE #1

4:VALUE #4

7:VALUE #7

10:VALUE #10

2:VALUE #2

5:VALUE #5

8:VALUE #8

11:COUNTER

3:VALUE #3

6:VALUE #6

9:VALUE #9

12:_________

CR10X#2 PROGRAM - RECEIVE DATA

*

3

Table 3 Subroutines

01:

P85

Beginning of Subroutine

01:

98

Subroutine Number

02:

P15

Control Port Serial I/O

01:

1

Repetitions

02:

1

Configuration code

RS-232, 1200 bd

03:

0

CTS/Delay before send

04:

6

C6 RTS/DTR

RXD = C7 (code could be 76)

05:

0

Output start location

06:

0

Number of locations to send

07:

13

Input termination character

Terminate on carriage return

08:

75

Max characters to receive

09:

200

Delay for CTS/input

Wait 2 seconds for input

10:

11

First input location

Store VALUE #1 in Location 11, #10 in 20

11:

1

Multiplier

12:

0.0000

Offset

03:

P95

End

Input Location Labels:

11:VALUE #1

16:VALUE #6

12:VALUE #2

17:VALUE #7

13:VALUE #3

18:VALUE #8

14:VALUE #4

19:VALUE #9

15:VALUE #5

20:VALUE #10