Re: [Emc-users] #ifdef

2021-06-17 Thread Chris Albertson
As said, you could use m4 to do this

ifdef ('foo',
   "hall code here to do foo-stuff",

   "hal dode here to not non-foo-stuff",
)

You can use m4 to add ifdef-like processing to any kind of file.

So a more concrete example would be to make an dot.m4 file that reads as
follows.  You can use # for m4 comments

ifdef ('use_stepgen',
# this is processed if use_stepgen is defined
"net spindle-vel-fb-rps  <=  hm2_7i92.0.stepgen.05.velocity-fb",

# if use_stepgen is not defined
"net spindle-vel-fb-rps  <=  hm2_7i92.0.encoder.01.velocity")

Then at the top of the file or in the run-time argument to m4 you either
define "use_stepgen" or not.  This saves having to add and remove many #
comments.Also m4 has of course macros you factor or repetitive test and
use it many times. So you can get even more esoteric with M4 and do this

spindleNetAssign = "net spindle-vel-fb-rps  <=  hm2_7i92.0."
ifdef ('use_stepgen',
"$(spindleNetAssign)stepgen.05.velocity-fb",
"$(spindleNetAssign)encoder.01.velocity")

The above can be called either "greatly simplified" or "completely
unreadable, depending in opinion and how used to macro processing you are.
 The advantage of implied form is that you will never later have to make an
identical edit in two places or type the same text twice.But debugging
is harder as you have added one more abstraction layer.

As said before you likely already have m4 installed on your Linux system.



On Wed, Jun 16, 2021 at 9:50 PM John Dammeyer 
wrote:

> Not sure I understand.  Say for example the existing HAL file has this:
>
> net spindle-vel-fb-rps  <=  hm2_7i92.0.stepgen.05.velocity-fb
>
> But now I'm trying to get the HAL file correct so LinuxCNC starts without
> errors.
>
> net spindle-vel-fb-rps   <=   hm2_7i92.0.encoder.01.velocity
>
> Now I can go through and comment things out with a '#' on each line but my
> existing spindle has a 'near'  and 'ramped' feature to make it accelerate
> more slowly.  There are suddenly a lot of '#' comments and it gets hard to
> read.
>
> So how would I use haltcl to select one or the other of the above
> examples.  I mean I know I need to not use the stepgen velocity feedback to
> show spindle velocity because that's now the encoders job but there are a
> lot of non-starters at the moment.
>
>
> > -Original Message-
> > From: Phill Carter [mailto:phillcarte...@gmail.com]
> > Sent: June-16-21 9:12 PM
> > To: linuxcnc-users
> > Subject: Re: [Emc-users] #ifdef
> >
> >
> >
> > > On 17 Jun 2021, at 2:03 pm, John Dammeyer 
> wrote:
> > >
> > > Is there something like an
> > >
> > > #ifdef
> > > #else
> > > #endif
> > >
> > > in HAL files?
> > > Thanks
> > > John
> >
> > No, but it is possible to use HALTCL files.
> >
> > <http://linuxcnc.org/docs/devel/html/hal/haltcl.html <
> http://linuxcnc.org/docs/devel/html/hal/haltcl.html>>
> >
> >
> > >
> > > "ELS! Nothing else works as well for your Lathe"
> > > Automation Artisans Inc.
> > > www dot autoartisans dot com
> > >
> > >
> > > ___
> > > Emc-users mailing list
> > > Emc-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/emc-users
> >
> >
> > ___
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
>
>
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>


-- 

Chris Albertson
Redondo Beach, California

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] #ifdef

2021-06-17 Thread John Dammeyer
Getting late here.  I'll check it out tomorrow.  
I'm pleased to say that I was able to modify the pyvcp_options.hal to use the 
spindle-fb-rpm-abs-filter => pyvcp.spindle-speed
from the hal file and now when I spin the encoder on the bench here by hand I 
get RPM displayed on the AXIS panel.
I need to read up on where linux needs to have those values for power tapping.  
I believe it's what is assigned into spindle.0.at-speed

Baby steps.
Thanks
John


