Advanced Search

Search Results (Searched for: )

  • 10K
  • 10K's Avatar
31 Jan 2025 21:20
Replied by 10K on topic Spindle Pulses Lost in System

Spindle Pulses Lost in System

Category: General LinuxCNC Questions

The counts are all negative, that is they get more negative when the spindle is turning. Same for the RPM. I have an entry in my postgui that flips it:
setp scale.0.gain 60
setp lowpass.0.gain 0.010000
net spindle-velocity-feedback-rps               => lowpass.0.in
net spindle-fb-filtered-rps      lowpass.0.out  => abs.0.in
net spindle-fb-filtered-abs-rps  abs.0.out      => scale.0.in
net spindle-fb-filtered-abs-rpm  scale.0.out    => gmoccapy.spindle_feedback_bar
  • PCW
  • PCW's Avatar
31 Jan 2025 21:09
Replied by PCW on topic Spindle Pulses Lost in System

Spindle Pulses Lost in System

Category: General LinuxCNC Questions

Check that the counts are going up (the count direction depends on the state of the 'B' encoder input)
  • tommylight
  • tommylight's Avatar
31 Jan 2025 21:06
Replied by tommylight on topic Brilliant Bambu Lab

Brilliant Bambu Lab

Category: Off Topic and Test Posts

More choices
  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
31 Jan 2025 20:55
Replied by Cant do this anymore bye all on topic The dumification of humanity through internet

The dumification of humanity through internet

Category: Off Topic and Test Posts

The Lunch box thing makes sense the creator is from Germany. As shown in the above post.
  • 10K
  • 10K's Avatar
31 Jan 2025 20:54
Replied by 10K on topic Spindle Pulses Lost in System

Spindle Pulses Lost in System

Category: General LinuxCNC Questions

I moved wires around on my BOB so that the encoders are connected to the proper inputs on the Mesa 7i92.. I made some changes to the .HAL file. I got several things working:

1) The spindle speed shows up on my display, and matches what I see on my separate DRO, even at 2,000 RPM.

2) Based on Tommylight's earlier question, I figured out why my HalScope was running at 250Hz (double click on samples button, and changed divisor from 4 to 1. That change made the missed pulses go away completely, and validated my cheap Chinese BOB was not glitching.This is the first time I've ever seen 180 pulses per revolution on the HalScope.

 

3) I used a stopwatch to time 10 seconds, and watched hm2_7i92.0.encoder.00.count. I had calculated I should get 1440 pulses in 10 seconds at 48 rpm, and that's almost exactly what the difference was in the pulse counts before and after. That means that all the pulses are all being seen! I figured out later that I also could just rotate the chuck by hand, and see 180 counts per revolution.

The only remaining problem I have is that something is mis-configured in my .HAL. When I try to thread, the cutter moves in to position, and is either not receiving the index pulse to start or the 180 pulses per revolution or both, and is not starting to thread.
loadrt [KINS]KINEMATICS
#autoconverted  trivkins
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS
loadrt pid names=pid.x,pid.z,pid.s
loadrt hostmot2
loadrt [HOSTMOT2]DRIVER config=[HOSTMOT2]CONFIG
#setp   hm2_7i92.0.watchdog.timeout_ns 25000000
setp   hm2_7i92.0.watchdog.timeout_ns 10000000
#loadrt encoder num_chan=1
loadrt abs count=1
#0-invert is used in pendant hal file
loadrt scale names=scale.0,0-invert
loadrt lowpass count=1

addf hm2_7i92.0.read              servo-thread
addf motion-command-handler       servo-thread
addf motion-controller            servo-thread
#addf encoder.update-counters     servo-thread
addf pid.x.do-pid-calcs           servo-thread
addf pid.z.do-pid-calcs           servo-thread
addf pid.s.do-pid-calcs           servo-thread
addf hm2_7i92.0.write             servo-thread
#addf encoder.capture-position     servo-thread
addf abs.0             servo-thread
addf scale.0             servo-thread
addf lowpass.0             servo-thread

