Gazzr Posted March 10, 2007 Report Posted March 10, 2007 (edited) I have created a small program for S7-200 to monitor what percentage a machine runs out of an 8 hour shift. Ie, the machine stops and starts many times during the 8 hours and I want to have a "live" percentage displayed on a TD200 unit and also log this to memory at the end of the shift, reset and start again. I was wondering if one of the guru's who visit here would take a look at it for me and maybe tell me where things could be done better as this is the first time I have had to handle data. Or a S7-200 for that matter. Any advice would be greatly appreciated. (This program is only a trial of this idea, once happy with it, I will integrate with another trial I have on the go.) Thanks for reading, I hope it made sense. I will send program to any generous person that offers. Edited March 10, 2007 by Gazzr
Gazzr Posted March 10, 2007 Author Report Posted March 10, 2007 Also, as more of a topic for discussion. What are my options for outputing this information each week? Can the accumulated info be sent as a file somehow? By wire / or wireless would be even better. Anybody have experience with this?
Crossbow Posted March 12, 2007 Report Posted March 12, 2007 If you post the file you might get more responses. Or send me a PM with a copy. But public works for more answers.
Moggie Posted March 12, 2007 Report Posted March 12, 2007 Please post or send direct to me. There is a modem, EM241, for the S7 200 PLC's and also an Ethernet and/or a internet connection. All with set up wizards that you can use to transfer data.
Gazzr Posted March 13, 2007 Author Report Posted March 13, 2007 (edited) Here is my first attempt at program. Any feedback welcomed, as i am convinced it could be done easier. Especially network 8, which i'm sure need not be there at all, if i knew how to use the data block editor...... I also should mention that i was provided with the Read RTC subroutine. (Many thanks) Percent_log_2mc.rar Edited March 13, 2007 by Gazzr
Gazzr Posted March 14, 2007 Author Report Posted March 14, 2007 Thanks for the info Moggie. Using the modules you mentioned, can the plc be set to automatically transmit a set of data at a given time? And would the recipient computer have to be running specific software. An ideal solution would be to output an excel file or something similar. Can this be done?
Crossbow Posted March 14, 2007 Report Posted March 14, 2007 There is software (typically an OPC server or ActiveX control) which can be used to retrieve data from a PLC and drop it onto an Excel spreadsheet. Siemens has an OPC Server for the S7-200 called S7-200 PC Access. It will allow you to poll the PLC for data at fixed intervals. Might want to go try to get a catalog or manual on it's capabilities.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now