Ok, seeing your answers I think I can't do what I wanted to do. I came from Python where this things are daily basics, sorry for asking something out of the codesys world. Interfaces are good and I used it a lot, but it are meant to work with related objects, what I was trying to do is a multiple uses block, something that maybe I could post as a library. Thanks anyway!
Ok, seeing your answers I think I can't do what I wanted to do. I came from Python where this things are daily basics, sorry for asking something out of the codesys world. Interfaces are good and I used it a lot, but it are meant to work with related objects, what I was trying to do is a multiple uses block, something that maybe I could post as a library. Thanks anyway!
Ok, seeing your answers I think I can't do what I wanted to do. I came from Python where this things are daily basics, sorry for asking something out of the codesys world. Interfaces are good and I used it a lot, but it are meant to work with related objects, what I was trying to do is a multiple uses block, something that maybe I could post as a library. Thanks anyway!
thanks for answering, but what I'm trying to do is to create a fb that have other fb inside, the first fb also haves a method that should be called from de second fb, so I need to pass the method itself because I didnt't know how it would be called or even how the fb myPou is gonne be. Thanks!
Hi, it would be possible to pass an action or method as an argument to pou and call it from the pointer? I have been trying with ANY type, and i have an adress as a result, but I don't know how to make deference to just do: FB myPOU VAR_INPUT myAct: POINTER TO BYTE; END_VAR VAR pSomethingCallable: POINTER TO ???? END_VAR pSomethingCallable^(); Thanks in advance!
Hi, I'm making a base class intended to be extended by multiple objects. One of the task I would like to do is related to SFCFlags. The problem is that I want to manage a class that's not created yet. There is any pragma or compilator definition I could use? Ideally the compilator should trust for a variable that don't exist yet.
Hi, I'm making a base class intended to be extended by multiple objects. One of the task I would like to do is related to SFCFlags. The problem is that I want to manage a class that's not created yet. There is any pragma or compilator definition I could use? Ideally the compilator should trust for a variable that don't exist yet.