Hello Guest it is January 27, 2023, 08:37:36 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - cncbobuk

Pages: « 1 2 3 4 5 6 »
31
General Mach Discussion / Re: Toggle output from button input?
« on: March 09, 2015, 11:17:51 AM »
Ok, have re-entered as above, input 1 is operating in diagnostics but not triggering output 5?

32
General Mach Discussion / Re: Toggle output from button input?
« on: March 09, 2015, 10:58:04 AM »
I think I'm getting very confused here, Do I just enter the macro as this

If not IsActive (Input1)  = True Then
  LED = GetOEMLED(78)  ' LED looks at state of Output 5 LED
End If

If IsActive (Input1) And LED = True Then  ' looking at input 1 and LED of Output 5
  DeActivateSignal (OutPut5)
Else
 If IsActive (Input1) And LED = False Then
   ActivateSignal (OutPut5)
 End If
End If

Or do I follow the guide in the pdf attached to Thomas's post???

33
General Mach Discussion / Re: Toggle output from button input?
« on: March 09, 2015, 10:52:00 AM »
Have you macropump enabled in general config ? Yes

is your macropump macro in the wright folder ? Yes

is your input1 working in diagnostic screen ? No

Where's the drowning man emoticon, I think I'm way out of my depth here!

34
General Mach Discussion / Re: Toggle output from button input?
« on: March 09, 2015, 10:33:54 AM »
Thanks for your help guys, maybe I'm doing something wrong but no joy I'm afraid. Maybe I'll just do it outside of Mach 3.

I was hoping just to copy the routine that's used for the Flood Toggle and Mist Toggle buttons on the Diagnostic screen, both of which I have operated from external buttons. I'm clearly missing something basic.

35
General Mach Discussion / Re: Toggle output from button input?
« on: March 09, 2015, 08:38:25 AM »
I have my system hooked up on the bench with motors, switches etc. all connected so can try it without any fear of damage, but just so I don't mess this up I'm assuming this to be correct if I use Input 1 and Output 5

LED = GetOEMLED(78)  ' LED looks at state of Output 5 LED


If IsActive (Input1) And LED = True Then  ' looking at input 1 and LED of Output 5
DeActivateSignal (OutPut1)
Else
 If IsActive (Input1) And LED = False Then
  ActivateSignal (OutPut1)
 End If
 End If

Am I right?

36
General Mach Discussion / Re: Toggle output from button input?
« on: March 09, 2015, 07:54:42 AM »
Thanks for getting back, the link should be http://www.machsupport.com/forum/index.php/topic,29178.0.html if that helps. (Don't think that's the way to do it but should work)

I'm just setting I/O in Mach 3, I don't think the UC300 offers Modbus. I/O is via 5 LPT ports, 2 normal and 3 set to input mode.

37
General Mach Discussion / Toggle output from button input?
« on: March 09, 2015, 07:17:34 AM »
Apologies for this as again I'm sure it's been covered but I want to do a simple toggle on/off of a relay connected to Port 2 pin 3 from a hardware button on Port 3 pin 15. Controller is UC300

I've been looking at the macro in this thread "Re-routing input to output in Mach??" but am just going round in circles trying to work it out, not a good day I'm affraid >:(

Would someone please point me in the right direction?

Many thanks.

38
Brains Development / Toggle output from input button
« on: March 06, 2015, 02:16:36 PM »
I'm sure there is a simple solution to this but how can I toggle an output driving a relay from a button connected to a Mach 3 input?, ie. push on - push off, or is this better suited to a macro?

Any help appreciated

39
General Mach Discussion / Re: External LED's Again
« on: March 05, 2015, 05:13:15 AM »
Many thanks, all sorted!

40
General Mach Discussion / External LED's Again
« on: March 05, 2015, 04:31:03 AM »
Sorry about this, I' sure it must have been covered but I've done a search and gained some info but am still not sure how to achieve what I want.

I am trying to drive 2 external led's to duplicate the Flood and Mist Led's in Mach 3. The OEM codes are 12 and 13 for these Led's

From another post I've gathered the following Macro will do what I want if I assign Output 8 to an output pin connected to my Flood led.

If GetOEMLED (12) Then
ActivateSignal (Output 8)
End If

Have I got this exactly right? and if so where/how do I enter and save the Macro

Many thanks, I'm nearly there now!


Pages: « 1 2 3 4 5 6 »