Re: [Emc-users] Triggering an external relay from a BOB

2020-05-14 Thread Chris Albertson
Sorry about the last reply written before seeing the posted manual.
As Gene points out it is "14" or "4". But also, my guess is you
need to supply 5 volts to the board via either a power supply or a USB
cable.

One why to debug this is to but a voltmeter on the relay coil and
toggle pin 14.  If one end of the coil is at ground, look at the other
end.

On Thu, May 14, 2020 at 8:49 PM Chris Albertson
 wrote:
>
> My first guess is that the BoB can't source or sink enough current to
> energize the relay coil.   But we have to know what exact relay, power
> supply, and BoB you have and exactly how they are all connected.
> Could you post a schematic?
>
>
> On Thu, May 14, 2020 at 5:33 PM Dan Henderson  wrote:
> >
> > Hello everyone, I have a simple question for you. I’m testing the ability
> > to trip a simple 5v relay with an output pin from a 5 axis BOB and don’t
> > seem to be having any luck. I have motion-spindle-reverse mapped to the
> > output pin (04). Was expecting an M4 to go high on the mapped pin and
> > trigger the external relay. I have 5v+, 5v-, and pin 4 wired to the relay
> > input side. What have I done wrong here?
> >
> > ___
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
>
>
>
> --
>
> Chris Albertson
> Redondo Beach, California



-- 

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] Triggering an external relay from a BOB

2020-05-14 Thread Chris Albertson
My first guess is that the BoB can't source or sink enough current to
energize the relay coil.   But we have to know what exact relay, power
supply, and BoB you have and exactly how they are all connected.
Could you post a schematic?


On Thu, May 14, 2020 at 5:33 PM Dan Henderson  wrote:
>
> Hello everyone, I have a simple question for you. I’m testing the ability
> to trip a simple 5v relay with an output pin from a 5 axis BOB and don’t
> seem to be having any luck. I have motion-spindle-reverse mapped to the
> output pin (04). Was expecting an M4 to go high on the mapped pin and
> trigger the external relay. I have 5v+, 5v-, and pin 4 wired to the relay
> input side. What have I done wrong here?
>
> ___
> 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] Triggering an external relay from a BOB

2020-05-14 Thread Gene Heskett
On Thursday 14 May 2020 21:15:26 Dan Henderson wrote:

> I’ll do one better by attaching the Chinglish manual. Attached
> Thanks Gene.
> [image: Word Document]
> New type V5 CNC_Interface_Board_LV2.doc
> ?usp=docslist_api=msword>
>
> On Thu, May 14, 2020 at 7:58 PM Gene Heskett  
wrote:
> > On Thursday 14 May 2020 20:30:58 Dan Henderson wrote:
> > > Hello everyone, I have a simple question for you. I’m testing the
> > > ability to trip a simple 5v relay with an output pin from a 5 axis
> > > BOB and don’t seem to be having any luck. I have
> > > motion-spindle-reverse mapped to the output pin (04). Was
> > > expecting an M4 to go high on the mapped pin and trigger the
> > > external relay. I have 5v+, 5v-, and pin 4 wired to the relay
> > > input side. What have I done wrong here?
> >

Acc those drawings, the relay is controlled by pin 14's logic output.
So your use of pin 4 is not getting anywhere near the relays coil.  That 
is the first thing you need to change/fix.  The next question then 
becomes, what sort of a spindle controller are you using? To "do it 
right" often demands a controller made to be remote controlled, and TBT 
if considering the re-use of the controller that came with a treadmill 
motor, its lack of finesse at being controlled is going to expose you to 
both dangerous voltages and a difficulty in adequately controlling it 
thats just not worth it.  So what is the motor you wish to control? And 
what controller will you be using?

There are available ways to do it that are designed to be controlled.  
But because there are also as many motor styles there are also 
controllers made for each style of motor.  But they can't be mixed and 
miss-matched.

[...]

Stay well and safe, Dan.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


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


Re: [Emc-users] Triggering an external relay from a BOB

2020-05-14 Thread Dan Henderson
Here’s a pc of the external relay board.

On Thu, May 14, 2020 at 8:15 PM Dan Henderson  wrote:

