Advanced Search

Search Results (Searched for: )

  • PCW
  • PCW's Avatar
13 Apr 2024 14:52

Mesa card 7i90 xilinx PhysDesignRules:2410

Category: Driver Boards

If you are using ISE >13.1 it only matters if encryption is used (its not)
I actually don't think it matters even on ISE < 13.2 as it seem more related
to Xilinx's core generator (which the source does not use for portability reasons)
  • TangentAudio
  • TangentAudio
13 Apr 2024 14:37

Dual PID loops with motor encoder + scale encoder per axis

Category: Advanced Configuration

One thing I'm questioning is whether both the inner and outer PIDs should receive the same position command signal. It isn't really shown explicitly in the simplified Galil drawing, though the wiki example definitely does it this way.

Also, I want to make sure I understand the nomenclature. I think I wrongfully assumed this type of dual loop was a velocity loop (inner) and position loop (outer), but the outputs from both loops are velocities, so I think that's wrong. You can see my confusion in the initial configs I posted as I called the PIDs "vx" and "px".

Next up, the Prototrak DC servo amps are PWM input -> motor output voltage. Varying the voltage on an unloaded DC motor varies its speed (velocity). These are just amps and not closed loop drives - the motor encoder output just comes straight into the Mesa card. I am a bit confused on whether this is called "velocity mode," however. Is that term reserved for a drive which itself runs a loop with the motor encoder to maintain the commanded velocity?

Which leads me to wondering whether the velocity outputs from the motor encoders should be used. Andy, you kind of hinted at that the other day. I'm curious how you would see that fitting into this diagram.

Thanks in advance.
  • telmoram
  • telmoram
13 Apr 2024 14:14 - 13 Apr 2024 14:15

Mesa card 7i90 xilinx PhysDesignRules:2410

Category: Driver Boards

Hello, please can you help me, I make the config file and use ise desing 14.5 and got the warnig

PhysDesignRules:2410 - This design is using one or more 9K Block RAMs (RAMB8BWER).  9K Block RAM initialization data, both user defined and default, may be incorrect and should not be used.  For more information, please reference Xilinx Answer Record 39999.

Does this warning affect normal operation?
Thanks.
  • gilesclement
  • gilesclement
13 Apr 2024 14:10
Replied by gilesclement on topic M19 spindle orientation on slant pro lathe

M19 spindle orientation on slant pro lathe

Category: PathPilot

I'm also curious about using M19 for broaching on a 3 axis mill running a servo spindle. Seems like it should work but not sure how to execute.
  • TangentAudio
  • TangentAudio
13 Apr 2024 14:05

Dual PID loops with motor encoder + scale encoder per axis

Category: Advanced Configuration

It's been a busy week here, but I'm still working to wrap my head around this.  I posted a link earlier to a Galil video about dual loop compensation, and finally had a chance to watch it in detail.  It gives a good overview of the approaches and problems.  The proposed "improved dual loop" seems to be more or less the same approach that was described rather sparsely in the wiki.

Here's the video again: www.galil.com/learn/online-videos/dual-l...compensation-methods

And my re-drawing of their simplified dual loop.

 

To better my understanding I've been working through the process of translating that simplified loop to show the actual relevant HAL components and signals.  Here's my first approach.  It's much easier to understand and learn in diagram form than just seeing it as a pile of HAL commands.

 

I have not yet taken this back down to my shop to rework the config to match the drawing, but hopefully this weekend.  Anyone see any glaring mistakes or have other comments?

cheers,
Steve
  • PCW
  • PCW's Avatar
13 Apr 2024 14:01
Replied by PCW on topic Mesa 7i96S SSERIAL and pktuart

Mesa 7i96S SSERIAL and pktuart

Category: Driver Boards

It's probably:

addf mesa_ifm.00 servo-thread

If in doubt about function names, run linuxcnc with a working
configuration with the desired components loaded and then
run this command (in a terminal):

halcmd show funct
 
  • trisa25
  • trisa25
13 Apr 2024 12:57
Replied by trisa25 on topic Problems with Lichuan Ethercat servo drive

Problems with Lichuan Ethercat servo drive

Category: EtherCAT

Thank you, will try tommorow and report back.

Kind regards,
Jan
  • lkavan
  • lkavan
13 Apr 2024 11:54
Replied by lkavan on topic Mesa 7i96S SSERIAL and pktuart

Mesa 7i96S SSERIAL and pktuart

Category: Driver Boards

