2/28/2019 1:02 PM | |
Joined: 2/18/2015 Last visit: 11/6/2023 Posts: 9 Rating:
|
Hello, I'm using TIA WinCC Advanced V14 SP1 Update 7 and a TP700 comfort panel. I would like to use a recipe to store settings for valves, .... In the program every valve has its own instance DB with the same structure (Valve1=DB321, Valve2=DB323, ...) I created a recipe for a valve with 4 elements and a recipe screen to copy the recipe to PLC. (see attachement) If I use fixed recipe_DB for element tags, its works fine but then I still need to copy the values from the recipe DB to the instance DB of the valve. Wish: So I would like to send the recipe immediately to the correct DB of the valve. For the element tags I replaced the fixed DB Nr wtih the tag "Indirect_DB_Nr" (Int). (see picture) So normally when I now send the repice to the plc, I would think that it is send to the DB that is set in tag 'Indirect_DB_Nr' (vb 321) Problem: When I compile I have no errors or warnings but when I download the recipe to the plc I recieve 'PLC adress errors ' on the element tags and nothing arrives in the PLC. Somehow the DB Nr is not recognized. Now when I use the same principle with 2 IO-fields where in IO-field 1 I give the DB Nr and IO-field 2 displays a value of the given DB Nr, this works. Can someone tell me what I am doing wrong or is this way just not possible with recipes? Perhaps with script? Thanks for the help. AttachmentDoc1.pdf (74 Downloads) |
Follow us on