Hi Pierre,
If you want to look at your 4 Z head home inputs in an OR'd config to a master Z home then try this in Brians.
(ONE caviot, in an "OR" condition, once ONE of your heads hits its Home switch, then this will activate your Home input)
Did you mean you want to "AND" your 4 z head homes, and then once all 4 are homed, then turn on the master home?, if so change the below from an "OR" to "And" block.
We will call OEMTRIGGERS 1-4, as your the homes for your 4 Z homes, and your master home = Z home input).
(OEMTRIGGER1)---->(NO OP)--->|------------|---\
(OEMTRIGGER2)---->(NO OP)--->|---(OR)---|--------->Terminate block (Z Home Input)
(OEMTRIGGER3)---->(NO OP)--->|--BLOCK--|---/
(OEMTRIGGER4)---->(NO OP)--->|------------|-/
sorry for the ascii art, but the 4 OEMTRIGGERS go to an "OR" block (or "AND" block if correction above), then the output of the "OR" block terminates to
the Z Home Input (enable this in ports and pins, but do not assign a Port or Pin number).
I have NOT tested this, and if this does not work, you may have to do it in your external electronic hardware, perhaps an Arduino interface.
Just a side note for you, Brians runs in Machs update loop so its fastest scan time is going to be 1/10th of a second.
Brain is attached,
Scott