First of all: I am sorry, you was right I have problem in HAL: I forgot # before addf ;-) But when I enabled addf, lcnc cannot start, becouse cannot find function. I didn't found GS10 driver as you have, so I have tried to test example: modcompile relayboard.mod. It was compiled, installed, but the same problemn with addf. when I disable addf and leave loadrt only, lcnc starts and I see relayboard in halshow, not work, of course.
Found file(REL): ./custom.hal
HAL: ERROR: function 'relayboard' not found
./custom.hal:58: addf failed
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
USRMOT: ERROR: command 3 timeout
HAL: ERROR: component 0 not found
hm2_eth: in hm2_eth_reset
hm2_eth: HostMot2 ethernet driver unloaded
hm2: unloading
my custom.hal:
l# Include your custom HAL commands here
# This file will not be overwritten when you run PNCconf again

loadrt threads name1=pwm-thread period1=1000000 fp1=1

# --- Teploty Libor ---
# *** nastaveni rozsahu analogovych vstupu
setp hm2_7i96s.0.7i87.0.0.analogin0-scalemax 750
setp hm2_7i96s.0.7i87.0.0.analogin1-scalemax 750

#loadrt pid num_chan=1
addf pid.tb.do-pid-calcs servo-thread

loadrt pwmgen output_type=0
addf pwmgen.update pwm-thread
addf pwmgen.make-pulses servo-thread

newsig temp_bath_enable bit
sets temp_bath_enable FALSE
net temp_bath_enable => pid.tb.enable
net temp_bath_enable => pwmgen.0.enable
net temp_bath_set => pid.tb.command
net temp_bath_pidout pid.tb.output => pwmgen.0.value
net temp_bath_pwmout pwmgen.0.pwm => hm2_7i96s.0.7i87.0.0.output-00

net temp_bath <= hm2_7i96s.0.7i87.0.0.analogin0 => pid.tb.feedback
# net emcmot.01.enable => hm2_[HOSTMOT2](BOARD).0.pwmgen.01.enable
# net emcmot.01.enable <= axis.1.amp-enable-out

# set PID loop gains from inifile
setp pid.tb.Pgain [TEMP_BATH]P
setp pid.tb.Igain [TEMP_BATH]I
setp pid.tb.Dgain [TEMP_BATH]D
setp pid.tb.bias [TEMP_BATH]BIAS
setp pid.tb.FF0 [TEMP_BATH]FF0
setp pid.tb.FF1 [TEMP_BATH]FF1
setp pid.tb.FF2 [TEMP_BATH]FF2
setp pid.tb.deadband [TEMP_BATH]DEADBAND
setp pid.tb.maxoutput [TEMP_BATH]MAX_OUTPUT

setp pwmgen.0.scale [TEMP_BATH]PWM_SCALE
setp pwmgen.0.pwm-freq [TEMP_BATH]PWM_FREQ
setp pwmgen.0.dither-pwm [TEMP_BATH]PWM_DITHER
setp pwmgen.0.max-dc [TEMP_BATH]PWM_MAX_DC
setp pwmgen.0.min-dc [TEMP_BATH]PWM_MIN_DC


#setp pid.tb.command 50

# Predehrev
net temp_preheat <= hm2_7i96s.0.7i87.0.0.analogin1

#
IFM bus
#loadrt mesa_ifm ports=hm2_7i96s.0.pktuart.0
#addf mesa_ifm servo-thread

loadrt relayboard ports=hm2_7i96s.0.pktuart.0
addf relayboard servo-thread
  • bkt
  • bkt's Avatar
13 Apr 2024 10:08 - 13 Apr 2024 10:09
Replied by bkt on topic LinuxCNC on Linux Mint Debian Edition 6

LinuxCNC on Linux Mint Debian Edition 6

Category: Installing LinuxCNC

Need to enable dmks r8168 driver here?

DEVICE_MODULES="generic" <

never done what need to write?


#------------------------------------------------------------------------------
#
#  EtherCAT master configuration file for use with ethercatctl.
#
#  $Id$
#
#  vim: spelllang=en spell tw=78
#
#------------------------------------------------------------------------------

#
# Main Ethernet devices.
#
# The MASTER<X>_DEVICE variable specifies the Ethernet device for a master
# with index 'X'.
#
# Specify the MAC address (hexadecimal with colons) of the Ethernet device to
# use. Example: "00:00:08:44:ab:66"
#
# Alternatively, a network interface name can be specified. The interface
# name will be resolved to a MAC address using the 'ip' command.
# Example: "eth0"
#
# The broadcast address "ff:ff:ff:ff:ff:ff" has a special meaning: It tells
# the master to accept the first device offered by any Ethernet driver.
#
# The MASTER<X>_DEVICE variables also determine, how many masters will be
# created: A non-empty variable MASTER0_DEVICE will create one master, adding a
# non-empty variable MASTER1_DEVICE will create a second master, and so on.
#
# Examples:
# MASTER0_DEVICE="00:00:08:44:ab:66"
# MASTER0_DEVICE="eth0"
#
MASTER0_DEVICE="68:1D:EF:38:F0:48"
#MASTER0_DEVICE="enp3s0"
#MASTER1_DEVICE=""

