Hello Guest it is April 19, 2024, 03:44:31 PM

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 - madeintheshed

Pages: 1 2 3 4 5 »
1
PoKeys / Re: select increment per pulse MPG
« on: January 08, 2016, 01:10:19 AM »
Hi, any luck with the macropump and brain for me?

2
PoKeys / Re: Pokeys57U Console Build with questions
« on: December 17, 2015, 08:21:26 PM »
Nice console!! I have one too that works well, but I have issues with the MPG and jogging as well. My jogging works OK , but would love to be able to control increment value with the MPG. Does your brain handle this, and if so, would you be willing to share that part of it?

3
PoKeys / Re: select increment per pulse MPG
« on: December 16, 2015, 01:58:28 AM »
Hi, Any chance of getting a copy of the brain and macropump code you used?

4
General Mach Discussion / Re: Macropump code trouble
« on: June 08, 2015, 12:36:13 AM »
Thanks Hood. Sometimes you can stare at a piece of code and not see a simple error!

It's a script to home my axis which is called from a brain. The script is much cleaner than that now, the counts and other variable sets were just a test to confirm the script was running as if there is an error in the code the whole script gets ignored. I wanted to do the whole thing as a brain so I could have a timer set so that the button needs to be held for 2 seconds. Using the refall in a brain does not home my dual screw axis as I like, so to align it for square I had to go with the brain / macro pump way.
Why do you think it will be slow and unpredictable? If the condition at the beginning is not met, it just exits and runs again when it's called. If I've asked for a refall (led 2000 is active), there is nothing else going on with the machine, and nothing else in the pump that needs to be done, so it's ok if the pump timer pauses whilst the code runs.

If there is abetted way to do this please tell me.
It's working pretty good now.

5
General Mach Discussion / Macropump code trouble
« on: June 07, 2015, 02:55:36 AM »
Hi,
Having trouble getting a macropump to run

It seems like there is somethng wrong with the code/syntax in the if/then statements. With this removed, the pump runs and I can see the Macro calls counting in the message bar.

Code: [Select]
i=i+1
 
 message" Macro Running #"&i
 
 a=GetUserLed(2000)   
 
 If a = 0 Then
   i=0
   DoOemButton (1024)
   While IsMoving()
   Wend
   DoOemButton (1023)
   While IsMoving()
   Wend
   DoOemButton (1022)
   While IsMoving()
   
   DoOemButton (1026)
   While IsMoving()
   Wend
   
   DoOEMButton(133)
   DoOEMButton(134)
   DoOEMButton(135)

End If 
   

What am i doing wrong?

6
Brains Development / Re: Ref Home Brain
« on: May 15, 2015, 06:41:29 AM »
Thanks for the ideas, both look like good ones. I did manage to add a timer in, but will look at the "IsMoving LED" as well.
One other problem I have is when the "RefAll" terminator goes active, All axis simultaneously go RefHome. I would like it to run exactly as I it does if I press the button on the screen with the mouse, which has the following code;
Code: [Select]
DoOemButton (1024)
   While IsMoving()
   Wend
   DoOemButton (1023)
   While IsMoving()
   Wend
   DoOemButton (1022)
   While IsMoving()
   Wend
   DoOemButton (1026)
   While IsMoving()
   Wend
   
   DoOEMButton(133)
   DoOEMButton(134)
   DoOEMButton(135)

The only way I can think of doing this is to set a USERLED as a terminator, then monitor this LED with a macropump and when it goes active get the macropump to run this code.
I cant work out how to get the macropump to have the safety checks, or the brain to do the refhome how I want it, so it looks like I have to run both.
I'm using dual steppers on an axis that I want to home separately to keep gantry square.

7
General Mach Discussion / Re: Digitize led keeps flashing
« on: May 06, 2015, 07:19:25 AM »
Had exactly the same issue. Ran grounded shielded cable to my switches / probe inputs and it fixed it. Think of the wires going to your switches as antenna. They will pick up all sorts of signals from nearby cables (steppers/spindles etc)
The way you are having to increase the debounce setting is proof of this (to me anyway)

8
Brains Development / Ref Home Brain
« on: May 03, 2015, 05:31:22 AM »
I have a brain that activates the Ref Home function when I press a button on my panel. If for some reason the Ref Home button input is triggered whilst some code is running, the moment the code is stopped / Paused / or ended, it goes into ref home mode.
Is there any way to prevent this? Maybe even modify the brain so that the button has to be held for more than 1 or 2 seconds?
Could someone please help with this as I have very little brains when it comes to this :)

9
General Mach Discussion / Re: E-Stop: Latching or Momentary?
« on: May 01, 2015, 06:22:38 PM »
I have both a momentary and a latching.
The momentary which is mounted on my switch panel, is connected via software (Pokeys) to Mach3. Mainly used to reset Estop situations when something triggers an Estop. When used in a panic situation, it does not activate till you release the pushbutton. Pressing and holding does not activate, its only when you take your finger off the button.
The twist and release shuts off power to the drivers and VFD.
When coming out of an Estop, Mach will wait for a command to continue - Cycle Start, Jog etc

10
General Mach Discussion / Re: Strange homing problem
« on: May 01, 2015, 06:29:37 AM »
So I'm still having some noise issues.
My steppers are 3A and running in unshielded cable in a cable chain along with the 3phase VFD cable (shielded and tied to ground at start of cable). My data cables for home switches and Z zero plate are also running in the same chain but moved as far as practical from the others. Every now and then I see the status lights of the inputs in Mach flash and disconnecting the cables at the BOB stop this. This has proved to me that these wires in the cable are acting like big antenna and still picking up the noise from the steppers.
How can I stop this?
I'm thinking that I may have to route these cables differently, but this is going to mean more cable chain.
How far away from your stepper cables do you have your data cables? Should I ground the switch end of the cable shield as well?

Pages: 1 2 3 4 5 »