Re: [Emc-users] HTML Help

2021-03-05 Thread Gregg Eshelman via Emc-users
It's why one should never ever use Unicode, UTF-8 or "friendly HTML" codes for 
any character that's in the single byte Extended ASCII set. It wastes space and 
can foul up software that doesn't understand multi-byte character 
representations. If you need left and right single or double quotes (just for 
example) they're in extended ASCII. Every character for all the languages that 
use mainly the "english" alphabet plus additional accented or odd characters is 
in Extended ASCII, except one used in Norwegian.
 

On Friday, March 5, 2021, 10:31:08 AM MST, Mark Wendt 
 wrote:  
 
 Maybe it's in the web server then and how it outputs the html.  What shows
up in the base HTML code that creates the page?  A hyphen or a dash?

Mark

On Fri, Mar 5, 2021 at 12:21 PM andy pugh  wrote:

> On Fri, 5 Mar 2021 at 16:27, Mark Wendt  wrote:
>
> > What is being used to generate the HTML output?
>
> Magic, as far as I can tell.
> Original source is troff (or groff, I get them confused)
> https://github.com/LinuxCNC/linuxcnc/blob/master/docs/man/man1/halui.1
> Then that is converted to asciidoc (I think) and then to HTML using a2x.
> https://github.com/LinuxCNC/linuxcnc/blob/master/docs/src/Submakefile#L400
>
> But, it all works on my local machine, so doesn't seem to be inherent
> to the LinuxCNC code base.
> Hence the query, why would it appear different on www.linuxcnc.org to
> (for example) www.bodgesoc.org
>
> http://linuxcnc.org/docs/2.8/html/man/man1/sendkeys.1.html
> https://www.bodgesoc.org/sendkeys.1.html
>
> The important difference is the hyphenation, but there are also
> graphical differences.  
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Lathe spindle vfd settings

2021-03-05 Thread Feral Engineer
Thanks again, sir :)

Phil T.
The Feral Engineer

Check out my LinuxCNC tutorials, machine builds and other antics at
www.youtube.com/c/theferalengineer

On Fri, Mar 5, 2021, 10:38 PM Gene Heskett  wrote:

> On Friday 05 March 2021 21:17:12 Feral Engineer wrote:
>
> > Thanks Gene
> >
> > My emco is running a pi 4 as well. Model b, 4gb. What kind of latency
> > figures are you getting on your servo thread? I find mine to be a bit
> > finicky unless I keep wifi off
>
> About 12 u-s.  Worst I ever recorded was 200 u-s after pokig around the
> planet with firefox for about an hour. But that is not as important as
> you might think as both x and z are now 3 phase stepper servo's so they
> haven't much to worry about even with bad latency because of the rubber
> between the stepper drivers, which are in the mesa 7i90HD interface
> card.  So the servos are the coupling between the stepper driver and the
> stepper itself. The advantage is that it only uses enough amps from the
> supply to keep it running smoothly. So the steppers run zombie cool, and
> with near total silence.  Watching it run a program is a bit like
> watching Casper The Ghost, its so quiet.
>
> I acquired this lathe with a broken compound, it fell over long before I
> got it and landed on the compound crank, bending the spindle a few thou
> from the sudden stop with a bison 3 jaw chuck mounted, which I've since
> reground and it all runs true now. So now a QCTP is sitting on a couple
> pounds of cast iron. I cut from the sprue of a white truck wheel, we
> make them here in Weston, holding the TP a its normal height. It is so
> solid there's very little tool chatter either. I don't miss the compound
> since Linuxcnc IS a better compound than it ever had, doing far more
> accurate angles.
>
> > Phil T.
> > The Feral Engineer
> >
> > Check out my LinuxCNC tutorials, machine builds and other antics at
> > www.youtube.com/c/theferalengineer
> >
> I've seen 3 or 4 of them. Decent stuff,
>
> > On Fri, Mar 5, 2021, 7:56 PM Gene Heskett  wrote:
> > > On Friday 05 March 2021 18:35:19 andy pugh wrote:
> > > > On Fri, 5 Mar 2021 at 23:31, Feral Engineer
> > >
> > >  wrote:
> > > > > Can someone send me a copypasta of their spindle hal stuff? Pid,
> > > > > ff0,1,2 encoder feedback, all that?
> > > >
> > > > I don't actually run PID on my lathe spindle. I have some
> > > > moderately complex gear selection stuff going on, but otherwise I
> > > > just trust the VFD to do the job.
> > >
> > > I don't have a pid loaded in either of my machines that are running
> > > a vfd. The vfd is stiff enough it doesn't need fawncy controls.
> > >
> > > The only reason I have an encoder on the sheldon lathe is for G33.1
> > > and G76 support. Both of those slave the z travel to the spindle,
> > > what ever its running at doesn't change more than 2% under cutting
> > > load for G76, and maybe 5% for a big tap doing rigid taping. G76
> > > also slaves the x to the programmed G76 cutting depth. On the
> > > sheldon, a pwmgen feeds a spinx1 which controls the vfd. Not even an
> > > d/a except the spinx1 because I run the pwmgen at a rate thats above
> > > the bandwidth of the spinx1.
> > >
> > > You get far better results by properly tuning the vfd.  OOTB they
> > > suck huge dead toads thru soda straws. With a pwmgen getting the
> > > speed signals from motions spindle output, that pwm fed to the
> > > spinx1 along with the dir signal, and a bit of hal sequencing, my
> > > Sheldon, turning at 100 revs in high backgear, and low belt
> > > position/speed, I can do a rigid tap move, and measuring the
> > > overshoot at the bottom of the G33.1 move, is .25 turns.  That's
> > > with a nearly 40 lb 8" 4 jaw chuck mounted.  Who needs a pid?
> > >
> > > That .hal file is attached. Cherry pick with my blessing.  Sure its
> > > a rpi4 file, but its running a Sheldon lathe that after stripping
> > > the stuff linuxcnc doesn't need, and putting in decent ball screws,
> > > still weighs around 1350 lbs.
> > >
> > > Stay safe and well, John.
> > >
> > > 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
>
>
> 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 

