15 command 1024: send string to device, 16 command 1025: transmit a byte, 17 command 1026: serial port status – Campbell Scientific SDM-SIO4 4-Channel Serial I/O Interface User Manual

Page 41: First value returned, Second value returned

Advertising
background image

Section 5. Programming the Datalogger

5-9

5.2.15 Command 1024: Send String to Device

This command requests the SDM-SIO4 to transmit a user-defined text string
(entered in the command line mode) number 0..255 or a fixed string 256..511.
The string number is defined in parameter 5. The string is transmitted from the
specified port to the RS232 device. If the specified string has not been allocated
then ‘

string not allocated

’ is transmitted.

Values per repetition = 0

Minimum delay = characters*0.26*ports in milliseconds

5.2.16 Command 1025: Transmit a Byte

This command transmits a byte (defined in parameter 5) from the SDM-SIO4 to
the RS232 device. The byte must be in the range of 0..255 for binary code.

Values per repetition = 0

5.2.17 Command 1026: Serial Port Status

This command requests the SDM-SIO4 to send the current output level of
status lines, number of framing errors, number of parity errors and number of
overruns. This is sent to the datalogger as four Campbell Scientific floating
point numbers to consecutive input locations.

Values per repetition = 4

First Value Returned

Parity errors (count from 0..99)
| | DTR status (0=DTR low, 1=DTR high)
| | | RTS status (0=RTS low, 1=RTS high)
| | | |
x x x x

Second Value Returned

CTS status (0=CTS low, 1=CTS high)
| DSR status (0=DSR low, 1=DSR high)
| | RI status (see below)
| | | DCD status (0=DCD low, 1=DCD high)
| | | |
x x x x

For the RI (Ring Indicator):

0 = no trailing edge seen since last read

1 = trailing edge seen since last read

NOTE

Advertising