This block provides the error code to find error in the system.
Figure 1:Error - Function Block |
Figure 2:Error Function - Property Sheet |
Inputs
Input Name |
Description |
Error Code |
This is 32-bit floating point input slot. |
Fb Breadcrumb |
This is 32-bit floating point input slot. |
Table 1:Inputs of Error Function
Error Code:
Parameter
Parameter Name |
Description |
Out Save |
Master Sync Enabled : If you set it to "true" the last output will be set as output for one cycle after the controller restarts. The application can use it to return to the same state before the controller restart. Out Error Code: To enable or disable the Out Error Code feature. Out Fb Execution:To enable or disable the Out Fb Execution feature. |
Table 2:Parameters of Error Function
Examples
Figure 3: Error code 1- Division by zero, or some other asymptotically infinite result
Figure 4: Error code 5- Cannot provide a result, because not all necessary inputs are valid
Refer to General for general information about IRMN4 Function Blocks.