Hi Thomas
That's brilliant thanks for that. I need all the help I can get
I have made a bit of progress on the brains
Two things
First I have noticed that It doesn't appear to like the formulae output
just as an integer. Instead it seems to prefer it in terms of the inputs ABCD
so for each formulae I picked an input that had a 1 value then multiplied it
by the required tool number ie for tool 4 A*4 rather than just 4 etc etc
Second I came across some guide notes written by poppabear and he states
• You cant have the same object as an output, follow as an input further down in the same brain and expect it to change condition on a single scan. Brains only does ONE state change per object per scan. (at least that is what I have found). It is hit or miss if your doing it across several Brains then it will depend on execution position and last state wins…….. The only exception to this is Local Vars which appear for all intents and purposes to update locally at that scan, again that is also hit or miss, I have seen it work like that and NOT work like that………go figure……. Keep to the reusing the Output only once as an input in the same brain and you should do OK for the most part.
So I took out the repeated use of current tool dro tied all the lobes together with an OR command and terminated to a single current tool dro
I did this for both brains ie tools 1 - 4 and tools 5 - 8 and I thought it worked but just as poppabear predicted both brains are competeing with each
other for priority sometimes it will work perfectly sometimes it will output 0 for 4 tools. !!#*@*@*#*!!
Anyway my next train of thought was to change the two termination values for each brain to V1 and V2
ie Current Tool DRO to local var V1 and local var V2
then write a third brain
local var Formulae Termination
V1 no operation
ADD A + B Current Tool DRO
V2 no operation
ie at any time either A or B will equal 0
but when running this my computer locks up so it doesn't like something!!!!
So still some work to do.
Hopefully someone else from the forum will jump in with the answer.
Anyway thanks again and enjoy your weekend
cheers George