> I’ll do one better by attaching the Chinglish manual. Attached
> Thanks Gene.
> [image: Word Document]
> New type V5 CNC_Interface_Board_LV2.doc
>
> 
>
>
> On Thu, May 14, 2020 at 7:58 PM Gene Heskett  wrote:
>
>> On Thursday 14 May 2020 20:30:58 Dan Henderson wrote:
>>
>> > Hello everyone, I have a simple question for you. I’m testing the
>> > ability to trip a simple 5v relay with an output pin from a 5 axis BOB
>> > and don’t seem to be having any luck. I have motion-spindle-reverse
>> > mapped to the output pin (04). Was expecting an M4 to go high on the
>> > mapped pin and trigger the external relay. I have 5v+, 5v-, and pin 4
>> > wired to the relay input side. What have I done wrong here?
>>
>> Draw us a back of the envelope schematic. scan & post it. As a retired
>> CET I can read that easier than this text. But bear in mind the logic
>> output available is going to be quite a ways from enough current to
>> reliably operate most 5 volt relays as they generally take more current
>> than is available from a straight logic output to operate them. Most
>> BoB's that have a relay, will also have the booster circuitry to operate
>> that relay, but that might not be wired to pin4.  So show us a schematic
>> plz.
>> > ___
>> > Emc-users mailing list
>> > Emc-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/emc-users
>>
>>
>> Cheers, Gene Heskett
>> --
>> "There are four boxes to be used in defense of liberty:
>>  soap, ballot, jury, and ammo. Please use in that order."
>> -Ed Howdershelt (Author)
>> If we desire respect for the law, we must first make the law respectable.
>>  - Louis D. Brandeis
>> Genes Web page 
>>
>>
>> ___
>> 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] Triggering an external relay from a BOB

2020-05-14 Thread Dan Henderson
I’ll do one better by attaching the Chinglish manual. Attached
Thanks Gene.
[image: Word Document]
New type V5 CNC_Interface_Board_LV2.doc



On Thu, May 14, 2020 at 7:58 PM Gene Heskett  wrote:

> On Thursday 14 May 2020 20:30:58 Dan Henderson wrote:
>
> > Hello everyone, I have a simple question for you. I’m testing the
> > ability to trip a simple 5v relay with an output pin from a 5 axis BOB
> > and don’t seem to be having any luck. I have motion-spindle-reverse
> > mapped to the output pin (04). Was expecting an M4 to go high on the
> > mapped pin and trigger the external relay. I have 5v+, 5v-, and pin 4
> > wired to the relay input side. What have I done wrong here?
>
> Draw us a back of the envelope schematic. scan & post it. As a retired
> CET I can read that easier than this text. But bear in mind the logic
> output available is going to be quite a ways from enough current to
> reliably operate most 5 volt relays as they generally take more current
> than is available from a straight logic output to operate them. Most
> BoB's that have a relay, will also have the booster circuitry to operate
> that relay, but that might not be wired to pin4.  So show us a schematic
> plz.
> > ___
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
>
>
> Cheers, Gene Heskett
> --
> "There are four boxes to be used in defense of liberty:
>  soap, ballot, jury, and ammo. Please use in that order."
> -Ed Howdershelt (Author)
> If we desire respect for the law, we must first make the law respectable.
>  - Louis D. Brandeis
> Genes Web page 
>
>
> ___
> 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] QtPyVCP installation error

2020-05-14 Thread Valerio Bellizzomi
On Thu, 2020-05-14 at 13:44 -0500, Bari wrote:
> On 5/14/20 11:39 AM, Valerio Bellizzomi wrote:
> > On Thu, 2020-05-14 at 12:31 -0400, Eric Keller wrote:
> >> error: can't copy 'pyqt5designer/Qt5.7.1-64bit/libpyqt5_py2.so':
> >> doesn't exist or not a regular file
> >>
> >>
> >> It appears you don't have a prerequisite or it's not installed properly in
> >> the expected directory
> >
> >
> >
> > If so the instructions are incomplete, because I have copy/pasted the
> > prerequisite 'apt install ...' line, and I am sure I copied it exactly.
> >
> 
> Yes some of the install instructions are incomplete. It is close but not 
> perfect. I am in the process of helping to fix the installation 
> instructions.

I got the file libpyqt5_py2.so from github, now I need to know in which
directory I must copy it.





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


Re: [Emc-users] Triggering an external relay from a BOB

