
Section 7. Measurement Instructions
Parameter
& Data Type
Enter
Mode
The Mode parameter configures a bank of four ports when a Command code
86 through 90 is used (if any other Command Code is used, enter 0 for the
Mode). Mode is entered as four digits, where each digit indicates the setting
for a port. Ports are represented from the highest port number to the lowest,
from left to right (e.g., 16 15 14 13; 12 11 10 9; 8 7 6 5; 4 3 2 1). There is a
Mode for Ports 16 - 13, 12 - 9, 8 - 5, and 4 - 1. The valid codes are:
Code Description
0 Output logic low
1 Output logic high
2 Input digital, no debounce filter
3 Input switch closure 3.17 msec debounce filter
4 Input digital interrupt enabled, no debounce filter
5 Input switch closure interrupt enabled 3.17 msec, debounce filter
6 Undefined
7 Undefined
8 Undefined
9 No change
Mult, Offset
The Mult and Offset parameters are each a constant, variable, array, or
expression by which to scale the results of the measurement.
SDMSIO4 (Dest, Reps, SDMAddress, Mode, Command, Param1, Param2,
ValuesPerRep, Multiplier, Offset)
The SDMSIO4 instruction is used to control and transmit/retrieve data from a
Campbell Scientific SDM-SIO4 Interface (4 Channel Serial Input/Output
device). See the SDM-SIO4 Serial Input Interface manual for operation
details.
For instructions used for serial input and output without the SDM-SIO4, see
Section 12.
Parameter
& Data Type
Enter
Dest
The Dest parameter is the variable in which to store the results of the
instruction when retrieving data from the SIO4. If data is being sent to the
SIO4, then Dest becomes the source array for the data to be sent. The Dest
array must be at least as large as the Reps parameter value multiplied by the
ValuesPerRep parameter value.
Reps
The Reps parameter defines the number of sequential SIO4s that will be
called by the instruction. The datalogger will poll the SIO4 with the address
set by the Address parameter first, receive or send the number of values set
by the ValuesPerRep parameter next, and then poll the SIO4 with the next
sequential address. If the Reps parameter is 2, the ValuesPerRep is 3, and
the Command parameter is set to receive, then three values from the first
SIO4 would be sent to the first three elements of the Dest array, and three
values from the second SIO4 would be received and written to the forth
through sixth elements of the Dest array.
7-43
Commenti su questo manuale