10/27/2020 12:48 PM | |
Posts: 6 Rating:
|
Hey there! can someone give me an example of using pointer as function input in Tia Portal V15. Thank you so much.
|
Last edited by: JOTOMATISE at: 10/27/2020 13:46:28 |
|
10/27/2020 1:47 PM | |
Joined: 7/7/2010 Last visit: 4/17/2025 Posts: 15809 Rating:
|
Start with TIA Portal opening or creating a PLC project. Open OB1 or any OB/FB/FC, and then press F1 for TIA portal's integrated Help. Use the Search tab to find help on using Pointer. There are examples there - without waiting on a random forum user to reply. Please post back what you find and if it helped answer your real question.
|
science guy |
|
10/27/2020 1:57 PM | |
Posts: 6 Rating:
|
So, I created an FC function with an input variable "ADDRESS" type Pointer. but when I write this instruction in LIST: L ADDRESS it gives me an error. same thing for : L P ## ADDRESS
|
10/27/2020 2:02 PM | |
Posts: 6 Rating:
|
i want to know how to use pointer variable in function. an example of use |
10/27/2020 2:26 PM | |
Joined: 7/7/2010 Last visit: 4/17/2025 Posts: 15809 Rating:
|
What PLC are you using? The answer depends on which PLC you are using. In general, if an FC or FB is configured to as non-optimized, it will accept pointers. However, L addressing is only available on s7-300/400 (if I understand correctly).
|
science guy |
|
10/27/2020 3:12 PM | |
Posts: 6 Rating:
|
S7-1500 |
10/27/2020 3:20 PM | |
Joined: 3/30/2020 Last visit: 4/17/2025 Posts: 5071 Rating:
|
Hello. Mr. Einstein does not have much experience with using STL. He is however an expert in making code work on the S7-1500 in the way that is optimum. The S7-1500 does not like following STL code, but it loves SCL. Pointers and S7-1500 are also not friends like the pointers and S7-300 were friends. In the case you are using the S7-1500, please let us know what you need the pointer for. Though that piece of info would be welcome if you do use the S7-300 / S7-400. The code you used for the S7-300 / S7-400 in Step7 V5.x should work in TIA Portal, but it will not work nicely for the S7-1500. The S7-1200 does not even have the ability to emulate STL execution. What are your thoughts? Regards. |
Last edited by: qwazee at: 10/27/2020 15:21:38Last edited by: qwazee at: 10/27/2020 15:23:40NOTE: The reply was delayed. Important piece still valid. Last edited by: qwazee at: 10/27/2020 15:24:00Activities of this user is voluntary. There is no obligation or liability placed on this user. Though optional, your 'please' and 'thank you' is highly valued. |
|
10/27/2020 3:34 PM | |
Joined: 9/23/2005 Last visit: 4/18/2025 Posts: 4995 Rating:
|
As already pointed out, hardly anyone has idea why you need it on S7-1500. Unless you are porting legacy software. Go to Properties of the block and uncheck "Optimized block access". And here goes an example. |
Regards, |
|
This contribution was helpful to
2 thankful Users |
10/27/2020 3:45 PM | |
Posts: 6 Rating:
|
I just want to know the usefulness of pointers in programming the automat s7-1500. because i read in the docs that the s7-1500 accepts pointer data types. but I haven't found any example of using pointers. I'm preparing a presentation of data types on s7-1500 (USInt, SInt, UInt, Real, Char, String, DTL, ARRAY, ANY, Pointer ... etc) Regards |
10/27/2020 4:16 PM | |
Joined: 3/30/2020 Last visit: 4/17/2025 Posts: 5071 Rating:
|
@jacek .. I count you as a respected (and mostly misunderstood) expert. Your example is most appropriate for the open-ended academical question.It illustrates your point about converting S7-300 code. Receiving a one-star-rating from the topic starter is most inappropriate. Perhaps the topic starter does not need seasoned wisdoms from us. Bye |
Last edited by: qwazee at: 10/27/2020 16:17:41Activities of this user is voluntary. There is no obligation or liability placed on this user. Though optional, your 'please' and 'thank you' is highly valued. |
|
This contribution was helpful to
1 thankful Users |
We are working on a new user interface with better overview and more relevance.
Follow us on