#
# Backup Ethernet devices
#
# The MASTER<X>_BACKUP variables specify the devices used for redundancy. They
# behaves nearly the same as the MASTER<X>_DEVICE variable, except that it
# does not interpret the ff:ff:ff:ff:ff:ff address.
#
#MASTER0_BACKUP=""

#
# Ethernet driver modules to use for EtherCAT operation.
#
# Specify a non-empty list of Ethernet drivers, that shall be used for
# EtherCAT operation.
#
# Except for the generic Ethernet driver module, the init script will try to
# unload the usual Ethernet driver modules in the list and replace them with
# the EtherCAT-capable ones. If a certain (EtherCAT-capable) driver is not
# found, a warning will appear.
#
# Possible values: 8139too, e100, e1000, e1000e, r8169, generic, ccat, igb, igc.
# Separate multiple drivers with spaces.
#
# Note: The e100, e1000, e1000e, r8169, ccat, igb and igc drivers are not built by
# default. Enable them with the --enable-<driver> configure switches.
#
# Attention: When using the generic driver, the corresponding Ethernet device
# has to be activated (with OS methods, for example 'ip link set ethX up'),
# before the master is started, otherwise all frames will time out.
#
DEVICE_MODULES="generic"

#
# Flags for loading kernel modules.
#
# This can usually be left empty. Adjust this variable, if you have problems
# with module loading.
#
#MODPROBE_FLAGS="-b"

#------------------------------------------------------------------------------
  • rodw
  • rodw's Avatar
13 Apr 2024 09:24
Replied by rodw on topic LinuxCNC on Linux Mint Debian Edition 6

LinuxCNC on Linux Mint Debian Edition 6

Category: Installing LinuxCNC

This could be an error in /etc/ethercat.conf
Please share your file
  • bkt
  • bkt's Avatar
13 Apr 2024 08:01 - 13 Apr 2024 08:02
Replied by bkt on topic LinuxCNC on Linux Mint Debian Edition 6

LinuxCNC on Linux Mint Debian Edition 6

Category: Installing LinuxCNC

for sure not set Ip adress manually and all enp3s0 is atumatic ... only ipv6 is disable .. like my other pc ethercat .... but not think is these the problem ... about these link up and down ..


r8168: enp3s0: link down
EtherCAT 0: Link state of ecm0 changed to DOWN.
r8168: enp3s0: link up
 
  • bkt
  • bkt's Avatar
13 Apr 2024 07:55
Replied by bkt on topic LinuxCNC on Linux Mint Debian Edition 6

LinuxCNC on Linux Mint Debian Edition 6

Category: Installing LinuxCNC

really .... whitout nothing doing after second reboot I have my ethercat running .... actually i have not an xml config running only an ek1100 + some el1008 and el2008 connecting to the system for latency test pourpuse ....
  1. after dmsk driver install latency test give me better result with min/max more or less 27usec ans svdev of 3.2usec .... previously with same q.ty of glxgear running I have min/max around 80usec .....
  2. as image attach show i have continuosly an snp3s0 connection activaction failed (that is ethercat line) with a lot of error on dmesg list ..... on dmesg as you can see I have unlink enp3s0 than link again .... why these? someone have some ideas why these? ... first time for me.
attach as spoiler dmesg text ...

Warning: Spoiler!
  • karlhe
  • karlhe
  • rdtsc
  • rdtsc's Avatar
13 Apr 2024 03:30

rpi-4-debian-bookworm-6.1.54-rt15-arm64-ext4-2023-11-17-1731.img - TigerVNC?

Category: Installing LinuxCNC

Nice BHar, thanks for sharing. Gave that a shot; sure enough it works! Awesome.

Wanted to mention that I got autologin working by editing /etc/lightdm/lightdm.conf and changing `#autologin-user=` to `autologin-user=cnc`. There's also some settings in there for VNC but they seemed irrelevant (for tigervncserver anyways.)
  • JusKeepSwimming
  • JusKeepSwimming
13 Apr 2024 03:15
Replied by JusKeepSwimming on topic 7i95T newb advice

7i95T newb advice

Category: PnCConf Wizard

Ok I sorted it, was a setting on the driver... like an stupid one. Thanks heaps everyone, I was going to dark places there. Now I got to sort out the dual motors on 1 axis, some are jogging only one direction, and the scale is wrong. And homing. I got alot to do, briefly seen other peoples topics on these while running around in circles so I will be a while with that. Thanks heaps
Displaying 26341 - 26355 out of 26761 results.
Time to create page: 1.259 seconds
Powered by Kunena Forum