Hello Guest it is April 18, 2024, 08:43:45 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 - krsykes23

Pages: 1 2 3 4 5 6 7 8 9 »
1
General Mach Discussion / Re: Help required for relay output code
« on: March 16, 2023, 04:15:38 AM »
With a bit of perseverance I've now managed to achieve this.  Not sure if it's the correct or best method but it works a treat.

Created two macros M667 and M666...

M666 - ActivateSignal(Output1)
M667 - DeActivateSignal(Output1)


      Sub Main()
          SetOEMDRO(1400,0)   
          NumericKeyboard(1400)
             Code("M667")
             Sleep(1000)
             Code "G0 X" &GetOEMDro(1400)
             Code("M666")
             Sleep(1000)
      End Sub

2
General Mach Discussion / Help required for relay output code
« on: March 15, 2023, 07:45:18 AM »
I require some help adding code to an existing project.

I have built a motion fence for my table saw using Mach3, which works well. But I needed to add an air cylinder to 'clamp' the end of the fence (furthest from the linear rail mounting), as the fence flexed a small amount. This feature is now installed and is manually controlled with a button on the screen-set and successfully clamps the fence rigid. This button uses the Mist Toggle (114) to 'clamp' the fence but I now need to add some code the existing code that moves the fence to the desired position.

Here's what I require.....

After moving the fence to a required position, M7 needs to be turned ON (clamped).  When another position is required, after entering the target with the numeric buttons, firstly, M9 needs to turn OFF (unclamped). A delay of around 1 to 2 seconds is required (I can adjust this to get the right timing), to allow the air cylinder to retract, then the movement (target) can start. When the target position is reached, M7 needs to activate again to clamp the fence. I might need another delay after the target is reached, to ensure that the clamp doesn't engage before the movement has reached its position. I assume 'WhileIsMoving' will work?

An important note is that the clamp must be turned off before the movement takes place, otherwise the fence will move while 'clamped' and will skew (damage) the mechanics. The clamp remains on until another position is entered.

The existing code that moves the fence is shown below, which takes the required 'target' from a numeric keypad....

      Sub Main()
          SetOEMDRO(1400,0)   
          NumericKeyboard(1400)
             Code "G0 X" &GetOEMDro(1400)
      End Sub

I was hoping to amend the code myself but I'm a bit unsure of where exactly to place the code and I don't want to damage any of the mechanics if the clamp doesn't turn off while the fence moves!  Below is the sort of thing I'm looking for....

  Sub Main()
          SetOEMDRO(1400,0)   
          NumericKeyboard(1400)

DISENGAGE CLAMP (M9)
WAIT 1 SECOND (TO ALLOW CYLINDER TO RETRACT)

                   
                       Code "G0 X" &GetOEMDro(1400)

ENGAGE CLAMP (M7)
WAIT 2 SECONDS (TO ALLOW CYLINDER TO CLAMP)


      End Sub

I hope you can assist me with this.

3
General Mach Discussion / Setting a DRO after a Reference
« on: July 31, 2021, 07:59:17 AM »
I searched for similar topics but couldn't find what I am looking for.

I have a single (X) axis linear actuator which works fine with Mach3. The X axis actuator and therefore the Home switch are set away from the cutting blade to allow for the mitre saw to clear the mechanics

What I require is that when I Reference/Home the axis, I need the X DRO to be 168 instead of the 'referenced' value.  How do I achieve this?

I hope someone can assist me, with what I'm sure is very simple!

4
General Mach Discussion / Re: 1 axis linear actuator
« on: July 23, 2021, 05:53:28 AM »
Many thanks Klaus,

I'll give this a try!

Regards,

Keith

5
General Mach Discussion / 1 axis linear actuator
« on: July 22, 2021, 12:09:09 PM »
I'm making a single axis linear actuator to my mitre saw and I need help with how I configure Mach3 to move the X axis by just entering the desired length in a DRO. I'm OK with designing the screen-set (draft image attached) but unsure how to actually perform the simple 'move' of the axis.

Basically, is there a simple way to perform an MDI input......for example "G0 X250", but only using a DRO?  I've seen exactly what I require done by someone but they don't say how they achieved it in Mach3.

Any assistance would be greatly appreciated.

6
General Mach Discussion / Copyright error - Mach3
« on: December 18, 2018, 02:07:27 PM »
Mach3 - Why all of a sudden am I getting an error message?

           ERROR, #Expand File not found at:
           C:\Mach3\ScreenSetMacros\.....\Masters\HeadersCopyRightAndLicenseNotice.m1s

I also get an error in the error window..."Scripter Compile Error. In M5.m1s

I've changed nothing but curious why I now get this error?

7
Finished Screens / Re: Portrait Touchscreen - New
« on: October 23, 2018, 10:19:04 AM »
Hi John, apologies for not replying sooner.  I've made a few minor changes to the screenset.  I am considering making the set available for a small fee.  I'll post when
this is available.

8
Finished Screens / Re: 3 Axis mill with ATC
« on: October 23, 2018, 10:15:40 AM »
Thanks.  This screen has now been replaced with a much neater version.  I'll show the new version in the next few days.  I'm also considering making the
set available for a small fee.  This will include all the relevant .psd files and images.

9
Finished Screens / Portrait Touchscreen - New
« on: December 16, 2017, 03:42:08 PM »
Hi all,

Been away from the forum (and CNC) for a while, moving and house and workload!

Here is a new screenset that I have just about completed.  I wanted a portrait mode this time, so I chose an Iiyama touchscreen monitor.
Managed to get the 'On-Screen' keyboard to load on startup, so I sized my screenset around the keyboard.   Everything I need is on just one
screen.

10
General Mach Discussion / Re: Copyright notice error
« on: December 08, 2017, 01:04:40 PM »
OK...I have resolved the issue.  I have found a backup of the Screenset Macros and reinstalled them.

Pages: 1 2 3 4 5 6 7 8 9 »