Can someone please explain why these 2 CPT instructions in a PLC5 would evaluate differently?
F239:1 = (N49:13 * 3000.0) | 4095.0
F239:1 = (N49:13 * 3000) | 4095
I had 2 instruments to scale (the F and N numbers used above are for eg) 4-20. The first rung I wrote added the .0 the second one didnt. The first rung scaled OK, the second one didn't. I don't understand the difference between having the .0 and not.
F239:1 = (N49:13 * 3000.0) | 4095.0
F239:1 = (N49:13 * 3000) | 4095
I had 2 instruments to scale (the F and N numbers used above are for eg) 4-20. The first rung I wrote added the .0 the second one didnt. The first rung scaled OK, the second one didn't. I don't understand the difference between having the .0 and not.