Re: [Emc-users] Lathe spindle vfd settings

2021-03-05 Thread Gene Heskett
On Friday 05 March 2021 21:17:12 Feral Engineer wrote:

> Thanks Gene
>
> My emco is running a pi 4 as well. Model b, 4gb. What kind of latency
> figures are you getting on your servo thread? I find mine to be a bit
> finicky unless I keep wifi off

About 12 u-s.  Worst I ever recorded was 200 u-s after pokig around the 
planet with firefox for about an hour. But that is not as important as 
you might think as both x and z are now 3 phase stepper servo's so they 
haven't much to worry about even with bad latency because of the rubber 
between the stepper drivers, which are in the mesa 7i90HD interface 
card.  So the servos are the coupling between the stepper driver and the 
stepper itself. The advantage is that it only uses enough amps from the 
supply to keep it running smoothly. So the steppers run zombie cool, and 
with near total silence.  Watching it run a program is a bit like 
watching Casper The Ghost, its so quiet.

I acquired this lathe with a broken compound, it fell over long before I 
got it and landed on the compound crank, bending the spindle a few thou 
from the sudden stop with a bison 3 jaw chuck mounted, which I've since 
reground and it all runs true now. So now a QCTP is sitting on a couple 
pounds of cast iron. I cut from the sprue of a white truck wheel, we 
make them here in Weston, holding the TP a its normal height. It is so 
solid there's very little tool chatter either. I don't miss the compound 
since Linuxcnc IS a better compound than it ever had, doing far more 
accurate angles.

> Phil T.
> The Feral Engineer
>
> Check out my LinuxCNC tutorials, machine builds and other antics at
> www.youtube.com/c/theferalengineer
>
I've seen 3 or 4 of them. Decent stuff,

> On Fri, Mar 5, 2021, 7:56 PM Gene Heskett  wrote:
> > On Friday 05 March 2021 18:35:19 andy pugh wrote:
> > > On Fri, 5 Mar 2021 at 23:31, Feral Engineer
> >
> >  wrote:
> > > > Can someone send me a copypasta of their spindle hal stuff? Pid,
> > > > ff0,1,2 encoder feedback, all that?
> > >
> > > I don't actually run PID on my lathe spindle. I have some
> > > moderately complex gear selection stuff going on, but otherwise I
> > > just trust the VFD to do the job.
> >
> > I don't have a pid loaded in either of my machines that are running
> > a vfd. The vfd is stiff enough it doesn't need fawncy controls.
> >
> > The only reason I have an encoder on the sheldon lathe is for G33.1
> > and G76 support. Both of those slave the z travel to the spindle,
> > what ever its running at doesn't change more than 2% under cutting
> > load for G76, and maybe 5% for a big tap doing rigid taping. G76
> > also slaves the x to the programmed G76 cutting depth. On the
> > sheldon, a pwmgen feeds a spinx1 which controls the vfd. Not even an
> > d/a except the spinx1 because I run the pwmgen at a rate thats above
> > the bandwidth of the spinx1.
> >
> > You get far better results by properly tuning the vfd.  OOTB they
> > suck huge dead toads thru soda straws. With a pwmgen getting the
> > speed signals from motions spindle output, that pwm fed to the
> > spinx1 along with the dir signal, and a bit of hal sequencing, my
> > Sheldon, turning at 100 revs in high backgear, and low belt
> > position/speed, I can do a rigid tap move, and measuring the
> > overshoot at the bottom of the G33.1 move, is .25 turns.  That's
> > with a nearly 40 lb 8" 4 jaw chuck mounted.  Who needs a pid?
> >
> > That .hal file is attached. Cherry pick with my blessing.  Sure its
> > a rpi4 file, but its running a Sheldon lathe that after stripping
> > the stuff linuxcnc doesn't need, and putting in decent ball screws,
> > still weighs around 1350 lbs.
> >
> > Stay safe and well, John.
> >
> > 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


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] Lathe spindle vfd settings

2021-03-05 Thread Feral Engineer
Thanks Gene

My emco is running a pi 4 as well. Model b, 4gb. What kind of latency
figures are you getting on your servo thread? I find mine to be a bit
finicky unless I keep wifi off

Phil T.
The Feral Engineer

Check out my LinuxCNC tutorials, machine builds and other antics at
www.youtube.com/c/theferalengineer

On Fri, Mar 5, 2021, 7:56 PM Gene Heskett  wrote:

> On Friday 05 March 2021 18:35:19 andy pugh wrote:
>
> > On Fri, 5 Mar 2021 at 23:31, Feral Engineer
>  wrote:
> > > Can someone send me a copypasta of their spindle hal stuff? Pid,
> > > ff0,1,2 encoder feedback, all that?
> >
> > I don't actually run PID on my lathe spindle. I have some moderately
> > complex gear selection stuff going on, but otherwise I just trust the
> > VFD to do the job.
> I don't have a pid loaded in either of my machines that are running a
> vfd. The vfd is stiff enough it doesn't need fawncy controls.
>
> The only reason I have an encoder on the sheldon lathe is for G33.1 and
> G76 support. Both of those slave the z travel to the spindle, what ever
> its running at doesn't change more than 2% under cutting load for G76,
> and maybe 5% for a big tap doing rigid taping. G76 also slaves the x to
> the programmed G76 cutting depth. On the sheldon, a pwmgen feeds a
> spinx1 which controls the vfd. Not even an d/a except the spinx1 because
> I run the pwmgen at a rate thats above the bandwidth of the spinx1.
>
> You get far better results by properly tuning the vfd.  OOTB they suck
> huge dead toads thru soda straws. With a pwmgen getting the speed
> signals from motions spindle output, that pwm fed to the spinx1 along
> with the dir signal, and a bit of hal sequencing, my Sheldon, turning at
> 100 revs in high backgear, and low belt position/speed, I can do a rigid
> tap move, and measuring the overshoot at the bottom of the G33.1 move,
> is .25 turns.  That's with a nearly 40 lb 8" 4 jaw chuck mounted.  Who
> needs a pid?
>
> That .hal file is attached. Cherry pick with my blessing.  Sure its a
> rpi4 file, but its running a Sheldon lathe that after stripping the
> stuff linuxcnc doesn't need, and putting in decent ball screws,
> still weighs around 1350 lbs.
>
> Stay safe and well, John.
>
> 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] Q for Big John Thornton re your servo tuning doc

