Hi All,
Working a strange problem. Here are the basics:
PLC: ControlLogix L73
Firmware: 21.1
I have created what is the largest program that I have done to date. It controls about 20 wells and collects the data from the meters on the wells.
The control side of things seem to work very good. No big issues.
I am having issues with the Data Collection side of things. Here is some background. I am reading all the meters via HART to get the totalizer number. I to get the flow for the day I subtract the start of day total from current totalizer. I then move that number into a array element that matches the day of the month. So for today it would be Array[5].
At Midnight I run a routine that will move the previous days array element into a tag that is read by the Factory Talk ME Historian Module. I also move the current totalizer into the Start Total tag to create a new start of day total to determine the new daily total.
What is happening is most of the time I get a volume moved into the FTVME tags that is very small. Like .023xx when the daily total is more like 850 +.
So I have set up that part of the program in my test PLC (L73 also) and have been running it for days with no issues. To be honest I did make some very small changes but nothing to the way the system works. The only major thing between the test unit and the real unit is that I am only using a small part of the program. I cant install the complete program as it has way more I/O than my test unit and hast remote I/O too.
So with that info (and I pray that I explained it properly) would you say that scan time could be a issue? IF so what ideas would you have to correct this? Would you recommend putting the Data Program in a timed task? Right now they are all in continuous tasks. Anything you can think of for me to try and I willing to try it. I have to go back in a couple weeks so I would like to have some ideas on what to try.
Thanks for taking the time to read this novel and if you can help I would appreciate it.
Working a strange problem. Here are the basics:
PLC: ControlLogix L73
Firmware: 21.1
I have created what is the largest program that I have done to date. It controls about 20 wells and collects the data from the meters on the wells.
The control side of things seem to work very good. No big issues.
I am having issues with the Data Collection side of things. Here is some background. I am reading all the meters via HART to get the totalizer number. I to get the flow for the day I subtract the start of day total from current totalizer. I then move that number into a array element that matches the day of the month. So for today it would be Array[5].
At Midnight I run a routine that will move the previous days array element into a tag that is read by the Factory Talk ME Historian Module. I also move the current totalizer into the Start Total tag to create a new start of day total to determine the new daily total.
What is happening is most of the time I get a volume moved into the FTVME tags that is very small. Like .023xx when the daily total is more like 850 +.
So I have set up that part of the program in my test PLC (L73 also) and have been running it for days with no issues. To be honest I did make some very small changes but nothing to the way the system works. The only major thing between the test unit and the real unit is that I am only using a small part of the program. I cant install the complete program as it has way more I/O than my test unit and hast remote I/O too.
So with that info (and I pray that I explained it properly) would you say that scan time could be a issue? IF so what ideas would you have to correct this? Would you recommend putting the Data Program in a timed task? Right now they are all in continuous tasks. Anything you can think of for me to try and I willing to try it. I have to go back in a couple weeks so I would like to have some ideas on what to try.
Thanks for taking the time to read this novel and if you can help I would appreciate it.