10/29/2014 2:44 PM | |
Posts: 6 Rating:
|
Hi, I am new to using Siemens automation technology and using this forum. My question might not be in the correct thread. I have an I/O Field that my end user will input a three digit number into. The three digit number corresponds to a tag in my PLC. I am wanting to take that three digit number and populate other text boxes on my screen. A snippet of my code is below. Dim r r=SmartTags("CarrierDummy") HmiRuntime.Screens("CarrierLookup").ScreenItems("txtKitNum").ProcessValue = SmartTags("KitNum_" & r).Value 'End of Code SmartTags("CarrierDummy") is linked to the user input I/O Field I am using TIAPortal V13 Update 4, STEP 7 Professional Version 13 Update 4,WinCC Advanced Version V13 Update 4. Using an Allen Bradley PLC not a Siemens PLC. Any suggestions would be appreciated. I have tried suggestions on threads I have found but nothing seems to be working.
|
10/30/2014 8:39 AM | |
Posts: 1299 Rating:
|
Hello, Can you please try to explain your issue again, maybe also with some screenshots? Maybe this link can help you: http://support.automation.siemens.com/WW/view/en/57025748 K!ke |
10/30/2014 8:11 PM | |
Posts: 4 Rating:
|
Hey KIke, I am working with Cheryl on this problem also.Thanks for responding. We are trying to take a number value entered by the user ("Carrier Dummy")from an I/O field and match this to a tagin an Allen Bradley PLC.The tags are named "KitNum_1" and "KitNum_2"... The script combines the entered number with "KitNum_" and return that correspounding value to an output text box called ""txtKitNum". However this does not work and I don't know why. I've attached a screen shot that I hope will help. It shows our listing of PLC Tags and shows the search screen where a user will enter in a carrier to search and where the corresponding kit number value should generate. Thank you, |
Last edited by: Min_Moderator at: 10/31/2014 11:14 AMChange attachment name |
|
10/31/2014 7:27 AM | |
Posts: 1299 Rating:
|
Hello, thanks for your explanation, now it's clear. Did you check if the connection is ok? So just add one of the tags "KitNum_..." to the screen and check the value. Another problem may be the acquisition mode. if it's "Cyclic in operation" the tags are only updated when they are used on a screen etc. Change it to "Cyclic continuous" and try again. K!ke |
10/31/2014 6:53 PM | |
Posts: 6 Rating:
|
K!ke, Thanks for your reply to Roman and I. We were able to change the setting you suggested and our script works now! We were curious if switching this setting would slow down our HMI project when simulating? Thanks! |
11/3/2014 7:18 AM | |
Posts: 1299 Rating:
|
Hello, this setting can affect the communication. If you have problems with this setting you can also keep "on demand" but then you have to use the system function "UpdateTag" in your project K!ke |
11/3/2014 4:33 PM | |
Posts: 6 Rating:
|
K!ke, Thanks for your feedback! Would you suggest using the Update Tag as a scheduled task or is there a line of code we would use in our existing script? Thanks, Cheryl
|
11/6/2014 6:58 AM | |
Posts: 1299 Rating:
|
Hello, as far as I know, you can't use it in the script. you can use it for example when the io-field "carrier number"changes. don't know your project enough (e.g. how often will the number be changed?) to decide about the best solution K!ke |
1/9/2015 8:53 PM | |
Posts: 4 Rating:
|
K!ke, We have around 2000 tags that we have set to 'cycle continous' this is really affecting the performance and respond time of our project as you can imagine. The tags do not need to be to scanned continuously however I am having an issue figuring out the best way to use 'On Demand' aquisition mode for these tags. I could use the UpdateTag event function however it is limited because there are only 100 different Update ID's (1-100) with each Update ID only able to be assigned to a single tag. Do you have a way to use 'On Demand' rather that continous cycling, I think there is a way to use arrays, but I haven't quite figured it out. Regards, Roman
AttachmentDoc1.pdf (412 Downloads) |
We are working on a new user interface with better overview and more relevance.
Follow us on