AdamK

MrPLC Member
  • Content count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About AdamK

  • Rank
    Hi, I am New!

Profile Information

  • Country United States
  1. 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;
  2. 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.
  3. First post here. I've been learning Sysmac over the last month or two. Currently using a NJ301 with Omron ECC I/Os and a G5 servo and drive (R88D-KN10H-ECT Servo Drive, R88M-K1K050H-S2 motor). If anyone has any questions about that setup, I'd be happy to answer them. I'm posting to see if any of the experts here have a cleaner way to write timed digital outputs in Sysmac, other than what I have come up with. It seems like there should be an easier way. The application is simply turning on an output for a set amount of time to drive a pneumatic system. Right now, I have done this by using a switch (SwOne), a TON delay timer, followed by a TP timer which lead to the outputs. This is followed by this structured text: //If the counter value has not reached set value, keep SwOne on IF CounterVariable1 < 5 THEN; SwOne:=TRUE; END_IF; //If the counter has passed the set value, turn off SwOne IF CounterVariable1 > 5 THEN; SwOne:=FALSE; END_IF; //If the on timer has finished, turn off SwOne to reset the cycle //And add 1 to the counter variable IF ET2 = T#50ms THEN; SwOne:=FALSE; CounterVariable1:=CounterVariable1+1; END_IF; I also added this code for when the machine initializes to reset the timer after it is finished: //Reset counters to zero if the timer is turned off IF SwOne = FALSE THEN; CounterVariable1:=0; END_IF; Although this works fine, it seems to me there must be a simpler way to do this. Coming from a matlab/simulink background, I remember I could just put in an output with a timer built in. Any ideas?