2020-05-14 Thread Gene Heskett
On Thursday 14 May 2020 20:30:58 Dan Henderson wrote:

> Hello everyone, I have a simple question for you. I’m testing the
> ability to trip a simple 5v relay with an output pin from a 5 axis BOB
> and don’t seem to be having any luck. I have motion-spindle-reverse
> mapped to the output pin (04). Was expecting an M4 to go high on the
> mapped pin and trigger the external relay. I have 5v+, 5v-, and pin 4
> wired to the relay input side. What have I done wrong here?

Draw us a back of the envelope schematic. scan & post it. As a retired 
CET I can read that easier than this text. But bear in mind the logic 
output available is going to be quite a ways from enough current to 
reliably operate most 5 volt relays as they generally take more current 
than is available from a straight logic output to operate them. Most 
BoB's that have a relay, will also have the booster circuitry to operate 
that relay, but that might not be wired to pin4.  So show us a schematic 
plz.
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


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


[Emc-users] Triggering an external relay from a BOB

2020-05-14 Thread Dan Henderson
Hello everyone, I have a simple question for you. I’m testing the ability
to trip a simple 5v relay with an output pin from a 5 axis BOB and don’t
seem to be having any luck. I have motion-spindle-reverse mapped to the
output pin (04). Was expecting an M4 to go high on the mapped pin and
trigger the external relay. I have 5v+, 5v-, and pin 4 wired to the relay
input side. What have I done wrong here?

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


Re: [Emc-users] Hal file naming conventions

2020-05-14 Thread Todd Zuercher
For items that aren't easily named, a comment line (#comment) in the hal file 
can be useful.

Todd Zuercher
P. Graham Dunn Inc.
630 Henry Street 
Dalton, Ohio 44618
Phone:  (330)828-2105ext. 2031

-Original Message-
From: David Berndt  
Sent: Thursday, May 14, 2020 12:39 AM
To: emc-users@lists.sourceforge.net
Subject: [Emc-users] Hal file naming conventions

[EXTERNAL EMAIL] Be sure links are safe.

Wondering if anyone cares to share with me a useful naming convention for your 
signals? Do you also use the name parameters to name your components or do you 
just stick with and2.0 thru and2.x?

My hal config works fine, but I worry about anyone that might have to look at 
it after me, or even if I have to look at it again after a year or two.

Apologies if this has come up before, I did a bit of light googling and didn't 
find much on the topic.

-Dave





___
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] QtPyVCP installation error

2020-05-14 Thread Bari



On 5/14/20 11:39 AM, Valerio Bellizzomi wrote:

On Thu, 2020-05-14 at 12:31 -0400, Eric Keller wrote:

error: can't copy 'pyqt5designer/Qt5.7.1-64bit/libpyqt5_py2.so':
doesn't exist or not a regular file


It appears you don't have a prerequisite or it's not installed properly in
the expected directory




If so the instructions are incomplete, because I have copy/pasted the
prerequisite 'apt install ...' line, and I am sure I copied it exactly.



Yes some of the install instructions are incomplete. It is close but not 
perfect. I am in the process of helping to fix the installation 
instructions.




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


Re: [Emc-users] Hal file naming conventions

2020-05-14 Thread Gene Heskett
On Thursday 14 May 2020 12:12:26 Roland Jollivet wrote:

