Kirk Wallace ha scritto:
> On Thu, 2010-02-18 at 17:10 +0100, Marco Paolini wrote:
> ... snip
>> +1 to the modbus+PLC solution
>>
>> If you use a serial port, the rtai serial driver and an rs232-rs422 
>> converter, you end up with a real-time modbus communication
>>
>> Marco Paolini
> 
> Does EMC2 use the RTAI serial driver?
you need to modprobe rtai_serial

then write a hal module modbus.c:
#include rtai_serial.h
#include hal.h
...
// use rt_spopen(), rt_spwrite, rt_spread and friends

you'll need to implement the modbus protocol in your modbus.c module
and expose some hal pins for the emc Z axis logic
it is not hard to do but remember:
once you're done please post it (the modbus driver) to this list ;)


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to