8/13/2012 11:52 PM | |
Joined: 10/7/2005 Last visit: 1/17/2025 Posts: 3030 Rating: (1058) |
Hello Timmy not too sure if it is the "least memory required" solution, but Siemens has TIA Step 7 Basic based example Blocks which you can download fromHow can you group separate signals (variables of the "Bool" data type) to one variable of the "Word" type and again extract them from that "Word" variable (Bool - Word data type conversion)?. I haven't tested these but believe they should also work in a 300 or 400 (Ican't even say if it is programmed in STL, if it is the blocks will be protected as STL is for some bizarre reasons still officially not allowed to be used in a 1200). Alternatively, you'll finda "Step 7 classic" based STL solution at Extract bit from word for a huge number of wordswhich you'll either need to retype or convert to TIA Portal Step 7 format to use it. I hope this helps |
Cheers |
|
8/14/2012 3:14 AM | |
Joined: 7/7/2010 Last visit: 1/16/2025 Posts: 15541 Rating: (2465)
|
In the S7-1200 Basic version of the portal, you can import legacy (pre-TIA Portal) Step 7 SCL files and have the portal generate blocks. I would expect something similar to work for STL files for the pro version. Look in the external source files section of the project view. The help fileis decent enough. If you have an STL solution in Step 7, odds are you can directly import it in a saved stl file exported. You could also save it to SCL and import it that way. I suppose the pro version will save it as an stl for you, right? |
science guy |
|
8/15/2012 3:18 PM | |
Joined: 7/7/2010 Last visit: 1/16/2025 Posts: 15541 Rating: (2465)
|
Could you simply create an function with the AT construct that maps the bits into a word, copy the word to the output and the other way around for words to bits? That would allow fast memory mapping. I remembered this FAQ ( https://support.automation.siemens.com/WW/llisapi.dll?query=using+at+portal&func=cslib.cssearch&content=adsearch%2Fadsearch.aspx%3Ftab%3D2&lang=en&siteid=csius&objaction=cssearch&searchinprim=_searchinprim_&nodeid=99&x=16&y=8&cssearchengine=NEW) was very similar to your request. |
science guy |
|
Follow us on