![]() ![]() The following chapter introduces J-Scope, highlights some of its features and gives a beginners guide on how to use it. 8 RTT: Instrumenting an application to use it with J-Scope.6 General concepts / behavior of J-Scope.Join my free community to follow along! You can also become a member and support our work at: Automation.Locals. It may also make sense to only log the data when it changes as all non-volatile memory (SD, CF, etc) has a maximum number of times it can be written to. This would definitely catch the data before a fault or powerdown. The obvious and least efficient option is just to record the needed data every PLC scan. Setup the UPS so when power is lost it opens its contact, wire the contact into an input module on the PLC, and write a program so when the PLC sees the contact open it records the data you need. If you have to record data when power is turned off, a small UPS with output contact wired into the PLC is one way to achieve this. This can be very helpful when you want to record certain tag values when a math overflow or other trappable fault occurs. That said, here’s a few options you could use today:Īll Rockwell’s PLC’s allow the user to write a fault routine which will run once when a fault occurs. However, since all the new models do have a supercap built-in, it’s feasible that they could add this feature in the future. Since many of the Compact and ControlLogix processors Rockwell made have no power storage, I don’t believe it’s possible for them to do anything when power turns off as they’ll have no power to keep running. Sponsor and Advertise: Get your product or service in front of our 75K followers while also supporting independent automation journalism by sponsoring or advertising with us! Learn more in our Media Guide here, or contact us using this form. Have a question? Join my community of automation professionals and take part in the discussion! You'll also find my PLC, HMI, and SCADA courses at. If you have any questions, comments, or corrections, please don't hesitate to share them with us by using the “post a comment or question” link below. I hope you've found this article about logging to a CompactLogix or ControlLogix external CF or SD card helpful. That said, if you need to log to your CompactLogix or ControlLogix external CF or SD card, this sample code is a simple and easy to use free solution. Automatic deletion of older files after a certain number of files are present, or a percentage of the card had been filled.Easy way to specify CSV file naming parameters.Automatically create new files at a predetermined time (midnight).Addition of a series of tags to be used as “row 1 headers”.Easy way to tell which tags are being logged, and add new tags to be logged.In my opinion, to make this code fully functional the following features would need to be added: Unlike the “CF_Read_Write_Example” I mentioned earlier this year, this code is not so much an application example as it is a proof of concept. Once open, you set the first column to the Date format, and the second column to Time format, and you end up with a document which looks just like the example below: The output of this program is a CSV file which is easily opened in Microsoft Excel. The second Tag is “max_file_size,” and this is the setpoint that when reached will unlatch the “logging_enabled” bit. The first Tag is the “logging_enabled” bit, which does just what it says. Simply changed the code to match your processor model and version (the sample code is version 17,) change one rung to indicate the slot of your processor, and download. Having tested the sample myself, I have to say it works as advertised. Log to CSV file on CompactFlash or SecureDigital Below is a link to the free code in question: And it's accomplished with a piece of free sample code from Rockwell's own sample code website. However, I can confirm it's not in the soon to be released version 22, which was the originally targeted release.īut even without that new feature there is a way to log CSV files to you CompactLogix or ControlLogix's Compact Flash or SD card. Well, at least I haven't been able to find anything out despite my efforts. ![]() ![]() Unfortunately, since that demo a couple of years back nothing more has been hear about this feature. This new feature was a very robust, controller based data logging system. A couple of years ago, prior to the release of Studio 5000 v21, Rockwell demonstrated a future feature for it's new “multi-core” programmable automation controllers. ![]()
0 Comments
Leave a Reply. |