i forgot to mention that i use the PLC on board OPC UA Server
and this is the structure to read a tag in a db
where DB Name is the name gived to the DB in tia and device Name is the name gived to the udt inside the db.
Then the OPC Server of your tag should point to the OPC UA server defined on the gateway