9/27/2006 3:34 PM | |
Posts: 3149 Rating: (171)
|
Hi you find a good description in WinCC online help, just search for "createtag" [:D] nemo |
9/28/2006 4:42 AM | |
Joined: 5/19/2006 Last visit: 10/7/2024 Posts: 549 Rating: (107) |
Hi thidalgo, Are you looking for some sort of indirect addressing ? Dec |
9/28/2006 6:02 AM | |
Posts: 1275 Rating: (123)
|
Hey there! Are you trying to create tags dynamically? Or at least change the tag type and address dynamically? |
9/28/2006 1:40 PM | |
Posts: 70 Rating: (13) |
Hi You can programmatically add tags during runtime, but I don't think you can always delete or modify them. The ODK for "GAPIDeleteVariable" states "This function should only used when no project is active". There does not seem to be a function to modify an existing tag. Probably the easiest thing to do is to use (assuming Siemens PLC) a function in the PLC to perform indirect addressing based on input from WinCC. So you would have maybe three tags to define the address (DB No, BYTE address, datatype) and then two other tags for reading / writing the addressed value. WinCC Tag Debugger Here you can download a simple program I wrote to easily select any tag in the active project and view or edit the value in various formats (bin, dec, oct, hex, bits). Unfortunately, the tag must actually exist in WinCC so it may not help you: http://www.allottware.co.za/RAWeb.dll/Page?n=downloads_tagdebug SIMATIC NET OPC Test Client If you use the SIMATIC NET OPC server for your Siemens PLC, there are also many freely available OPC client tools to use and you can address anything in the PLC (google), but it is probably easier tosimply use Step7. Here is an app I wrote to test the SIMATIC NET OPC Server (the nice thing with SIMATIC NET OPC client is that it can automatically handle for you datatypes like S7 DATE_AND_TIME that are not natively handled by WinCC): http://www.allottware.co.za/raweb.dll/Page?n=downloads_opctestclient |
10/3/2006 12:27 PM | |
Posts: 102 Rating: (9) |
Hi Reuben You mean to change the MCPTVARIABLEDESC value using a script? |
Follow us on