Re: [Emc-users] CAD for parts to make on a lathe

2020-09-15 Thread Gene Heskett
On Wednesday 16 September 2020 00:37:08 R C wrote:

> Hello,
>
>
> I have been using freecad for designing parts, and then milling them
> on a sherline mill, getting the hang of that a little bit.
>
>
> I have a lathe too, that works with CNC linux, but noticed heard,
> that  you can't really  make parts, or g-codes, with it for a lathe.
>
>
> What wold be a good choice for designing, simple, parts for a lathe,
> that will create g-code for it?
>
Best is learning how to write gcode, Ron.

LinuxCNC's gcode interpreter is far more capable than the average gcode 
emitter. It understands subroutines, if/then/else, while and 
repeat/until loops. I strapped a dremel handpiece to the head of my old 
micro hf mill, designed to sharpen my carbide tipped table saw blades. 
About 90 lines of code, took nearly 3 days to run.  Sharpest blade ever, 
and outlasted a new version of that same blade by about 10/1.  Had that 
file been unrolled by a cad/cam program it would have been many 
gigabytes of gcode.
>
> thanks,
>
>
> Ron
>
>
>
> ___
> 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] False mesages at lcnc launch

2020-09-15 Thread Gene Heskett
On Tuesday 15 September 2020 23:56:09 John Dammeyer wrote:

> > -Original Message-
> > From: Greg Bernard [mailto:marzetti...@gmail.com]
> > Sent: September-15-20 4:49 PM
> > To: Enhanced Machine Controller (EMC)
> > Subject: Re: [Emc-users] False mesages at lcnc launch
> >
> > So the Raspberry Pi worked ok with the 7i92? Good to hear because I
> > am going to upgrade my machine soon and was thinking of using that
> > combination.
>
> My only observation that has me wondering is when homing the Z axis
> stepper motor makes the occasional odd sound.  The DC servos don't but
> then they're closed loop and a bump in stepper pulses may well be
> masked.
>
> Now I know the Z axis run with the 7i92 doesn't do that when I'm
> running with the PC and I also know I still have some voltage power
> supply issues with the Pi4.  And I haven't done any of the config
> changes to supercharge the Pi4.

Those are needed, as is a 5 volt, 5 amp supply to run it and the 
interface, feeding it to the pi at its gpio headers, not the otg jack.  
John T. has some of those psu's at a decent price.

> Also I'm running into an HDMI to VGA dongle that may well be holding
> up the Pi occasionally.  I should find a loose monitor with HDMI
> input.

I didn't find that, however I did have to edit a boot file to raise the 
hdmi drive a bit to make it drive the monitors I have.  Also, same file 
IIRC, mousepoll's default setting makes the mouse run like its on a glue 
pad, set that to 1 for real time mouse motion.

Wallies. When they have a sale.

> But there are a few people out there using the Pi, 7i92 and stepper
> motors without problems.
>
> > On Tue, Sep 15, 2020 at 11:39 AM John Dammeyer
> > 
> >
> > wrote:
> > > > -Original Message-
> > > > From: Jon Elson [mailto:el...@pico-systems.com]
> > > > Sent: September-15-20 8:50 AM
> > > > To: Enhanced Machine Controller (EMC)
> > > > Subject: Re: [Emc-users] False mesages at lcnc launch
> > > >
> > > > On 09/15/2020 08:40 AM, Gene Heskett wrote:
> > > > > Axis X Fault
> > > > > Axis Z Fault
> > > > > Axis X Fault
> > > > > Axis Z Fault
> > > >
> > > > Note that a lot of drives present the fault signal when
> > > > disabled.  I have had to build a module to "cover" that
> > > > signal when not enabled so that LinuxCNC can be brought out
> > > > of E-stop.
> > > >
> > > > Jon
> > >
> > > I did the same thing with a small PIC micro-controller because the
> > > STMBL drives fault on low motor voltage so the fault is there
> > > before the DC High voltage is applied which causes the ESTOP which
> > > prevents the DC High Voltage from being turned on which causes the
> > > STMBL drive fault...
> > >
> > > All because the system enable switches on the DC power supplies
> > > for the various motors and also asserts the drive enable.  There
> > > was probably a way to fix that in the HAL file but this system had
> > > to work with both Win-XP/MACH3 and LinuxCNC and MachineKit for the
> > > Beagle.
> > >
> > > All three systems attached to the BoB via a PC based parallel port
> > > connection but how the port signals are created varies with the
> > > system.
> > >
> > > In the case of the:
> > > LinuxCNC PC it can use the stock parallel port or the MESA 7i92H
> > > Raspberry Pi4 the MESA 7i92H
> > > BeagleBone Black the Xylotex BBB_DB25 (haven't tried that in a
> > > while) WIN-XP either PC parallel port or USB Smooth Stepper.
> > >
> > > It's been an interesting research project.
> > > John Dammeyer
> > >
> > > > ___
> > > > 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
> >
> > --
> > "Anyone who believes exponential growth can go on forever in a
> > finite world is either a madman or an economist."
> > -Kenneth Boulding, economist
> > Corporations are NOT people and money is NOT speech!
> >
> > ___
> > 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