> Just add a comment at the top referencing a text file where you have
> it all described?
>
Shirley (or Roland) you jest. It makes far more sense to clutter up your 
hal files with comment blocks for function headers that explain that, I 
find that I am doing more and more of that as its about the only thing 
that makes sense in a reasonable time frame later. But that also gets in 
the way of copy/paste stuff as I come up with new functions that then 
need copied to the other 3 machines since I'm dealing with two lathes, a 
G0704, and a 6040 here. Each of which has its strong points and 
gotcha's.  And there's only one of me to track all that. :(  I need a 
couple clones, but then I'd have to feed them too.

> On Thu, 14 May 2020 at 06:42, David Berndt  wrote:
> > Wondering if anyone cares to share with me a useful naming
> > convention for your signals? Do you also use the name parameters to
> > name your components or do you just stick with and2.0 thru and2.x?
> >
> > My hal config works fine, but I worry about anyone that might have
> > to look
> > at it after me, or even if I have to look at it again after a year
> > or two.
> >
> > Apologies if this has come up before, I did a bit of light googling
> > and didn't find much on the topic.
> >
> > -Dave
> >
> >
> >
> >
> >
> > ___
> > 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


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


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


Re: [Emc-users] QtPyVCP installation error

2020-05-14 Thread Valerio Bellizzomi
On Thu, 2020-05-14 at 12:31 -0400, Eric Keller wrote:
> error: can't copy 'pyqt5designer/Qt5.7.1-64bit/libpyqt5_py2.so':
> doesn't exist or not a regular file
> 
> 
> It appears you don't have a prerequisite or it's not installed properly in
> the expected directory




If so the instructions are incomplete, because I have copy/pasted the
prerequisite 'apt install ...' line, and I am sure I copied it exactly.





> On Thu, May 14, 2020 at 12:02 PM Valerio Bellizzomi 
> wrote:
> 
> > I have followed the instructions on github and got the error in the
> > attached file:
> >
> >
> > ___
> > 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] QtPyVCP installation error

2020-05-14 Thread Eric Keller
error: can't copy 'pyqt5designer/Qt5.7.1-64bit/libpyqt5_py2.so':
doesn't exist or not a regular file


It appears you don't have a prerequisite or it's not installed properly in
the expected directory

On Thu, May 14, 2020 at 12:02 PM Valerio Bellizzomi 
wrote:

> I have followed the instructions on github and got the error in the
> attached file:
>
>
> ___
> 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] Hal file naming conventions

2020-05-14 Thread Roland Jollivet
Just add a comment at the top referencing a text file where you have it all
described?


On Thu, 14 May 2020 at 06:42, David Berndt  wrote:

> Wondering if anyone cares to share with me a useful naming convention for
> your signals? Do you also use the name parameters to name your components
> or do you just stick with and2.0 thru and2.x?
>
> My hal config works fine, but I worry about anyone that might have to
> look
> at it after me, or even if I have to look at it again after a year or two.
>
> Apologies if this has come up before, I did a bit of light googling and
> didn't find much on the topic.
>
> -Dave
>
>
>
>
>
> ___
> 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] LinuxCNC master

2020-05-14 Thread Valerio Bellizzomi
On Thu, 2020-05-14 at 13:44 +0100, andy pugh wrote:
> On Thu, 14 May 2020 at 13:38, Valerio Bellizzomi  wrote:
> >
> > Hello, how do I download LinuxCNC master (2.8-pre) and install QtPyVCP ?
> 
> The easiest way to get 2.8 or Master is from the BuildBot:
> 
> http://buildbot.linuxcnc.org
> 
> Follow the instructions there.
> 

It was straightforward to install LinuxCNC from buildbot, recovered my
settings from saved user directory, then I got an error installing
QtPyVCP (error attached in previous mail).




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


[Emc-users] QtPyVCP installation error

2020-05-14 Thread Valerio Bellizzomi
I have followed the instructions on github and got the error in the
attached file:


 UPDATING build/lib.linux-x86_64-2.7/qtpyvcp/_version.py
set build/lib.linux-x86_64-2.7/qtpyvcp/_version.py to 'v0.3.7'
running install_lib
copying build/lib.linux-x86_64-2.7/qtpyvcp/_version.py -> 
/usr/local/lib/python2.7/dist-packages/qtpyvcp
byte-compiling /usr/local/lib/python2.7/dist-packages/qtpyvcp/_version.py 
to _version.pyc
running install_data
error: can't copy 'pyqt5designer/Qt5.7.1-64bit/libpyqt5_py2.so': doesn't 
exist or not a regular file


