Nick Birke
Member
I had a thread going as I explored the development of my own FB intended for reuse. http://www.plctalk.net/qanda/showthread.php?t=67140
I can do my own research in the meantime... but why not post my next goal on here. Again this is a learning exercise. So I am at the point where I would like to take a FB I have been writing (it has not been cleaned up or completed... but it has the minimum tested functionality that instead of refactoring/enhancing the code- at this point, I would rather invest energy in understanding the next step...) and move into into a library so that I can reuse it in other projects.
I created a SIMANICS Library in the project that has the FB in the program. (The FB 'FB78' is located in an S7 Program in the project.) How do I get it into the library? I thought this would be easy.... but (and I am at the 'just taking a whack and it and diving into this' stage wrt the whole library thing...) but as I was going to say I can't figure out how to put ANYTHING in the library... I thought a drag and drop would be it... but what was I thinking this is SIEMENS... the people who need to create their own time datatype, because what is good enough for everyone else, well just doesn't work for them (sorry I can't let that one go.)
I sure hope I don't hear that FB's can be put in libraries... and that I should have built something else in the first place.
Follow-up questions are likely to be how do I copy the library to common place in the file system, and how do I import it into a project. I am thinking it should be easy-ish to figure that out... but this is SIEMENS.
I can do my own research in the meantime... but why not post my next goal on here. Again this is a learning exercise. So I am at the point where I would like to take a FB I have been writing (it has not been cleaned up or completed... but it has the minimum tested functionality that instead of refactoring/enhancing the code- at this point, I would rather invest energy in understanding the next step...) and move into into a library so that I can reuse it in other projects.
I created a SIMANICS Library in the project that has the FB in the program. (The FB 'FB78' is located in an S7 Program in the project.) How do I get it into the library? I thought this would be easy.... but (and I am at the 'just taking a whack and it and diving into this' stage wrt the whole library thing...) but as I was going to say I can't figure out how to put ANYTHING in the library... I thought a drag and drop would be it... but what was I thinking this is SIEMENS... the people who need to create their own time datatype, because what is good enough for everyone else, well just doesn't work for them (sorry I can't let that one go.)
I sure hope I don't hear that FB's can be put in libraries... and that I should have built something else in the first place.
Follow-up questions are likely to be how do I copy the library to common place in the file system, and how do I import it into a project. I am thinking it should be easy-ish to figure that out... but this is SIEMENS.