[Emc-users] CAD for parts to make on a lathe

2020-09-15 Thread R C

Hello,


I have been using freecad for designing parts, and then milling them on 
a sherline mill, getting the hang of that a little bit.



I have a lathe too, that works with CNC linux, but noticed heard, that  
you can't really  make parts, or g-codes, with it for a lathe.



What wold be a good choice for designing, simple, parts for a lathe, 
that will create g-code for it?



thanks,


Ron



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


Re: [Emc-users] False mesages at lcnc launch

2020-09-15 Thread Gene Heskett
On Tuesday 15 September 2020 12:22:15 Gene Heskett wrote:

> On Tuesday 15 September 2020 11:49:39 Jon Elson wrote:
> > On 09/15/2020 08:40 AM, Gene Heskett wrote:
> > > Axis X Fault
> > > Axis Z Fault
> > > Axis X Fault
> > > Axis Z Fault
> >
> > Note that a lot of drives present the fault signal when
> > disabled.  I have had to build a module to "cover" that
> > signal when not enabled so that LinuxCNC can be brought out
> > of E-stop.
> >
> > Jon
>
> I've done that with a oneshot Jon, worked for a single axis, but fails
> for 2.

Because the X scale was way high, nearly 70,000, I ordered a longer belt 
and put a bigger pulley on the motor, getting me down to the mid 40 
thousands for an inch, and it was big enough I could get a hold of it 
and force it off zero, but I was not able to force a fault with a 15 or 
20 degree turn, all I could muster. Positioning it against a chuck jaw 
and jogging into it succeeded it turning the locked down BXA tool post a 
few degrees but not in tripping it off. Stubborn thing. With the bigger 
pulley, I expect I could set the maxvel up to over 100 ipm. However, I'd 
also say a 1nm motor is a great plenty for x on a lathe this size, an 
11x56, 2nm is certifyably overkill.  Now when I got both eyes open, to 
see if I can make the hal file do as I want. Apparently I'm walking on 
new ground.

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] False mesages at lcnc launch

2020-09-15 Thread John Dammeyer



> -Original Message-
> From: Greg Bernard [mailto:marzetti...@gmail.com]
> Sent: September-15-20 4:49 PM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] False mesages at lcnc launch
> 
> So the Raspberry Pi worked ok with the 7i92? Good to hear because I am
> going to upgrade my machine soon and was thinking of using that combination.
> 
My only observation that has me wondering is when homing the Z axis stepper 
motor makes the occasional odd sound.  The DC servos don't but then they're 
closed loop and a bump in stepper pulses may well be masked.

Now I know the Z axis run with the 7i92 doesn't do that when I'm running with 
the PC and I also know I still have some voltage power supply issues with the 
Pi4.  And I haven't done any of the config changes to supercharge the Pi4.

Also I'm running into an HDMI to VGA dongle that may well be holding up the Pi 
occasionally.  I should find a loose monitor with HDMI input.

But there are a few people out there using the Pi, 7i92 and stepper motors 
without problems.

