Sensoray 2600 User Manual
Page 38

2600 Family Instruction Manual
33
Chapter 6 : Model 2608 Analog I/O Module
Response
(Value<7:0>),(Value<15:8>)
6.6.3 SetInputRanges
Function
Programs the input ranges for all 16 analog input
channels.
Opcode
0x02
Command
(Range<7:0>),(Range<15:8>)
Response
none
Notes
Once set, the input range settings apply until they
are changed by another SetInputRange
action or a module reset occurs.
After a module reset, all channels default to the
±
10V range.
Any channel that has its range changed by this
action will have its stored snapshot and integrated
sample values reset. The next snapshot will be
stored as both the current snapshot value and as
the integrated value; the next integrated value
update will occur 16 (or 20, if the line frequency
is 50 Hz) milliseconds later.
The input range must be set to ±10V on any
channel that has the 4-20mA termination option
enabled. In this case, the channel will measure
+10V at 20mA, and +2V at 4mA.
The input range must be set to ±100mV on any
channel that is connected to a thermocouple.
Refer to the distribution media for detailed
information about thermocouple usage with the
model 2608.
6.6.4 GetInputRanges
Function
Returns the programmed input ranges of all 16
analog input channels.
Opcode
0x03
Command none
Response
(Range<7:0>),(Range<15:8>)
Notes
The returned Range flags will indicate the values
set by the most recent SetInputRange action,
unless a module reset has occurred, in which case
all Range flags will be reset to zero.
6.6.5 GetSnapshots
Function
Returns the most recently acquired snapshot
values from the 16 external AIN channels.
Opcode
0x04
Command none
Response
(Data[0]<7:0>),(Data[0]<15:8>),
... ,
(Data[15]<7:0>),(Data[15]<15:8>)
Notes
This action does not cause AIN channels to be
digitized; it only returns previously digitized
values. Returned values range in age from 0 to 2
milliseconds.
One 16-bit, signed binary value is returned for
each of the module’s 16 AIN channels. For each
channel, the value that is returned is the average
of four samples acquired in rapid succession.
Parameter
Function
Value
Signed, 16-bit value, LSB first, that
indicates the programmed output
setpoint for the target analog output
channel. This is the value set by the
most recent SetOutput action, or
zero if the module has been reset.
Parameter
Function
Range
Bit flags that specify the voltage input
range to use when measuring analog
input channels. Each bit corresponds to
one channel (i.e., bit 9 corresponds to
channel 9). Set a flag to 0 to select the
±10V range, or 1 to select the ±100mV
range.
Parameter
Function
Range
Bit flags that specify the voltage input
range to use when measuring analog
input channels. Each bit corresponds to
one channel (i.e., bit 9 corresponds to
channel 9). Flag set to 0 indicate the
±10V range; flags set to 1 indicate the
±100mV range.
Parameter
Function
Data
Word array containing the acquired
values from all analog input channels.
Data ordering begins with channel 0
and progresses by increasing channel
number. All word values are returned
least significant byte first.