boardFaultLogGet (Functionblock) |
Top Previous Next |
The boardFaultLogGet function block is used to read the fault log from the VPL application. The faults returned in this function block can also be read from the Fault log dialog.
The fault entries are sorted with the last fault first. To convert a fault code returned as a negative number back to the correct value, you should use the following method: <int> := INT(fault[n] AND 16#FF);
A debug feature allows information about the specific location of a fault to be retrieved. Please refer to boardFaultLogGetDebug for additional information. See the Project settings dialog in the RTCU IDE for more information on the debug feature.
For a list and explanation of the fault codes, please refer to the Troubleshooting section, Fault codes.
Input: None
Output: count : INT; Number of fault log entries (0..32).
time[n] : DINT; Linsec for fault timestamp.
fault[n] : SINT; Fault code.
Declaration: FUNCTION_BLOCK boardFaultLogGet;
Example: INCLUDE rtcu.inc |