Wonderware 9.5 list or control box help

Join Date
May 2007
Location
US
Posts
17
I am trying to create a drop down list using the combo box so that i can assign rslogix plc program step based on selection from drop down list. can anyone help or does anyone know where i can find instructions to do this? I need about 25 items in the drop down. thanks
 
Last edited:
Here is an example using a listbox, not a dropdown, but its the same, just a different screen item.

U need to populate the list on the window open, with something like

wcLoadList("recipelistbox",ListDir + "\reclist.txt");

read wcloadlist in help

Then, I load off the list with

{-----------------------------------Open File-----------------------------------------}


wcFindItem ("recipelistbox", RecipeSelected, 1, RecipeFind);

IF RecipeFind <> -1 THEN
RecErrorMsg = RecipeLoad(RecipeDir,"EDIT", RecipeSelected);
RecipeGetMessage(RecErrorMsg, errormsg, 131);

ENDIF;

this loads a recipe from a pick list using wcFindItem to located the piced item, and the RecipeLoad to load the recipe.

And here is some code to save the recipe on the list box

{-----------------------------------Save File-----------------------------------------}


wcFindItem ("recipelistbox", RecipeSelected, 1, RecipeFind);

{ If the selected file does not exist then add to list and save. }
IF RecipeFind == -1 AND RecipeSelected <> "" THEN
wcAddItem("recipelistbox", RecipeSelected);
RecErrorMsg = RecipeSave(RecipeDir,"EDIT", RecipeSelected);
RecipeGetMessage(RecErrorMsg, errormsg, 131);
wcSaveList("recipelistbox",ListDir + "\reclist.txt");

Its not the best example, but im super pressed right now and thats as much as I have time to post / edit. Sorry, hope it helps

matt
 

Similar Topics

Does anyone know how to create the equivalent of a control list selector in Wonderware? I am converting a FactoryTalk application to Wonderware...
Replies
3
Views
4,141
I am using Wonderware InTouch 8.1 Is there a way to get a list of existing User Groups in and populate a combo box with it? There is a...
Replies
4
Views
2,586
Hey Guys I have a Wonderware Scripting question. I created a "Data Change" script that writes and stores the faults into a text box so that I...
Replies
2
Views
2,183
Is there a way to get a list of all alarms from ArchestrA IDE? I have an integrator coming out next week to add some pump stations to Win911...
Replies
1
Views
3,917
Hello all, First of all, pardon my lack of expertise, but I guess if I was an expert I wouldn't be asking the questions. I'm having an issue with...
Replies
3
Views
9,139
Back
Top Bottom