I'm porting some Tia Portal V14 code from an S7-300 cpu to an S7-1500. I have a couple places where I've moved an input word (for example IW400) to a UDT, so that I can pick bits out of it that have real labels. I do this in a ladder FB, with UDT's in the static declarations.
My old code just MOV'd IW400 to %DIW0
but that syntax doesn't work anymore.
Likewise, if I try to access that address directly (for example DB321.DBW0), it says that address doesn't exist. It looks like I can do it as P#DB321.DBX0.0 but I'm not sure why. If I needed my FB to be multi-instance, I'm not sure how I would do it.
Any explanations out there from the experts?
My old code just MOV'd IW400 to %DIW0
but that syntax doesn't work anymore.
Likewise, if I try to access that address directly (for example DB321.DBW0), it says that address doesn't exist. It looks like I can do it as P#DB321.DBX0.0 but I'm not sure why. If I needed my FB to be multi-instance, I'm not sure how I would do it.
Any explanations out there from the experts?