Program example for p113 command 321 – Campbell Scientific SDM-SIO4 4-Channel Serial I/O Interface User Manual

Page 39

Advertising
background image

Section 5. Programming the Datalogger

5-7

there would be no point executing some commands, for example STATUS,
from the datalogger, as there would be no status output to be seen. To get the
return code you can use the P113 Command 67 which will put the return code
into a storage location. The return codes are listed at the end of this section.

This command requires a 4ms delay before any other SDM-SIO4 instruction
from the datalogger is executed

Do not attempt to run a program with command 321 while
accessing the command line via one of the SDM-SIO4 ports.

Program Example for P113 Command 321

An example of executing a command line command to store the following filter
string as shown below:

The filter string is fltst 25 “ffCc”

;test flag one. If clear then set-up the SDM-SIO4.

P91

1:

21

2:

30

;load command line string into consecutive locations.

P65 Bulk load

1:

102

f

2:

108

l

3:

116

t

4:

115

s

5:

116

t

6:

32

ascii space

7:

50

2

8:5 3

5

9:

1

First location to store the first lot of 8 characters.

P65 Bulk load

1:

32

ascii space

2:

34

3:

102

f

4:

102

f

5:6 7

C

6:

99

c

7:

34

8:

0

9:

9

First location to store second lot of characters.

;execute the command line string.

NOTE

Advertising