> -Original Message-
> From: Phill Carter [mailto:phillcarte...@gmail.com]
> Sent: June-16-21 11:09 PM
> To: linuxcnc-users
> Subject: Re: [Emc-users] #ifdef
> 
> 
> 
> > On 17 Jun 2021, at 3:51 pm, John Dammeyer  wrote:
> >
> > Thanks Phil,
> > I just broke it and lost pulses to the spindle.  Went back and commented in 
> > the other direction and I have my spindle back.
> >
> > Who would have thought this was so hard�
> I didn't think it was�
> 
> Did you look at the sim that the docs referred to:
> <https://github.com/LinuxCNC/linuxcnc/tree/master/configs/sim/axis/simtcl
> <https://github.com/LinuxCNC/linuxcnc/tree/master/configs/sim/axis/simtcl>>
> 
> An example used in plasma tables:
> >https://github.com/LinuxCNC/linuxcnc/blob/master/lib/hallib/plasmac.tcl
> <https://github.com/LinuxCNC/linuxcnc/blob/master/lib/hallib/plasmac.tcl>>
> 
> 
> >
> > John
> >
> >
> >> -Original Message-
> >> From: Phill Carter [mailto:phillcarte...@gmail.com 
> >> <mailto:phillcarte...@gmail.com>]
> >> Sent: June-16-21 10:45 PM
> >> To: linuxcnc-users
> >> Subject: Re: [Emc-users] #ifdef
> >>
> >>
> >>
> >>> On 17 Jun 2021, at 2:47 pm, John Dammeyer  wrote:
> >>>
> >>> Not sure I understand.  Say for example the existing HAL file has this:
> >>>
> >>> net spindle-vel-fb-rps  <=  hm2_7i92.0.stepgen.05.velocity-fb
> >>>
> >>> But now I'm trying to get the HAL file correct so LinuxCNC starts without 
> >>> errors.
> >>>
> >>> net spindle-vel-fb-rps   <=   hm2_7i92.0.encoder.01.velocity
> >>>
> >>> Now I can go through and comment things out with a '#' on each line but 
> >>> my existing spindle has a 'near'  and 'ramped' feature
> to
> >> make it accelerate more slowly.  There are suddenly a lot of '#' comments 
> >> and it gets hard to read.
> >>>
> >>> So how would I use haltcl to select one or the other of the above 
> >>> examples.
> >>
> >> if { condition } {
> >>net spindle-vel-fb-rps  <=  hm2_7i92.0.stepgen.05.velocity-fb
> >> } else {
> >>net spindle-vel-fb-rps   <=   hm2_7i92.0.encoder.01.velocity
> >> }
> >>
> >>
> >>> I mean I know I need to not use the stepgen velocity feedback to show 
> >>> spindle velocity because that's now the encoders job but
> >> there are a lot of non-starters at the moment.
> >>>
> >>>
> >>>> -Original Message-
> >>>> From: Phill Carter [mailto:phillcarte...@gmail.com 
> >>>> <mailto:phillcarte...@gmail.com> <mailto:phillcarte...@gmail.com
> <mailto:phillcarte...@gmail.com>>]
> >>>> Sent: June-16-21 9:12 PM
> >>>> To: linuxcnc-users
> >>>> Subject: Re: [Emc-users] #ifdef
> >>>>
> >>>>
> >>>>
> >>>>> On 17 Jun 2021, at 2:03 pm, John Dammeyer  >>>>> <mailto:jo...@autoartisans.com>> wrote:
> >>>>>
> >>>>> Is there something like an
> >>>>>
> >>>>> #ifdef
> >>>>> #else
> >>>>> #endif
> >>>>>
> >>>>> in HAL files?
> >>>>> Thanks
> >>>>> John
> >>>>
> >>>> No, but it is possible to use HALTCL files.
> >>>>
> >>>> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html 
> >>>> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html>
> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html 
> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html>>
> >> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html 
> >> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html>
> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html 
> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html>>>>
> >>>>
>

Re: [Emc-users] #ifdef

2021-06-17 Thread Phill Carter


> On 17 Jun 2021, at 3:51 pm, John Dammeyer  wrote:
> 
> Thanks Phil,
> I just broke it and lost pulses to the spindle.  Went back and commented in 
> the other direction and I have my spindle back.
> 
> Who would have thought this was so hard…
I didn't think it was…

Did you look at the sim that the docs referred to:
<https://github.com/LinuxCNC/linuxcnc/tree/master/configs/sim/axis/simtcl 
<https://github.com/LinuxCNC/linuxcnc/tree/master/configs/sim/axis/simtcl>>

An example used in plasma tables:
>https://github.com/LinuxCNC/linuxcnc/blob/master/lib/hallib/plasmac.tcl 
><https://github.com/LinuxCNC/linuxcnc/blob/master/lib/hallib/plasmac.tcl>>


