Manipulation of measurement values
If an error at a measurement channel is detected, which leads to an unusable measurement value, the Irinos-System automatically manipulates the measurement value: a default value is delivered instead of a measurement value, as long as the error is active. This functionality depends on the input type.
It is especially useful, if the measurement software has an integrated probe supervision. A typical implementation of a probe supervision is a check, whether the probe is moved at least the distance x between two measurements.
The values are also manipulated, if the Master-Box is not receiving measurement values from the Slave-Boxes because of a communication problem. Typically the reason for this is a broken ILink cabling (broken cable, connector not fixed properly, ...).
The manipulated value and the behaviour depend on the measurement channel type:
Channel type |
Default value in case of an error |
Condition for manipulation of the measurement value |
No manipulation in case ... |
---|---|---|---|
IR-TFV |
0x00007FFF |
oSine oscillator short circuit oILink communication error |
|
0x00007FFF |
oOverload of the reference voltage oILink communication error |
oOverload of the 24V supply output |
|
IR-INC |
0x7FFFFFFF |
oILink communication error |
oIncremental encoder error |
Hardware status
In addition to the value manipulation, the "hardware status" of the measurement channels can be readout separately. The opcode opcRHS (0x38) delivers one byte per measurement channel, containing various error bits. The bit definition depends on the type of measurement channel.
Evaluating the hardware status is strongly recommended for incremental inputs, since they are not subject to the measurement value manipulation in case of an error. Additionally the hardware status byte of an incremental channel also contains the information, whether an index pulse has been detected. This information is required for various measurements.
Two possibilities are available for accessing the hardware status:
1.It can be updated continuously via a static data channel by the MscDll, like it is used for the static measurement values or the Bit I/Os.
Steps for "continuous update of the hardware status"
Steps for "reading the hardware status from a static data channel"
2.It can be readout manually by the application via the function MSC_WriteCommand e.g. at the end of a measurement sequence.
Steps for "manually updating the hardware status"