Hi Nicklas!

On 29.06.2014 09:02, Karlsson & Wang wrote:
> I am rather new here and no nothing about haddock,tarter sauce or pickles .. 
> or have any heart problems. My experience is with electronic development and 
> programming of real time software. Most of my experience is related to power 
> electronics in some way.
> 
> Right now I have an old EDM machine with broken control system in the garage 
> and a suitable motor driver card for the axis on the drawing board.
> 
> I want to start with a new driver sending control signals via Ethernet, do 
> you how to start? I have made a copy of "ppioctl.c" renamed to "tcpIp.c" and 
> are in doubt how to get it compiled in to the software. I am also a little 
> bit confused about the header since it contain ordinary "C" code instead of 
> the usual declarations and type definitions necessary to access the functions 
> from outside this file.
> 

I'm not sure what you are asking actually, is it how to compile a HAL
module for LinuxCNC in general or how to implement ethernet access from
realtime code?
As stated in an older post
(https://www.mail-archive.com/[email protected]/msg50360.html),
I've running a machine with a custom HAL module to talk to a connected
FPGA board over an ethernet link. It uses just UDP packets with raw
binary content, no special higher-level protocol and especially no TCP.
But I'd suppose the bit error rate of such a short point-to-point
ethernet link being far superior to anything you could probably get with
a parallel cable or RS-232. RS-485/422 may be comparable.

Oh, and about compiling a HAL module in general, the easiest way is to
use the comp tool (http://linuxcnc.org/docs/html/hal/comp.html). May
also be named halcompile instead of comp now, I'm not sure what changed
there.

Regards,
Philipp

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to