Campbell Hausfeld Serial I/O Interface SDM-SIO4 User Manual

Page 45

Advertising
background image

Section 5. Programming the Datalogger

5-15

;set serial mode to DTR, RTS always set, ignore CTS, 1 stop bit no parity,
;8 bit data length, 9600 baud and no handshake delay.

2: SDM-SIO4 (P113)

1: 1 Reps

2: 0 Address

3: 1 Send/Receive Port 1

4: 2049 Command

5: 3146 1st Parameters

6: 0 2nd Parameters

7: 0 Values per Rep

8: 0000 Loc [ _________ ]

9: 1.0 Mult

10: 0.0 Offset

;set up a simple filter 1999 search for floating point number.

3: SDM-SIO4 (P113)

1: 1 Reps

2: 0 Address

3: 1 Send/Receive Port 1

4: 2054 Command

5: 1999 1st Parameters

6: 0 2nd Parameters

7: 0 Values per Rep

8: 0000 Loc [ _________ ]

9: 1.0 Mult

10: 0.0 Offset

;the set up filter command requires a delay of 4ms, the nearest we can get
;is 10ms with P22.

4: Excitation with Delay (P22)

1: 1 Ex Channel

2: 0 Delay W/Ex (units = 0.01 sec)

3: 1 Delay After Ex (units = 0.01 sec)

4: 0 mV Excitation

;set flag one high so the above will only be done once.

5: Do (P86)

1: 11 Set Flag 1 High

;end of serial and filter setup.

6: End (P95)

;get two floating point numbers into locations 1 and 2.

7: SDM-SIO4 (P113)

1: 1 Reps

2: 0 Address

3: 1 Send/Receive Port 1

4: 4 Command

5: 0 1st Parameters

6: 0 2nd Parameters

7: 2 Values per Rep

8: 1 Loc [ Number ]

9: 1.0 Mult

10: 0.0 Offset

Advertising