1.4 Signal Quality Corresponding with OPC
Every signal (input, output, parameter) in the REXYGEN system has the so-called quality flags in addition to its own value of corresponding type (table 1.1). The quality flags in the REXYGEN system correspond with the OPC (Open Platform Communications) specification [1]. They can be represented by one byte, whose structure is explained in the table 1.2.
Bit number | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Bit weight | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
Bit field | Quality | Limits
| ||||||
Q | Q | S | S | S | S | L | L |
|
BAD | 0 | 0 | S | S | S | S | L | L |
UNCERTAIN | 0 | 1 | S | S | S | S | L | L |
not used in OPC | 1 | 0 | S | S | S | S | L | L |
GOOD | 1 | 1 | S | S | S | S | L | L |
The basic quality type is determined by the QQ flags in the two most important bits. Based on these the quality is distinguished between GOOD, UNCERTAIN and BAD. The four SSSS bits provide more detailed information about the signal. They have different meaning for each basic quality. The two least significant bits LL inform whether the value exceeded its limits or if it is constant. Additional details and the meaning of all bits can be found in [1], chapter 6.8. The list of blocks propagating signal quality is given in table 1.3.
ABSROT | ABS | ADDHEXD | ADD | ANDHEXD | AND | ASW | ATMT |
AVG | AVSI | AVS | BDHEXD | BITOP | BMHEXD | BPF | CMP |
CNB | CNDR | CNI | CNR | COUNT | DELM | DEL | DER |
DIF | DIV | EAS | EATMT | EDGE | EMD | EQ | EVAR |
FNXY | FNX | GAIN | IADD | IDIV | IMOD | IMUL | INTE |
INTSM | ISSW | ISUB | ITOI | KDER | LIN | LPF | MINMAX |
MUL | NOT | NSCL | ORHEXD | OR | OSD | POL | RDFT |
REC | REL | RLIM | RS | RTOI | SELHEXD | SHIFTOCT | SHLD |
SINT | SPIKE | SQRT | SQR | SR | SSW | SUB | SWR |
TIMER | UTOI | VDEL | ZV4IS | ||||
The principle of quality propagation between blocks operates as follows: The lowest quality among all data inputs to a block is determined and applied to all data outputs. Any unconnected input is considered as good quality (GOOD). Quality on control inputs is not tracked; however, control inputs can influence the propagation of quality from data inputs. On status outputs, the quality is invariably set to good (GOOD).
For instance, in a DEL block, the input u is considered data because it carries operational data. The input R1 is classified as control since it controls the block’s operation. The output y is data because it conveys the block’s output information. The RDY output is status as it indicates the operational state of the block.
Except for certain cases (SAI, VIN, S1OF2), the quality does not influence the block’s algorithm (i.e., the actual values at the outputs). Some blocks may assign a lower quality (UNCERTAIN, BAD) as a result of their algorithm (e.g., DEL prior to buffer filling or DIV when dividing by zero).
[Previous] [Back to top] [Up]
2024 © REX Controls s.r.o., www.rexygen.com