SDM-SIO4 User Guide

5.2.12 Command 67: Get Return Code

This command gets the return error code and places it into a specified location. Command 67 is used in conjunction with command 321 and provides a single return code value which indicates if the command was successful or not. See Section 5.6 for the return codes.

Values per repetition = 1

5.2.13 Command 320: Send Byte Data to SDM-SIO4

This command transmits bytes of data (one per input location) to the SDM-SIO4 for retransmission. The values in the input location should be in the range 0..255.

5.2.14 Command 321: Execute Command Line Command

By using P113 command 321 it is possible to execute a command line command from the datalogger program. This is done by loading the datalogger’s input locations with exactly the same string of characters that you would use to execute a real command line command, except you would have to enter the character codes in sequential locations. The P113 command 321 would then load the string into the SDM-SIO4 and execute the command. The 321 command is useful for reconfiguring a remote SDM-SIO4 as changes can be made by downloading programs (using the 321 command) which can change the SDM-SIO4 setup.

The datalogger can send other commands to the SDM-SIO4 while the command line command is executing.

Any command line command executed from the datalogger can only return a single return code value to indicate if it was successful or not, and any other output which that command would normally produce is lost. This means that 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

NOTE 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.

5-6

Page 36
Image 36
Campbell Hausfeld Command 67 Get Return Code, Command 320 Send Byte Data to SDM-SIO4, Program Example for P113 Command