I’ve been put in charge of designing an excel spreadsheet for one of our customers (running RSLogix software).
This spreadsheet is meant to get information from an oven that bakes toner, and display it in a series of 4 columns and 51 rows. Each cell will contain a data value from the controller, ranging from F136:0 to F136:253 (on the first sheet... #2 is 137, #3 is 138, etc). They want 21 identical sheets in the Excel workbook… with sheets 2~21 containing the last 20 runs of the process. If it makes a difference, in the controller, every 5th bit (5,10,15, etc) is empty. I didn't do the coding, but I was told that this approach is normal. I think it sounds inefficient and difficult... but I'm new here. haha
I have access to the RSTrainer disks, and I watched the tutorial… it was next to no help. I did, however, create some VB code for each of the 51 rows, and I submitted it to our client. The client reported that only 5 rows were populated, at which point an error occurred. (Runtime error '9' Subscript out of range) Thinking that I was not able to import any more than 25 points per client handle, I split all the data into groups of 25 points. This resulted in the same 5 rows being populated, but with a slightly different error. (Run time error 13 Type mismatch). This is where I currently stand… in need of your help.
The guy before me did cell-by-cell DDE code, and it took him forever. It worked when we had everything in our shop, but once we took it to the customer, we couldn't get all the data to populate. I know there's a way to import whole blocks of data... but I'm a little hesitant to use DDE. What I remember from the RSTrainer disk (when I had a full license to use) is this: highlight the cells you want the data in... then put in the formula. When I try to do this now, I only get 1 #REF instead of one in each cell. Does anybody know the exact syntax of this approach?
This is all very complicated, since I am not able to access the client's computer, network, or PLC controller.
Does anyone have knowledge of this subject, and might be able to help me out?
I will entertain all suggestions: VB, OPC, DDE, etc. Just make it as easy and quick as possible. I probably have to do all the programming while on-site, and not in the comfort of my own office.
~Ryan
IAC
This spreadsheet is meant to get information from an oven that bakes toner, and display it in a series of 4 columns and 51 rows. Each cell will contain a data value from the controller, ranging from F136:0 to F136:253 (on the first sheet... #2 is 137, #3 is 138, etc). They want 21 identical sheets in the Excel workbook… with sheets 2~21 containing the last 20 runs of the process. If it makes a difference, in the controller, every 5th bit (5,10,15, etc) is empty. I didn't do the coding, but I was told that this approach is normal. I think it sounds inefficient and difficult... but I'm new here. haha
I have access to the RSTrainer disks, and I watched the tutorial… it was next to no help. I did, however, create some VB code for each of the 51 rows, and I submitted it to our client. The client reported that only 5 rows were populated, at which point an error occurred. (Runtime error '9' Subscript out of range) Thinking that I was not able to import any more than 25 points per client handle, I split all the data into groups of 25 points. This resulted in the same 5 rows being populated, but with a slightly different error. (Run time error 13 Type mismatch). This is where I currently stand… in need of your help.
The guy before me did cell-by-cell DDE code, and it took him forever. It worked when we had everything in our shop, but once we took it to the customer, we couldn't get all the data to populate. I know there's a way to import whole blocks of data... but I'm a little hesitant to use DDE. What I remember from the RSTrainer disk (when I had a full license to use) is this: highlight the cells you want the data in... then put in the formula. When I try to do this now, I only get 1 #REF instead of one in each cell. Does anybody know the exact syntax of this approach?
This is all very complicated, since I am not able to access the client's computer, network, or PLC controller.
Does anyone have knowledge of this subject, and might be able to help me out?
I will entertain all suggestions: VB, OPC, DDE, etc. Just make it as easy and quick as possible. I probably have to do all the programming while on-site, and not in the comfort of my own office.
~Ryan
IAC