Section 3. Understanding How the SDM-SIO4 Handles Data
3-7
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 3-1, below, shows all the defined Fixed Strings.
Summary of Contents for SDM-SIO4
Page 6: ...SDM SIO4 Table of Contents iv This is a blank page ...
Page 12: ...Section 1 Introduction 1 6 This is a blank page ...
Page 16: ...Section 2 Installation and Hardware Set Up 2 4 This is a blank page ...
Page 26: ...Section 3 Understanding How the SDM SIO4 Handles Data 3 10 This is a blank page ...
Page 32: ...Section 4 Programming the SDM SIO4 4 6 This is a blank page ...
Page 62: ...Section 5 Programming the Datalogger 5 30 This is a blank page ...
Page 76: ...This is a blank page ...
Page 81: ...This is a blank page ...