Hello Guest it is April 19, 2024, 07:17:54 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 - khinhaw

Pages: 1
1
Problem solved
END
is required at the end of the code.

2
Newbie with poor English & poor coding skill need help~.
Problem : After running the code in MDI, everything else seized. no response to jogging... etc even after RESET.
Suspect I need an end statement but I might be wrong.
Appreciate help.

my code
' M3 Code

Dim Z_Zero, Pierce_Height, Cut_Height
DoSpinStop()
EndTHC()
Pierce_Height=GetUserDRO(1000)
code "G31 Z-50 F300"
While IsMoving()
Wend
Z_Zero=GetDRO(2)
code "G0 Z"&(Z_Zero+Pierce_Height)
While IsMoving()
Wend
DoSpinCW()
While Not GetOEMLED(36)
Wend
EndTHC()
Cut_Height=Z_Zero + Pierce_Height / 2
code "Go Z"&(Cut Height)
While IsMoving()
Wend
StartTHC()

The M5 code
'M5 code
Dim Travel_Height
EndTHC()
DoSpinStop()
Travel_Height=GetDRO(2) + 50
code "G0 Z"&(Travel_Height)

3
General Mach Discussion / Re: Setting up Problem
« on: October 17, 2012, 04:36:02 AM »
Thanks Tweakie, the parmon is very handy in deed.

Solved my problem....
Wrong pin assignment, Step as Dir, & vice verse... & never restart Mach after setting pin numbers...
Embarrassing...

4
General Mach Discussion / Re: Setting up Problem
« on: October 08, 2012, 09:04:32 AM »
Re installed Mach3 many time.

Swap a few LPT cables, even bought new ones for the purpose.

I wouldn't know for sure, but I checked the port & pins configuration, Even strip it down to only the motors & Charge-pump. yet no good.

I'm using XP. I even swap PC... one which proven working on another machine...

5
General Mach Discussion / Re: Setting up Problem
« on: October 08, 2012, 06:47:01 AM »
Tweakie.cnc.
Done all that & the pin remains 4.2V
my pin2 isX-DIR, pin4 is Y-DIR, when I run G0 X20000Y20000, then G0X-20000Y-20000 the voltage reading remains at 4.3V
DMM probe +ve at Pin 2 or 4, COM pin ar DB25 25pin

6
General Mach Discussion / Re: Setting up Problem
« on: October 08, 2012, 05:03:20 AM »
Sorry, both directions measures 4.3V on the LPT pins

7
General Mach Discussion / Re: Setting up Problem
« on: October 08, 2012, 04:43:55 AM »
Tweakie.CNC, thanks for the heads up. the X-DIR measures 4.3V on my DMM. MaxCL un-checked

8
General Mach Discussion / Re: Setting up Problem
« on: October 08, 2012, 03:28:18 AM »
I tried Sherline 1/2 pulse mode & motor remained un-responsive. but DRO moved.

I switched to Maxnc mode again, (this is the only time when the BOB's motor pin actually produce any sort of signal.) & I get about 3V from DIR & STEP pins, I type in G0 x2000000 to send some pulses for testing on X axis motor pins on the BOB

9
General Mach Discussion / Setting up Problem
« on: October 08, 2012, 01:36:35 AM »
Hi,
I'm not new to Mach3, & had been successful in installing & configure Mach3 a couple of times  in the pass.

I am encoutering a really weird behavior, can't really tell if it is a Mach3 problem, BOB problem or wiring problem.

Here's the scenario.
Installed Mach3, ran the speed test, all are well. Created custom screen, & started to go about configurating the motor & I/O
Config>Ports & pins , check #port 1, select 25khz. Unchecked everything else
Config>Ports & pins>motor outputs, plug in all the motor pins correctly, enable the x,y,z axis
Config>Motor tuning, "step per"=26.525, Velocity=3000, Acceleration 300. on all axis.
#ps, I'm using Module 1.0 rack & pinion. pinion gear is 24 tooth. 10 microsteps. step per=200x10/(24pi)=26.525
Restart Mach3
press arrow key-> DRO moved, motor no response,
press Pgup, Pgdn-> DRO moved, motor no response

I then test the bob by using the spindle toggle in the dianostic screen, LED on BOB terminals & all the output behaved accordingly.

I then fiddleing will all the check boxes & found out that the motor only response when the  MaxCL box is checked. but in a strange way.
In the MaxCL mode, disregard of which terninals between 4,5,6,7,8,9 I plug in the stepper motor driver input, the same motor will move only in the same direction when I press the same key...
Also, the travel is only 1/4 of what it is expected. exactly 1/4

I'd swapped PC, swapped BOB, swap LPT cable. & nothing works for me when MaxCL was unchecked...

Pages: 1