Hello Guest it is April 26, 2024, 12:31:13 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 - Fiero Addiction

Pages: 1
1
VB and the development of wizards / need help with simple script
« on: December 10, 2010, 07:10:01 PM »
I currently use this one line in a macro file to toggle the THC on/off.

 DoOEMButton(123)  ' toggle THC on/off

This works perfectly. The problem I have is that the program does not know the current state of the THC. So I am trying to make separate THC on and off macros.

' to turn THC on
Cur_THC_status = GetOemLed(24)           'get the state of the THC
  If Cur_THC_status  = 0 Then                ' if the THC is off
   DoOEMButton(123)                              'push the THC button to toggle it on
  End If                                        'end condition statement

' to turn THC off
Cur_THC_status = GetOemLed(24)           'get the state of the THC
  If Cur_THC_status  = 1 Then                ' if the THC is on
   DoOEMButton(123)                             ' push the THC button to toggle it off
  End If                                        'end condition statement

These do not work and I don't know why. I know very little about scripting. Suggestions would be appreciated.

2
General Mach Discussion / THC on/off button not working
« on: May 10, 2008, 09:45:15 PM »
Using Mach3 Plasma, I can only turn the THC on/off before the first reset. In other words, When I start mach the reset button is flashing. THC is off by default. If I click the THC button first it turns on (green) but after I click the reset button the TCH button stops working. The THC function works, but I have to restart Mach every time I want to turn it on or off.

3
Hey all, I've been working on this for a few days now, trying to find the problem myself ,but I cannot figure it out.

I have the X axis set up for pins 2, 3, but when I  jog the X axis, I get output on pins 6, 7 and the Z motor turns.
I have the Z axis set up for pins 6, 7, but when I Jog the Z axis, I get output on pins 8, 9 and the A motor turns.
I have the A axis set up for pins 8, 9, but When I jog the A axis, I get output on pins 2, 3 and the X motor turns.
The Y axis is working correctly, though the travel is off by a factor of 4.
For every 5" of travel the DRO shows 20". I'm quite sure I have the steps per unit set correctly.
When I change the pin assignments in Config, I get the same results as if nothing was changed.
When I change the pin assignments in Config and save settings, the .xml file does not show the changes.
I have tried two different computers, same results.
I'm currently running a fresh install of XP on a P3 1Ghz, 512M RAM, Mach 3 lockdown demo, no other softwre installed.
The driver test passes.
I have checked the parallel port outputs with a scope to confirm that this is not an external hardware or cable problem.
I will attach the .xml.
Please advise.

Pages: 1