Hi All,
Can anyone help with my problem and you save my day ..
I´ve made a FB which I am to use as a multi instance.
I want to pass data in/out of this FB and therefore I made a UDT with the structure of the data.
In the FB I declare a new inout with datatype of the above UDT, I´m using an inout since there are data which I should both read and write to in this struct.
I made the code in the FB, so far so good ..
Next step I called the FB above from another FB, but when trying to declare data at the actual inoutI all time get a fault that says the data on the actual side are not matching the data in the FB I call.
I really don't know how to write the adress of the DB where I use the above UDT.
I tried with the start adress of first parameter and also in pointer format but without success. The length of the data I want to pass are 18 Byte.
What am I doing wrong?
Using the data inout as a UDT will save me alot of time, but right now I just don't get it!
Thanks.
Can anyone help with my problem and you save my day ..
I´ve made a FB which I am to use as a multi instance.
I want to pass data in/out of this FB and therefore I made a UDT with the structure of the data.
In the FB I declare a new inout with datatype of the above UDT, I´m using an inout since there are data which I should both read and write to in this struct.
I made the code in the FB, so far so good ..
Next step I called the FB above from another FB, but when trying to declare data at the actual inoutI all time get a fault that says the data on the actual side are not matching the data in the FB I call.
I really don't know how to write the adress of the DB where I use the above UDT.
I tried with the start adress of first parameter and also in pointer format but without success. The length of the data I want to pass are 18 Byte.
What am I doing wrong?
Using the data inout as a UDT will save me alot of time, but right now I just don't get it!
Thanks.