Hi Everyone,
I got a problem of "Maths overflow" and it logs the minor fault for everyscan. The instruction used is SUB with Source A and Source B values are encoder values (integers) that should stay in between +-32767. While Encoders are in running mode, these values are overflowing a bit OR roll over a few more increment which is creating this Maths overflow problem. The sequence is working fine but this error code is bothering me a lot. Within few cycles, minor fault logs thousands of times. It does show me rung where the problem is located but do not know how to fix it.
Is there any way or any instruction I can use to eliminate this fault. S:Minor or GSV did not help, it still recors minor fault.
Thanks
Dhillon
I got a problem of "Maths overflow" and it logs the minor fault for everyscan. The instruction used is SUB with Source A and Source B values are encoder values (integers) that should stay in between +-32767. While Encoders are in running mode, these values are overflowing a bit OR roll over a few more increment which is creating this Maths overflow problem. The sequence is working fine but this error code is bothering me a lot. Within few cycles, minor fault logs thousands of times. It does show me rung where the problem is located but do not know how to fix it.
Is there any way or any instruction I can use to eliminate this fault. S:Minor or GSV did not help, it still recors minor fault.
Thanks
Dhillon