(0)| 3/27/2018 11:02 PM | |
|
Joined: 7/7/2010 Last visit: 12/23/2025 Posts: 16325 Rating:
|
Comments not to do with your problem or resolution. Just how to use the forums to post code, and in particular SCL blocks. To post code, what I do is type some random garbage like asdf, highlight it, then click the "Mark as code" open above the text entry box. Now I highlight that random garbage, select all the code I want to post (preferably in notepad or something that does not insert CR / LF or tab keys and such), and then paste my copied code over top my random asdf. This
becomes
and because it is marked as code, I can turn that into properly indented (easier to read structures) SCL:
And because we can generate the code that makes it really easy to import into a project, we can post the entire scl, interface, and all the attributes, title, description, and all as well.
You can copy the above block of text, paste into notepad, save as DEAD_BAND.SCL, and use it to generate the scl source in TIA Portal. It may be missing some tia portal scl features. If you create a FC without anything other than the above interface manually, you can right-click and "copy as text" and paste into notepad to see the equivalent without the actual logic part. This is part of the OSCAT open source library found at www.oscat.de (google translate may come in handy for some people). |
|
science guy |
|
Follow us on