2021-03-05 Thread Gene Heskett
On Friday 05 March 2021 18:59:19 John Dammeyer wrote:

> net a-index-enable  <=> pid.a.index-enable
> net a-enable        =>  pid.a.enable
> net a-pos-cmd       =>  pid.a.command
> #net a-vel-cmd       =>  pid.a.command-deriv
> net a-pos-fb        =>  pid.a.feedback
> net a-output        =>  pid.a.output

So this is a position servo. Very similar to mine currently.
I have an idb module which does an Inverse Dead Band between a-output and 
the pwmgen.value, with the amount at 9.5, about 2 short of making it 
hunt.

That idb gives an offset in the currant value according to the direction, 
which helps to cancel the brush and bearing friction. The pwmgen is 
still pinging the driver about 7% when the motor has stopped. From 
either direction. I need to set the DEADBAND accordingly, as the idb 
module, when in balance would then shut the pwm off completely. That's 
the theory anyway.

Thanks John D.
Stay safe and well.

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] Q for Big John Thornton re your servo tuning doc

2021-03-05 Thread Gene Heskett
On Friday 05 March 2021 18:55:30 John Dammeyer wrote:

> Hi Gene,
> Not sure if you are asking me but below your message are three axis.
> The Y is step/dir to an HP_UHU DC Brushed Servo Drive.
> The Z is the step/dir to Bergerda AC Servo drive
> The A axis is a harmonic drive 4th axis AC Servo driven with step/dir
> to the STMBL drive (just like Andy's).

Mine is PMDC with a 24 volt Estate gate motor that has a quad encoder on 
its butt, fed by a pwmgen in mode 2 driving a teeny little board with a 
pair of BTS 7960's on it for a full H-bridge. Rated at 27 vols and 43 
amps, this 100 watt motor generates zero heat in the BTS 7960's

I doubt if its anything like the Bergerda's to drive. Are you configured 
as position or velocity? If velocity, I'd be interested in your .hal 
file.

Thanks John D.

[...]

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] Lathe spindle vfd settings

2021-03-05 Thread Gene Heskett
On Friday 05 March 2021 18:35:19 andy pugh wrote:

> On Fri, 5 Mar 2021 at 23:31, Feral Engineer 
 wrote:
> > Can someone send me a copypasta of their spindle hal stuff? Pid,
> > ff0,1,2 encoder feedback, all that?
>
> I don't actually run PID on my lathe spindle. I have some moderately
> complex gear selection stuff going on, but otherwise I just trust the
> VFD to do the job.
I don't have a pid loaded in either of my machines that are running a 
vfd. The vfd is stiff enough it doesn't need fawncy controls.

The only reason I have an encoder on the sheldon lathe is for G33.1 and 
G76 support. Both of those slave the z travel to the spindle, what ever 
its running at doesn't change more than 2% under cutting load for G76, 
and maybe 5% for a big tap doing rigid taping. G76 also slaves the x to 
the programmed G76 cutting depth. On the sheldon, a pwmgen feeds a 
spinx1 which controls the vfd. Not even an d/a except the spinx1 because 
I run the pwmgen at a rate thats above the bandwidth of the spinx1.

You get far better results by properly tuning the vfd.  OOTB they suck 
huge dead toads thru soda straws. With a pwmgen getting the speed 
signals from motions spindle output, that pwm fed to the spinx1 along 
with the dir signal, and a bit of hal sequencing, my Sheldon, turning at 
100 revs in high backgear, and low belt position/speed, I can do a rigid 
tap move, and measuring the overshoot at the bottom of the G33.1 move, 
is .25 turns.  That's with a nearly 40 lb 8" 4 jaw chuck mounted.  Who 
needs a pid?

That .hal file is attached. Cherry pick with my blessing.  Sure its a 
rpi4 file, but its running a Sheldon lathe that after stripping the 
stuff linuxcnc doesn't need, and putting in decent ball screws,
still weighs around 1350 lbs.

Stay safe and well, John.

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 
###
# WORKING DOWN FROM THE TOP, THE LAST GPIO IN USE AS OF THIS DATE IS 063 FOR 
VFD-RESET!
# hm2-7i90-stepper.hal version 1.005 a/o above date
# because the 7i90 is damaged, everything is enabled.
# HAL file for HostMot2 with 4 steppers, 4 encoders, 2 pwmgen
# Apparently a blown gpio.00 so x ,is dead, bring up another stepgen
# and use it. 2 was dead also, so 3 is now x Damn the static electricity
# Derived from Ted Hyde's original hm2-servo config
#
# Based up work and discussion with Seb & Peter & Jeff
# GNU license references - insert here. www.linuxcnc.org
# 
# See also:
# 

# and http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?HostMot2
#

# Core EMC/HAL Loads

# kinematics
loadrt [KINS]KINEMATICS

# motion controller, get name and thread periods from ini file
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD 
num_joints=[KINS]JOINTS

##
# extra, slower thread for jogwheel stuffs at 200Hz
loadrt  threads name1=jog-thread period1=2000 fp1=1
##
# hostmot2 driver
loadrt hostmot2

# load low-level driver
loadrt  [HOSTMOT2](DRIVER) config=[HOSTMOT2](CONFIG) spi_debug=3 
spiclk_rate=41666 spiclk_rate_rd=25000

# load estop latch component
loadrt  estop_latch count=1

loadusr -W /home/pi/linuxcnc/configs/sheldon-lathe/units.py

# loadrt stuff for g33.1 ovrtrvl
loadrt  sample_hold names=sample-dirchg,sample-spndlchg

