3 command 2: signatures, 4 command 3: flush all receive buffers, 5 command 4: send data to datalogger – Campbell Hausfeld Serial I/O Interface SDM-SIO4 User Manual

Page 34: 6 command 5: status

Advertising
background image

SDM-SIO4 User Guide

5-4

5.2.3 Command 2: Signatures

This command gets the SDM-SIO4 EPROM signature and the string memory area
signature; the two values are written into consecutive input locations. If the
signatures are zero then there could be corrupt data.

Values per repetition = 2

5.2.4 Command 3: Flush all Receive Buffers

Stored data in the SDM-SIO4 relevant to the port is also erased with this
command.

Values per repetition = 0

5.2.5 Command 4: Send Data to Datalogger

This command requests the SDM-SIO4 to send the specified (values/reps) number
of floating point values it has already received from the RS232 device (relevant to
the port specified) into input locations. -99999 is stored if no value is available.

For example, this command could be used to get data converted using input filter
strings of type d, D, f, F, pn, bn, u[ ], vn[ ], wn[ ] and B[n,n..] – see Section 3.

5.2.6 Command 5: Status

This command returns the SDM-SIO4 general status, lithium battery level, errors
and data available flags. The data is supplied as two floating point values. First
value:

Number of watch dog resets
| | Number of invalid commands executed
| | | Lithium battery level
| | | |
x x x x

Number of watch dog resets: This is a count from 0 to 99. This indicates that
there has been some hardware or software failure, or can be caused by the
datalogger transmitting the correct address but not transmitting any commands.

Number of invalid commands executed: This is a count from 0-9 and indicates
that the command you have tried to execute is not a current SDM-SIO4 command.
Because some dataloggers carry out auto speed detection for the SDM interface,
this counter may be incremented when the program is first compiled.

Lithium battery level:

0

Lithium battery low and must be replaced.

1

Lithium battery good.

The second floating point value is the same as for Command 1:

Port 4 data available
| Port 3 data available
| | Port 2 data available
| | | Port 1 data available
| | | |
x x x x

Advertising