> 
> On Tue, Sep 15, 2020 at 11:39 AM John Dammeyer 
> wrote:
> 
> > > -Original Message-
> > > From: Jon Elson [mailto:el...@pico-systems.com]
> > > Sent: September-15-20 8:50 AM
> > > To: Enhanced Machine Controller (EMC)
> > > Subject: Re: [Emc-users] False mesages at lcnc launch
> > >
> > > On 09/15/2020 08:40 AM, Gene Heskett wrote:
> > > >
> > > > Axis X Fault
> > > > Axis Z Fault
> > > > Axis X Fault
> > > > Axis Z Fault
> > > >
> > > Note that a lot of drives present the fault signal when
> > > disabled.  I have had to build a module to "cover" that
> > > signal when not enabled so that LinuxCNC can be brought out
> > > of E-stop.
> > >
> > > Jon
> >
> > I did the same thing with a small PIC micro-controller because the STMBL
> > drives fault on low motor voltage so the fault is there before the DC High
> > voltage is applied which causes the ESTOP which prevents the DC High
> > Voltage from being turned on which causes the STMBL drive fault...
> >
> > All because the system enable switches on the DC power supplies for the
> > various motors and also asserts the drive enable.  There was probably a way
> > to fix that in the HAL file but this system had to work with both
> > Win-XP/MACH3 and LinuxCNC and MachineKit for the Beagle.
> >
> > All three systems attached to the BoB via a PC based parallel port
> > connection but how the port signals are created varies with the system.
> >
> > In the case of the:
> > LinuxCNC PC it can use the stock parallel port or the MESA 7i92H
> > Raspberry Pi4 the MESA 7i92H
> > BeagleBone Black the Xylotex BBB_DB25 (haven't tried that in a while)
> > WIN-XP either PC parallel port or USB Smooth Stepper.
> >
> > It's been an interesting research project.
> > John Dammeyer
> >
> > >
> > >
> > > ___
> > > 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
> >
> 
> 
> --
> "Anyone who believes exponential growth can go on forever in a finite world
> is either a madman or an economist."
> -Kenneth Boulding, economist
> Corporations are NOT people and money is NOT speech!
> 
> ___
> 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] False mesages at lcnc launch

2020-09-15 Thread Greg Bernard
So the Raspberry Pi worked ok with the 7i92? Good to hear because I am
going to upgrade my machine soon and was thinking of using that combination.


On Tue, Sep 15, 2020 at 11:39 AM John Dammeyer 
wrote:

> > -Original Message-
> > From: Jon Elson [mailto:el...@pico-systems.com]
> > Sent: September-15-20 8:50 AM
> > To: Enhanced Machine Controller (EMC)
> > Subject: Re: [Emc-users] False mesages at lcnc launch
> >
> > On 09/15/2020 08:40 AM, Gene Heskett wrote:
> > >
> > > Axis X Fault
> > > Axis Z Fault
> > > Axis X Fault
> > > Axis Z Fault
> > >
> > Note that a lot of drives present the fault signal when
> > disabled.  I have had to build a module to "cover" that
> > signal when not enabled so that LinuxCNC can be brought out
> > of E-stop.
> >
> > Jon
>
> I did the same thing with a small PIC micro-controller because the STMBL
> drives fault on low motor voltage so the fault is there before the DC High
> voltage is applied which causes the ESTOP which prevents the DC High
> Voltage from being turned on which causes the STMBL drive fault...
>
> All because the system enable switches on the DC power supplies for the
> various motors and also asserts the drive enable.  There was probably a way
> to fix that in the HAL file but this system had to work with both
> Win-XP/MACH3 and LinuxCNC and MachineKit for the Beagle.
>
> All three systems attached to the BoB via a PC based parallel port
> connection but how the port signals are created varies with the system.
>
> In the case of the:
> LinuxCNC PC it can use the stock parallel port or the MESA 7i92H
> Raspberry Pi4 the MESA 7i92H
> BeagleBone Black the Xylotex BBB_DB25 (haven't tried that in a while)
> WIN-XP either PC parallel port or USB Smooth Stepper.
>
> It's been an interesting research project.
> John Dammeyer
>
> >
> >
> > ___
> > 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
>


-- 
"Anyone who believes exponential growth can go on forever in a finite world
is either a madman or an economist."
-Kenneth Boulding, economist
Corporations are NOT people and money is NOT speech!

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


Re: [Emc-users] Setting up two home switches on Y

2020-09-15 Thread andy pugh
On Tue, 15 Sep 2020 at 20:29, Dave Matthews  wrote:

> I now have a nice .odt file that describes how to do the setup edit by
> edit and includes the before and after .ini and .hal files as an
> example.  Anyplace in particular that I should store it.

Well, the WIki might work, other than the format. (needs to be in wiki markup)
The same issue applies to the idea of merging it in to the existing
homing docs (needs to be in asciidoc format)

Maybe post it to the forum?

-- 
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] False mesages at lcnc launch

