
LostAtC+ (Customer) asked a question.
Help: Why is my copy data not returning a 1 or 2?
I currently have this loop that should give me a 1 if pressure is ascending or 2 if pressure is descending and resets with a 0 after we leave this step. I have written this a few ways and I get the same result every time. I am feeding the PressureDirection_Log tag to the C-More HMI program to give me a 1 or 2. No matter how I have written this it gives me a 4. When I am monitoring the code in real time, it puts the correct number in the copy data rung and then just still spits out a 4. I have tried switching my data type to Int 32, Int 16, or Float 32.
When you say it spits out a 4. Is that on the C-more display or in Data View?
When I run this code it works as expected. Therefore, can you go online and create a system report and send that to me via a PM? In addition, provide your C-more project. Thanks!
We are using C-more to export through the line graph. Which runs through the event manager database then the FTP server. I edited my post to have the code. its under Run every scan --> Station1 --> automation --> Steps --> Phase04-S1
1.) Does the value show correctly in Dataview for that tag?
2.) If you create a new C-More project with a only one tag "PressureDirection_Log" assigned to a numeric display does it show the correct value? If yes, then it's something in you C-more project causing the issue.
I plugged a USB into the PLC and had it export tags to an excel file and it shows up correctly when going around the HMI. So it IS something the HMI....
ctrl+f and search for your PressureDirection_Log tag and see if it is found anywhere else in the program where the tag is being manipulated.
It's only used in those 4 spots. That was one of the first things I did.