Hello to all,
I have been trying to use Simon's code for exporting DB actual values to Excel spreadsheet.
Instead of bumping old thread , I'm starting a new one.
I have used his code, created OB34 and FB9, create DB9 as an instance data block of FB9 and created two DBs (shared) wih the structure shown in the attachment.
Now, blocks are downloaded into PLCSIM and switch is set to RUN, I see how DB's actual values are filling with calculated ones in the FB9 (online monitoring) at the point when DB is full and PLC goes to STOP mode. Actual DB1 values are shown in the second attached picture. So far so good.
Now the real problem is that I don't know how to export these values to a text file which can be imported to Excel.
There's also one more problem, all actual values are reset to zero values whenever I switch off monitoring.
Can anybody give some advice on this one?
Thanks
I have been trying to use Simon's code for exporting DB actual values to Excel spreadsheet.
Instead of bumping old thread , I'm starting a new one.
I have used his code, created OB34 and FB9, create DB9 as an instance data block of FB9 and created two DBs (shared) wih the structure shown in the attachment.
Now, blocks are downloaded into PLCSIM and switch is set to RUN, I see how DB's actual values are filling with calculated ones in the FB9 (online monitoring) at the point when DB is full and PLC goes to STOP mode. Actual DB1 values are shown in the second attached picture. So far so good.
Now the real problem is that I don't know how to export these values to a text file which can be imported to Excel.
L D[AR2 said:]
Using plcsim, I generated the sine waves using S7 plc code, fed it into the filter FB and then logged the input/output in two DB's from which I generated source code (text). I exported the source code then imported that into a spreadsheet (openoffice) and plotted the results.
There's also one more problem, all actual values are reset to zero values whenever I switch off monitoring.
Can anybody give some advice on this one?
Thanks