Command "/usr/bin/python -u -c "import setuptools, 
tokenize;__file__='/tmp/pip-build-dTcwyV/qtpyvcp/setup.py';f=getattr(tokenize, 
'open', open)(__file__);code=f.read().replace('\r\n', 
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record 
/tmp/pip-5E3SkL-record/install-record.txt --single-version-externally-managed 
--compile" failed with error code 1 in /tmp/pip-build-dTcwyV/qtpyvcp/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Hal file naming conventions

2020-05-14 Thread David Berndt
I guess my biggest issue is I don't name the components themselves. Then  
when I try to describe what a signal is connecting it's connecting some  
terribly named thing, with another terribly named thing, so my signals end  
up not being very usefully named thing like SigNot2And27 or whatever  
nonsense occurs to me at the time. I guess I should start with my  
components and maybe the the rest might fall more into place.




On Thu, 14 May 2020 07:57:55 -0400, andy pugh  wrote:


On Thu, 14 May 2020 at 05:42, David Berndt  wrote:

Wondering if anyone cares to share with me a useful naming convention  
for
your signals? Do you also use the name parameters to name your  
components

or do you just stick with and2.0 thru and2.x?


I like to give them names that include what they are and what they do.

and.sp_intrlk for the spindle interlock, that sort of idea.
I think it is important to leave some clue what the component function  
is.



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


Re: [Emc-users] LinuxCNC master

2020-05-14 Thread Valerio Bellizzomi
On Thu, 2020-05-14 at 13:44 +0100, andy pugh wrote:
> On Thu, 14 May 2020 at 13:38, Valerio Bellizzomi  wrote:
> >
> > Hello, how do I download LinuxCNC master (2.8-pre) and install QtPyVCP ?
> 
> The easiest way to get 2.8 or Master is from the BuildBot:
> 
> http://buildbot.linuxcnc.org
> 
> Follow the instructions there.
> 


Thank you, I think I can get QtPyVCP installed by following the
instructions on github.





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


Re: [Emc-users] LinuxCNC master

2020-05-14 Thread andy pugh
On Thu, 14 May 2020 at 13:38, Valerio Bellizzomi  wrote:
>
> Hello, how do I download LinuxCNC master (2.8-pre) and install QtPyVCP ?

The easiest way to get 2.8 or Master is from the BuildBot:

http://buildbot.linuxcnc.org

Follow the instructions there.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


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


[Emc-users] LinuxCNC master

2020-05-14 Thread Valerio Bellizzomi
Hello, how do I download LinuxCNC master (2.8-pre) and install QtPyVCP ?

Regards.




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


Re: [Emc-users] Hal file naming conventions

2020-05-14 Thread andy pugh
On Thu, 14 May 2020 at 05:42, David Berndt  wrote:

> Wondering if anyone cares to share with me a useful naming convention for
> your signals? Do you also use the name parameters to name your components
> or do you just stick with and2.0 thru and2.x?

I like to give them names that include what they are and what they do.

and.sp_intrlk for the spindle interlock, that sort of idea.
I think it is important to leave some clue what the component function is.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


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


Re: [Emc-users] Hal file naming conventions

2020-05-14 Thread Gene Heskett
On Thursday 14 May 2020 00:39:28 David Berndt wrote:

> Wondering if anyone cares to share with me a useful naming convention
> for your signals? Do you also use the name parameters to name your
> components or do you just stick with and2.0 thru and2.x?
>
> My hal config works fine, but I worry about anyone that might have to
> look at it after me, or even if I have to look at it again after a
> year or two.
>
> Apologies if this has come up before, I did a bit of light googling
> and didn't find much on the topic.
>
> -Dave
>
Its pretty much an individual preference David. I've got some pretty long 
hal files because I'm always figuring out ways to "do it better", and I 
try to use meaningful names for those modules that can be named, but not 
all can be named.  But I've found that going back into it to change 
something a year later, it still takes me quite some time to "get back 
into my own head and figure out what the heck I was doing here", and 
names doesn't seem to be as much help as I thought it was going to be.

OTOH, the wet ram here is also going on 86 yo, and I've had some medical 
problems that have also had an effect on that wet ram that in 1946, 
tested at 147 on the Iowa test, and made a 98 on the AFQT in the middle 
of Korea.  Most notable was a pulmonary embolism when I was 79 & those 
things have about a 2% survival rate, and I am a long time DM-II 
diabetic so I had my heart worked on this past winter after a heart 
attack.  Pacemaker, Bunch of stents and a new Aortic valve.

I think now, that just appending the function its involved in to its 
basic name may be the most helpfull later. But I've not always done 
that, which results in unseemly mutterings later. :(

I agree, there ought to be an obviously better way, but I am not 
convinced I've found it yet.  Rebuilding those modules that cannot be 
named, to allow that would seem to help, but some really are legacy 
modules and how many bugs would be induced doing that today?.  Working 
code I am convinced, ought not to to be played with just for that.

Stay well and safe David.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


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