(0)| 1/2/2020 9:01 AM | |
|
Posts: 5521 Rating:
|
hi K0ICHI, you need to use other memory-areas then the TEMP-area. When you use a FB, you can use the static-area in the instance-DB. hope this helps. regards, |
| 1/7/2020 11:20 AM | |
|
Joined: 2/11/2015 Last visit: 1/8/2026 Posts: 515 Rating:
|
Hi K0ICHI, Look at SFC22 - CREATE_DB function. |
| 1/13/2020 3:01 PM | |
|
Joined: 9/27/2006 Last visit: 1/16/2026 Posts: 12481 Rating:
|
Hello Koichi; You are right, you cannot use an ANY variale type in a STAT parameter of a FB, directly. Maybe the following FAQ can provide suggestions on a bypass: How do you parameterize blocks, which have "ANY"-type or "Pointer" type parameters? https://support.industry.siemens.com/cs/ww/en/view/20443243 Hope this helps, Daniel Chartier |
| 1/16/2020 9:11 AM | |
|
Joined: 1/4/2013 Last visit: 5/10/2025 Posts: 73 Rating:
|
Hi Daniel If there is a bypass, I'm not smart enough to see it. I like ANY's because they make the block interfaces nice and tidy, but unfortunately they're not as powerful as they could be. Can't pass them from block to another, OR make them retentive, without several lines of ugly code. |
Follow us on