<9. Advanced Engineering >
In this application, only bit 15 (BAD bit) of Status of the output from the OUT
terminal of NPAS_PID_1 is extracted by NPAS_CDT_DESTR_1, which is then used
by NPAS_CDR_STR_2 to reconstruct the CData_REAL type data. The other bit
information such as MINT, SINT and CND are not propagated and hence lost.
To avoid this problem, use the correct logic shown in the figure below.
In this logic, CData_REAL-type variable “PID_1_OUT” is connected to the OUT
terminal of NPAS_PID_1. Only Value is extracted from the variable for calculation
and the result is then returned in Value.
This way, calculation can be performed without losing status information.