J2009
Member
I am using an analog point I/O input card with a 4-20mA signal. The number comes to an INT tag. I am trying to convert the value to a percent 0-100. Im using the CPT instruction to accomplish this by dividing and multiplying by 100. I need the destination of the compute instruction to be an integer but it always reads 0. What I am doing is creating a real tag as the destination of the compute instruction and then moving that value to an integer tag. Is there a way to accomplish this without having to create a real tag and then moving to an integer tag?