V0N_hydro
Member
Hi,
I want to create a block that takes a dynamic number of inputs like the AND, OR or MUX blocks in Unity Pro for Schneider Quantum PLC. You can drag the bottom edge of those blocks and get more input pins. I can't figure out how to make my own block do that.
I have unity pro xl.
Maybe I don't need to do this at all;
I want to select between X different input signals based on X different boolean variables. The MUX block that comes with Unity takes an integer as the input.
I don't have an integer, I have a X booleans which are set true by an action in the step of the Sequential Function Chart SFC which ensures that only one of the booleans can be true at any given time.
so I want to make a block that takes X booleans as inputs and outputs the index of the input that is true.
This is simple when X is a constant, but I would like to make only one block for all values of X up to 50 without making 50 blocks.
Any ideas on how to achieve this, or a better approach altogether?
thanks
I want to create a block that takes a dynamic number of inputs like the AND, OR or MUX blocks in Unity Pro for Schneider Quantum PLC. You can drag the bottom edge of those blocks and get more input pins. I can't figure out how to make my own block do that.
I have unity pro xl.
Maybe I don't need to do this at all;
I want to select between X different input signals based on X different boolean variables. The MUX block that comes with Unity takes an integer as the input.
I don't have an integer, I have a X booleans which are set true by an action in the step of the Sequential Function Chart SFC which ensures that only one of the booleans can be true at any given time.
so I want to make a block that takes X booleans as inputs and outputs the index of the input that is true.
This is simple when X is a constant, but I would like to make only one block for all values of X up to 50 without making 50 blocks.
Any ideas on how to achieve this, or a better approach altogether?
thanks