HELLO:
i have updated to V3.5,when i run my app(named X105PLC) in the PLC,it will occur error below:
“1405958206: Cmp=CmpIecTask, Class=8, Error=338, Info=3, pszInfo=#### EXCEPTION [<excpt>FPU DivisionByZero</excpt>] occurred: App=[<app>X105PLC</app>], Task=[<
task>Task] ”;
How can i ignore thses errors in my PLC and keep the task "X105PLC" running when it occur?
MY CPU:MPC8280 400MHz;VxWorks 5.5.2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To prevent an exception in the application caused by a division by zero it is best to check all your code for division by any variable and make sure it can never be zero or won't execute the division if it is zero.
But if you don't want this and want to automatically divide by 1 if it is zero, you can add the objects "POU for implicit checks..." to your application. Then enable all division options. CODESYS will automatically create code and call this with every division to check if the variable value is 0. It will then replace this by 1.
The consequence will be that your code will be somewhat larger and therefor slower.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
HELLO:
i have updated to V3.5,when i run my app(named X105PLC) in the PLC,it will occur error below:
“1405958206: Cmp=CmpIecTask, Class=8, Error=338, Info=3, pszInfo=#### EXCEPTION
[<excpt>FPU DivisionByZero</excpt>] occurred: App=[<app>X105PLC</app>], Task=[<
task>Task] ”;
How can i ignore thses errors in my PLC and keep the task "X105PLC" running when it occur?
MY CPU:MPC8280 400MHz;VxWorks 5.5.2
To prevent an exception in the application caused by a division by zero it is best to check all your code for division by any variable and make sure it can never be zero or won't execute the division if it is zero.
But if you don't want this and want to automatically divide by 1 if it is zero, you can add the objects "POU for implicit checks..." to your application. Then enable all division options. CODESYS will automatically create code and call this with every division to check if the variable value is 0. It will then replace this by 1.
The consequence will be that your code will be somewhat larger and therefor slower.