6/2/2015 2:05 PM | |
Joined: 11/29/2011 Last visit: 2/20/2023 Posts: 1347 Rating:
|
Hi, You need to set up an ANY pointer. Almost the same question discussed here: AG_LSEND and Anypointer problem in SCL If you need any further help please come back! I hope I could help! |
- What you read here, please check with manuals and your requirements. |
|
6/3/2015 12:25 AM | |
Joined: 11/29/2011 Last visit: 2/20/2023 Posts: 1347 Rating:
|
Hi, It was an example to have a feel of it. I read back the original question.
Note: You could reuse the already defined pointer, all you need is to change the length and define the destination in the same manner. We can draft up something for that but first answer the above questions as the ANY pointer is different for different data types/locations etc. I am happy to help you with that, but life is simpler... The way I see your case after having a closer look. You do not even need indirect addressing. As your data is stored in a UDT within a shared DB, you can create a new block having a UDT input then just access it symbolically inside you block. See the solution in S7-SCL V5.3 for S7-300/400 manual chapter 7.4 User-Defined Data Types (UDT). Keep it simple... Just to be fair have a quick look at this example "FIFO" for buffering measured values about how to use UDT as block interface. I hope I could help! |
- What you read here, please check with manuals and your requirements. |
|
Follow us on