> 
> John
> 
> 
>> -Original Message-
>> From: Phill Carter [mailto:phillcarte...@gmail.com 
>> <mailto:phillcarte...@gmail.com>]
>> Sent: June-16-21 10:45 PM
>> To: linuxcnc-users
>> Subject: Re: [Emc-users] #ifdef
>> 
>> 
>> 
>>> On 17 Jun 2021, at 2:47 pm, John Dammeyer  wrote:
>>> 
>>> Not sure I understand.  Say for example the existing HAL file has this:
>>> 
>>> net spindle-vel-fb-rps  <=  hm2_7i92.0.stepgen.05.velocity-fb
>>> 
>>> But now I'm trying to get the HAL file correct so LinuxCNC starts without 
>>> errors.
>>> 
>>> net spindle-vel-fb-rps   <=   hm2_7i92.0.encoder.01.velocity
>>> 
>>> Now I can go through and comment things out with a '#' on each line but my 
>>> existing spindle has a 'near'  and 'ramped' feature to
>> make it accelerate more slowly.  There are suddenly a lot of '#' comments 
>> and it gets hard to read.
>>> 
>>> So how would I use haltcl to select one or the other of the above examples.
>> 
>> if { condition } {
>>  net spindle-vel-fb-rps  <=  hm2_7i92.0.stepgen.05.velocity-fb
>> } else {
>>  net spindle-vel-fb-rps   <=   hm2_7i92.0.encoder.01.velocity
>> }
>> 
>> 
>>> I mean I know I need to not use the stepgen velocity feedback to show 
>>> spindle velocity because that's now the encoders job but
>> there are a lot of non-starters at the moment.
>>> 
>>> 
>>>> -Original Message-
>>>> From: Phill Carter [mailto:phillcarte...@gmail.com 
>>>> <mailto:phillcarte...@gmail.com> <mailto:phillcarte...@gmail.com 
>>>> <mailto:phillcarte...@gmail.com>>]
>>>> Sent: June-16-21 9:12 PM
>>>> To: linuxcnc-users
>>>> Subject: Re: [Emc-users] #ifdef
>>>> 
>>>> 
>>>> 
>>>>> On 17 Jun 2021, at 2:03 pm, John Dammeyer >>>> <mailto:jo...@autoartisans.com>> wrote:
>>>>> 
>>>>> Is there something like an
>>>>> 
>>>>> #ifdef
>>>>> #else
>>>>> #endif
>>>>> 
>>>>> in HAL files?
>>>>> Thanks
>>>>> John
>>>> 
>>>> No, but it is possible to use HALTCL files.
>>>> 
>>>> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html 
>>>> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html> 
>>>> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html 
>>>> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html>>
>> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html 
>> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html> 
>> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html 
>> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html>>>>
>>>> 
>>>> 
>>>>> 
>>>>> "ELS! Nothing else works as well for your Lathe"
>>>>> Automation Artisans Inc.
>>>>> www dot autoartisans dot com
>>>>> 
>>>>> 
>>>>> ___
>>>>> Emc-users mailing list
>>>>> Emc-users@lists.sourceforge.net <mailto:Emc-users@lists.sourceforge.net> 
>>>>> <mailto:Emc-users@lists.sourceforge.net 
>>>>> <mailto:Emc-users@lists.sourceforge.net>>
>>>>> https://lists.sourceforge.net/lists/listinfo/emc-users 
>>>>> <https://lists.sourceforge.net/lists/listinfo/emc-users> 
>>>>> <https://lists.sourceforge.net/lists/listinfo/emc-users 
>>>>> <https://lists.sourceforge.net/lists/listinfo/emc-users>>
>>>> 
>>>> 
>>>> ___
&g

Re: [Emc-users] #ifdef

2021-06-16 Thread John Dammeyer
Thanks Phil,
I just broke it and lost pulses to the spindle.  Went back and commented in the 
other direction and I have my spindle back.

Who would have thought this was so hard...

John


