1091
General Mach Discussion / Re: It's Alive! (El Cheapo Dyna 2400 Mach III conversion)
« on: May 15, 2007, 04:48:05 PM »
After squashing a self induced hardware bug today (cold solder joint), I moved my computer cart around to the front of the machine and thought I would try running the first part program. I was greatly confused at first as all the X and Y axis were moving backwords (but homing OK). It was then that I realized that when I had the computer cart on the backside of the machine (so I could run Mach and probe stuff withteh Oscope) that I set up the X&Y backwords! So, after removing my head from my butt, I changes things around in 'Ports and Pins' and 'Homing' and now all is well. All the home switches are infact at '0', so I had to remove my offsets in homing. I now have the machine moving the table to about mid position after homing. I tried to force the soft limits and machine coords on (and LED's) but my script will only toggle them (below). Any idea what I may be foing wrong?
Thanks
Thanks
Code: [Select]
DoButton( 24 )
DoButton( 23 )
DoButton( 22 )
DoButton( 25 )
'' Wait until the axis are done moving and then
' Set to machine coords and move table to front
While IsMoving()
Wend
Code "G53"
Code "G0 X3 Y2"
'' Wait until the axis are done moving and then
' set the proper modes
While IsMoving()
Wend
'' Make DRO and Screen reflect Machine coord mode
If GetUserLed(16) = 0 Then
DoOEMButton(107)
End If
'' <ake sure that we enter into soft limit mode
If GetUserLed(23) = 0 Then
DoOEMButton(119)
End If