Saturn_Europa
Member
I wrote some code in a compact logix using rs logix v.20.04 back in February. This code counts the number of pumps running a remote pump station than pushes this to a SCADA server.
I got a call last week, 4 of the pump stations I programmed are only reading 1 pump running even tough they might have 2 or three pumps running.
I looked up the code and I am using an ADD and adding up each pump running to a DINT. I then use a MOV to move the value for the DINT to a REAL. The REAL is written to SCADA.
Is this my problem? Should I be using a COP?
I got a call last week, 4 of the pump stations I programmed are only reading 1 pump running even tough they might have 2 or three pumps running.
I looked up the code and I am using an ADD and adding up each pump running to a DINT. I then use a MOV to move the value for the DINT to a REAL. The REAL is written to SCADA.
Is this my problem? Should I be using a COP?