> -Original Message-
> From: Phill Carter [mailto:phillcarte...@gmail.com]
> Sent: June-16-21 10:45 PM
> To: linuxcnc-users
> Subject: Re: [Emc-users] #ifdef
> 
> 
> 
> > On 17 Jun 2021, at 2:47 pm, John Dammeyer  wrote:
> >
> > Not sure I understand.  Say for example the existing HAL file has this:
> >
> > net spindle-vel-fb-rps  <=  hm2_7i92.0.stepgen.05.velocity-fb
> >
> > But now I'm trying to get the HAL file correct so LinuxCNC starts without 
> > errors.
> >
> > net spindle-vel-fb-rps   <=   hm2_7i92.0.encoder.01.velocity
> >
> > Now I can go through and comment things out with a '#' on each line but my 
> > existing spindle has a 'near'  and 'ramped' feature to
> make it accelerate more slowly.  There are suddenly a lot of '#' comments and 
> it gets hard to read.
> >
> > So how would I use haltcl to select one or the other of the above examples.
> 
> if { condition } {
>   net spindle-vel-fb-rps  <=  hm2_7i92.0.stepgen.05.velocity-fb
> } else {
>   net spindle-vel-fb-rps   <=   hm2_7i92.0.encoder.01.velocity
> }
> 
> 
> > I mean I know I need to not use the stepgen velocity feedback to show 
> > spindle velocity because that's now the encoders job but
> there are a lot of non-starters at the moment.
> >
> >
> >> -----Original Message-
> >> From: Phill Carter [mailto:phillcarte...@gmail.com 
> >> <mailto:phillcarte...@gmail.com>]
> >> Sent: June-16-21 9:12 PM
> >> To: linuxcnc-users
> >> Subject: Re: [Emc-users] #ifdef
> >>
> >>
> >>
> >>> On 17 Jun 2021, at 2:03 pm, John Dammeyer  wrote:
> >>>
> >>> Is there something like an
> >>>
> >>> #ifdef
> >>> #else
> >>> #endif
> >>>
> >>> in HAL files?
> >>> Thanks
> >>> John
> >>
> >> No, but it is possible to use HALTCL files.
> >>
> >> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html 
> >> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html>
> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html 
> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html>>>
> >>
> >>
> >>>
> >>> "ELS! Nothing else works as well for your Lathe"
> >>> Automation Artisans Inc.
> >>> www dot autoartisans dot com
> >>>
> >>>
> >>> ___
> >>> Emc-users mailing list
> >>> Emc-users@lists.sourceforge.net <mailto:Emc-users@lists.sourceforge.net>
> >>> https://lists.sourceforge.net/lists/listinfo/emc-users 
> >>> <https://lists.sourceforge.net/lists/listinfo/emc-users>
> >>
> >>
> >> ___
> >> Emc-users mailing list
> >> Emc-users@lists.sourceforge.net <mailto:Emc-users@lists.sourceforge.net>
> >> https://lists.sourceforge.net/lists/listinfo/emc-users 
> >> <https://lists.sourceforge.net/lists/listinfo/emc-users>
> >
> >
> >
> > ___
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net <mailto:Emc-users@lists.sourceforge.net>
> > https://lists.sourceforge.net/lists/listinfo/emc-users 
> > <https://lists.sourceforge.net/lists/listinfo/emc-users>
> 
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] #ifdef

2021-06-16 Thread Phill Carter



> On 17 Jun 2021, at 2:47 pm, John Dammeyer  wrote:
> 
> Not sure I understand.  Say for example the existing HAL file has this:
> 
> net spindle-vel-fb-rps  <=  hm2_7i92.0.stepgen.05.velocity-fb
> 
> But now I'm trying to get the HAL file correct so LinuxCNC starts without 
> errors.
> 
> net spindle-vel-fb-rps   <=   hm2_7i92.0.encoder.01.velocity
>   
> Now I can go through and comment things out with a '#' on each line but my 
> existing spindle has a 'near'  and 'ramped' feature to make it accelerate 
> more slowly.  There are suddenly a lot of '#' comments and it gets hard to 
> read.
> 
> So how would I use haltcl to select one or the other of the above examples.

if { condition } {
net spindle-vel-fb-rps  <=  hm2_7i92.0.stepgen.05.velocity-fb
} else {
net spindle-vel-fb-rps   <=   hm2_7i92.0.encoder.01.velocity
}


