What can cause an Arithmetic error/Overflow exception with CPU fault code( %SW125=16#DEF2) reported in Unity Pro/EcoStruxure Control Expert?
Issue:
Cause of an Arithmetic error/Overflow exception with CPU fault %SW125=16#DEF2
Product Line:
EcoStruxure Control Expert
Resolution:
If an Arithmetic operation such as a multiplication, addition etc. is performed and the result of the operation exceed the max value for the variable type, this will generate an Arithmetic error/overflow exception. %S18 will turn on and stay on until the cause of the error is cleared. In the example below, IN1 and IN2 when multiplied the result is 40000. This exceed the max value of 32767 for a INT data type and thus the cause of the error.
Cause of an Arithmetic error/Overflow exception with CPU fault %SW125=16#DEF2
Product Line:
EcoStruxure Control Expert
Resolution:
If an Arithmetic operation such as a multiplication, addition etc. is performed and the result of the operation exceed the max value for the variable type, this will generate an Arithmetic error/overflow exception. %S18 will turn on and stay on until the cause of the error is cleared. In the example below, IN1 and IN2 when multiplied the result is 40000. This exceed the max value of 32767 for a INT data type and thus the cause of the error.
發佈於: 施耐德電機Taiwan


需要協助?
產品選型工具
快速輕鬆地為您的應用找到合適的產品和附件。
取得報價
立即線上提交您的銷售需求,專業團隊將主動聯繫您。
購買地點
輕鬆在您所在地區找到最近的施耐德電機經銷商。
支援中心
在同一位置找到滿足您所有需求的支援資源。