Campbell Scientific SDM-SIO4 4-Channel Serial I/O Interface User Manual

Page 40

Advertising
background image

Section 5. Programming the Datalogger

5-8

P113

1:

1

2:

0

3:

1

4:

21

Command to execute command line command.

5:

0

6:

0

7:1 5

Length of command line string. ;no. of datalogger input locations

8:

1

9:

1

10: 0

;delay large enough (10ms) to allow SDM-SIO4 instruction 321 to finish.

P22

1:

1

2:

0

3:

1

4:

0

;get the command line return code. In this case the returned code would be 22 as the SDM-SIO4
would still be executing the command line command. This P113 instruction in most cases would not
be required and would generally be used in development of the datalogger program.

P113

1:

1

2:

0

3:

1

4:

67

Command to get return error codes.

5:

0

6:

0

7:

1

8:

20

Location to store return code.

9:

1

10: 0

;set flag one so that set-up will only be done once.

P86

1

1

;end of set-up.

P95

If you use the RAMTEST command you will have to wait a
minimum of 6 seconds for it to complete before you try to
execute another P113.

Some Dataloggers do not support P65 Bulk Load. In that case you would have
to use a P30 Instruction for each ASCII character.

NOTE

Advertising