# Now my stuff for a steady tach reading
loadrt  lowpass names=spindle-tach-filter,spindle-steady
loadrt  abs 
names=spindle-abs,spindle-tach-unidir,abs.0,abs.1,gear_abs,abs_encdir
loadrt  minmax names=spindle-track,X-axis-track,Z-axis-track
loadrt  scale   names=scale-tach,scale-ovrtrvl
loadrt  nearnames=close-enough
loadrt  tristate_bit names=watchdog-reset
loadrt  updown names=updownxcounter,updownzcounter
loadrt  conv_s32_u32count=2
loadrt  conv_s32_float  names=s32floatx,s32floatz,s32_float_cmd,s32_float_spndl
loadrt  conv_float_s32  names=floats32x,floats32z
loadrt  bitslice names=mux8addrx,mux8addrz personality=3,3
loadrt  mux8 names=mux8jogspeedx,mux8jogspeedz
loadrt  wcomp   names=jogsteerx,jogsteerz
# here I need the module name as its leading portion
loadrt  and2
names=and2xgainup,and2xgaindown,and2xgate,and2zgainup,and2zgaindown,and2zgate,and2xtoggle,and2ztoggle,Flt-and2-estop
loadrt  mult2   
names=mult2x1,mult2x2,mult2z1,mult2z2,mult2gear,mult2pwm,mult2turns,mult2distance
loadrt  not names=notjogx,notjogz,FaultXnot,FaultZnot,FHomeNot
# need a jog-disable when adjusting stepsize
loadrt  mux2names=jogmux2x,jogmux2z,ovrtvl-frz,ovrtrvl-scaler-mux
loadrt  oneshot 

Re: [Emc-users] Lathe spindle vfd settings

2021-03-05 Thread Feral Engineer
Lenze 8200 vector from an emco pc turn 55

Phil T.
The Feral Engineer

Check out my LinuxCNC tutorials, machine builds and other antics at
www.youtube.com/c/theferalengineer

On Fri, Mar 5, 2021, 7:34 PM andy pugh  wrote:

> On Sat, 6 Mar 2021 at 00:07, Feral Engineer 
> wrote:
> > I've got 2 speed pulleys on mine 2000 and 4000rpm. Just want to try and
> > fine tune the rpm and see if there's a way to soften the acc/dec without
> > messing with the vfd (don't have the removable programming panel).
>
> Which VFD  is it? In some cases the LinuxCNC ModBus drivers let you do
> all that the OP panel would allow. Though sadly in some cases you
> can't enable Modbus without the OP.
>
> --
> 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 mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Lathe spindle vfd settings

2021-03-05 Thread andy pugh
On Sat, 6 Mar 2021 at 00:07, Feral Engineer  wrote:
> I've got 2 speed pulleys on mine 2000 and 4000rpm. Just want to try and
> fine tune the rpm and see if there's a way to soften the acc/dec without
> messing with the vfd (don't have the removable programming panel).

Which VFD  is it? In some cases the LinuxCNC ModBus drivers let you do
all that the OP panel would allow. Though sadly in some cases you
can't enable Modbus without the OP.

-- 
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] Lathe spindle vfd settings

2021-03-05 Thread Feral Engineer
I've got 2 speed pulleys on mine 2000 and 4000rpm. Just want to try and
fine tune the rpm and see if there's a way to soften the acc/dec without
messing with the vfd (don't have the removable programming panel). Plus, i
like to tinker with stuff to learn more about it.

Phil T.
The Feral Engineer

Check out my LinuxCNC tutorials, machine builds and other antics at
www.youtube.com/c/theferalengineer

On Fri, Mar 5, 2021, 6:38 PM andy pugh  wrote:

> On Fri, 5 Mar 2021 at 23:31, Feral Engineer 
> wrote:
> >
> > Can someone send me a copypasta of their spindle hal stuff? Pid, ff0,1,2
> > encoder feedback, all that?
>
> I don't actually run PID on my lathe spindle. I have some moderately
> complex gear selection stuff going on, but otherwise I just trust the
> VFD to do the job.
>
> --
> 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 mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] HTML Help

2021-03-05 Thread Alan Condit
Andy,

ASCII vs extended character sets. HTML will accept and use extended
character sets. We are probably only expecting ASCII.

Alan


> From: andy pugh 
> To: "Enhanced Machine Controller (EMC)" 
> Cc:
> Bcc:
> Date: Fri, 5 Mar 2021 16:00:03 +
> Subject: [Emc-users] HTML Help
> It has become evident that the online LinuxCNC docs in some cases (but
> not all) are displaying en-dashes in place of hyphens in HAL pin
> names.
>
> ie, what should be a 2D is an E2 88 92
>
> For example: http://linuxcnc.org/docs/2.8/html/man/man1/halui.1.html
>
> has: halui.tool.length−offset.a float out
> But should be: halui.tool.length-offset.a float out
>
> If I (and others) generate the HTML locally we get the correct output.
>
> Has anyone any idea what might be going on? It is more than just an
> æsthetic problem, it means that copy-pasted hal snippets don't work.
>
> --
> 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] Q for Big John Thornton re your servo tuning doc

2021-03-05 Thread John Dammeyer
Hi Gene, 
In this reply I've pasted the 3 axis HAL information below.  I realize now I'm 
not the john you were referring to but maybe this will help?
John Dammeyer

> From: Gene Heskett [mailto:ghesk...@shentel.net]
> 
> I'm still having tuning problems with this thing.
> 
> Reading thru your doc it finally dawned on me that you are tuning a
> velocity mode servo, while what I had cobbled up was a position mode.
> 
> Trying to fix my hal file to work with velocity has been an even bigger
> headache.
> 
> So here I am, hat in hand, wanting to see your .hal files section showing
> how its hooked up to be a velocity mode servo.
> 
> Thanks John.
> 
> Cheers, Gene Heskett
#***
#  AXIS Y
#***
setp   pid.y.Pgain [AXIS_1]P
setp   pid.y.Igain [AXIS_1]I
setp   pid.y.Dgain [AXIS_1]D
setp   pid.y.bias  [AXIS_1]BIAS
setp   pid.y.FF0   [AXIS_1]FF0
setp   pid.y.FF1   [AXIS_1]FF1
setp   pid.y.FF2   [AXIS_1]FF2
setp   pid.y.deadband  [AXIS_1]DEADBAND
setp   pid.y.maxoutput [AXIS_1]MAX_OUTPUT
setp   pid.y.error-previous-target true
#setp   pid.y.maxerror .0005

net y-index-enable  <=> pid.y.index-enable
net y-enable=>  pid.y.enable
net y-pos-cmd   =>  pid.y.command
#net y-vel-cmd   =>  pid.y.command-deriv
net y-pos-fb=>  pid.y.feedback
net y-output=>  pid.y.output

# Step Gen signals/setup
setp   hm2_7i92.0.stepgen.01.dirsetup[AXIS_1]DIRSETUP
setp   hm2_7i92.0.stepgen.01.dirhold [AXIS_1]DIRHOLD
setp   hm2_7i92.0.stepgen.01.steplen [AXIS_1]STEPLEN
setp   hm2_7i92.0.stepgen.01.stepspace   [AXIS_1]STEPSPACE
setp   hm2_7i92.0.stepgen.01.position-scale  [AXIS_1]STEP_SCALE
setp   hm2_7i92.0.stepgen.01.step_type0
setp   hm2_7i92.0.stepgen.01.control-type 1
setp   hm2_7i92.0.stepgen.01.maxaccel [AXIS_1]STEPGEN_MAXACCEL
setp   hm2_7i92.0.stepgen.01.maxvel   [AXIS_1]STEPGEN_MAXVEL

# ---closedloop stepper signals---
net y-pos-cmd<= axis.1.motor-pos-cmd
net y-vel-cmd<= axis.1.joint-vel-cmd
net y-output => hm2_7i92.0.stepgen.01.velocity-cmd
net y-pos-fb <= hm2_7i92.0.stepgen.01.position-fb
net y-pos-fb => axis.1.motor-pos-fb
net y-enable <= axis.1.amp-enable-out
net y-enable => hm2_7i92.0.stepgen.01.enable

net min-home-y => axis.1.home-sw-in
net min-home-y => axis.1.neg-lim-sw-in
net max-x-y-min-z => axis.1.pos-lim-sw-in


#***
#  AXIS Z
#***
setp   pid.z.Pgain [AXIS_2]P
setp   pid.z.Igain [AXIS_2]I
setp   pid.z.Dgain [AXIS_2]D
setp   pid.z.bias  [AXIS_2]BIAS
setp   pid.z.FF0   [AXIS_2]FF0
setp   pid.z.FF1   [AXIS_2]FF1
setp   pid.z.FF2   [AXIS_2]FF2
setp   pid.z.deadband  [AXIS_2]DEADBAND
setp   pid.z.maxoutput [AXIS_2]MAX_OUTPUT
setp   pid.z.error-previous-target true
#setp   pid.z.maxerror .0005

net z-index-enable  <=> pid.z.index-enable
net z-enable=>  pid.z.enable
net z-pos-cmd   =>  pid.z.command
#net z-vel-cmd   =>  pid.z.command-deriv
net z-pos-fb=>  pid.z.feedback
net z-output=>  pid.z.output

# Step Gen signals/setup
setp   hm2_7i92.0.stepgen.02.dirsetup[AXIS_2]DIRSETUP
setp   hm2_7i92.0.stepgen.02.dirhold [AXIS_2]DIRHOLD
setp   hm2_7i92.0.stepgen.02.steplen [AXIS_2]STEPLEN
setp   hm2_7i92.0.stepgen.02.stepspace   [AXIS_2]STEPSPACE
setp   hm2_7i92.0.stepgen.02.position-scale  [AXIS_2]STEP_SCALE
setp   hm2_7i92.0.stepgen.02.step_type0
setp   hm2_7i92.0.stepgen.02.control-type 1
setp   hm2_7i92.0.stepgen.02.maxaccel [AXIS_2]STEPGEN_MAXACCEL
setp   hm2_7i92.0.stepgen.02.maxvel   [AXIS_2]STEPGEN_MAXVEL

# ---closedloop stepper signals---
net z-pos-cmd<= axis.2.motor-pos-cmd
net z-vel-cmd<= axis.2.joint-vel-cmd
net z-output => hm2_7i92.0.stepgen.02.velocity-cmd
net z-pos-fb <= hm2_7i92.0.stepgen.02.position-fb
net z-pos-fb => axis.2.motor-pos-fb
net z-enable <= axis.2.amp-enable-out
net z-enable => hm2_7i92.0.stepgen.02.enable

net max-home-z => axis.2.home-sw-in
net max-x-y-min-z => axis.2.neg-lim-sw-in
net max-home-z => axis.2.pos-lim-sw-in

#***
#  AXIS A
#***
setp   pid.a.Pgain [AXIS_3]P
setp   pid.a.Igain [AXIS_3]I
setp   pid.a.Dgain [AXIS_3]D
setp   pid.a.bias  [AXIS_3]BIAS
setp   pid.a.FF0   [AXIS_3]FF0
setp   pid.a.FF1   [AXIS_3]FF1
setp   pid.a.FF2   [AXIS_3]FF2
setp   pid.a.deadband  [AXIS_3]DEADBAND
setp   pid.a.maxoutput [AXIS_3]MAX_OUTPUT
setp   pid.a.error-previous-target true
#setp   pid.a.maxerror .0005

net a-index-enable  <=> pid.a.index-enable
net a-enable=>  pid.a.enable
net a-pos-cmd   =>  pid.a.command
#net a-vel-cmd   =>  pid.a.command-deriv
net a-pos-fb=>  pid.a.feedback
net a-output=>  pid.a.output

# Step Gen signals/setup
setp   hm2_7i92.0.stepgen.03.dirsetup[AXIS_3]DIRSETUP
setp   hm2_7i92.0.stepgen.03.dirhold [AXIS_3]DIRHOLD
setp   

Re: [Emc-users] Q for Big John Thornton re your servo tuning doc

2021-03-05 Thread John Dammeyer
Hi Gene,
Not sure if you are asking me but below your message are three axis.  
The Y is step/dir to an HP_UHU DC Brushed Servo Drive.
The Z is the step/dir to Bergerda AC Servo drive
The A axis is a harmonic drive 4th axis AC Servo driven with step/dir to the 
STMBL drive (just like Andy's).

John



> -Original Message-
> From: Gene Heskett [mailto:ghesk...@shentel.net]
> Sent: March-05-21 3:18 PM
> To: Enhanced Machine Controller (EMC)
> Subject: [Emc-users] Q for Big John Thornton re your servo tuning doc
> 
> I'm still having tuning problems with this thing.
> 
> Reading thru your doc it finally dawned on me that you are tuning a
> velocity mode servo, while what I had cobbled up was a position mode.
> 
> Trying to fix my hal file to work with velocity has been an even bigger
> headache.
> 
> So here I am, hat in hand, wanting to see your .hal files section showing
> how its hooked up to be a velocity mode servo.
> 
> Thanks John.
> 
> Cheers, Gene Heskett

#
# Axis Y
#
[AXIS_1]
TYPE = LINEAR
HOME = 0.0
FERROR = 0.05
MIN_FERROR = 0.01
MAX_VELOCITY = 2.5
MAX_ACCELERATION = 15
# The values below should be 25% larger than MAX_VELOCITY and MAX_ACCELERATION
# If using BACKLASH compensation STEPGEN_MAXACCEL should be 100% larger.
STEPGEN_MAXVEL = 3.0
STEPGEN_MAXACCEL = 30
P = 1000.0
I = 0.0
D = 0.0
FF0 = 0.0
FF1 = 1.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
MAX_OUTPUT = 0.0
# these are in nanoseconds
DIRSETUP   = 1000
DIRHOLD= 1000
STEPLEN= 1000
STEPSPACE  = 1000
STEP_SCALE = -2.0
MIN_LIMIT = -0.04
MAX_LIMIT = 6.65
BACKLASH = 0.0157

HOME_OFFSET = -0.1
HOME_SEARCH_VEL = -0.8
HOME_LATCH_VEL = 0.01
HOME_FINAL_VEL = 0.2
HOME_IGNORE_LIMITS = YES
HOME_VOLATILE = 1
HOME_SEQUENCE = 1

#
# Axis Z
#
[AXIS_2]
TYPE = LINEAR
HOME = 0.0
FERROR = 0.05
MIN_FERROR = 0.01
MAX_VELOCITY = 2.5
MAX_ACCELERATION = 10
#MAX_VELOCITY = 0.4
#MAX_ACCELERATION = 2.4
# The values below should be 25% larger than MAX_VELOCITY and MAX_ACCELERATION
# If using BACKLASH compensation STEPGEN_MAXACCEL should be 100% larger.
STEPGEN_MAXVEL = 3.0
STEPGEN_MAXACCEL = 20
#STEPGEN_MAXVEL = 0.5
#STEPGEN_MAXACCEL = 4.8
P = 1000.0
I = 0.0
D = 0.0
FF0 = 0.0
FF1 = 1.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
MAX_OUTPUT = 0.0
# these are in nanoseconds
DIRSETUP   = 3000
DIRHOLD= 3000
STEPLEN= 3000
STEPSPACE  = 3000
STEP_SCALE = -24000.0
MIN_LIMIT = -12.5
MAX_LIMIT = 0.2
BACKLASH = 0.0035

HOME_OFFSET = 0.2
HOME_SEARCH_VEL = 0.8
HOME_LATCH_VEL = 0.01
HOME_FINAL_VEL = -0.2
HOME_IGNORE_LIMITS = YES
HOME_USE_INDEX = 0
HOME_SEQUENCE = 0

#
# Axis A
#
[AXIS_3]
TYPE = ANGULAR
HOME = 0.0
FERROR = 1
MIN_FERROR = 0.25
MAX_VELOCITY = 180.0
MAX_ACCELERATION = 720.0
# The values below should be 25% larger than MAX_VELOCITY and MAX_ACCELERATION
# If using BACKLASH compensation STEPGEN_MAXACCEL should be 100% larger.
STEPGEN_MAXVEL = 225.00
STEPGEN_MAXACCEL = 900.00
P = 1000.0
I = 0.0
D = 0.0
FF0 = 0.0
FF1 = 1.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
MAX_OUTPUT = 0.0
# these are in nanoseconds
DIRSETUP   = 1000
DIRHOLD= 1000
STEPLEN= 1000
STEPSPACE  = 1000
STEP_SCALE = 208.333
MIN_LIMIT = -.0
MAX_LIMIT = .0
HOME_OFFSET = 0.0
HOME_SEARCH_VEL = 0
HOME_LATCH_VEL = 0
HOME_FINAL_VEL = 0
HOME_IGNORE_LIMITS = YES
HOME_USE_INDEX = 0
HOME_SEQUENCE = 0




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


Re: [Emc-users] Lathe spindle vfd settings

2021-03-05 Thread andy pugh
On Fri, 5 Mar 2021 at 23:31, Feral Engineer  wrote:
>
> Can someone send me a copypasta of their spindle hal stuff? Pid, ff0,1,2
> encoder feedback, all that?

I don't actually run PID on my lathe spindle. I have some moderately
complex gear selection stuff going on, but otherwise I just trust the
VFD to do the job.

-- 
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] Lathe spindle vfd settings

2021-03-05 Thread Feral Engineer
Can someone send me a copypasta of their spindle hal stuff? Pid, ff0,1,2
encoder feedback, all that? Gonna tackle the one on my machine but I've
never done it before, so a starting point would be helpful.

TIA

Phil T.
The Feral Engineer

Check out my LinuxCNC tutorials, machine builds and other antics at
www.youtube.com/c/theferalengineer

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


[Emc-users] Q for Big John Thornton re your servo tuning doc

2021-03-05 Thread Gene Heskett
I'm still having tuning problems with this thing.

Reading thru your doc it finally dawned on me that you are tuning a 
velocity mode servo, while what I had cobbled up was a position mode.

Trying to fix my hal file to work with velocity has been an even bigger 
headache.

So here I am, hat in hand, wanting to see your .hal files section showing 
how its hooked up to be a velocity mode servo.

Thanks John.

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] HTML Help

2021-03-05 Thread John Dammeyer
> From: Todd Zuercher [mailto:to...@pgrahamdunn.com]
> Whoever came up with the idea that we needed different characters for 
> hyphens, dashes and minus signs anyway?  Someone needs
> kicked.
> 
> I don't remember having problems with these a few years ago.
> 
> Todd Zuercher
> P. Graham Dunn Inc.

My response to your question is the last line of my post but here's the 
background.

If you've ever had the experience of working on an IBM 360/370 series and 
written programs using PASCAL you'll have discovered an interesting problem.
The PASCAL statement 
if ch in ['A'..'Z'] then begin ... end; 
won't work right.
That's because the compiler generates code that does the following test 
(written now in C for example) .
  if ((ch >=0xC1) && (ch <= 0xE9)) { ... };
Needless to say the PASCAL is easier to read when you understand set notation.

Trouble is, the IBMs used EBCDIC for character representation, not ASCII.  To 
write this in PASCAL and in C is done correctly like this:
IF (ch IN ['A'..'I']) OR  (ch IN ['J'..'R']) OR (ch IN ['S'..'Z']) THEN BEGIN 
... END;

In C (or in PASCAL) to use the hex values you would write it like this:
if (((ch>=0xC1) && (ch<=0xC9)) || 
((ch>=0xD1) && (ch<=0xD9)) ||
((ch>=0xE2) && (ch<=0xE9)) ) { ... };

Yikes eh?  Notice the gaps.  If the ch had a value 0xE1 then the all inclusive 
test from 0xC1 to 0xE9 would pass even though the ch variable has an invalid 
character.

No move forward in time and Embarcadero changed the OBJECT PASCAL (Delphi) 
language in one fell swoop breaking thousands of programs and who knows how 
many man hours were required to fix it.

The type CHAR was always 7 bit ASCII and as programs became more international 
the WIDECHAR was introduced to handle 16 bit character sets and special 
characters or symbols like the German umlaut.

And then suddenly a char was 16 bits and an ANSICHAR was 8 bits.  Every program 
out there that expected CHAR to be a 7 bit ASCII character broke.  Most  of the 
time it didn't matter much because if it was a desktop screen application the 
OS took care of a lot.  If you dealt with weigh scales and serial ports or any 
other hardware device that sent 8 bit characters over a UART based serial port 
it was serious.  Or reading a text file created by a different OS.

And with the advent of 16 bit characters we can now have all sorts of values 
for what to the average eye looks like a '-'.

John Dammeyer




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


Re: [Emc-users] HTML Help

2021-03-05 Thread Todd Zuercher
Whoever came up with the idea that we needed different characters for hyphens, 
dashes and minus signs anyway!  Someone needs kicked.

I don't remember having problems with these a few years ago.

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

-Original Message-
From: andy pugh  
Sent: Friday, March 05, 2021 1:14 PM
To: Enhanced Machine Controller (EMC) 
Subject: Re: [Emc-users] HTML Help

[EXTERNAL EMAIL] Be sure links are safe.

On Fri, 5 Mar 2021 at 18:05, andy pugh  wrote:

> Looking at the source HTML on the server by ssh:
> sendkeys.N.currentevent
> s32 out shows the current scancode without keyup / keydown 
> markers.
>
> Looking at the delivered HTML:
> sendkeys.N.current−event
> s32 out shows the current scancode without keyup / keydown 
> markers.

And the locally-compiled version is yet a third variant:

sendkeys.N.current-event
s32 out shows the current scancode without keyup / keydown markers.

That's a plain ASCII 0x2D minus / hyphen.

--
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 mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] HTML Help

2021-03-05 Thread Mark Wendt
I wonder if asciidoc or dblatex that's munging the HTML output.  Maybe some
new version that needs a new qualifier to generate the minus sign rather
than the hyphen.  Looks like there's already a conf file that doesn't allow
replacements for the arrows.  Maybe there's another qualifier that has to
be used with the possibly updated software?

Mark

On Fri, Mar 5, 2021 at 1:09 PM andy pugh  wrote:

> On Fri, 5 Mar 2021 at 17:31, Mark Wendt  wrote:
> >
> > Maybe it's in the web server then and how it outputs the html.  What
> shows
> > up in the base HTML code that creates the page?  A hyphen or a dash?
>
> Looking at the source HTML on the server by ssh:
> sendkeys.N.currentevent
> s32 out shows the current scancode without keyup / keydown
> markers.
>
> Looking at the delivered HTML:
> sendkeys.N.current−event
> s32 out shows the current scancode without keyup / keydown
> markers.
>
> So, the  is being delivered as a dash...
>
> --
> 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 mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] HTML Help

2021-03-05 Thread andy pugh
On Fri, 5 Mar 2021 at 18:05, andy pugh  wrote:

> Looking at the source HTML on the server by ssh:
> sendkeys.N.currentevent
> s32 out shows the current scancode without keyup / keydown
> markers.
>
> Looking at the delivered HTML:
> sendkeys.N.current−event
> s32 out shows the current scancode without keyup / keydown
> markers.

And the locally-compiled version is yet a third variant:

sendkeys.N.current-event
s32 out shows the current scancode without keyup / keydown
markers.

That's a plain ASCII 0x2D minus / hyphen.

-- 
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] HTML Help

2021-03-05 Thread andy pugh
On Fri, 5 Mar 2021 at 17:31, Mark Wendt  wrote:
>
> Maybe it's in the web server then and how it outputs the html.  What shows
> up in the base HTML code that creates the page?  A hyphen or a dash?

