Hood,
Hello. Yes, the brains tie in the with potentiometer.
The brain reads like this:
if value of potentiemeter is > 13, turn off mist, it works fine and takes about 1 second for the actuator to extend.
So if the macro will not wait for the brain, I wonder if I should remove the brain and incorporate the "mist off" via the marco. Like this:
Code "G0X9Y11" 'go to specified coordinate'
While IsMoving 'wait until stops moving'
Wend
Code "M8" 'mist on'
If GetOEMDRO(74) >13 Then
Code "M8" 'Mist Off'
Sleep (1000) 'wait For 1 Second'
Code "M7" 'flood on'
If GetOEMDRO(74) <12 Then
Code "M7"
If GetOEMLED(24) then 'if led 24 is active then end macro'
Code "G0X0YO" 'go home'
While IsMoving 'wait until stops moving'
Wend
End
Else 'if not'
Code "M8" 'mist on'
If GetOEMDRO(74) >13 Then
Code "M8" 'Mist Off'
Sleep (1000) 'wait For 1 Second
Code "M7" 'flood on'
If GetOEMDRO(74) <12 Then
Code "M7"
Code "G0X0Y0" 'go home'
Endif 'end macro'