Tom Jenkins
Lifetime Supporting Member
Please see the attached file.
There are two rungs of interest - 9 and 10. The CPT compute blocks should execute identically mathematically, since multiplying by 0.0001667 is the same as dividing by 6000.
The first executes properly, giving the correct answer of 600 when N12:10 = 3000 and N12:12 = 1200.
The second answer should be 1000 since N12:11 = 5000. However, this CPT seems to be rounding the value inside the parentheses to the nearest integer. I used the "|" (above the \) to enter the divide opertion. The file verifies without errors.
Have any of you seen this before? What is going on? Can I divide using a register instead of a constant without error?
I am totally stumped. The processor is a SLC 5/05.
There are two rungs of interest - 9 and 10. The CPT compute blocks should execute identically mathematically, since multiplying by 0.0001667 is the same as dividing by 6000.
The first executes properly, giving the correct answer of 600 when N12:10 = 3000 and N12:12 = 1200.
The second answer should be 1000 since N12:11 = 5000. However, this CPT seems to be rounding the value inside the parentheses to the nearest integer. I used the "|" (above the \) to enter the divide opertion. The file verifies without errors.
Have any of you seen this before? What is going on? Can I divide using a register instead of a constant without error?
I am totally stumped. The processor is a SLC 5/05.
Last edited: