#hazzy Logs

May 06 2020

#hazzy Calendar

01:07 AM JamesW[m]: ok - new gui is now functional enough to start using it as my primary gui
01:43 AM TurBoss: good mornin
01:43 AM TurBoss: g
02:50 AM JamesW[m]: morning
02:51 AM JamesW[m]: or is it evening. lol
02:51 AM TurBoss: duno
02:51 AM TurBoss: hello
02:52 AM JamesW: well it will be one or other somewhere :)
02:52 AM TurBoss: is you GUI functional? hurray!
02:52 AM TurBoss: its 9:51 am
02:52 AM JamesW: yup.
02:52 AM JamesW: 7:52pm where I am
02:54 AM JamesW: yeah - GUI has all the core stuff I need. jog, work co-ord setting, tool table, MDI, plot, manual touch off, manual tool change and auto remeasure, file load, dro, spindle control, home/unhome
02:57 AM JamesW: I'm starting to get into the bling now
02:59 AM TurBoss: was bling tunning?
03:00 AM JamesW: bling == non essential flashy stuff
03:01 AM JamesW: but in fairness some things I see as bling others would see as important
03:01 AM TurBoss: :)
03:01 AM TurBoss: ah i remember
03:02 AM JamesW: e.g. probe routines
03:04 AM JamesW: been working on making the gui clearer, more obvious what state something is in.
03:04 AM JamesW: big tidy up i the css so is easier/cleaner to change different sections.
03:45 AM JamesW[m]: latest gui overview: https://drive.google.com/open?id=1NKFGheYJj3H1ilZ2A08LEWO8kJnmZLyV
04:27 AM TurBoss4184[m]: oh ita actually a video
04:27 AM TurBoss4184[m]: 😮
04:29 AM JamesW[m]: lol - yes
04:30 AM JamesW[m]: kind of hard to show all the parts without moving pictures
04:30 AM TurBoss4184[m]: amazing
04:32 AM JamesW[m]: testament to framework to have been able to go from zero a week or so ago to this
04:33 AM JamesW[m]: and the examples available
04:35 AM TurBoss: can you link the github ?
04:35 AM JamesW: https://github.com/joco-nz/bf20_mill
04:37 AM JamesW[m]: willleverage the probe_basic for the probing. Ideally that aspect would be a contained widget but looks like will need to link it all together.
04:37 AM TurBoss: cool
04:38 AM JamesW[m]: but that is later.
04:38 AM JamesW[m]: I need to make a probe first :)
04:38 AM TurBoss: what?
04:38 AM TurBoss: sorry i didn't understand
04:42 AM JamesW[m]: Well I have a tool length probe. made that. But to I need to make something like ....
04:44 AM * JamesW[m] uploaded an image: image.png (270KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/CYwVHwhQMPOACRvTXYlhXkIg >
04:45 AM JamesW[m]: no much point spending time on building in the probe routines until I have a probe to test/debug with. :)
04:48 AM TurBoss: :D
04:48 AM TurBoss: JamesW: there is no editor?
04:50 AM JamesW[m]: editor for gcode?
04:51 AM TurBoss: yes
04:51 AM TurBoss: iis ok if you don't need it
04:51 AM JamesW[m]: not yet. Plan to but I have yet to edit gcode in the gui
04:53 AM JamesW[m]: might already be there with the functionality for the gcode viewer
04:53 AM TurBoss: oh I'm blind
04:53 AM TurBoss: its there
04:53 AM TurBoss: the viewer
04:53 AM JamesW: yeah - just need to enable editing in it when in manual mode.
05:04 AM JamesW: interesting. Even though edit code in the viewer it's still running the original code. Wonder if need to force some kind of save or refresh or something.
05:06 AM JT-Cave: morning
05:13 AM JamesW: morning
05:18 AM TurBoss: morning JT
05:31 AM JT-Cave: morning TurBoss
05:38 AM JamesW[m]: is there an example for how to use the gcode editor?
05:39 AM JamesW[m]: I can see from the code I need to set the filename to be saved. This setter has a slot decorator but I am not seeing the slot available in the signals/slot panel in desiger
05:41 AM JamesW[m]: from what I can see, when I load gcode and change it in the viewer/editor this does not present what is run. The code being executed is still what is on disk. So I am guessing I need to save the changes for them to be in effect on Run
05:44 AM JamesW[m]: hmmm ... so designer shows different slots depending on what is sending the signal. See the filename setting if signal is coming from something based off QLabel
07:15 AM hazzy-m: JamesW: the GcodeEditor needs work ...
09:00 AM hazzy-m: new video
09:35 AM hazzy-m: Nice*
09:44 AM roguish[m]: hazzy: video? what video????
10:15 AM TurBoss: > latest gui overview: https://drive.google.com/open?id=1NKFGheYJj3H1ilZ2A08LEWO8kJnmZLyV
10:15 AM TurBoss: this one roguish
10:16 AM TurBoss: wow a friend of mine just got a computer worm
10:16 AM TurBoss: his work compromised lol
10:17 AM TurBoss: their binaries where shipping more worms
10:17 AM TurBoss: windows of course
10:52 AM roguish[m]: TurBoss: hey, are you helping over in -devel ???
10:52 AM TurBoss: not much
10:53 AM roguish[m]: every bit helps. THANKS.
10:53 AM TurBoss: :(
10:53 AM TurBoss: just got linuxcnc to compile and tried to ran some qtpyvcps
10:54 AM TurBoss: thanks roguish
10:56 AM TurBoss: I don't know the other UIs enought to start changin things
12:23 PM -!- #hazzy mode set to +o by ChanServ
01:51 PM JamesW[m]: Morning
01:59 PM TurBoss: hello
02:36 PM Lcvette: hola o/
02:36 PM Lcvette: TurBoss: how are you turboss?
02:36 PM TurBoss: hola
02:36 PM TurBoss: fine here
02:37 PM Lcvette: great!!
02:37 PM Lcvette: are they lifting the stay home order there?
03:02 PM TurBoss: yes
03:02 PM TurBoss: or no
03:02 PM TurBoss: duno what lifting means
03:02 PM TurBoss: lol
03:03 PM TurBoss: no 15 day more
03:03 PM TurBoss: but we are allowed to wal some hours
03:03 PM TurBoss: * but we are allowed to walk some hours
03:46 PM Lcvette: thats good at least!!
03:46 PM Lcvette: lcvette is setting up the lathe
03:46 PM Lcvette: so i can finally get back to PB lathe screens
03:46 PM Lcvette: setting up the vfd right now
03:46 PM Lcvette: then need to amke config for the lathe
03:47 PM Lcvette: * then need to make config for the lathe
03:47 PM TurBoss: cool!
03:47 PM Lcvette: * then need to make config for the lathe
03:47 PM Lcvette: going to set it up in Gmoccapy first
03:47 PM Lcvette: because i don't remember what in lathe is needed..lol :(
03:50 PM Lcvette: do you remember what the 7i76 spindle control opwm carrier frequency is?
03:52 PM TurBoss: for spindle? i dont use
03:52 PM TurBoss: mine is manual
03:53 PM Lcvette: /o\
03:53 PM Lcvette: lol
03:54 PM Lcvette: is pcw_home in here today?
03:54 PM Lcvette: or JT
03:54 PM Lcvette: ?
04:01 PM JamesW[m]: ummm ,,, isn't the 7i76 using an analogue signal of 0-10v?
04:03 PM JamesW[m]: I'm using it to control my mill spindle and that is all done by splicing into the speed pot
04:04 PM Lcvette: but it rides on a carrier pwm
04:04 PM Lcvette: i thought
04:05 PM Lcvette: my drive has a setting to set the pwm carrier frequency for the analog input
04:05 PM * Lcvette uploaded an image: Screenshot_2020-05-06_17-03-51.png (35KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/lBYvBXRVBzIblXOdTtKwaLxy >
04:06 PM JamesW[m]: oh - not sure about the carrier pwm angle
04:06 PM Lcvette: which number do i put in the pnccnc setting?
04:06 PM JamesW[m]: that's a good latency test - what kit you running that on? Assume RT not RATI
04:06 PM JamesW[m]: 20384
04:07 PM Lcvette: preempt rt
04:07 PM JamesW[m]: whack in 25000
04:07 PM JamesW[m]: that speed is good enough to software stepping
04:08 PM JamesW[m]: which screenin pcconf you looking at?
04:09 PM * Lcvette uploaded an image: Screenshot_2020-05-06_17-08-38.png (310KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/sLsNDyrCVFcjesgRWbPYjNim >
04:10 PM Lcvette: thats with several browser windows, youtube playing high def and 10 glx gears running
04:10 PM JamesW[m]: hmmm ... let me power up my machine to see what I put where
04:10 PM JamesW[m]: been a while
04:10 PM Lcvette: sweet, thanks!
04:11 PM Lcvette: its been a long time since i did a config from scratch and have a bad case of CRS
04:16 PM JamesW[m]: on mine I just left it at 1000000
04:16 PM JamesW[m]: and it works fine
04:16 PM * Lcvette uploaded an image: Screenshot_2020-05-06_17-15-56.png (78KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/MkHNeyyZocrQDKxTEotXXOum >
04:17 PM Lcvette: this shows a pwm base frequency of 20000hz
04:17 PM Lcvette: my drive won't go above 15khz
04:17 PM JamesW[m]: run with that and see
04:17 PM JamesW[m]: oh
04:17 PM Lcvette: and this won't let me change the 20000hz setting
04:18 PM JamesW[m]: well I guess you could test it on 15kHz and see what happens?
04:18 PM Lcvette: @pcw_mesa any ideas?
04:18 PM TurBoss: oh
04:18 PM TurBoss: sorry now i get
04:19 PM TurBoss: servothread less that 100000
04:19 PM TurBoss: jitter
04:19 PM TurBoss: > do you remember what the 7i76 spindle control opwm carrier frequency is?
04:19 PM TurBoss: didn't get this early
04:19 PM TurBoss: * > do you remember what the 7i76 spindle control opwm carrier frequency is?
04:19 PM TurBoss: didn't get this before
04:20 PM Lcvette: im not sure if it matters or not
04:20 PM TurBoss: not the same?
04:20 PM Lcvette: just thought it would be good for them to match
04:20 PM Lcvette: two different things
04:20 PM Lcvette: :D
04:20 PM TurBoss: ok /me is idio
04:20 PM TurBoss: t
05:00 PM Lcvette: trying to find these closed loop stepper drive timings JMC 2HSS86H from Just Motion Control JMC
05:01 PM Lcvette: any ideas on step timings?
05:44 PM TurBoss: https://www.jmc-motor.com/file/1806081666.pdf
05:44 PM TurBoss: page 13
05:48 PM Lcvette: \o/
05:48 PM Lcvette: so how do i make that numbers to put into the settings table?
05:49 PM Lcvette: TurBoss: ^^^
05:49 PM Lcvette: :o
05:49 PM TurBoss: what fields require
05:49 PM TurBoss: screenshot pls
05:49 PM TurBoss: .P
05:49 PM TurBoss: is that the ini?
05:49 PM TurBoss: or pncconf?
05:49 PM * Lcvette uploaded an image: Screenshot_2020-05-06_18-48-56.png (66KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/yGklErASIhqfguycpeTCKFlD >
05:49 PM Lcvette: pnccnc
05:50 PM TurBoss: ok
05:50 PM Lcvette: i don't know what they are
05:51 PM JamesW[m]: what are you lookig to set?
05:51 PM JamesW[m]: the Stepper Info block? The data for that is on page 13 of the manual
05:51 PM TurBoss: steooer Info=
05:52 PM Lcvette: don't laugh but i know nothing about stuff like that
05:52 PM Lcvette: im not sure how to take that information and make it useable entries
05:52 PM JamesW[m]: ok - let me read and will give some guidance
05:52 PM Lcvette: \o/
05:52 PM Lcvette: hurray, thank you!
05:53 PM JamesW[m]: ok- the default values will actually work.
05:53 PM JamesW[m]: as they are all higher than the min values
05:55 PM JamesW[m]: the min values for Step On and Step Space is 2500
05:56 PM Lcvette: Oh
05:56 PM Lcvette: Ok
05:56 PM Lcvette: Not supposed to be better?
05:58 PM JamesW[m]: these numbers relate to the length of time the Step and Direction pulses
05:59 PM JamesW[m]: For Step you are telling the system the time to hold the pulse high and the gap needed between high pulses.
05:59 PM JamesW[m]: The min value the driver can cope with is 2500
05:59 PM JamesW[m]: For the Direction setting you need to set how long the Dir signal needs to either High or Low before the Step pulses start. The min value the driver can cope with is 6000
06:00 PM Lcvette: ok
06:00 PM Lcvette: soo
06:01 PM Lcvette: is it better to set them maybe closer to 3000
06:01 PM JamesW[m]: in this case I would treat the DIr Hold the same as Dir Setup
06:02 PM JamesW[m]: yeah - for some margin go with 3000 on the Pulses and say 6500 or 7000 on the Dir settings
06:02 PM JamesW[m]: unless you are going to be pushing your steppers into some seriously high rpms these should be pretty good
06:03 PM JamesW[m]: and bluntly any faster your driver wont cope
06:03 PM * Lcvette sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/wdTsokkgyIZhgWLARPiWQquu >
06:03 PM JamesW[m]: yup
06:03 PM Lcvette: k
06:03 PM Lcvette: done
06:03 PM JamesW[m]: like I said the defaults will work as they are slower again.
06:05 PM JamesW[m]: The PID side of it is a whole different kettle of fish. From a quick look at the manual I think you treat these motors as simple steppers and don't touch the PID in linuxcnc. You configure the PID on the driver itself. Hence the "closed loop" reference.
06:06 PM Lcvette: yeah that is for servos
06:08 PM JamesW[m]: well I think if you had positional feedback on steppers back to the linuxcnc you could enable and configure the linuxcnc pid loop
06:09 PM JamesW[m]: e.g. via 1 micron linear scales or encoders
06:14 PM * Lcvette sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/GowCZNNHbUdODVzdUjjloGoq >
06:14 PM Lcvette: for some reason my machine is not recognizing sudo anymore?
06:14 PM Lcvette: turboss halp!!
06:15 PM Lcvette: hazzy halp!
06:18 PM JamesW[m]: do it slightly differently
06:18 PM JamesW[m]: does: sudo bash
06:18 PM JamesW[m]: work
06:18 PM JamesW[m]: ?
06:21 PM hazzy-m: Lcvette: sudo is working I think
06:21 PM hazzy-m: but for some reason you have sudo in your riot-im.list file lol
06:21 PM Lcvette: i duno
06:21 PM hazzy-m: its reading the file since it says the error is on line 1
06:21 PM Lcvette: speak lcvette
06:22 PM Lcvette: i know my riot desktop app install isn't working either
06:22 PM Lcvette: i broke
06:22 PM Lcvette: :(
06:22 PM hazzy-m: can you see what `cat /etc/apt/sources.list.d/riot-im.list` says
06:23 PM Lcvette: returns "sudo apt update"
06:23 PM hazzy-m: xD
06:24 PM Lcvette: how to fix?
06:24 PM JamesW[m]: lol
06:24 PM hazzy-m: thats the problem
06:24 PM Lcvette: lcvette doesn't know things like this /o\
06:24 PM * hazzy-m is ROFL
06:24 PM Lcvette: lcvette does not get i8t
06:24 PM Lcvette: :(
06:25 PM hazzy-m: I don't know how the files would have got that as the content
06:25 PM hazzy-m: did you run any other commands?
06:25 PM Lcvette: probably
06:26 PM Lcvette: i was trying to install riot im
06:26 PM Lcvette: copy paste but then it stopped
06:26 PM Lcvette: do you know how to fix?
06:27 PM hazzy-m: I guess at this point you should remove the /etc/apt/sources.list.d/riot-im.list file, its not going to do any good anyway
06:27 PM Lcvette: how?
06:28 PM Lcvette: sudo apt remove riot
06:28 PM Lcvette: ?
06:28 PM Lcvette: hazzy ^^^
06:29 PM Lcvette: remove riot-im
06:29 PM Lcvette: i can't use sudo without getting that error
06:29 PM Lcvette: /o\
06:30 PM hazzy-m: what happens if just run a bare sudo?
06:31 PM * Lcvette sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/raCWtlxNHftDxpleTTftFtKL >
06:32 PM JamesW[m]: what about: sudo bash
06:32 PM * Lcvette sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/LhSmxlWaPWcohBWGuNvXJLLC >
06:32 PM hazzy-m: so sudo is not the problem
06:33 PM Lcvette: apt
06:33 PM Lcvette: ?
06:33 PM JamesW[m]: my suggestion would be to get into a root shell and move from there. If you can
06:33 PM JamesW[m]: sudo bash
06:33 PM Lcvette: :o
06:33 PM JamesW[m]: if they doesn't work then you have a challenge
06:34 PM Lcvette: lcvette knows not what that is
06:34 PM hazzy-m: I think if you run `sudo rm /etc/apt/sources.list.d/riot-im.list` you will be able to start the install from scratch
06:34 PM Lcvette: \o/
06:38 PM hazzy-m: did that work?
06:40 PM Lcvette: yes
06:40 PM Lcvette: i can now install things again!
06:40 PM hazzy-m: sweet
06:40 PM Lcvette: hurray!
06:40 PM Lcvette: thanks hazzy
06:40 PM Lcvette: now i am trying to find why the machine won't move
06:40 PM hazzy-m: yep
06:43 PM Lcvette: i forget, does pnccnc make a config that is compatible with 2.8?
06:44 PM JamesW[m]: yes
06:44 PM * Lcvette sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/MSstyfSgdnkvVSEOeWKnqddE >
06:44 PM Lcvette: is this right for 2.8?
06:44 PM Lcvette: i cannot get the machine to move
06:45 PM Lcvette: here si the ini
06:45 PM * Lcvette sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/AuJWsBOcbzwAecftqCBZPinE >
06:46 PM Lcvette: i do not have home switches connected yet
06:46 PM Lcvette: so do i use no force homing = 1?
06:48 PM Lcvette: you guys know how to check the mesa connection off the top of your head?
06:50 PM JamesW[m]: The easiest way to check that your mesa card is working with your motors is wirhin pncconf
06:53 PM Lcvette: im not getting movement
06:55 PM Lcvette: this is a plug and go kit
06:55 PM Lcvette: didn't think i would need to do anything
06:55 PM JamesW[m]: are you using the Test/Tune in pncconf
06:55 PM Lcvette: i tried that
06:55 PM Lcvette: no9 movement
06:56 PM JamesW[m]: until you have that moving no point going any firther
06:56 PM JamesW[m]: you have configured the steppers in pnnconf?
06:56 PM Lcvette: yes
06:57 PM Lcvette: mesaflash --device device_name [options] --readhmid
06:58 PM JamesW[m]: ok - you have checked all the settings on the driver?
06:58 PM Lcvette: yes
06:58 PM Lcvette: it should be working
06:58 PM Lcvette: unless i have the wrong setting for no force homing
06:58 PM Lcvette: 1 is for not home switches right?
06:59 PM Lcvette: yeah i just rechecked 1 is correct
06:59 PM JamesW[m]: i think the no force homing at this stage is a red herring
07:00 PM Lcvette: mesaflash --device device_name [options] --readhmid
07:00 PM JamesW[m]: if you can't move motors using the tuning/test function in ncconf then you have a more fundamental prob
07:00 PM Lcvette: how do i syntax that for the 6i25?
07:01 PM Lcvette: mesaflash --6i25 [options] --readhmid
07:01 PM JamesW[m]: no idea. Never used mesaflash
07:01 PM JamesW[m]: I have a 6i25/7i76 combo and just plugged it in
07:02 PM Lcvette: thjats what i ahve
07:03 PM Lcvette: have 2 yellow lights on
07:03 PM * Lcvette uploaded an image: VectorImage_2020-05-06_080259.jpg (139KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/XAQEzPAzbmZpnKpEAwHglRca >
07:03 PM Lcvette: Eh I quit for tonight
07:04 PM Lcvette: Will go again in the morning
07:04 PM JamesW[m]: k
07:05 PM JamesW[m]: probably need to quietly check controller dip swicthes
07:05 PM JamesW[m]: and slowly go through things on 1 motor
07:10 PM Lcvette: This setup ran before
07:10 PM Lcvette: This is just a new PC and linuxcnc I stall
07:11 PM JamesW[m]: ah
07:11 PM JamesW[m]: so h/w should all be good
07:11 PM JamesW[m]: do you have your old ini file/
07:11 PM JamesW[m]: ?
07:15 PM JamesW[m]: wow - a lot of python3 work being merged into linuxcnc
07:25 PM hazzy-m: yes, its awesome! I think it's the only good thing coming out of everyone being quarantined
07:44 PM Lcvette: Lol
07:44 PM Lcvette: Yeah hardware should be good
07:44 PM Lcvette: No do not have old configs
07:44 PM Lcvette: They were lost
07:46 PM JamesW[m]: bugger
07:48 PM JamesW[m]: if you can load up your ini and hal files for this config I can have a look and see if anything sticks out
08:01 PM JamesW[m]: https://drive.google.com/open?id=1lMipNOhMZbuw4Q7y2G4wKE-EV7CgZx4A
08:01 PM JamesW[m]: my tool length tool.
08:02 PM JamesW[m]: and the parts for it: https://drive.google.com/open?id=1W4kddO-HXxoehKGhFewqfnVVizO_C1tR
08:02 PM JamesW[m]: super simple but I am getting 0.003mm repeatability.
09:14 PM JamesW[m]: hazzy: what is the correct way to access data in the status plugin system via python code?
09:32 PM hazzy-m: JamesW: Here is a quick example of checking some status items and connecting a method to be called when the stat.joint.0.homed value changed
09:32 PM * hazzy-m sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/vUJitBOerYXnPkyIjaurQQaS >
09:33 PM JamesW[m]: cheers
09:38 PM JamesW[m]: how do I ref getPlugin? I'm getting an error that its not defined
09:43 PM hazzy-m: sorry
09:43 PM hazzy-m: from qtpyvcp.plugins import getPlugin
09:43 PM hazzy-m: that's kinda important lol
09:56 PM JamesW[m]: cheers
09:56 PM JamesW[m]: so its like a status class method
09:57 PM JamesW[m]: static
09:57 PM JamesW[m]: thinking c++ concepts here I guess.
10:02 PM JamesW[m]: hmmm ... there is something very screwy going on with gcode_editor
10:03 PM hazzy-m: yes, or kinda like a singleton
10:04 PM JamesW[m]: singleton - that's the word I was looking for
10:05 PM JamesW[m]: ok - I'm setting the filename in the gcodeeditor instance. printing that out to stdout. I then call the save() method. But what the heck are these QFSFileEngine::open's about?
10:06 PM JamesW: QFSFileEngine::open: No file name specified
10:06 PM JamesW: QFSFileEngine::open: No file name specified
10:07 PM * JamesW[m] uploaded an image: image.png (13KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/DbNBnmkZlDNUxDyHTYZVRZDR >
10:07 PM hazzy-m: the gcode editer was taken from QtVCP, and has had almost no clean up work done to it, its in bad need of an overhaul
10:07 PM JamesW[m]: ah - I'm pushing the envelope then
10:08 PM hazzy-m: yes, JT was working on a pure QT based one, should be in a branch
10:09 PM hazzy-m: if you have the desire to clean up the gcode editor any work would be greatly appreciated
10:36 PM JamesW[m]: I'm not sure I have the skills. But will start poking around and see what I can see. Even if I get it doing some of the basics would be a win.