2020-09-15 Thread Gene Heskett
On Tuesday 15 September 2020 12:22:57 andy pugh wrote:

> On Tue, 15 Sep 2020 at 17:19, Gene Heskett  
wrote:
> > Is this what you mean?
>
> Not really but it allows me to re-phrase the question.
> Which thread and sequence do trip-kill and trip-cvr run in?

Since the damage has been done, they are in the 200hz jog-thread.  Only 
the gpio port read's at the top of the addf list and is in the faster 
servo thread.

Thank you Andy.

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] Setting up two home switches on Y

2020-09-15 Thread Dave Matthews
On Mon, Sep 14, 2020 at 7:50 PM andy pugh  wrote:

>
> I think that the problem is that you have y2-step in the Joint3
> section, but in the area where you are connecting the parallel port
> pins, both sets of step/dir outputs are netted to the ystep. So they
> move at exactly the same speed and at the same time.
>
>

Also, thank you for all of the help.

Dave


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


Re: [Emc-users] Setting up two home switches on Y

2020-09-15 Thread Dave Matthews
On Mon, Sep 14, 2020 at 7:50 PM andy pugh  wrote:
>
> On Mon, 14 Sep 2020 at 21:52, Dave Matthews  wrote:
>
> > Looking closer at the DRO on the screen I can see that the second Y
> > axis is counting down looking for home but is not moving.
> >
> > I racked the gantry and tested to see if it would unrack.  What I
> > found is that the new switch is ignored.
>
> I am fully understanding how both these observations can be true at
> the same time.
>
> If the second Y does not move, how do you know the home switch is ignored?

The second Y was moving but because it was using the pulse train from
the original setup it was tracking with the other motor.  So if that
motor didn't see its switch first the second Y would crash the switch.
It was probably seeing its own switch but that was not controlling
what was going to the motor.


> I think that the problem is that you have y2-step in the Joint3
> section, but in the area where you are connecting the parallel port
> pins, both sets of step/dir outputs are netted to the ystep. So they
> move at exactly the same speed and at the same time.
>
That was the issue.  I thought I caught everything but missed those two pins.

I now have a nice .odt file that describes how to do the setup edit by
edit and includes the before and after .ini and .hal files as an
example.  Anyplace in particular that I should store it.

Dave


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


Re: [Emc-users] False mesages at lcnc launch

2020-09-15 Thread Gene Heskett
On Tuesday 15 September 2020 11:49:39 Jon Elson wrote:

> On 09/15/2020 08:40 AM, Gene Heskett wrote:
> > Axis X Fault
> > Axis Z Fault
> > Axis X Fault
> > Axis Z Fault
>
> Note that a lot of drives present the fault signal when
> disabled.  I have had to build a module to "cover" that
> signal when not enabled so that LinuxCNC can be brought out
> of E-stop.
>
> Jon
>
I've done that with a oneshot Jon, worked for a single axis, but fails 
for 2.
>
> ___
> 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] False mesages at lcnc launch

2020-09-15 Thread John Dammeyer
> -Original Message-
> From: Jon Elson [mailto:el...@pico-systems.com]
> Sent: September-15-20 8:50 AM
> To: Enhanced Machine Controller (EMC)
> Subject: Re: [Emc-users] False mesages at lcnc launch
> 
> On 09/15/2020 08:40 AM, Gene Heskett wrote:
> >
> > Axis X Fault
> > Axis Z Fault
> > Axis X Fault
> > Axis Z Fault
> >
> Note that a lot of drives present the fault signal when
> disabled.  I have had to build a module to "cover" that
> signal when not enabled so that LinuxCNC can be brought out
> of E-stop.
> 
> Jon

