No, I tried that Friday, it breaks the "select case" statement
It looks as though you cannot use a loop within a "select case " statement.
However you notice
While IsMoving()
Wend
This does work.
Monday I will try
While Is Active(Input4)
Wend
(this passes the simulation test)
Then I will go into "ports and pins" and reverse my settings to show "active" when it's not.
normally, I would pull these statements out of the "select case statements".
The problem here is that what I have is actually two toolholders, one on each side of the spindle in a clamshell - 3 tools each.
So there are different inputs and outputs for each side
Thanks for your response, I will post monday if this works or not
Richard