#linuxcnc Logs
Jan 31 2024
#linuxcnc Calendar
04:44 AM JT-Cave: pgrep -l linuxcnc
04:57 AM Tom_L: what's that do?
04:57 AM JT-Cave: try that on rtai
04:57 AM Tom_L: later this am
04:57 AM JT-Cave: This command will list all running processes along with their respective process IDs
04:57 AM JT-Cave: broken
04:57 AM Tom_L: takes a bit to catch up
04:57 AM JT-Cave: john@cave:~$ pgrep -l linuxcnc
04:57 AM JT-Cave: 159216 linuxcnc
04:57 AM JT-Cave: 159528 linuxcncsvr
05:47 PM * JT-Shop calls it a day
05:47 PM lcnc-relay: <schoch_> xxcoder: it isn't raspi specific
05:48 PM Tom_L: high 60's here today
05:48 PM lcnc-relay: <schoch_> well, if you are using the udp module, I don't think it is raspi specific
05:48 PM lcnc-relay: <schoch_> i have g33 working, but g96 just doesn't do anything... maybe something with the fusion360 post?
05:48 PM XXCoder: I know, just curious if I saw it correctly and it was that rpi keyboard thing
05:48 PM XXCoder: forgot what model name it was. p something?
05:49 PM lcnc-relay: <schoch_> rio
05:50 PM lcnc-relay: <schoch_> oh, the r pi keyboard?
05:50 PM lcnc-relay: <schoch_> i hvae no idea
05:50 PM XXCoder: ah yes raspberry pi 400
05:50 PM lcnc-relay: <schoch_> i'm using a tang nano 9k for the fpga
05:52 PM lcnc-relay: <schoch_> it connects to linuxcnc via udp over ethernet
06:27 PM XXCoder: I wonder if there will be rpi5 version of that keyboard thing
06:27 PM lcnc-relay: <big_kevin420> schoch_ (@_discord_787844626077712384:jauriarts.org)
06:27 PM lcnc-relay: <big_kevin420> i hope so
06:27 PM lcnc-relay: <big_kevin420> schoch_ (@_discord_787844626077712384:jauriarts.org) does the encoder output, and you need it to be RPM/ velocity>?
07:13 PM Tom_L: G10 L1 P#<_current_tool> Z#<_z>
07:13 PM Tom_L: cool, it actually worked
07:17 PM Tom_L: question: is the tool offset a number from machine Z0 down or from G54 Z0 up?
07:25 PM Tom_L: ie:G10 L1 P#<_current_tool> Z[#<_abs_z> - #<_z>]
07:25 PM Tom_L: which produces a negative number
07:26 PM Tom_L: anyway, the test worked now to figure out which is the right one but i'm not going to the shop tonight
07:37 PM lcnc-relay: <schoch_> big_kevin420 (@_discord_848368676289773618:jauriarts.org) i have no velocity signal and it doesn't seem there is an obvious way to have linux cnc calculate the RPS from the position data. Being 100%
07:37 PM lcnc-relay: <schoch_> newb, id guess that some function in the servo thread could keep the previous position, and compare the current position and do some smoothing and give back a RPS.
07:38 PM lcnc-relay: <schoch_> https://jauriarts.org/_matrix/media/v1/download/jauriarts.org/PBkPMHYbZFIHSFviWlaOsQhU
07:38 PM lcnc-relay: <schoch_> the only thing that updates is the position
07:38 PM lcnc-relay: <schoch_> the FPGA module doesn't calculate RPS or any velocity
07:42 PM lcnc-relay: <schoch_> g33 works, g96 nope
07:42 PM lcnc-relay: <big_kevin420> ok
07:42 PM lcnc-relay: <big_kevin420> check this one out
07:43 PM lcnc-relay: <big_kevin420> https://github.com/cakeslob/Remora/blob/nucleo_static/LinuxCNC/ConfigSamples/remora-xy_nuc_q/remora-xyz.hal#L67
07:43 PM lcnc-relay: <big_kevin420> i think i had to do the same thing before
07:44 PM lcnc-relay: <schoch_> which lines?
07:44 PM lcnc-relay: <big_kevin420> uhh
07:44 PM lcnc-relay: <big_kevin420> follow the money
07:44 PM lcnc-relay: <big_kevin420> not sure
07:44 PM lcnc-relay: <schoch_> maybe 116..125?
07:45 PM lcnc-relay: <big_kevin420> but the signals coming out are probably similar
07:45 PM lcnc-relay: <big_kevin420> because remora does the same thing
07:45 PM lcnc-relay: <big_kevin420> so i had to do what ever is in the hal file to get velocity/rpm
07:47 PM lcnc-relay: <schoch_> i have no encoder.0.velocity though
07:47 PM lcnc-relay: <schoch_> it looks like that gets fed into a filter
07:48 PM lcnc-relay: <schoch_> i have issue on github, will wait for Oliver to get back to me. I don't think he's tested G96. it seems he had RPM in there previously but took it out for some reason.
07:57 PM Tom_L: ok, tested that and G10 L1 P#<_current_tool> Z#<_z> is the correct one
07:57 PM XXCoder: always good to test stuff out and know for sure
09:40 PM lcnc-relay: <skunkworks8841> https://www.youtube.com/watch?v=ejFw3V3sy2w
10:05 PM Tom_L: dammit i wish i knew pyton
10:05 PM Tom_L: python
10:05 PM XXCoder: isnt python pretty strightforward?
10:06 PM Tom_L: not if you're not used to it
10:07 PM XXCoder: I suppose not
10:08 PM Tom_L: i can somewhat follow what's going on but don't know the syntax or alot of the 'inheritance' stuff
10:08 PM Tom_L: or how to pass parameters to linuxcnc with it
10:09 PM Tom_L: i added a button and think i know how to connect it to the code but don't know how to write the code
10:09 PM Tom_L: :)
10:09 PM XXCoder: true it takes a bit to fully understand a language
10:46 PM norias: depends on your perspective, too
10:46 PM norias: i love programming in C and C++
10:46 PM norias: python is ass backwards to me
10:47 PM norias: i can make it do stuff, but not well