I did the same thing with a small PIC micro-controller because the STMBL drives 
fault on low motor voltage so the fault is there before the DC High voltage is 
applied which causes the ESTOP which prevents the DC High Voltage from being 
turned on which causes the STMBL drive fault...

All because the system enable switches on the DC power supplies for the various 
motors and also asserts the drive enable.  There was probably a way to fix that 
in the HAL file but this system had to work with both Win-XP/MACH3 and LinuxCNC 
and MachineKit for the Beagle.  

All three systems attached to the BoB via a PC based parallel port connection 
but how the port signals are created varies with the system.  

In the case of the:
LinuxCNC PC it can use the stock parallel port or the MESA 7i92H
Raspberry Pi4 the MESA 7i92H
BeagleBone Black the Xylotex BBB_DB25 (haven't tried that in a while)
WIN-XP either PC parallel port or USB Smooth Stepper.

It's been an interesting research project.
John Dammeyer

> 
> 
> ___
> 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] False mesages at lcnc launch

2020-09-15 Thread andy pugh
On Tue, 15 Sep 2020 at 17:19, Gene Heskett  wrote:

> Is this what you mean?

Not really but it allows me to re-phrase the question.
Which thread and sequence do trip-kill and trip-cvr run in?

-- 
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] False mesages at lcnc launch

2020-09-15 Thread Gene Heskett
On Tuesday 15 September 2020 11:43:07 andy pugh wrote:

> On Tue, 15 Sep 2020 at 16:41, Gene Heskett  wrote:
> > > And you still haven't answered the question.
> >
> > Then I don't understand what you're asking.  The loadrt's are always
> > at the top of the .hal file here. And must precede the addf of the
> > names specced else its an error.
>
> What drives the message. Is that calculated before or after the
> message runs?

Is this what you mean?

274 setp ZFault.edge false
275 setp XFault.edge false
276 net motor-power <= motion.motion-enabled => trip-kill.in #triggersoneshot 
to cover powerup glitch
277 net trip-killer <= trip-kill.out # => trip-cvr.in0 # is an or2
278 net z-fault-in  <= hm2_[HOSTMOT2](BOARD).0.gpio.061.in => ztrip.in1 # 
is the other input of an or2
279 net x-fault-in  <= hm2_[HOSTMOT2](BOARD).0.gpio.060.in => xtrip.in1 # is 
the other input of an or2
280
281 #net z-fault-trig  <= ztrip.out  => ZFault.trigger  # is or2.out
282 #net z-fault-trig  => halui.joint.0.unhome halui.joint.1.unhome




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] False mesages at lcnc launch

2020-09-15 Thread Jon Elson

On 09/15/2020 08:40 AM, Gene Heskett wrote:


Axis X Fault
Axis Z Fault
Axis X Fault
Axis Z Fault

Note that a lot of drives present the fault signal when 
disabled.  I have had to build a module to "cover" that 
signal when not enabled so that LinuxCNC can be brought out 
of E-stop.


Jon


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


Re: [Emc-users] False mesages at lcnc launch

2020-09-15 Thread andy pugh
On Tue, 15 Sep 2020 at 16:41, Gene Heskett  wrote:

> > And you still haven't answered the question.
>
> Then I don't understand what you're asking.  The loadrt's are always at
> the top of the .hal file here. And must precede the addf of the names
> specced else its an error.

What drives the message. Is that calculated before or after the message runs?



-- 
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] False mesages at lcnc launch

2020-09-15 Thread Gene Heskett
On Tuesday 15 September 2020 09:53:40 andy pugh wrote:

> On Tue, 15 Sep 2020 at 14:48, Gene Heskett  
wrote:
> > > Is the message addf before or after the functions that create the
> > > inputs?
> >
> > What you snipped was in in order it appears in the .hal
> > file.
>
> And you still haven't answered the question.

Then I don't understand what you're asking.  The loadrt's are always at 
the top of the .hal file here. And must precede the addf of the names 
specced else its an error. 

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] False mesages at lcnc launch

2020-09-15 Thread andy pugh
On Tue, 15 Sep 2020 at 14:48, Gene Heskett  wrote:

> > Is the message addf before or after the functions that create the
> > inputs?
>
> What you snipped was in in order it appears in the .hal
> file.