# latch all stepgen position counts 50 usec before nominal read time (add per PCW):
setp hm2_7i92.0.dpll.01.timer-us -50
setp hm2_7i92.0.stepgen.timer-number 1

# increase tolerance to read errors
# setp hm2_7i92.0.packet-read-timeout 30 --removed per pcw 12/25/24
setp hm2_7i92.0.packet-error-limit 100

# ---setup spindle---

# set the HAL encoder to 180 pulses per revolution.
setp hm2_7i92.0.encoder.00.scale 180

# set the encoder to non-quadrature simple counting using A only.
setp hm2_7i92.0.encoder.00.counter-mode true

# connect the HAL encoder outputs to LinuxCNC
net spindle-position hm2_7i92.0.encoder.00.position => spindle.0.revs
net spindle-at-speed => spindle.0.at-speed
net spindle-velocity-feedback-rps hm2_7i92.0.encoder.00.velocity => spindle.0.speed-in
net spindle-index-enable hm2_7i92.0.encoder.00.index-enable <=> spindle.0.index-enable
net spindle-phase-a hm2_7i92.0.encoder.00.input-a
#net spindle-phase-b hm2_7i92.0.encoder.00.input-b
net spindle-index hm2_7i92.0.encoder.00.input-index

#  ---probe signal---

net probe motion.probe-input <= hm2_7i92.0.gpio.020.in

# --- ESTOP-EXT ---
net estop-ext     <=  hm2_7i92.0.gpio.014.in_not

# --- BOTH-HOME ---
net both-home-x     <=  hm2_7i92.0.gpio.016.in
net both-home-z     <=  hm2_7i92.0.gpio.003.in_not
  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
31 Jan 2025 20:50
Replied by Cant do this anymore bye all on topic The dumification of humanity through internet

The dumification of humanity through internet

Category: Off Topic and Test Posts

Ok once again its a regional thing.

Silicon was given the name Silicon in 1817 Thomas Thomson.

In 1787, Antoine Lavoisier suspected that silica might be an oxide of a fundamental chemical element,[18] but the chemical affinity of silicon for oxygen is high enough that he had no means to reduce the oxide and isolate the element.[19] After an attempt to isolate silicon in 1808, Sir Humphry Davy proposed the name "silicium" for silicon, from the Latin silex, silicis for flint, and adding the "-ium" ending because he believed it to be a metal.[20] Most other languages use transliterated forms of Davy's name, sometimes adapted to local phonology (e.g. German Silizium, Turkish silisyum, Catalan silici, Armenian Սիլիցիում or Silitzioum). A few others use instead a calque of the Latin root (e.g. Russian кремний, from кремень "flint"; Greek πυρίτιο from πυρ "fire"; Finnish pii from piikivi "flint", Czech křemík from křemen "quartz", "flint").
  • porshe
  • porshe
31 Jan 2025 18:55

New project, litehm2: a hostmot2 port to linsn rv901t

Category: Driver Boards

I didn't have a programmer at hand and found a very cheap option xilinx virtual cable. 
It flashes perfectly. You just need to solder another contact to the ground on the board.
TDI = 4, TDO = 5, TCK = 6, TMS = 7, GND
Author's page where you can download gitee.com/xiaowuzxc/ESP32-XVC
"Over-the-air" programming over ESP32-C3
For IMPACT ise configuration JTAG spartan 6 xc6slx16
Can also configure for programming in flash memory in impact
Your host can find out from any program for scanning the ip environment.On my phone WOM WIFI
For example IMPACT
xilinx_xvc host=host=192.168.0.103:2542 disableversioncheck=true
Warning: Spoiler!

If there is no ISE Xilinx there is a standalone programmer openFPGALoader
For openFPGALoader configuration spartan 6 xc6slx16
Write-flash JTAG to SPI bridge  -f