Looking at the source HTML on the server by ssh:
sendkeys.N.currentevent
s32 out shows the current scancode without keyup / keydown
markers.

Looking at the delivered HTML:
sendkeys.N.current−event
s32 out shows the current scancode without keyup / keydown
markers.

So, the  is being delivered as a dash...

-- 
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] HTML Help

2021-03-05 Thread Mark Wendt
Maybe it's in the web server then and how it outputs the html.  What shows
up in the base HTML code that creates the page?  A hyphen or a dash?

Mark

On Fri, Mar 5, 2021 at 12:21 PM andy pugh  wrote:

> On Fri, 5 Mar 2021 at 16:27, Mark Wendt  wrote:
>
> > What is being used to generate the HTML output?
>
> Magic, as far as I can tell.
> Original source is troff (or groff, I get them confused)
> https://github.com/LinuxCNC/linuxcnc/blob/master/docs/man/man1/halui.1
> Then that is converted to asciidoc (I think) and then to HTML using a2x.
> https://github.com/LinuxCNC/linuxcnc/blob/master/docs/src/Submakefile#L400
>
> But, it all works on my local machine, so doesn't seem to be inherent
> to the LinuxCNC code base.
> Hence the query, why would it appear different on www.linuxcnc.org to
> (for example) www.bodgesoc.org
>
> http://linuxcnc.org/docs/2.8/html/man/man1/sendkeys.1.html
> https://www.bodgesoc.org/sendkeys.1.html
>
> The important difference is the hyphenation, but there are also
> graphical differences.
>
> --
> 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 mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] HTML Help

2021-03-05 Thread andy pugh
On Fri, 5 Mar 2021 at 16:27, Mark Wendt  wrote:

> What is being used to generate the HTML output?

Magic, as far as I can tell.
Original source is troff (or groff, I get them confused)
https://github.com/LinuxCNC/linuxcnc/blob/master/docs/man/man1/halui.1
Then that is converted to asciidoc (I think) and then to HTML using a2x.
https://github.com/LinuxCNC/linuxcnc/blob/master/docs/src/Submakefile#L400

But, it all works on my local machine, so doesn't seem to be inherent
to the LinuxCNC code base.
Hence the query, why would it appear different on www.linuxcnc.org to
(for example) www.bodgesoc.org

http://linuxcnc.org/docs/2.8/html/man/man1/sendkeys.1.html
https://www.bodgesoc.org/sendkeys.1.html

The important difference is the hyphenation, but there are also
graphical differences.

-- 
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] Debian gui lockups on fresh install

2021-03-05 Thread Feral Engineer
Thanks Jon

The funny thing is plugging into an external monitor makes it (the laptop
display) run fine, but if i unplug the external monitor, it doesn't work
again.

Phil T.
The Feral Engineer

Check out my LinuxCNC tutorials, machine builds and other antics at
www.youtube.com/c/theferalengineer

On Fri, Mar 5, 2021, 11:24 AM Jon Elson  wrote:

> On 03/05/2021 12:20 AM, Feral Engineer wrote:
> > So new discovery. If I plug in an external monitor, both displays work
> > perfectly.
> >
> >
> What screen resolution is the laptop screen?  Some laptops
> have really ODD screen dimensions and not all drivers can
> handle those. I've run into this before, a long time ago.
> Some online research might show that others have run into
> this issue on that laptop model.  Possibly forcing X11 to
> use a default (x)VGA driver might get rid of the issue.
>
> Jon
>
>
> ___
> 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] HTML Help

2021-03-05 Thread Mark Wendt
What is being used to generate the HTML output?  Perhaps a character code
in the application is not set to generate the hyphen but instead generates
the dash?  Maybe someone changed the character set being used?

Mark

On Fri, Mar 5, 2021 at 11:04 AM andy pugh  wrote:

> It has become evident that the online LinuxCNC docs in some cases (but
> not all) are displaying en-dashes in place of hyphens in HAL pin
> names.
>
> ie, what should be a 2D is an E2 88 92
>
> For example: http://linuxcnc.org/docs/2.8/html/man/man1/halui.1.html
>
> has: halui.tool.length−offset.a float out
> But should be: halui.tool.length-offset.a float out
>
> If I (and others) generate the HTML locally we get the correct output.
>
> Has anyone any idea what might be going on? It is more than just an
> æsthetic problem, it means that copy-pasted hal snippets don't work.
>
> --
> 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 mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Debian gui lockups on fresh install

2021-03-05 Thread Jon Elson

On 03/05/2021 12:20 AM, Feral Engineer wrote:

So new discovery. If I plug in an external monitor, both displays work
perfectly.


What screen resolution is the laptop screen?  Some laptops 
have really ODD screen dimensions and not all drivers can 
handle those. I've run into this before, a long time ago.  
Some online research might show that others have run into 
this issue on that laptop model.  Possibly forcing X11 to 
use a default (x)VGA driver might get rid of the issue.


Jon


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


[Emc-users] HTML Help

2021-03-05 Thread andy pugh
It has become evident that the online LinuxCNC docs in some cases (but
not all) are displaying en-dashes in place of hyphens in HAL pin
names.

ie, what should be a 2D is an E2 88 92

For example: http://linuxcnc.org/docs/2.8/html/man/man1/halui.1.html

has: halui.tool.length−offset.a float out
But should be: halui.tool.length-offset.a float out

If I (and others) generate the HTML locally we get the correct output.

Has anyone any idea what might be going on? It is more than just an
æsthetic problem, it means that copy-pasted hal snippets don't work.

-- 
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] Debian gui lockups on fresh install

2021-03-05 Thread andy pugh
On Fri, 5 Mar 2021 at 06:23, Feral Engineer  wrote:
>
> So new discovery. If I plug in an external monitor, both displays work
> perfectly.

Congratulations, a new and interesting problem never seen before...

All I can suggest is different graphics drivers. This wiki page is
probably 10 years out of date, though.
http://wiki.linuxcnc.org/cgi-bin/wiki.pl?TroubleShooting#Display_Issues

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