And you still haven't answered the question.

-- 
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] False mesages at lcnc launch

2020-09-15 Thread Gene Heskett
On Tuesday 15 September 2020 07:16:05 andy pugh wrote:

> On Tue, 15 Sep 2020 at 11:13, Gene Heskett  wrote:
> > So getting that pair of messages twice each in the terminal, and
> > again in the axis gui when its activated doesn't seem warranted.
>
> Is the message addf before or after the functions that create the
> inputs?

What you snipped was in in order it appears in the .hal 
file. Here it is again, with geany's line numbers:

73 loadrt  message  names="XFault","ZFault" messages="Axis Z Fault","Axis X 
Fault"
[...]
116 addfZFault  jog-thread
117 addfXFault  jog-thread
[...]
274 setp ZFault.edge false
275 setp XFault.edge false

on the terminal screen I am seeing:

hm2/hm2_7i90.0: registered
MOTION: setting Traj cycle time to 100 nsecs
MOTION: setting Servo cycle time to 100 nsecs
Axis X Fault
Axis Z Fault
Axis X Fault
Axis Z Fault
note: MAXV max: 2.000 units/sec 120.000 units/min
note: LJOG max: 2.000 units/sec 120.000 units/min
note: LJOG default: 1.350 units/sec 81.000 units/min
note: jog_order='ZX'
note: jog_invert=set(['X'])

This is long before axis has fully drawn its screen, and its repeated
on the lower right corner of the axis right hand panel for 
pyvcp stuffs when that screen is fully drawn when e-stop is released
by the F1 key.  Not before.

There is no machine motor power at this point, not until the F2 key
has been pressed.

I have added a oneshot, whose output is currently not "wired up" in hal,
to cover any power up glitches for .75 seconds after F2 is enabled, 
but this occurrence is well before it gets triggered by motion being enabled.

The man page for "message" leaves much to be desired, it took me at least
an hour to cobble up that loadrt line to make 2 separate, independent
messages. Triggered by the status of its name used as a signal. None of that
for more than 1 message is mentioned in the man page.  So its entirely 
possible I'm doing it wrong.

The target when the driver disables itself, is to unhome the machine since 
a driver has done a shut down destroying its homed reference. Doing that 
unhome with halui, is also very slow, seconds to kill the homed indicators 
in the axis dro/backplot window. I think when its all wired up in .hal, that
I'll unhome only the axis that faulted. Minor details,

Thank you Andy.

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] False mesages at lcnc launch

2020-09-15 Thread andy pugh
On Tue, 15 Sep 2020 at 11:13, Gene Heskett  wrote:

> So getting that pair of messages twice each in the terminal, and again
> in the axis gui when its activated doesn't seem warranted.
>

Is the message addf before or after the functions that create the inputs?

-- 
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] False mesages at lcnc launch

2020-09-15 Thread Gene Heskett
Greetings all;

I have these lines in my hal file:
loadrt  message  names="XFault","ZFault" messages="Axis Z Fault","Axis X Fault"
[...]
addfZFault  jog-thread
addfXFault  jog-thread
[...]
setp ZFault.edge false
setp XFault.edge false

The triggering signals must have a false period before at e-stop release
which is not visible in a halmeter because it can't be started yet.

I get both messages at the initial e-stop release, F1 key or mouse 
click but not ever again unless the error signal gets tripped.

Because this will be hooked up to unhome the machine, its generating
joint errors because at launch its not homed, so I get a whole cluster 
of errors.  There isn't a glitch visible in a halmeter, signals are
solidly true. I am rigged so that machine power is controlled by lcnc, 
as that is how to recover these stepper/servo's from a fault, so all
power to the machine is off until F2 has been enabled.

So getting that pair of messages twice each in the terminal, and again
in the axis gui when its activated doesn't seem warranted.

how can I fix this? 

Thank you.

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] Setting up two home switches on Y

2020-09-15 Thread andy pugh
On Tue, 15 Sep 2020 at 02:53, Frank Tkalcevic
 wrote:

> And that is easy to test.  When you start axis, you should be in Joint mode.  
> You can use the keyboard to jog each joint...

Actually, joint-mode jogging should generally be disabled for tandem axes.

-- 
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