sudo openFPGALoader -c xvc-client --ip <your ip> --port 2542 --fpga-part xc6slx16 -f <your bit file>

Write-sram JTAG  -m
sudo openFPGALoader -c xvc-client --ip <your ip> --port 2542 --fpga-part xc6slx16 -m <your bit file>

For example

sudo openFPGALoader -c xvc-client --ip 192.168.0.103 --port 2542 --fpga-part xc6slx16 -f rv901t_4out__3stepgen_2enc_1pwm.bit
sudo openFPGALoader -c xvc-client --ip 192.168.0.103 --port 2542 --fpga-part xc6slx16 -m rv901t_4out__3stepgen_2enc_1pwm.bit

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

sudo apt install git gzip libftdi1-2 libftdi1-dev libhidapi-dev libudev-dev zlib1g-dev cmake pkg-config make g++
  
git clone github.com/trabucayre/openFPGALoader
cd openFPGALoader
mkdir build
cd build
cmake .. 
cmake --build .
sudo make install
Warning: Spoiler!
  • COFHAL
  • COFHAL
31 Jan 2025 18:31
Replied by COFHAL on topic AX58100

AX58100

Category: EtherCAT

The pins joint.0.motor-pos-cmd and joint.0.motor-pos-fb do not exist, the ones that do appear are join.0.motor-pos-cmd and join.0.motor-pos.fb, are those the ones I have to check with halscope? I have never used halscope, I will have to learn how to use it.
  • cmorley
  • cmorley
31 Jan 2025 18:28
Replied by cmorley on topic 2.9.4 error prevents start

2.9.4 error prevents start

Category: Qtvcp

Are you using any qtdragon customizations?
  • PCW
  • PCW's Avatar
31 Jan 2025 17:59 - 31 Jan 2025 18:00

Koike Aronson Plasma Conversion - sanity check on Mesa board selection?

Category: Driver Boards

You would need to look at the hal and ini files to see how those constants are used
(some may not even be used, as there's normally a lot of "boilerplate" in hal/ini files)
  • PCW
  • PCW's Avatar
31 Jan 2025 17:57
Replied by PCW on topic Hal configuration for BISS encoder

Hal configuration for BISS encoder

Category: HAL

1. There's no need to load firmware in the hal file as 5I25s store firmware permanently on the card

2. Any bit shift error needs to be corrected in the format string (that's the  purpose of the format string)

3. You need the encoder specific information to create a format string that matches your encoder
  • gwond
  • gwond
31 Jan 2025 17:55

Koike Aronson Plasma Conversion - sanity check on Mesa board selection?

Category: Driver Boards

Thanks, that makes sense to me.  I think for now it makes sense to keep the PID values in voltage.  However, I'm still confused on the difference between Scale and Analog Scale Max.  Should the number be 10 for both if the PID is in voltage rather than velocity.
  • Aciera
  • Aciera's Avatar
31 Jan 2025 17:52

Kinematik Datei - Berechnung für B-Achse hinzufügen

Category: Deutsch

Ja neue halpins kannst du analog den bestehenden Pins in der selben Datei definieren.
  • tommylight
  • tommylight's Avatar
31 Jan 2025 17:29
Replied by tommylight on topic Brilliant Bambu Lab

Brilliant Bambu Lab

Category: Off Topic and Test Posts

This was quite good timing

Notice to MK4S owners, the hit to make a Core One from MK4S is 400 something $. so do check that option.
  • tommylight
  • tommylight's Avatar
31 Jan 2025 16:50
Replied by tommylight on topic RPi5 Test images

RPi5 Test images

Category: Installing LinuxCNC

Dang it, i did vaguely recall someone or you mentioning this before, but i was not sure.
Displaying 18661 - 18675 out of 21683 results.
Time to create page: 0.549 seconds
Powered by Kunena Forum