SDM-SIO4 User Guide

Convert a location sent into a 16-bit binary word. If this option is selected an extra ASCII character/delimiter can be added to the end of the 16-bit word sent.

See Section 5 – ‘Programming the Datalogger’.

3.3.2 Output Format Strings

These allow either just long strings to be sent from the SDM-SIO4 or a combination of string data plus data from a datalogger input location. This type of format is normally set up from the ‘command line’. The user definable strings are referenced by a number in the range 0..255. The string is entered as a series of the following formatter commands:

<space> Send ASCII space.

bn Send a binary number received from the datalogger to the port. ‘n’ can be

1, 2 or 3 bytes, i.e. 8-, 16- or 24-bit. If n=4 then it is direct Campbell Scientific floating point format. If the formatter string asks for more values than the datalogger sends then the SDM-SIO4 sends ‘*’ characters.

fn:n Send a left-hand justified, formatted ASCII floating point number to the port. The first ‘n’ is the field width in characters and the second ‘n’ is the number of decimal places to use within the field width. If the integer part of the ‘n’ number is bigger than the field width, the SDM-SIO4 still sends it even though it is longer than the set field width. If the formatter string asks for more values than the datalogger sends (because Instruction 113 specifies fewer values) then the SDM-SIO4 sends a number of ‘*’ characters to the port (e.g. for a field width of 4 it sends ****). Minimum field width 2 digits, maximum field width 15 characters, maximum number of decimal places 8.

gn Error detection – start of signature calculation for transmitted data – see Section 6.

Gn Error detection – marks end of signature calculation for transmitted data

see Section 6.

hn Send an ASCII hex number to the port. ‘n’ can be 1, 2 or 3 bytes converted, i.e. an 8-, 16- or 24-bit number. If the formatter string asks for more values than the datalogger sends then the SDM-SIO4 sends ‘*’ characters.

i[ ] Send the string between the brackets [ ] to the port. Up to 255 ASCII characters can be sent. (See Section 4.2 – Entering Commands).

J Send line feed.

M Send carriage return.

s Stop formatting.

zn Send a pre-stored string to the port. ‘n’ is the user-defined string number 0-255 or a fixed string 256-511.

Table 4, below, shows all the defined Fixed Strings.

3-6

Page 22
Image 22
Campbell Hausfeld SDM-SIO4 manual Output Format Strings