On Sat, 2012-02-11 at 10:29 +0000, andy pugh wrote: > On 11 February 2012 10:17, Pavel Shramov <shra...@mexmat.net> wrote: > > > Array hal pin will have problems with syncronization - how to ensure that > > new packet is fully written and you'll get correct result and not mix of > > two values. > > That shouldn't be a problem between two HAL functions in the same > thread. It might become a problem with mixed threads. > What is the problem you are trying to solve? As long as both > components agree about it I see no reason that the value on a HAL pin > can't be a pointer to an array in shared memory. >
Thanks Pavel and Andy. What I am thinking about is to have two sets of components, one set for Modbus slaves such as for VFD's, PLC's, pendants, etcetera, then a set for ports /dev/ttyS0, S1, eth0, etcetera. The slave components create packet data, the port components add routing and handle the port control. I need to connect these components together. I suppose I could use a HAL pin for each packet word, but I would need an enormous amount of pins. Although, thinking more, I could do a small scale test this way. The port components would need pin sets for all potential slave connections, or have a config file that defines this. For now I think I'll just try to split my current VFD component into a slave and port and see what happens. -- Kirk Wallace http://www.wallacecompany.com/machine_shop/ http://www.wallacecompany.com/E45/index.html California, USA ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers