SonicClang
Member
This is my first post on this site and I wanted to say that this forum is amazing. I'm kicking myself for not finding it earlier. I've been struggling to learn things on my own for years. This is such a great resource.
I've got a situation that has me a bit perplexed and I'm hoping the experts here can help me out. We're currently using RsSQL to log data to a SQL database. Each run of material has its own unique run number, and that number is what we query to retrieve the process information for our records. I've been asked to design it into the start up of each new run that the computer will check against all the previous runs and verify that the run number the operator has entered hasn't been run before. Actually, the operator is scanning a barcode on a batch master for each run, but potentially they could scan the barcode from the previous run. This would be bad for obvious reasons, and unfortunately when we examine the database, we've found that this has happened.
The way I see it we have two options. 1) Somehow retrieve the run numbers that we already have stored in the database and compare them to the one the operator is currently scanning, or 2) Store each run number in a string file in the PLC and compare against all those values (it needs to be string because there are mixed character types).
The reason I'm not excited about option 2 is because if the PLC loses its memory and the numbers disappear, this feature wouldn't work for the remainder of the campaign. Campaigns sometimes run for up to a couple months, so I need to be able to reliably store the run numbers, which is why I'm thinking that iption 1 would be better. The only problem is, I can't fiture out how to do this.
I mentioned earlier that we're using RsSQL to record data, but thanks to this forum I've found FactorySQL and we're going to go with that for sending data from database to PLC's and keep RsSQL simply logging data. So I'd be doing this in FactorySQL.
In the SQL table, the run numbers would be stored in one column named "RunNumber". How would I have FactorySQL send all the values in that table to different addresses in a PLC?
I've got a situation that has me a bit perplexed and I'm hoping the experts here can help me out. We're currently using RsSQL to log data to a SQL database. Each run of material has its own unique run number, and that number is what we query to retrieve the process information for our records. I've been asked to design it into the start up of each new run that the computer will check against all the previous runs and verify that the run number the operator has entered hasn't been run before. Actually, the operator is scanning a barcode on a batch master for each run, but potentially they could scan the barcode from the previous run. This would be bad for obvious reasons, and unfortunately when we examine the database, we've found that this has happened.
The way I see it we have two options. 1) Somehow retrieve the run numbers that we already have stored in the database and compare them to the one the operator is currently scanning, or 2) Store each run number in a string file in the PLC and compare against all those values (it needs to be string because there are mixed character types).
The reason I'm not excited about option 2 is because if the PLC loses its memory and the numbers disappear, this feature wouldn't work for the remainder of the campaign. Campaigns sometimes run for up to a couple months, so I need to be able to reliably store the run numbers, which is why I'm thinking that iption 1 would be better. The only problem is, I can't fiture out how to do this.
I mentioned earlier that we're using RsSQL to record data, but thanks to this forum I've found FactorySQL and we're going to go with that for sending data from database to PLC's and keep RsSQL simply logging data. So I'd be doing this in FactorySQL.
In the SQL table, the run numbers would be stored in one column named "RunNumber". How would I have FactorySQL send all the values in that table to different addresses in a PLC?