if output #1 is ON i must get an input #2 after 3 seconds.
if i dont get the input after 3 seconds i need to to hold the machine and send a messege Error to the screen.
i want to secure that the my pneumatic piston finish the stroke within 3 seconds and the machine dont continue.
by the way the most important for me is how to send a message to the "Error message: in mach 3 using Brains.
You will need to do a hybrid solution, using Brains and macropump for your message.
Your Brain would look like this:
OUTPUT1->NO OP->TIMER (set to 3 seconds)->|---AND----|--------- Terminate to a USERLED i.e. 2000
INPUT2--->INVERT---------------------------------->|--BLOCK--|---/
The two inputs both got into an AND block, then the output of the AND block goes to a USERLED that we will use in the MacroPump.
'---Macropump.m1s
Interlock = GetUserDRO(2000) 'some unused user DRO in your setup
PistonInput = GetUserLED(2000) 'the user led in the brain
If PistonInput = 1 And Interlock = 0 Then 'the interlock only allows this to run once per Piston input change of stat
DoOEMButton(1001) 'Push the Feed Hold
Message ("Piston Travel Error") 'Error Message
SetUserDRO(2000,1) 'Set the run once interlock
End
If PistonInput = 0 And Interlock = 1 Then
SetUserDRO(2000,0) 'Clear the interlock
End
'Scott