FPU_EXCEPTION_INFO

../_images/ae07974ee38aa3850a33139000eba54e1

The Function Block FPU_EXCEPTION_INFO reads information which has been stored during an FPU exception. The reading operation takes 1 PLC cycle. If data are available, they are provided by setting the outputs DONE = TRUE and ERR = FALSE. If several errors have appeared up to the call of the Function Block, the last error is shown.

Note

This Function Block only has to be used with CPUs which have an FPU. The CPU parameter “Reaction on floating point exception” has to be set to “No failure”.

The following table represents an overview of the possible return values of the Function Block.

EXCEPT_ERR EXCEPT_TYPE EXCEPT_TEXT
FALSE 16#00 “No error”
TRUE 16#01 “Zero Divide”
TRUE 16#02 “Overflow”
TRUE 16#03 “Underflow”
TRUE 16#04 “Invalid”
TRUE 16#05 “Inexact”
TRUE 16#06 “Function”

The error “Function” occurs, if a result of a function (e.g. SQRT, LN or ACOS) cannot be calculated.

Available as of PLC runtime system: V1.2
Included in library: SysInt_AC500_V10.lib
Type Function Block with historical values