CharlesM said:I use a few.
Just a few ideas.
- I used one for the recipe search that I was talking about the other day.
- I also store a bunch of data in a DB in the PLC. I have a save to file button that reads all this data in and puts it in a text file.
- I did a robot project a while back where the operator entered a pattern for stacking parts. I took in the parts size and spacing and used a script to cal all the points the robot needed to know where to place the parts.
- I have in testing used them to talk to active X controls. I did a test with this on one of Peter's RMC controllers. I have seen some post on here where people were talking to a camera the same way.
- I know you can do some database work this way as well though I have never done it.
hmm, I have a lot of positions in a certain project. It would be useful If I write this data in a textfile and store it on the MMC card.
Can you explain how to do this, I know a little VB..
JesperMP said:Charles, your script is OK on a PC, but Jeebs wants to log the data on a CE panel, so the script code is quite different.
Here is a sample project where data is store to a flash card on a Windows CE panel:
http://support.automation.siemens.com/WW/view/en/26107212
Jeebs said:Naha, not me wanting to do anything. Combo asked when he should start using scripts. There was one thing mentioned, DB back-up, that was done with scripts.
As I generally try to avoid using scripts I simply offered another point of view.
And we don't log the data on the Panel itself, we usually log data to a server..
JesperMP said:My bad, I mistook the two of you. Sorry about that.
Maybe it is because you have the same flag ?
Anyway Combo did say "It would be useful If I write this data in a textfile and store it on the MMC card". "MMC card" indirectly tells us that it is a CE panel that he talks about.
I too try to avoid scripts unless it cannot be done otherwise.