Hello Guest it is April 25, 2024, 06:10:38 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 - stirling

271
General Mach Discussion / Re: Mach3 Major Bug?
« on: June 24, 2015, 06:17:25 AM »
I am trying to pass a value from a script to Mach3. The Value is 13.846153846154. However, instead of passing this value it passes 13.8567.

I don't see this here. If we take this snippet from your macro and enter your 26

Code: [Select]
Teeth = Question ("How Many Teeth on the Gear?")
Gear1=Val(Teeth)
Gear1 = 360/Gear1
Print Gear1
SetVar(1, Gear1)

The value that is printed is 13.846153846154 and the value in var 1 is exactly what it should be i.e. 13.8461538461538 so I don't understand where your 13.8567 is coming from.

272
Param1() is a FUNCTION and therefore is an rvalue (i.e. simply put, it can only appear on the right hand side of an expression).

e.g. x = Param1();

273
VB and the development of wizards / Re: short pulse output with macro
« on: April 26, 2015, 11:57:52 AM »
I am now planning to use arduino interrupt pins and trigger the solenoid on the leading edge. This might solve the problem.

I think you can count on it.  ;)

274
VB and the development of wizards / Re: short pulse output with macro
« on: April 26, 2015, 11:11:29 AM »
Arduino sometimes skips the leading edge too if it is less than 100 ms.

Sorry but I don't get this. How can it miss the leading edge due to the pulse width - doesn't make sense.

I actually need to send output to arduino within 10 ms of an input.

So the Arduino sends a pulse to Mach and within 10ms Mach has to send a pulse back? is that correct?

Sorry I'm just a bit confused as to what this has to do with your original requirement for a 50ms pulse from Mach to your Arduino.

275
General Mach Discussion / Re: What is a Brain?
« on: April 26, 2015, 06:52:33 AM »
No problem - Link added to current sticky

276
Brains Development / Re: Art gave us all some Brains.
« on: April 26, 2015, 06:50:14 AM »
See Introduction to Brains at http://www.machsupport.com/videos for what they are and what they can do for you.

277
VB and the development of wizards / Re: short pulse output with macro
« on: April 26, 2015, 05:45:35 AM »
It seems like you have two issues. 1) generating accurate pulses below 100ms and 2) having the Arduino detect the trailing edge. The two shouldn't be related so more info would help.

As far as 1), in my experience sleeps below 100ms do tend to be inaccurate.

Could you not have the Arduino just detect the leading edge of an arbitrary length pulse and do the 50ms timing itself?

278
General Mach Discussion / Re: Tool changer motor overheating
« on: April 23, 2015, 10:11:31 AM »
Oh don't spoil it - I LIKE Dark logic.  ;D

Serious hat on for a second though. Curiously, if you check it out again it's NOT actually Grey Code but I'd have expected it to be...

279
General Mach Discussion / Re: Tool changer motor overheating
« on: April 23, 2015, 04:30:37 AM »
That process is called dark logic where it decodes the switch logic (on/off).

What - like in a Darth Vader kind of dark?  ;D

280
General Mach Discussion / Re: Mach3 issues on Windows Xp! Please help!
« on: April 23, 2015, 04:24:11 AM »
I have no idea what an SCHP is. Maybe you should stop trying to do an impression of Cheech and Chong and buy a XP license and move on. TBH I'm really not comfortable that you're getting help here on the forum when you openly admit to using pirate software.

I have just re-read this thread and realized that when I made my above post I'd missed seeing page 3 entirely.

@wakedabed - I see that a couple of people have quite rightly told you you need to get rid of your pirated software or go somewhere else for help. I see also that you've basically just ignored them.

Here's how it's going to work. I'm going to lock this thread and the next time you post I expect you to tell us you've bought a Windows license.