Section 5. Programming the Datalogger

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:53 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:67 C 6:99 c 7:34 “ 8:0

9:9 First location to store second lot of characters.

;execute the command line string.

P113

1:1

2:0

3:1

4:321 Command to execute command line command. 5:0 6:0

7:15 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

5-7

Page 37
Image 37
Campbell Hausfeld SDM-SIO4 manual Execute the command line string