Hello Guest it is August 20, 2019, 10:41:04 AM

Author Topic: Mach3 need one more input for Pressure sensor?  (Read 3741 times)

0 Members and 1 Guest are viewing this topic.

Mach3 need one more input for Pressure sensor?
« on: April 15, 2016, 04:04:05 PM »
I have used all the Inputs 1-4 in the inputs tab on mach3.  I need to find one more input for a pressure sensor.  I do have 11-15 OEM Trig still available.   Could I assign a port and pin to the OEM Trig in the inputs tab to get the input to trip and through VB scripting either shut down the system or flash a message box on the screen for the user to see?

Thanks,

Jeff

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Mach3 need one more input for Pressure sensor?
« Reply #1 on: April 15, 2016, 05:16:39 PM »
You could easily use an OEM Trigger and assign it as an Stop if that is what you are wanting?
Just set up the port and pin number in the trigger then on Config menu then System HotKeys enter the OEM Code for Stop (1003) next to the trigger you are using.
You could also do similar via the macropump if you were wanting a message box to appear.
For example you could have something like this

If IsActive(OemTrig11) Then
DoOemButton(1003)
Sleep 500
MsgBox "Pressure Failure"
End If



Hood
Re: Mach3 need one more input for Pressure sensor?
« Reply #2 on: April 15, 2016, 05:27:12 PM »
Hood yes I had a brain fart on my end.  I hooked up the Pressure sensor to check the pin to see if I could get the Pin LED to light up on the M21 board and yes it does.  The next part is to use the PSI sensor in my ATC.  I need to write the code so that when the ATC pneumatic system drops below 70PSI,  the ATC function will stop and then put up a message box saying to "CHECK AIR PRESSURE" Click OK to Continue.

Has anyone heard from TP,  have not seen him on in a while just checking to see that everything is all good?

Thanks,

Jeff

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Mach3 need one more input for Pressure sensor?
« Reply #3 on: April 15, 2016, 05:34:28 PM »
Re: Mach3 need one more input for Pressure sensor?
« Reply #4 on: April 15, 2016, 05:43:46 PM »
Wow I am sad to see that! Terry really helped me out a lot and his knowledge base will be missed along with the tomatoes he through at me to get me thinking!!!!

Jeff
Re: Mach3 need one more input for Pressure sensor?
« Reply #5 on: April 16, 2016, 03:43:29 AM »
Hood, I have the LED working on the M21 board but am trying to get an LED to work on my ATC screen to tell the user the ATC SYSTEM PRESSURE IS LOW.  I made the LED in machscreen with the User LED # of 1061.  The UserLED is attached to OEMTrigger11.  I tried making a brain to get the LED to light up on the ATC screen but have had no luck at all.  When the system pressure drops below 70PSI I have it set on OEMTRIGGER #11 and  Pin 3-7 will light up on the M21 board, when that happens I would like my ATC low psi LED to light up as well.

Any help would be awesome.

Jeff

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Mach3 need one more input for Pressure sensor?
« Reply #6 on: April 16, 2016, 02:11:10 PM »
Works fine here, see vid

https://youtu.be/wy-4bvQgm2U

Hood
Re: Mach3 need one more input for Pressure sensor?
« Reply #7 on: April 16, 2016, 03:17:15 PM »
Hood,  I don't understand how you got that to work!  I made the brain look like this,

OEMTRIGGER11:0--------------------Invert flip signal--------------------OEMLED1061:1

For some reason the UserLED1061 I made in machscreen is not lighting up.  I can see the port and Pin on the M21 board working so I know its getting the signal just not showing on the screen with the LED?

Jeff
Re: Mach3 need one more input for Pressure sensor?
« Reply #8 on: April 16, 2016, 03:18:34 PM »
Are you using the Macro that you wrote at the beginning of the post?

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Mach3 need one more input for Pressure sensor?
« Reply #9 on: April 16, 2016, 03:25:59 PM »
No, just emulating the OEM Trig via my keyboard.

Did you enable the brain?
Did you reload after enabling?


Hood