Hello Guest it is April 19, 2024, 11:44:01 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.


Topics - khinhaw

Pages: 1
1
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)

2
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