Overview of In Range Comparison
If using the out range comparison start
condition, the start condition is satisfied when the analog signal of
the specified channel deviates from the range set by level 1 and level
2. Conversion data from the black dots portion is stored in memory.
If the analog signal is within the out-range range from the beginning,
the conversion immediately starts.
Start Condition : Analog Signal ≦ Level2 or Level1 ≦ Analog Signal
Set Out Range Comparison Start Condition
When using out range comparison start as the conversion start condition,
set out range comparison start condition.
Use function AioSetAiStartOutRange
to set the out range comparison start condition.
Ret = AioSetAiStartOutRange ( Id , AiChannel , Level1 , Level2 , StateTime )
In AiChannel, specify the channel that performs the out range comparison.
In Level1 and Level2, set out range data in
binary values from the following range.
The values that can be set depend on the device.
Set the data to level2 ≦ level1.
Device with 12 bit resolution |
0 to 4095 |
Device with 16 bit resolution |
0 to 65535 |
In StateTime, after the out range comparison
has been satisfied, set the period to hold the state by the number of
sampling times.
The actual conversion starts after the sampling time for StateTimes has
elapsed.