I need to create a brain to do the following.
1.) Activate relay one (on output 5 in modbus) until feed rate DRO = 20 (I mapped analog input one to feed rate DRO)
2.) Activate relay two (on output 6 in modbus) until feed rate DRO = 1
3.) check input 2 on modio to see if it switch is closed (this is a vacuum sensor that switches on when suction threshold is achieved)
4.) If active (meaning switch is closed) complete brain
If inactive, repeat #1 and #2 (only one time) if input is inactive again then complete brain.
I would like the brain to start with an m code or keyboard hotkey if possible so I can incorporate this in my gcode file.
What is will do:
1.) Relay one extends linear actuator
2.) Relay two retracts linear actuator
3.) Analog input 1 reads potentiometer for actuator extension. 20 = full extension, 1 = full retraction
4) Input 2 on modio checks vacuum sensor switch (which verifies object was picked up)
Thank you!