Sign in to follow this  
Followers 0
AdamK

Prevent multiple button select in NB Designer

3 posts in this topic

Question regarding button implementation in NB Designer. You'll have to forgive the basic nature of the question, but I've just started using this software and am not very familiar with its functionality. I'm designing an interface on an Omron NB HMI for a machine that builds products. The user selects which type of product on the HMI, and the machine builds the corresponding product. The are three categories of product, and seven sizes of each category. The issue I'm trying to avoid is a user that presses multiple categories, or selects multiple sizes. The should only be able to select one category and one size at a time. I have implemented the buttons using alternate bit buttons to select which category and which size (there are three category buttons, and seven size buttons). I know there must be a way to group the buttons so that only one of the given type can be selected at a time. At first I thought using a write notice was a possibility, but it appears that this can only be sent to one address. Anyone have any ideas? TLDR; Have multiple buttons in separate categories, need to find a way that only one in each category can be selected at a time. Edited by AdamK

Share this post


Link to post
Share on other sites

One way that I have accomplished this in the past is to do invisible command buttons that write values 0 - 6 into a word (for the size as an example). Then put a word lamp in the same space as the button and have it light up when the word is a particular value that corresponds to the value written by the invisible button that is in that same position. The only issue with this is that the word lamp has to have 7 states in this example. One state that is the lit up state and the other 6 all then show the Off state. You can then map the values of the word to the different states. It is not as straight forward as it could be. It would be nice if there were a way to set the on condition for a particular value and the off condition for all others. Here is a quick sample: ExclusiveSelectionExample.zip

Share this post


Link to post
Share on other sites
Michael, Thanks! That was helpful, and good to know for future reference. Yesterday I actually ended up doing a work-around using if statements, turning off the buttons that are not selected. It's definitely not the "cleanest" way to do it, but it was very quick to accomplish with some simple copying and pasting. This, by the way, is one of the reasons I love the inline ST feature on Sysmac Studio. //If [size button] and [Color button] are both selected, then display the corresponding output IF NB_A = TRUE AND NB_Green = TRUE THEN; NB_OutputWord := 'Green, size A'; NB_Black:=FALSE; NB_Blue:=FALSE; NB_B:=FALSE; NB_C:=FALSE; NB_D:=FALSE; NB_E:=FALSE; NB_F:=FALSE; NB_G:=FALSE; END_IF; IF NB_B= TRUE AND NB_Green = TRUE THEN; NB_OutputWord := 'Green, size B'; NB_Black:=FALSE; NB_Blue:=FALSE; NB_A:=FALSE; NB_C:=FALSE; NB_D:=FALSE; NB_E:=FALSE; NB_F:=FALSE; NB_G:=FALSE; END_IF;

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0