Jump to content

linnemann

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by linnemann

  1. I have attached a sample project that shows how this can be implemented until UT gets this in as a basic feature. Two input structs are used, one for keeping track og the rising/falling bits and one for the statemachine. StateMachine.ulpr
  2. Thank you for the link. It does not solve the rising edge ,but it has workarounds. I've added the rising edge in a struct to be a feature request as there should be no limitations as it is passed as reference when input is a Struct, Array or buffer. Regards
  3. Hi This is also what support said, but if I need to use global variables or structs then the udfb is not really reusable. Any example of how to make a reusable udfb with a state machine and a way to oneshot it from function in tags?
  4. Hello I'm building a reusable state machine using an UDFB. I want to detect a rising edge when the statemachine should run to transition from the idle state to the next state. I create the input tags but in the UDFB i cannot use the tag when using Positive and Negative transition contact. I can select it if I use the Direct or Inverted Contact. What is the reason for this and how do you propose i do it otherwise? Attached is a very minimal example. StateMachine.ulpr
×
×
  • Create New...