Re: [Emc-users] LinuxCNC HAL contol flow

2019-03-09 Thread Gene Heskett
On Saturday 09 March 2019 22:44:19 John Dammeyer wrote: > > > On Sat, 9 Mar 2019 at 16:31, John Dammeyer > > > > > > > wrote: > > > > How does a simple test like: > > > > > > > > if (COOLANT_SWITCH == 1) PUMP1 = 1; else PUMP1 = 0; > > > > > > > > become abstracted through the HAL into the actual

Re: [Emc-users] LinuxCNC HAL contol flow

2019-03-09 Thread John Dammeyer
Thanks Andy, Busy studying (again) http://linuxcnc.org/docs/2.7/html/hal/basic-hal.html John > -Original Message- > From: andy pugh [mailto:bodge...@gmail.com] > Sent: March-09-19 7:55 PM > To: Enhanced Machine Controller (EMC) > Subject: Re: [Emc-users] LinuxCNC

Re: [Emc-users] LinuxCNC HAL contol flow

2019-03-09 Thread andy pugh
On Sun, 10 Mar 2019 at 03:46, John Dammeyer wrote: > But I don't think LinuxCNC nor MachineKit compiles this into C code. So how > is this indirection used? Each component reads its inputs and computes its outputs every thread cycle (servo or base, depending on which one it is addf-ed to)

Re: [Emc-users] LinuxCNC HAL contol flow

2019-03-09 Thread John Dammeyer
> > On Sat, 9 Mar 2019 at 16:31, John Dammeyer > wrote: > > > How does a simple test like: > > > > > > if (COOLANT_SWITCH == 1) PUMP1 = 1; else PUMP1 = 0; > > > > > > become abstracted through the HAL into the actual low level? > > > > Skipping all the other stuff that I can't answer > > > >

Re: [Emc-users] LinuxCNC HAL contol flow

2019-03-09 Thread Gene Heskett
On Saturday 09 March 2019 21:01:02 andy pugh wrote: > On Sat, 9 Mar 2019 at 16:31, John Dammeyer wrote: > > How does a simple test like: > > > > if (COOLANT_SWITCH == 1) PUMP1 = 1; else PUMP1 = 0; > > > > become abstracted through the HAL into the actual low level? > > Skipping all the other

Re: [Emc-users] LinuxCNC HAL contol flow

2019-03-09 Thread andy pugh
On Sat, 9 Mar 2019 at 16:31, John Dammeyer wrote: > How does a simple test like: > > if (COOLANT_SWITCH == 1) PUMP1 = 1; else PUMP1 = 0; > > become abstracted through the HAL into the actual low level? Skipping all the other stuff that I can't answer In HAL that is "net some_signal

Re: [Emc-users] LinuxCNC HAL contol flow

2019-03-09 Thread Nicklas Karlsson
On Sat, 9 Mar 2019 08:29:10 -0800 "John Dammeyer" wrote: > I've been trying to decide the best forum to ask this question. Given the > last few subjects on both STM32s and CANopen I'll start here and if not > perhaps someone can point me to a better place or we can take it off line. STM32s