Hello Guest it is April 29, 2024, 12:24:53 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 - HimyKabibble

31
General Mach Discussion / Re: Ethernet Communication From CB?
« on: December 19, 2014, 12:57:30 PM »
Terry,

GetPortByte/PutPortByte read raw PC I/O port data.  They know nothing about Ethernet.

What I suspect I really need is something more like WinSock access.

Regards,
Ray L.

32
General Mach Discussion / Ethernet Communication From CB?
« on: December 19, 2014, 11:45:16 AM »
Is it possible to do Ethernet communications from within a CB macro?  I've built a new toolchanger that uses Ethernet to communicate with the host PC.  If I could communicate with it using a CB macro, it would save me the hassle of writing a plug-in.  Can it be done?  Even a simple telnet connection would do it.

Regards,
Ray L.

33
General Mach Discussion / Re: Ball Screw & Stepper Motors
« on: December 14, 2014, 09:12:10 AM »
Perhaps Rick LsLonde at HomeShopCNC.com?

Regards,
Ray L.

34
It would make FAR more sense to simply fix it so it doesn't lose steps....

Regards,
Ray L.

35
General Mach Discussion / Re: backlash compensation in CAM
« on: September 29, 2014, 12:31:12 PM »
CAM is not in any way involved in backlash compensation.  That is handled entirely by Mach3.

Regards,
Ray L.

36
General Mach Discussion / Re: Arduino Charge Pump Code/Sketch?
« on: September 20, 2014, 09:13:54 PM »
And you advocate downloading, not writing your own code ;-)
Well written code on a PIC or any other platform will out perform lazy, cobbled together, downloaded libraries on any other platform.
But as an experienced embedded programmer you must know this and not be bothered by it,
Hey, Ho,
That's the industry as it stands,
Slackers balancing on the shoulders of those they percieve as giants ;-)
Enjoy!

Don't put your words in my mouth.  

You truly believe there is NO high-quality off-the-shelf code out there?  Must be very dark in your world.  If you knew what you were talking about, you would know there is a great deal of very good code available and that can save even an experienced programmer a great deal of time.  And, for people, like the OP, who are NOT experienced programmers, and for many of us who are, efficiency often really does not matter, as it buys nothing in terms of functionality.  The OP proved that by being able to take the FreqMeasure library and put it to use in very short order to do what he needed to do.  How long do you think it would have taken him to duplicate that functionality on his own?  That's the difference between someone who's more interested in accomplishing the task at hand than showing off.

FYI - Many, if not most, of the public libraries for Arduino WERE developed by very competent, professional programmers, and requires no optimization.  And even if it does, it can give a good starting point for those of us who have better things to do with our time than re-inventing the wheel just to prove how studly we are.  The fact that you believe otherwise is a clear indication of your level of knowledge about Arduino.  

Given that you seem to only want to play the troll and argue, rather than have a useful exchange of information, leaves me no longer giving a rats a$$ what you think.  So rant away - I'm not going to waste my time listening to your uninformed drivel any more.

Regards,
Ray L.

37
General Mach Discussion / Re: Arduino Charge Pump Code/Sketch?
« on: September 20, 2014, 10:58:42 AM »
OK, so you can't back-up your original statement about PICs vs Arduinos....

38
General Mach Discussion / Re: Arduino Charge Pump Code/Sketch?
« on: September 19, 2014, 11:26:08 AM »
You'd have been better off using a PIC chip, smaller and faster and available with a wide range of onboard I/O and memory options, if you only need the basics you're not wasting space or power, programmed in assembler too, so total control of the hardware with no wussy high level programming, then you'd really have to learn something ;-)

I hope that's intended to be humorous, because if not you're rather ill-informed about Arduino vs PICs.  Arduinos will do absolutely anything any PIC can do, and for a lot LESS money.  At the low end, a $3 Arduino ProMini board has a 16 MHz Atmel AtMega 328 MCU, with, IIRC, 64KByte FLASH, EEROM, and about 20 I/Os.  It has at least as many peripherals as any PIC.  Find me ANY PIC-based board you can buy for $3, much less one as powerful as the ProMini!  At the high end, a $15 Arduino Due has an 84MHz Atmel chip based on an Arm Cortex 32-bit processor, with 256Mbytes of FLASH, and over 50 I/Os.  They can all be programmed in C, C++, or assembler, and all use the same development environment and programming tools.  There are countless public-domain libraries for doing almost anything you can think of, making Arduino one of the easiest, fastest, and most powerful embedded development platforms in history.  I've been doing embedded development since the mid-'70s, and I now use Arduino exclusively, as there is nothing out there that even comes close in terms of cost, performance, or speed of development.

Regards,
Ray L.

39
General Mach Discussion / Re: Arduino Charge Pump Code/Sketch?
« on: September 16, 2014, 11:31:20 AM »
You'd be much better off using attachInterrupt to get an interrupt whenever the change pump input has a rising-edge transition.  On each interrupt, get the current time, using millis(), and calculate the time since the last interrupt, which will tell you the frequency.  Compare that measured frequency to to some reasonable range.  Nominal charge pump frequency is 12.5 kHz., so if you see transitions at a rate from 10-15 kHz, you can assume the charge pump is running.

There is also an Arduino library called FreqMeasure, which will directly measure the frequency of a digital input, and give you a frequency value, in Hz.  The sample sketch for that library will give you almost everything you need, except for testing the measured frequency is in a valid range.

Regards,
Ray L.

40
General Mach Discussion / Re: Mach3 and external motion controller
« on: September 03, 2014, 10:30:42 AM »
KFlop will do instantaneous feed hold, at least if it's triggered directly through the KFlop itself, rather than through Mach3.

Regards,
Ray L.