cardosocea
Member
Hello gents,
I have a Control Logix processor with a few Flex IO nodes and I keep getting minor faults saying that it's a type 04 Program Fault Code 04 Arithmetic Overflow and can't for the life of me understand how to solve them.
The faults happen on a move instruction where a REAL value within 0 and 65535 is being written to a Flex IO analog output module configured for 4-20 mA (0 to 65535).
Looking at the tag created by RS Logix, it is an INT which I assume is signed and would explain the error being triggered.
However, I can't seem to be able to change the data type to DINT as it is automatically generated and there is no instruction that I can use to convert from REAL to an integer format as there seems to be none available.
Have any of you guys had this problem before? How did you fix it?
I have a Control Logix processor with a few Flex IO nodes and I keep getting minor faults saying that it's a type 04 Program Fault Code 04 Arithmetic Overflow and can't for the life of me understand how to solve them.
The faults happen on a move instruction where a REAL value within 0 and 65535 is being written to a Flex IO analog output module configured for 4-20 mA (0 to 65535).
Looking at the tag created by RS Logix, it is an INT which I assume is signed and would explain the error being triggered.
However, I can't seem to be able to change the data type to DINT as it is automatically generated and there is no instruction that I can use to convert from REAL to an integer format as there seems to be none available.
Have any of you guys had this problem before? How did you fix it?