> I mean I know I need to not use the stepgen velocity feedback to show spindle 
> velocity because that's now the encoders job but there are a lot of 
> non-starters at the moment.
> 
> 
>> -Original Message-
>> From: Phill Carter [mailto:phillcarte...@gmail.com 
>> <mailto:phillcarte...@gmail.com>]
>> Sent: June-16-21 9:12 PM
>> To: linuxcnc-users
>> Subject: Re: [Emc-users] #ifdef
>> 
>> 
>> 
>>> On 17 Jun 2021, at 2:03 pm, John Dammeyer  wrote:
>>> 
>>> Is there something like an
>>> 
>>> #ifdef
>>> #else
>>> #endif
>>> 
>>> in HAL files?
>>> Thanks
>>> John
>> 
>> No, but it is possible to use HALTCL files.
>> 
>> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html 
>> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html> 
>> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html 
>> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html>>>
>> 
>> 
>>> 
>>> "ELS! Nothing else works as well for your Lathe"
>>> Automation Artisans Inc.
>>> www dot autoartisans dot com
>>> 
>>> 
>>> ___
>>> Emc-users mailing list
>>> Emc-users@lists.sourceforge.net <mailto:Emc-users@lists.sourceforge.net>
>>> https://lists.sourceforge.net/lists/listinfo/emc-users 
>>> <https://lists.sourceforge.net/lists/listinfo/emc-users>
>> 
>> 
>> ___
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net <mailto:Emc-users@lists.sourceforge.net>
>> https://lists.sourceforge.net/lists/listinfo/emc-users 
>> <https://lists.sourceforge.net/lists/listinfo/emc-users>
> 
> 
> 
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net <mailto:Emc-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/emc-users 
> <https://lists.sourceforge.net/lists/listinfo/emc-users>

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] #ifdef

2021-06-16 Thread John Dammeyer
Not sure I understand.  Say for example the existing HAL file has this:

net spindle-vel-fb-rps  <=  hm2_7i92.0.stepgen.05.velocity-fb

But now I'm trying to get the HAL file correct so LinuxCNC starts without 
errors.

net spindle-vel-fb-rps   <=   hm2_7i92.0.encoder.01.velocity

Now I can go through and comment things out with a '#' on each line but my 
existing spindle has a 'near'  and 'ramped' feature to make it accelerate more 
slowly.  There are suddenly a lot of '#' comments and it gets hard to read.

So how would I use haltcl to select one or the other of the above examples.  I 
mean I know I need to not use the stepgen velocity feedback to show spindle 
velocity because that's now the encoders job but there are a lot of 
non-starters at the moment.


> -Original Message-
> From: Phill Carter [mailto:phillcarte...@gmail.com]
> Sent: June-16-21 9:12 PM
> To: linuxcnc-users
> Subject: Re: [Emc-users] #ifdef
> 
> 
> 
> > On 17 Jun 2021, at 2:03 pm, John Dammeyer  wrote:
> >
> > Is there something like an
> >
> > #ifdef
> > #else
> > #endif
> >
> > in HAL files?
> > Thanks
> > John
> 
> No, but it is possible to use HALTCL files.
> 
> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html 
> <http://linuxcnc.org/docs/devel/html/hal/haltcl.html>>
> 
> 
> >
> > "ELS! Nothing else works as well for your Lathe"
> > Automation Artisans Inc.
> > www dot autoartisans dot com
> >
> >
> > ___
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
> 
> 
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] #ifdef

2021-06-16 Thread Chris Albertson
What you are asking for is a macro pre-processor for HAL files.There is
nothing stopping you from doing this.  I think most Linux distributions
come with "m4" installed.   But be warned that you just might get what you
asked for.  Software that uses a macro preprocessor is notoriously hard to
debug and test.

The only languages that I've used that had this feature were C/C++ and
PL/1.   Every other language designer has wisely stayed away from this
feature.

In theory, it is easy to use M4.  First you create a file called say
"MyStuff.hal.m4" then you run it through m4 and it creates a file called
MyStuff.hal  It is a very nice way to create files that include
repetition.  And m4 is very fast. and is a much more powerful preprocessor
than the one built into C/C++   If m4 is installed on your system you
should be able to type "man m4" and seethe man page document.



On Wed, Jun 16, 2021 at 9:06 PM John Dammeyer 
wrote:

> Is there something like an
>
> #ifdef
> #else
> #endif
>
> in HAL files?
> Thanks
> John
>
> "ELS! Nothing else works as well for your Lathe"
> Automation Artisans Inc.
> www dot autoartisans dot com
>
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>


-- 

Chris Albertson
Redondo Beach, California

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] #ifdef

2021-06-16 Thread Phill Carter



> On 17 Jun 2021, at 2:03 pm, John Dammeyer  wrote:
> 
> Is there something like an 
> 
> #ifdef 
> #else 
> #endif 
> 
> in HAL files?
> Thanks
> John

No, but it is possible to use HALTCL files.

>


> 
> "ELS! Nothing else works as well for your Lathe"
> Automation Artisans Inc.
> www dot autoartisans dot com 
> 
> 
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users