Re: [Emc-users] mesa 7i80 configuration

2022-01-28 Thread Peter C. Wallace

On Fri, 28 Jan 2022, John Figie wrote:


Date: Fri, 28 Jan 2022 17:28:19 -0600
From: John Figie 
Reply-To: "Enhanced Machine Controller (EMC)"

To: "Enhanced Machine Controller (EMC)" 
Subject: Re: [Emc-users] mesa 7i80 configuration

OK

So I don't see any documentation for PktUART and it would require a custom
bit file. So that is something maybe I could add later in a custom bit file?


Sure



In the meantime I just need something that actually works that has 3 pwm
outputs and 3 encoder inputs. So can you suggest a bit file that I can use
as is and may also be a starting point for a custom file that adds 3 UARTS?



Any of the SVST bitfiles should work


regards,

John



On Fri, Jan 28, 2022, 3:48 PM Peter C. Wallace  wrote:




halrun I get a different error
hm2/hm2_7i80.0: inconsistent Module Descriptor for UART Transmit Channel,
not loading driver.


Thats probably because that was built with a batch file and theres a
source code
tweek needed for the UART module because it uses a differeent register
stride
  For this and other reasons, I would suggest not using the UART and using
the
PktUART instead. This wil likely require a custom bitfile




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



Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.



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


Re: [Emc-users] mesa 7i80 configuration

2022-01-28 Thread John Figie
OK

So I don't see any documentation for PktUART and it would require a custom
bit file. So that is something maybe I could add later in a custom bit file?

In the meantime I just need something that actually works that has 3 pwm
outputs and 3 encoder inputs. So can you suggest a bit file that I can use
as is and may also be a starting point for a custom file that adds 3 UARTS?

regards,

John



On Fri, Jan 28, 2022, 3:48 PM Peter C. Wallace  wrote:

>
> > halrun I get a different error
> > hm2/hm2_7i80.0: inconsistent Module Descriptor for UART Transmit Channel,
> > not loading driver.
> >
> Thats probably because that was built with a batch file and theres a
> source code
> tweek needed for the UART module because it uses a differeent register
> stride
>   For this and other reasons, I would suggest not using the UART and using
> the
> PktUART instead. This wil likely require a custom bitfile
>
>

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


Re: [Emc-users] mesa 7i80 configuration

2022-01-28 Thread Peter C. Wallace

On Fri, 28 Jan 2022, John Figie wrote:


Date: Fri, 28 Jan 2022 14:30:59 -0600
From: John Figie 
Reply-To: "Enhanced Machine Controller (EMC)"

To: "Enhanced Machine Controller (EMC)" 
Subject: Re: [Emc-users] mesa 7i80 configuration


What is the md5 checksum of the bitfile you are using?

zephyr@Clausing:~/linuxcnc/configs/7i80/7i80/configs/hostmot2$ md5sum

7i80hd_25_2x7i65.bit
d3f91185e95027ca93ae00a1334d852d  7i80hd_25_2x7i65.bit


That matches so its probably a bad bitfile. I thin most of those bitfile were 
made automatically a long time ago and may have timing issues


I can remake it if you wish


But this may be all academic at this point. I think that even if I get the
file loaded with BSPIs the stuff
that I will need to figure out to make this all work seems difficult and
may not be worth the time.

So what I _really_ wanted is a simple SPI interface to send current command
to my drives, which
I thought would be simple to do, however, now I think I should just use a
bit file that was intended to work
with a card like the 7i33.  So I found something that I like called
7i80hd_25_svua8_4. I think this is for a 7i33 but it also
has some UARTs as well. I would like to make use of the UARTs for
non-realtime communications with some of my
devices such as SICK hiperface encoders to read the absolute position and
or maybe communications with some of
my drives.  Instead of using the SPI passing simple current_magnituce to
the drive I will just use the PWM output as the
current command like an analog servo in torque (current) mode.

If that really all does work I feel like I may be more competent hacking
the VHDL code for the FPGA to add my own SPIs that
just look like the PWM registers to LinuxCNC. When I had a real job I used
Altera (now Intel) Quartus with SOC (dual ARM with
FPGA) so using the Xilinx stuff does not seem as challenging as linuxCNC
code.

but when I load the 7i80hd_25_svua8_4 and then run my simple hal file using
halrun I get a different error
hm2/hm2_7i80.0: inconsistent Module Descriptor for UART Transmit Channel,
not loading driver.

Thats probably because that was built with a batch file and theres a source code 
tweek needed for the UART module because it uses a differeent register stride
 For this and other reasons, I would suggest not using the UART and using the 
PktUART instead. This wil likely require a custom bitfile




so, do I need to load something like mesa_uart first? that does not
appear in the list of 2.8 or 2.7 man pages so I suspect
I need to do something different but a lot of the 2.8 man pages are missing
- so this is really getting hard
fo figure out

regards,

John

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



Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.



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


Re: [Emc-users] mesa 7i80 configuration

2022-01-28 Thread John Figie
> What is the md5 checksum of the bitfile you are using?
>
> zephyr@Clausing:~/linuxcnc/configs/7i80/7i80/configs/hostmot2$ md5sum
7i80hd_25_2x7i65.bit
d3f91185e95027ca93ae00a1334d852d  7i80hd_25_2x7i65.bit

But this may be all academic at this point. I think that even if I get the
file loaded with BSPIs the stuff
that I will need to figure out to make this all work seems difficult and
may not be worth the time.

So what I _really_ wanted is a simple SPI interface to send current command
to my drives, which
I thought would be simple to do, however, now I think I should just use a
bit file that was intended to work
with a card like the 7i33.  So I found something that I like called
7i80hd_25_svua8_4. I think this is for a 7i33 but it also
has some UARTs as well. I would like to make use of the UARTs for
non-realtime communications with some of my
devices such as SICK hiperface encoders to read the absolute position and
or maybe communications with some of
my drives.  Instead of using the SPI passing simple current_magnituce to
the drive I will just use the PWM output as the
current command like an analog servo in torque (current) mode.

If that really all does work I feel like I may be more competent hacking
the VHDL code for the FPGA to add my own SPIs that
just look like the PWM registers to LinuxCNC. When I had a real job I used
Altera (now Intel) Quartus with SOC (dual ARM with
FPGA) so using the Xilinx stuff does not seem as challenging as linuxCNC
code.

but when I load the 7i80hd_25_svua8_4 and then run my simple hal file using
halrun I get a different error
hm2/hm2_7i80.0: inconsistent Module Descriptor for UART Transmit Channel,
not loading driver.

so, do I need to load something like mesa_uart first? that does not
appear in the list of 2.8 or 2.7 man pages so I suspect
I need to do something different but a lot of the 2.8 man pages are missing
- so this is really getting hard
fo figure out

regards,

John

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


Re: [Emc-users] motherboard that plays well with 7i43

2022-01-28 Thread dave engvall
My thinking is that the 7i43 is best used for rt tasks with an EPP port, 
hence the problem. I should have been more explicit.   The plan is mb -> 
7i43 -> 7i42 for stepper-servos.

Dave

On 1/28/22 11:17 AM, Chris Albertson wrote:

On Fri, Jan 28, 2022 at 10:18 AM dave engvall  wrote:


hi,
I'm looking for users that are actually using a motherboard with a 7i43
and can recommend candidate boards from experience. Thanks in advance.


A related question I have is "Does choice of mainboard matter?"  I'd guess
if you are using the USB interface it wouldn't.

I was thinking of using the Ethernet interface Mesa board but then read it
needs a dedicated Ethernet port in the host PC.  This means buying,
installing, and configuring an Ethernet card. The PC or any PC today
already has half a dozen USB ports.  Even a Raspberry Pi has 4 USB ports
and might work well for this.

But my question is not about using a specific PC, but rather if it matters.




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


Re: [Emc-users] mesa 7i80 configuration

2022-01-28 Thread Peter C. Wallace

On Fri, 28 Jan 2022, John Figie wrote:


Date: Fri, 28 Jan 2022 13:21:04 -0600
From: John Figie 
Reply-To: "Enhanced Machine Controller (EMC)"

To: "Enhanced Machine Controller (EMC)" 
Subject: Re: [Emc-users] mesa 7i80 configuration

Peter,

Thanks for verifying this in your environment.
When you say communications issue do you mean something other than
electrical noise?

I doubt that there is a noise issue with my communications as right now I
am in a pretty
good environment. There are no drives or other noisy devices running, the
mesa hardware is mounted to a 3/8" thick grounded
aluminum sub panel with standoffs. The 5v power supply is ungrounded but
supplied through a shielded cable with the shield
single point grounded to the subpanel. The power looks clean on a scope.
The subpanel is connected to the PE (protective earth)
for the building. The ethernet CAT5E UTP cable is maybe about 3' long.

If I read the FPGA hmid using mesaflash I also read 65535. If the data was
bad from noise then wouldn't
the packet be dropped (bad crc) and other data besides the idrom value be
incorrect?
but the mesaflash --readhmid returns all of the other info that is expected
- i think.




That's really weird, it actually looks like a FPGA or bitfile fault

What is the md5 checksum of the bitfile you are using?


Also I can rebuild that file for testing



the output looks like this:
zephyr@Clausing:~/linuxcnc/configs/7i80/7i80/configs/hostmot2$ mesaflash
--device 7i80 --addr 10.10.10.10 --readhmid
Configuration Name: HOSTMOT2

General configuration information:

 BoardName : MESA7I80
 FPGA Size: 25 KGates
 FPGA Pins: 256
 Number of IO Ports: 3
 Width of one I/O port: 24
 Clock Low frequency: 100. MHz
 Clock High frequency: 200. MHz
 IDROM Type: 65535
 Instance Stride 0: 4
 Instance Stride 1: 64
 Register Stride 0: 256
 Register Stride 1: 256

Modules in configuration:

 Module: WatchDog
 There are 1 of WatchDog in configuration
 Version: 0
 Registers: 3
 BaseAddress: 0C00
 ClockFrequency: 100.000 MHz
 Register Stride: 256 bytes
 Instance Stride: 4 bytes

 Module: IOPort
 There are 3 of IOPort in configuration
 Version: 0
 Registers: 5
 BaseAddress: 1000
 ClockFrequency: 100.000 MHz
 Register Stride: 256 bytes
 Instance Stride: 4 bytes

 Module: MuxedQCount
 There are 16 of MuxedQCount in configuration
 Version: 3
 Registers: 5
 BaseAddress: 3500
 ClockFrequency: 100.000 MHz
 Register Stride: 256 bytes
 Instance Stride: 4 bytes

 Module: MuxedQCountSel
 There are 1 of MuxedQCountSel in configuration
 Version: 0
 Registers: 0
 BaseAddress: 
 ClockFrequency: 100.000 MHz
 Register Stride: 256 bytes
 Instance Stride: 4 bytes

 Module: BufSPI
 There are 2 of BufSPI in configuration
 Version: 0
 Registers: 3
 BaseAddress: 5400
 ClockFrequency: 100.000 MHz
 Register Stride: 256 bytes
 Instance Stride: 64 bytes

 Module: LED
 There are 1 of LED in configuration
 Version: 0
 Registers: 1
 BaseAddress: 0200
 ClockFrequency: 100.000 MHz
 Register Stride: 256 bytes
 Instance Stride: 4 bytes

Configuration pin-out:

IO Connections for P1
Pin#  I/O   Pri. funcSec. func   Chan  Pin func
  Pin Dir

1  0   IOPort   MuxedQCount  0MuxQ-A
  (In)
3  1   IOPort   MuxedQCount  0MuxQ-B
  (In)
5  2   IOPort   MuxedQCount  0MuxQ-IDX
  (In)
7  3   IOPort   MuxedQCount  1MuxQ-A
  (In)
9  4   IOPort   MuxedQCount  1MuxQ-B
  (In)
11  5   IOPort   MuxedQCount  1MuxQ-IDX
  (In)
13  6   IOPort   MuxedQCount  2MuxQ-A
  (In)
15  7   IOPort   MuxedQCount  2MuxQ-B
  (In)
17  8   IOPort   MuxedQCount  2MuxQ-IDX
  (In)
19  9   IOPort   MuxedQCount  3MuxQ-A
  (In)
21 10   IOPort   MuxedQCount  3MuxQ-B
  (In)
23 11   IOPort   MuxedQCount  3MuxQ-IDX
  (In)
25 12   IOPort   None
27 13   IOPort   MuxedQCountSel   0MuxSel0
   (Out)
29 14   IOPort   BufSPI   0/Frame
  (Out)
31 15   IOPort   BufSPI   0DOut
  (Out)
33 16   IOPort   BufSPI   0SClk
  (Out)
35 17   IOPort   BufSPI   0DIn
   (In)
37 18   IOPort   BufSPI   0CS2
   (Out)
39 19   IOPort   BufSPI   0CS1
   (Out)
41 20   IOPort   BufSPI   0CS0
   (Out)
43 21   IOPort   None
45 22   IOPort 

Re: [Emc-users] mesa 7i80 configuration

2022-01-28 Thread John Figie
Peter,

Thanks for verifying this in your environment.
When you say communications issue do you mean something other than
electrical noise?

I doubt that there is a noise issue with my communications as right now I
am in a pretty
good environment. There are no drives or other noisy devices running, the
mesa hardware is mounted to a 3/8" thick grounded
aluminum sub panel with standoffs. The 5v power supply is ungrounded but
supplied through a shielded cable with the shield
single point grounded to the subpanel. The power looks clean on a scope.
The subpanel is connected to the PE (protective earth)
for the building. The ethernet CAT5E UTP cable is maybe about 3' long.

If I read the FPGA hmid using mesaflash I also read 65535. If the data was
bad from noise then wouldn't
the packet be dropped (bad crc) and other data besides the idrom value be
incorrect?
but the mesaflash --readhmid returns all of the other info that is expected
- i think.

the output looks like this:
zephyr@Clausing:~/linuxcnc/configs/7i80/7i80/configs/hostmot2$ mesaflash
--device 7i80 --addr 10.10.10.10 --readhmid
Configuration Name: HOSTMOT2

General configuration information:

  BoardName : MESA7I80
  FPGA Size: 25 KGates
  FPGA Pins: 256
  Number of IO Ports: 3
  Width of one I/O port: 24
  Clock Low frequency: 100. MHz
  Clock High frequency: 200. MHz
  IDROM Type: 65535
  Instance Stride 0: 4
  Instance Stride 1: 64
  Register Stride 0: 256
  Register Stride 1: 256

Modules in configuration:

  Module: WatchDog
  There are 1 of WatchDog in configuration
  Version: 0
  Registers: 3
  BaseAddress: 0C00
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: IOPort
  There are 3 of IOPort in configuration
  Version: 0
  Registers: 5
  BaseAddress: 1000
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: MuxedQCount
  There are 16 of MuxedQCount in configuration
  Version: 3
  Registers: 5
  BaseAddress: 3500
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: MuxedQCountSel
  There are 1 of MuxedQCountSel in configuration
  Version: 0
  Registers: 0
  BaseAddress: 
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: BufSPI
  There are 2 of BufSPI in configuration
  Version: 0
  Registers: 3
  BaseAddress: 5400
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 64 bytes

  Module: LED
  There are 1 of LED in configuration
  Version: 0
  Registers: 1
  BaseAddress: 0200
  ClockFrequency: 100.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

Configuration pin-out:

IO Connections for P1
Pin#  I/O   Pri. funcSec. func   Chan  Pin func
   Pin Dir

 1  0   IOPort   MuxedQCount  0MuxQ-A
   (In)
 3  1   IOPort   MuxedQCount  0MuxQ-B
   (In)
 5  2   IOPort   MuxedQCount  0MuxQ-IDX
   (In)
 7  3   IOPort   MuxedQCount  1MuxQ-A
   (In)
 9  4   IOPort   MuxedQCount  1MuxQ-B
   (In)
11  5   IOPort   MuxedQCount  1MuxQ-IDX
   (In)
13  6   IOPort   MuxedQCount  2MuxQ-A
   (In)
15  7   IOPort   MuxedQCount  2MuxQ-B
   (In)
17  8   IOPort   MuxedQCount  2MuxQ-IDX
   (In)
19  9   IOPort   MuxedQCount  3MuxQ-A
   (In)
21 10   IOPort   MuxedQCount  3MuxQ-B
   (In)
23 11   IOPort   MuxedQCount  3MuxQ-IDX
   (In)
25 12   IOPort   None
27 13   IOPort   MuxedQCountSel   0MuxSel0
(Out)
29 14   IOPort   BufSPI   0/Frame
   (Out)
31 15   IOPort   BufSPI   0DOut
   (Out)
33 16   IOPort   BufSPI   0SClk
   (Out)
35 17   IOPort   BufSPI   0DIn
(In)
37 18   IOPort   BufSPI   0CS2
(Out)
39 19   IOPort   BufSPI   0CS1
(Out)
41 20   IOPort   BufSPI   0CS0
(Out)
43 21   IOPort   None
45 22   IOPort   None
47 23   IOPort   None

IO Connections for P2
Pin#  I/O   Pri. funcSec. func   Chan  Pin func
   Pin Dir

 1 24   IOPort   MuxedQCount  4MuxQ-A
   (In)
 3 25   IOPort   MuxedQCount  4

Re: [Emc-users] motherboard that plays well with 7i43

2022-01-28 Thread Chris Albertson
On Fri, Jan 28, 2022 at 10:18 AM dave engvall  wrote:

> hi,
> I'm looking for users that are actually using a motherboard with a 7i43
> and can recommend candidate boards from experience. Thanks in advance.
>

A related question I have is "Does choice of mainboard matter?"  I'd guess
if you are using the USB interface it wouldn't.

I was thinking of using the Ethernet interface Mesa board but then read it
needs a dedicated Ethernet port in the host PC.  This means buying,
installing, and configuring an Ethernet card. The PC or any PC today
already has half a dozen USB ports.  Even a Raspberry Pi has 4 USB ports
and might work well for this.

But my question is not about using a specific PC, but rather if it matters.
-- 

Chris Albertson
Redondo Beach, California

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


[Emc-users] motherboard that plays well with 7i43

2022-01-28 Thread dave engvall

hi,
I'm looking for users that are actually using a motherboard with a 7i43 
and can recommend candidate boards from experience. Thanks in advance.


Dave


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


Re: [Emc-users] can I hide the nativecam interface

2022-01-28 Thread Rob C
Yes nativecam will work for milling, plasma and lathe operations.
unfortunately its not been updated to python3 .. so if you use it on a
debian bullseye or linuxcnc master build it won't work :(

I've tried to have a go at making it nativecam + python3 functional but
failed but really like nativecam.

I use PlasmaC for my plasma setup so like to be on the bleeding edge of
development (master)  hence I can't use python 2 + 3 unless I went back
to debian buster which I may do eventually (busy doing other things
(noncnc) at present)

On Thu, 27 Jan 2022 at 22:42, Thaddeus Waldner  wrote:

> I’m not sure if you can “hide” NativeCam once embedded, but it’s possible
> to use it as a standalone application. That way it won’t take up space on
> your CNC gui.
>
>
> > On Jan 27, 2022, at 12:03 PM, fxkl47BF--- via Emc-users <
> emc-users@lists.sourceforge.net> wrote:
> >
> > I started playing with nativecam.
> > It's pretty neat.
> > With linuxcnc running is there a way to "hide" the nativecam interface?
> >
> >
> >
> > ___
> > 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] Axis configuration error

2022-01-28 Thread gene heskett
On Friday, January 28, 2022 9:22:12 AM EST Valerio Bellizzomi wrote:
> On Fri, 2022-01-28 at 08:27 -0500, gene heskett wrote:
> > On Friday, January 28, 2022 5:13:33 AM EST Valerio Bellizzomi wrote:
> > > Attached are my .ini and .hal files.
> > > Can you tell me what is missing there?
> > > 
> > > On Thu, 2022-01-27 at 12:39 -0500, gene heskett wrote:
> > > > On Thursday, January 27, 2022 11:49:17 AM EST Valerio Bellizzomi
> > > > 
> > > > wrote:
> > > > > Do I have to somehow convert my configurations for master ?
> > > > 
> > > > IDK about your axis gui errors, but one thing I note is that you
> > > > don't
> > > > have a numerical spindle number. master had grown the ability to
> > > > control
> > > > more than one spindle some time back, and the S argument now
> > > > expects
> > > > a
> > > > following number before the speed of the numerical assignment of
> > > > the
> > > > spindle number. All my machines only have one, they start at base
> > > > 0,
> > > > IDK
> > > > what the max is, so the argument for my stuff is S0 500 (or
> > > > whatever
> > > > speed you want to assign to the first spindle.)
> > > > 
> > > > However I suspect something else is aglay besides that, so I'll
> > > > leave
> > > > it
> > > > to the experts. I did see you're on buster, but not what
> > > > architecture.
> > > > 
> > > > Cheers, Gene Heskett.
> > > 
> > > From a quick look, in your .ini, your geometry line is xyz, 3
> > > axises, but
> > 
> > you then define xyzab, 5 axises later, and the .hal is missing the A
> > and
> > B stuffs. Its a bit short for a hal file too as many of the "net"
> > statements don't have enough arguments.
> > 
> > A net statement should have
> > 
> > net name-of-net <= src => target [target] [target]
> > one src, and as many targets as you need
> > and then later in the file if needed, you can:
> > net same-name-as-above => target target
> > for additional fanout if needed.
> > You can also do the second form in the postgui if needed if the
> > target
> > doesn't exist until the gui is running.
> > 
> > My stuff is a bit like topsey, it grew and grew from hand added
> > stuff,
> > and even my simplest lathe's hal file is 600 lines including
> > comments,
> > with some approaching 1000 LOC but have line after line of comments
> > so I
> > don't forget what I was doing 3 years later. Pleading guilty to being
> > an
> > old fart who does not well remember what he did 3 years ago. At 87
> > the
> > wet ram does not refresh as well as it did at 47. :(
> > 
> > The other thing I note is that you are using gedit as the editor,
> > and
> > that may explain the short hal file. gedit likes to play 42 pickup
> > with
> > your stuff whenthe deck has 52 cards, please uninstall gedit, and
> > install/use geany which doesn't have that bug. gedit looks nice, but
> > it
> > will eat your lunch /and/ dinner fixing its faulty saves, get rid of
> > it,
> > with prejudice. rm it on sight.
> 
> The two config files .ini and .hal are generated by stepconf
> 
> I'm actually using mousepad and nano as editors.

Mousepad I haven't tried, nano has always Just Worked.

> > Cheers, Gene Heskett.
> 
> ___
> 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, 1940)
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] Axis configuration error

2022-01-28 Thread Valerio Bellizzomi
On Fri, 2022-01-28 at 08:27 -0500, gene heskett wrote:
> On Friday, January 28, 2022 5:13:33 AM EST Valerio Bellizzomi wrote:
> > Attached are my .ini and .hal files.
> > Can you tell me what is missing there?
> > 
> > On Thu, 2022-01-27 at 12:39 -0500, gene heskett wrote:
> > > On Thursday, January 27, 2022 11:49:17 AM EST Valerio Bellizzomi
> > > 
> > > wrote:
> > > > Do I have to somehow convert my configurations for master ?
> > > 
> > > IDK about your axis gui errors, but one thing I note is that you
> > > don't
> > > have a numerical spindle number. master had grown the ability to
> > > control
> > > more than one spindle some time back, and the S argument now
> > > expects
> > > a
> > > following number before the speed of the numerical assignment of
> > > the
> > > spindle number. All my machines only have one, they start at base
> > > 0,
> > > IDK
> > > what the max is, so the argument for my stuff is S0 500 (or
> > > whatever
> > > speed you want to assign to the first spindle.)
> > > 
> > > However I suspect something else is aglay besides that, so I'll
> > > leave
> > > it
> > > to the experts. I did see you're on buster, but not what
> > > architecture.
> > > 
> > > Cheers, Gene Heskett.
> > From a quick look, in your .ini, your geometry line is xyz, 3
> > axises, but 
> you then define xyzab, 5 axises later, and the .hal is missing the A
> and 
> B stuffs. Its a bit short for a hal file too as many of the "net" 
> statements don't have enough arguments.
> 
> A net statement should have
> 
> net name-of-net <= src => target [target] [target]
> one src, and as many targets as you need
> and then later in the file if needed, you can:
> net same-name-as-above => target target 
> for additional fanout if needed.
> You can also do the second form in the postgui if needed if the
> target 
> doesn't exist until the gui is running.
> 
> My stuff is a bit like topsey, it grew and grew from hand added
> stuff, 
> and even my simplest lathe's hal file is 600 lines including
> comments, 
> with some approaching 1000 LOC but have line after line of comments
> so I 
> don't forget what I was doing 3 years later. Pleading guilty to being
> an 
> old fart who does not well remember what he did 3 years ago. At 87
> the 
> wet ram does not refresh as well as it did at 47. :(
> 
> The other thing I note is that you are using gedit as the editor,
> and 
> that may explain the short hal file. gedit likes to play 42 pickup
> with 
> your stuff whenthe deck has 52 cards, please uninstall gedit, and 
> install/use geany which doesn't have that bug. gedit looks nice, but
> it 
> will eat your lunch /and/ dinner fixing its faulty saves, get rid of
> it, 
> with prejudice. rm it on sight.
> 

The two config files .ini and .hal are generated by stepconf

I'm actually using mousepad and nano as editors.



> Cheers, Gene Heskett.



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


Re: [Emc-users] Axis configuration error

2022-01-28 Thread gene heskett
On Friday, January 28, 2022 5:13:33 AM EST Valerio Bellizzomi wrote:
> Attached are my .ini and .hal files.
> Can you tell me what is missing there?
> 
> On Thu, 2022-01-27 at 12:39 -0500, gene heskett wrote:
> > On Thursday, January 27, 2022 11:49:17 AM EST Valerio Bellizzomi
> > 
> > wrote:
> > > Do I have to somehow convert my configurations for master ?
> > 
> > IDK about your axis gui errors, but one thing I note is that you
> > don't
> > have a numerical spindle number. master had grown the ability to
> > control
> > more than one spindle some time back, and the S argument now expects
> > a
> > following number before the speed of the numerical assignment of the
> > spindle number. All my machines only have one, they start at base 0,
> > IDK
> > what the max is, so the argument for my stuff is S0 500 (or whatever
> > speed you want to assign to the first spindle.)
> > 
> > However I suspect something else is aglay besides that, so I'll leave
> > it
> > to the experts. I did see you're on buster, but not what
> > architecture.
> > 
> > Cheers, Gene Heskett.

>From a quick look, in your .ini, your geometry line is xyz, 3 axises, but 
you then define xyzab, 5 axises later, and the .hal is missing the A and 
B stuffs. Its a bit short for a hal file too as many of the "net" 
statements don't have enough arguments.

A net statement should have

net name-of-net <= src => target [target] [target]
one src, and as many targets as you need
and then later in the file if needed, you can:
net same-name-as-above => target target 
for additional fanout if needed.
You can also do the second form in the postgui if needed if the target 
doesn't exist until the gui is running.

My stuff is a bit like topsey, it grew and grew from hand added stuff, 
and even my simplest lathe's hal file is 600 lines including comments, 
with some approaching 1000 LOC but have line after line of comments so I 
don't forget what I was doing 3 years later. Pleading guilty to being an 
old fart who does not well remember what he did 3 years ago. At 87 the 
wet ram does not refresh as well as it did at 47. :(

The other thing I note is that you are using gedit as the editor, and 
that may explain the short hal file. gedit likes to play 42 pickup with 
your stuff whenthe deck has 52 cards, please uninstall gedit, and 
install/use geany which doesn't have that bug. gedit looks nice, but it 
will eat your lunch /and/ dinner fixing its faulty saves, get rid of it, 
with prejudice. rm it on sight.

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, 1940)
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] Axis configuration error

