Measurement Specialties USB-1616HS-2 Computer Hardware User Manual


 
USB-1616HS-2 User's Guide Functional Details
38
A value of 0 indicates that the setpoint criteria are not met—in other words, the condition is False.
A value of 1 indicates that the criteria have been met—in other words, the condition is True.
In the following example, the criteria for setpoints 0, 1, and 4 is satisfied (True), but the criteria for the other
13 setpoints has not been met.
Setpoint # 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 1
True (1)
False (0)
<<< Most significant bit Least significant bit >>>
From the table above we have 10011 binary, or 19 decimal, derived as follows:
Setpoint 0, having a True state, shows 1, giving us decimal 1.
Setpoint 1, having a True state, shows 1, giving us decimal 2.
Setpoint 4, having a True state, shows 1, giving us decimal 16.
For proper operation, the setpoint status register must be the last channel in the scan list.
Examples of control outputs
Detecting on analog input, DAC, and FIRSTPORTC updates
Update mode: Update on True and False
Criteria: Channel 5 example: below limit; channel 4 example: inside window
In this example, channel 5 is programmed with reference to one setpoint (limit A), defining a low limit.
Channel 4 is programmed with reference to two setpoints (limit A and limit B) which define a window for that
channel.
Channel Condition State of detect signal Action
True
When channel 5 analog input voltage is below the limit
A, update DAC1 with output value 0.0 V.
5
Below limit A (for
channel 5)
False
When the above stated condition is false, update DAC1
with the Output Value of - 1.0 V.
True
When Channel 4's analog input voltage is within the
window, update FIRSTPORTC with 70h.
4
Within window
(between limit A and
limit B) for channel 4
False
When the above stated condition is False (channel 4
analog input voltage is outside the window), update
FIRSTPORTC with 30h.