Hello Guest it is April 26, 2024, 03:48:52 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 - NASPC

Pages: 1
1
Hi Steve,

Thanks for the verification.  Mach4 is not giving me any errors.  However i have not tired it out with may machine.  I do have one more question. I am doubling up on the Home and limit switches.  Will this code still work, or do i need a ignore code once i reference home for the route to move away from home?

2
Not sure how much luck your going to have if limits are active at end of homing routine. Sounds like they are positioned exactly backwards. Limits should not be active when homing (unless they are both the same switch) but home switch being active when limit is is not an issue. Home switches are only looked at while homing. Limits are watched all the time (except in homing routine if the home and limit switch are one in the same).

I just added some things to help with this exact scenario. You will need to get the prerelease discussed here http://www.machsupport.com/forum/index.php/topic,27039.msg227697.html#msg227697

Once you have it installed and have created your own custom profile open the custom profile and choose operator, edit screen.

The first thing to do is save the screen as something unique.

Then edit the RefAllHome function in the Screen Load Script to do what you want. It will look something like this.....

Code: [Select]
function RefAllHome()
    mc.mcAxisDerefAll(inst)  --Just to turn off all ref leds
    mc.mcAxisHomeAll(inst)
    coroutine.yield() --yield coroutine so we can do the following after motion stops
    ----See ref all home button and plc script for coroutine.create and coroutine.resume
    wx.wxMessageBox('Referencing is complete')
    mc.mcCntlGcodeExecute(inst, G0 G53 X10 Y10)
end

You might find this video helpful too. https://www.youtube.com/watch?v=TH944Qq86kc

Hi Chaoticone , does this only work with a specific build?  I tried this on V4.2.0.4300 and it gives me an error. 

Can't start debugging for 'C:\Users\User\AppData\Local\Temp\leE5CA.mcs'. Compilation error:
C:/Users/User/AppData/Local/Temp/leE5CA.mcs:271: ')' expected near 'G53'
Program stopped (pid: 9012).
Debugging session completed (traced 0 instructions).
Program completed in 0.37 seconds (pid: 9012).

3
Mach4 General Discussion / Re: Mach 4 setting up Limit switches
« on: December 05, 2018, 09:36:12 PM »
Hi John,

Thanks for replying.

I have a XZero CNC router kit that I put together along with a controller box.  The CNC controller is a Leadshine MX3660 with a UC100 (Parallel to USB connection).

The Leadshine MX3660 has 4 Inputs:

Input 1 is pin 17
Input 2 is pin 1
Input 3 is pin 8
Input 4 is pin 9

I am planning on using 2 limit switches for each axis connected in series on Input 1 through 3.  For Input 4 I want to connect 3 limit switched in series for the Homing.

My issue is when setting this up in Mach4 the Input pins are not 17, 1, 8, and 9.  I only see 10 though 13.  These pins according to the manual output pins.

Now the in the Leadshine MX3660 manual it looks like the output pins are connected to the input pins.  
Example:  Input 1 pin 17 is connected to Output 1 pin 10.

I would expect to see when configuring my Inputs i should see pins 17, 1, 8, ad 9 for the Inputs.  Any ideas?

this is the link to the manual, page 20 has the pins layout.  http://www.leadshineusa.com/UploadFile/Down/MX3660hm_V1.2.pdf


4
Mach4 General Discussion / Mach 4 setting up Limit switches
« on: December 03, 2018, 03:28:19 PM »
Hello,

Anyone here that can guide a noob in setting up Limit switches in Mach4?
I am very confused on the process.

Pages: 1