2022-01-28 Thread Valerio Bellizzomi
Attached are my .ini and .hal files.
Can you tell me what is missing there?



On Thu, 2022-01-27 at 12:39 -0500, gene heskett wrote:
> On Thursday, January 27, 2022 11:49:17 AM EST Valerio Bellizzomi
> wrote:
> > Do I have to somehow convert my configurations for master ?
> 
> IDK about your axis gui errors, but one thing I note is that you
> don't 
> have a numerical spindle number. master had grown the ability to
> control 
> more than one spindle some time back, and the S argument now expects
> a 
> following number before the speed of the numerical assignment of the 
> spindle number. All my machines only have one, they start at base 0,
> IDK 
> what the max is, so the argument for my stuff is S0 500 (or whatever 
> speed you want to assign to the first spindle.)
> 
> However I suspect something else is aglay besides that, so I'll leave
> it 
> to the experts. I did see you're on buster, but not what
> architecture.
> 
> Cheers, Gene Heskett.
# Generated by PNCconf at Tue Jun  9 15:20:50 2020
# Using LinuxCNC version:  UNAVAILABLE
# If you make changes to this file, they will be
# overwritten when you run PNCconf again

loadusr -Wn pyvcp pyvcp -c pyvcp [DISPLAY](PYVCP)
source postgui_call_list.hal
loadrt [KINS]KINEMATICS
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD 
num_joints=[KINS]JOINTS
loadrt hostmot2
loadrt hm2_pci config=" num_encoders=1 num_pwmgens=0 num_stepgens=5 
sserial_port_0=00" 
setphm2_5i25.0.watchdog.timeout_ns 500
loadrt pid names=pid.x,pid.y,pid.z,pid.a,pid.s
loadrt abs names=abs.spindle
loadrt lowpass names=lowpass.spindle

