Siemens UDT with string as in/out

JOLTRON

Lifetime Supporting Member
Join Date
Aug 2006
Location
MI
Posts
692
I have created a UDT. This UDT is a IN_OUT to a FB I am creating. This UDT contains a few strings.

Inside the FB I am attempting to use SFC20 (BLKMOV) to move an IN string to this string in the UDT. It doesn't allow me to do this and gives me the error "Function 'GetShortAttribute' not implemented in the OM 's7yomapx.dll'.

It worked fine when the string was part of the STAT. Just doesn't work as part of a UDT in the IN_OUT.

Any ideas how to get around this?

Details:
Simatic manager V5.5 SP4
CPU317

UDT_INOUT_STRING.jpg
 
If you check the instance DB you will see that the IN_OUT UDT is passed by pointer. When you specify this parameter for SFC20, the editor cannot generate the correct anypointer. You will have to determine the correct anypointer programmatically and pass the computed anypointer to SFC20
 
Dangit, I forgot that it was passed as a pointer. At the moment I am able to get by as changing it to an OUT instead of an IN_OUT.

If I have to change back i will go ahead and use an anypointer or something.

Thanks!
 

Similar Topics

Hello All: I'm starting to use Intouch (2017). I comunicate with S7-1500 PLC with SIDIRECT using symbolic. I'm trying to create a faceplate. I see...
Replies
0
Views
1,178
How do I move one byte of data in an array to a UDT that is one byte in length. AB would be a slam dunk on this with a simple Copy instruction...
Replies
22
Views
5,403
In S7 Program there is a DB which is created from UDT. To modify DB, UDT was changed because only if UDT changed then DB is changed. My question...
Replies
1
Views
3,944
Can anyone tell me why my variables are red in the attached picture? I just started to use siemens and I am trying to understand how udt works...
Replies
4
Views
3,132
Hi all, im hoping that you can help me out on this problem. I have a function block called "Valve_Control" (FB1), in this i have assigned a...
Replies
4
Views
9,154
Back
Top Bottom