addf hm2_5i25.0.read  servo-thread
addf motion-command-handler   servo-thread
addf motion-controllerservo-thread
addf pid.x.do-pid-calcs   servo-thread
addf pid.y.do-pid-calcs   servo-thread
addf pid.z.do-pid-calcs   servo-thread
addf pid.a.do-pid-calcs   servo-thread
addf pid.s.do-pid-calcs   servo-thread
addf abs.spindle  servo-thread
addf lowpass.spindle  servo-thread
addf hm2_5i25.0.write servo-thread

# external output signals


# external input signals


#***
#  AXIS X JOINT 0
#***

setp   pid.x.Pgain [JOINT_0]P
setp   pid.x.Igain [JOINT_0]I
setp   pid.x.Dgain [JOINT_0]D
setp   pid.x.bias  [JOINT_0]BIAS
setp   pid.x.FF0   [JOINT_0]FF0
setp   pid.x.FF1   [JOINT_0]FF1
setp   pid.x.FF2   [JOINT_0]FF2
setp   pid.x.deadband  [JOINT_0]DEADBAND
setp   pid.x.maxoutput [JOINT_0]MAX_OUTPUT
setp   pid.x.error-previous-target true
setp   pid.x.maxerror .0005

net x-index-enable  <=> pid.x.index-enable
net x-enable=>  pid.x.enable
net x-pos-cmd   =>  pid.x.command
net x-pos-fb=>  pid.x.feedback
net x-output<=  pid.x.output

# Step Gen signals/setup

setp   hm2_5i25.0.stepgen.00.dirsetup[JOINT_0]DIRSETUP
setp   hm2_5i25.0.stepgen.00.dirhold [JOINT_0]DIRHOLD
setp   hm2_5i25.0.stepgen.00.steplen [JOINT_0]STEPLEN
setp   hm2_5i25.0.stepgen.00.stepspace   [JOINT_0]STEPSPACE
setp   hm2_5i25.0.stepgen.00.position-scale  [JOINT_0]STEP_SCALE
setp   hm2_5i25.0.stepgen.00.step_type0
setp   hm2_5i25.0.stepgen.00.control-type 1
setp   hm2_5i25.0.stepgen.00.maxaccel [JOINT_0]STEPGEN_MAXACCEL
setp   hm2_5i25.0.stepgen.00.maxvel   [JOINT_0]STEPGEN_MAXVEL

# ---closedloop stepper signals---

net x-pos-cmd<= joint.0.motor-pos-cmd
net x-vel-cmd<= joint.0.vel-cmd
net x-output <= hm2_5i25.0.stepgen.00.velocity-cmd
net x-pos-fb <= hm2_5i25.0.stepgen.00.position-fb
net x-pos-fb => joint.0.motor-pos-fb
net x-enable <= joint.0.amp-enable-out
net x-enable => hm2_5i25.0.stepgen.00.enable

# ---setup home / limit switch signals---

net x-home-sw =>  joint.0.home-sw-in
net x-neg-limit =>  joint.0.neg-lim-sw-in
net x-pos-limit =>  joint.0.pos-lim-sw-in

#***
#  AXIS Y JOINT 1
#***

setp   pid.y.Pgain [JOINT_1]P
setp   pid.y.Igain [JOINT_1]I
setp   pid.y.Dgain [JOINT_1]D
setp   pid.y.bias  [JOINT_1]BIAS
setp   pid.y.FF0   [JOINT_1]FF0
setp   pid.y.FF1   [JOINT_1]FF1
setp   pid.y.FF2   [JOINT_1]FF2
setp   pid.y.deadband  [JOINT_1]DEADBAND
setp   pid.y.maxoutput [JOINT_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-pos-fb=>  pid.y.feedback
net y-output<=  pid.y.output

# Step Gen signals/setup

setp   hm2_5i25.0.stepgen.01.dirsetup[JOINT_1]DIRSETUP
setp   hm2_5i25.0.stepgen.01.dirhold [JOINT_1]DIRHOLD
setp   hm2_5i25.0.stepgen.01.steplen [JOINT_1]STEPLEN
setp   hm2_5i25.0.stepgen.01.stepspace   [JOINT_1]STEPSPACE
setp   hm2_5i25.0.stepgen.01.position-scale  [JOINT_1]STEP_SCALE
setp   hm2_5i25.0.stepgen.01.step_type0
setp   hm2_5i25.0.stepgen.01.control-type 1