#hazzy Logs
Mar 01 2020
#hazzy Calendar
05:24 AM * nug45[m] posted a file: IMG_3271.HEIC (4277KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/gLLnlaBMCuUiCYHzTaMfmxti >
05:26 AM nug45[m]: Just Thought id up date it LOL !! Uninstalled with the Maint tool as per usual and this happened !!!
08:23 AM Lcvette: morning
08:23 AM Lcvette: can't opent hat file what is it'/
08:24 AM Lcvette: nug45: ^^^
08:33 AM dremeier[m]: Morning on a Sunday :-)
08:34 AM Lcvette: * can't opent that file what is it?
08:34 AM Lcvette: * can't open that file what is it?
08:35 AM Lcvette: dremeier: morning
08:35 AM nug45[m]: Hi I Tried to load the latest Probe Basic The installation Tool Failed with the message !! Uninstalled everything as usual but its not happy
08:36 AM Lcvette: try running pip uninsta;;
08:36 AM Lcvette: pip uninstall probe_basic
08:37 AM nug45[m]: Did all that as you told me last time until it goes red still the same
08:37 AM Lcvette: pip uninstall qtpyvcp
08:37 AM Lcvette: hmmm
08:37 AM Lcvette: any error messages?
08:37 AM Lcvette: i imstalled on my test pc and nothing funny happened yesterday
08:38 AM * nug45[m] posted a file: IMG_3271.HEIC (4277KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/FibsVCSkKxgWQyfSFgqOjFrX >
08:38 AM nug45[m]: Can you see the picture !!
08:38 AM Lcvette: no
08:38 AM Lcvette: file format cannot view it
08:38 AM Lcvette: tried a few different viewers too
08:38 AM Lcvette: gave up
08:38 AM nug45[m]: That Macs for you !!
08:40 AM * nug45[m] uploaded an image: Screenshot 2020-03-01 at 14.32.04.png (4568KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/kebRLgwaAuosIjDLHTNyJexX >
08:40 AM nug45[m]: How
08:40 AM nug45[m]: Hows That !!
08:40 AM hazzy-m: Morning!
08:40 AM Lcvette: /o\
08:41 AM nug45[m]: Morning
08:41 AM Lcvette: hazzy any ideas on that error?
08:41 AM Lcvette: nug45 are you up to date on the computer?
08:41 AM Lcvette: sudo apt update
08:41 AM Lcvette: sudo apt upgrade
08:41 AM Lcvette: ?
08:41 AM nug45[m]: Hey am not rushing i don't need it just thought id update and see what you have been doing
08:42 AM hazzy-m: nug45: can you try running that pip command it says it errors on in a terminal?
08:42 AM nug45[m]: i go and try that hang on !!!
08:42 AM hazzy-m: No rush
08:42 AM nug45[m]: i try the update first
08:46 AM Lcvette: hazzy: whats crackin hazzy
08:47 AM Lcvette: sdaw some commits on atc branch
08:47 AM Lcvette: \o/
08:47 AM Lcvette: :D
08:47 AM hazzy-m: Yes, making progress!
08:47 AM Lcvette: exciting!!
08:47 AM hazzy-m: Getting ready to head to dev
08:47 AM Lcvette: \o/
08:48 AM hazzy-m: If you enter just a T command on your current ATC does it move to the right pocket?
08:49 AM Lcvette: mo m6?
08:49 AM Lcvette: * no m6?
08:51 AM nug45[m]: Thanks Hazzy The Sudo UPDATE stuff worked a treat !! How often should you perform that !!
08:51 AM Lcvette: frequently
08:57 AM hazzy-m: Sweet!
09:05 AM Lcvette: hazzy just entering a T# in mdi does nothing
09:10 AM Lcvette: hazzy: what elese you want me to test?
09:19 AM hazzy-m: Lcvette: thanks
09:19 AM hazzy-m: it should move the atc to the the pocket for that tool
09:19 AM hazzy-m: but looking at your remaps I noticed it did not seem to do anything
09:20 AM hazzy-m: I'll fix that
09:20 AM Lcvette: there is a command for that
09:20 AM Lcvette: but it is not just the tool number
09:20 AM hazzy-m: T is the pocket prep command, so it should move the TAC
09:22 AM hazzy-m: it needs a little logic behind it so it does not move if there is a tool in spindle that needs to be put away first
09:22 AM Lcvette: yeah some safety
09:22 AM hazzy-m: but on a random tool changer it should always move to time since it can move while the machine is still cutting
09:22 AM Lcvette: trying to change a tool into a filled pocket is no bueno
09:22 AM Lcvette: lol
09:23 AM Lcvette: move to time?
09:23 AM hazzy-m: a lot of posts will put the T word for the next tool right after a tool change, to the ATC has the max amout of time to get into position for the next tool change
09:23 AM Lcvette: generally it doesn't need to move because it will put the tool back in the same pocket (most of the time
09:24 AM hazzy-m: Lcvette: that is correct on a non random changer
09:24 AM Lcvette: my atc is a random
09:25 AM hazzy-m: really?
09:25 AM Lcvette: but it does not swap tools which what you are saying i could see being very useful in that scenario
09:25 AM hazzy-m: does it have an arm to switch tools?
09:25 AM Lcvette: but the umbrella type random atc must store the current tool first
09:25 AM Lcvette: no but that does not make it non random
09:25 AM Lcvette: that makes it non swappable
09:26 AM hazzy-m: ah yes, so you mean the tool does not always go the the same pocket
09:26 AM Lcvette: but being random is non exclusive to an arm type atc
09:26 AM Lcvette: correct
09:26 AM Lcvette: so if you have an umbrella atc that is random and try and run it like a arm type you are going to crash
09:26 AM Lcvette: lol
09:26 AM hazzy-m: yes lol
10:00 AM dremeier[m]: need some help please
10:00 AM dremeier[m]: with a SubCallButton I call a subroutine which should warm up the spindle which takes 5 minutes. Within this time the Button should change the color or better blinking. Is it possible to change the styleSheet from the subroutine like it is possible to change a variable in a QLabel ? (for example-> DEBUG, EVAL[vcp.getWidget{"Spindle_warmup_status"}.setValue{#1010}])
10:02 AM Lcvette: not sure im understanding
10:04 AM Lcvette: you want the button to show a pressed state while running the subroutine and when the subroutine is finished switch to the off state?
10:05 AM dremeier[m]: exactely
10:06 AM dremeier[m]: * exactly
10:07 AM Lcvette: thatmay be possible.. i think it will require some special stuff to make work though
10:07 AM Lcvette: im not certain how to get the signal out to the gui in a way that would change the button state
10:07 AM Lcvette: maybe use a hal pin
10:08 AM Lcvette: or analog out
10:08 AM Lcvette: m68
10:11 AM dremeier[m]: but with a halpin or analog m68, how the state of the button can change?
10:11 AM Lcvette: not sure.. im not seeing an existing function
10:11 AM Lcvette: you may have to add a property
10:12 AM Lcvette: and once you get into adding properties thats code speak
10:14 AM dremeier[m]: maybe it is of all interest to change the SubCallWidget so the state change can be called from the subroutine directly?
10:15 AM hazzy-m: dremeier: what you said above will work
10:16 AM hazzy-m: `DEBUG, EVAL[vcp.getWidget{"spindle_warmup_status"}.setStyleSheet{'border-color: red'}])`
10:16 AM hazzy-m: would make the border of the widget red
10:16 AM dremeier[m]: oh that sounds great will try.....
10:16 AM hazzy-m: when you get to the end of the cycle you will need to change to border back to normal
10:16 AM hazzy-m: `DEBUG, EVAL[vcp.getWidget{"spindle_warmup_status"}.setStyleSheet{None}])`
10:20 AM dremeier[m]: unfortunately it does nothing
10:20 AM * dremeier[m] sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/WiSuDJZzUhzFkHgdIyCGpjzv >
10:23 AM Lcvette: is the button named spindle_warmup_status?
10:24 AM dremeier[m]: ups😲
10:24 AM hazzy-m: lol
10:24 AM Lcvette: hazzy: i did not know you could do that with dedbug that is fantastic!
10:25 AM dremeier[m]: Spindle_warmup is the corred name, I changed the name, and it workes!!!
10:25 AM hazzy-m: Lcvette: you can do almost anything!
10:25 AM Lcvette: \o/ hurray!
10:25 AM dremeier[m]: fantastic!!!
10:25 AM Lcvette: can it change button state?
10:25 AM hazzy-m: you have full access to anything you can do in python
10:25 AM hazzy-m: Lcvette: sure
10:25 AM Lcvette: thats my shortcoming is i don't know what you can do in python
10:26 AM hazzy-m: `(DEBUG, EVAL[vcp.getWidget{"my_btn"}.setChecked{#<my_gcode_var>}])`
10:26 AM Lcvette: .SubCallButton:checked[option="true"] {
10:26 AM Lcvette: background: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(85, 85, 238, 255), stop:0.544974 rgba(90, 91, 239, 255), stop:1 rgba(126, 135, 243, 255));
10:26 AM Lcvette: }
10:26 AM * Lcvette sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/NnCgfUgOdApoYNymIqalisAZ >
10:26 AM hazzy-m: if my_gcode_var is 0 in the gocde the button will not be checkes, if its 1 it will be checked
10:27 AM Lcvette: how about setting unchecked?
10:27 AM Lcvette: to turn the button off
10:27 AM hazzy-m: `(DEBUG, EVAL[vcp.getWidget{"my_btn"}.setChecked{False}])`
10:28 AM Lcvette: so dremeier, you can make the button checkable and when pressed in the gui it will run and be checked and the debug can turn it off
10:28 AM Lcvette: \o/
10:28 AM hazzy-m: that would work too
10:28 AM dremeier[m]: I trying ritght now
10:29 AM dremeier[m]: (DEBUG, EVAL[vcp.getWidget{"Spindle_warmup"}.setChecked{true}])
10:29 AM dremeier[m]: (DEBUG, EVAL[vcp.getWidget{"Spindle_warmup"}.setChecked{false}])
10:29 AM Lcvette: i would remove the true one
10:29 AM Lcvette: it will be set checked when you press it in the gui
10:29 AM Lcvette: you just need the sub call button to turn it off
10:32 AM Lcvette: dremeier: the G4 P6 is the time?
10:32 AM dremeier[m]: yes
10:33 AM dremeier[m]: can´t get it working.
10:33 AM Lcvette: what part?
10:33 AM dremeier[m]: in the designer I set it checkable and in the subroutine : (DEBUG, EVAL[vcp.getWidget{"Spindle_warmup"}.setChecked{false}]) at the end
10:34 AM Lcvette: the routine code or the button code stuff?
10:34 AM dremeier[m]: button state stuff
10:35 AM Lcvette: when you press the button does it work?
10:35 AM Lcvette: turn checked?
10:36 AM dremeier[m]: yes
10:36 AM Lcvette: do you have stylesheet for being checked?
10:36 AM Lcvette: post your stylesheet for the button
10:36 AM Lcvette: .SubCallButton:checked[option="true"] {
10:36 AM * dremeier[m] sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/qGENysBqovbJBctZYashOsdp >
10:37 AM Lcvette: maybe it needs a false option color scheme
10:37 AM Lcvette: hazzy ^^^
10:37 AM dremeier[m]: does I need one for .SubCallButton:checked[option="false"] {
10:38 AM Lcvette: maybe
10:38 AM Lcvette: although i would imagine that it returns to its unchecked state if not checked
10:40 AM Lcvette: ```
10:40 AM Lcvette: .SubCallButton:checked[option="true"] {background: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(213, 218, 216, 255), stop:0.169312 rgba(82, 82, 83, 255), stop:0.328042 rgba(72, 70, 73, 255), stop:0.492063 rgba(78, 77, 79, 255), stop:0.703704 rgba(72, 70, 73, 255), stop:0.86 rgba(82, 82, 83, 255), stop:1 rgba(213, 218, 216, 255));
10:41 AM * Lcvette sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/asLlzysSqpDPaxuGElzzmpWq >
10:41 AM * Lcvette sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/nYXyGYZjryGUhHOzJyKZLfVW >
10:41 AM Lcvette: dremeier try that ^^^
10:42 AM dremeier[m]: nope
10:43 AM dremeier[m]: same result
10:43 AM Lcvette: hmmm
10:43 AM Lcvette: hazzy?
10:44 AM dremeier[m]: the ```(DEBUG, EVAL[vcp.getWidget{"Spindle_warmup"}.setChecked{true}])``` should also work which it does not
10:47 AM Lcvette: ```
10:47 AM Lcvette: (DEBUG, EVAL[cp.getWidget{"Spindle_warmup"}.setChecked{option="false"}])
10:47 AM Lcvette: maybe try that
10:47 AM hazzy-m: dremeier: the false must be capitalized
10:47 AM hazzy-m: `(DEBUG, EVAL[vcp.getWidget{"Spindle_warmup"}.setChecked{False}])`
10:47 AM Lcvette: ah
10:47 AM hazzy-m: It must be valid python code
10:48 AM Lcvette: dremeier: ^^^
10:50 AM dremeier[m]: yes that works !!!!
10:50 AM Lcvette: \o/
10:50 AM Lcvette: hurray!
10:50 AM dremeier[m]: just the capitalized, dam :-)
10:50 AM Lcvette: syntax
10:50 AM dremeier[m]: grrrr
10:50 AM Lcvette: /o\
10:51 AM hazzy-m: syntax is important!
10:52 AM dremeier[m]: ^^ If you know the syntax than it is fine 😂, I don´t 😒
11:06 AM TurBoss: hello
11:07 AM Lcvette: o/ turboss hurray!
11:11 AM Lcvette: turboss are you with servois?
11:11 AM Lcvette: * turboss are you with servos?
11:11 AM TurBoss: no
11:11 AM Lcvette: or home at dev
11:11 AM Lcvette: ah
11:35 AM TurBoss: Lcvette: yo at the shop
11:50 AM hazzy-m: Lcvette: is there a way to get the current ATC position?
11:52 AM TurBoss: hey
11:52 AM TurBoss: you having fun with the ATC
11:53 AM hazzy-m: yes!
12:05 PM Lcvette: TurBoss: \o/
12:07 PM Lcvette: hazzy: i don' think so
12:07 PM Lcvette: it keeps track after it has been referenced but im not sure where the current pocket is stored
12:08 PM hazzy-m: #5171
12:08 PM hazzy-m: found it
12:08 PM hazzy-m: so why is it necessary to home the ATC?
12:08 PM hazzy-m: is it on your machine?
12:09 PM TurBoss: maybe because of the sim?
12:09 PM Lcvette: how does it know what pocket the mechanical is on without homing?
12:10 PM Lcvette: why does the machine need to home the axis?
12:10 PM Lcvette: just reseets the position
12:10 PM Lcvette: if you did not then there are circumstances in which it may not have the stored current pocket number
12:11 PM Lcvette: maintenance on the machine etc
12:11 PM Lcvette: think unless it used an absolute encoder referencing the machine is smalrt
12:11 PM Lcvette: only take 3 seconds pretty fast
12:12 PM hazzy-m: yes, so if you don't have a way to actually read the pocket number then you need to home
12:12 PM hazzy-m: didn't know if you had that, a lot of ATCs do
12:12 PM Lcvette: read the pocket number?
12:13 PM hazzy-m: I mean the actual position of the ATC
12:13 PM Lcvette: most basic atc's use an index and pocket counter
12:13 PM hazzy-m: I was wondering if your ATC set a hal pin with the current pocket number or not
12:13 PM Lcvette: im sure more modern ones use more fancy stuff
12:13 PM hazzy-m: is it just driven by a stepper motor?
12:13 PM Lcvette: don't think so
12:13 PM Lcvette: 3ph ac motor
12:13 PM Lcvette: and geneve wheel
12:14 PM Lcvette: so the motor is dumb
12:14 PM hazzy-m: ok
12:14 PM Lcvette: ir just runs at 60hz fwd or reverse uintil told to stop
12:14 PM hazzy-m: sweet
12:14 PM hazzy-m: very simple
12:14 PM Lcvette: yes
12:14 PM Lcvette: as most basic umbrella atc's are
12:14 PM Lcvette: no axis required
12:14 PM Lcvette: all ladder logic capable
12:15 PM hazzy-m: for some reason I thought yours was a continuous rotation type
12:15 PM Lcvette: uses a basic dual reversing contactor setup and single pin fwd and single pin rev
12:15 PM Lcvette: no
12:15 PM Lcvette: genevea
12:16 PM Lcvette: the whole thing is controlled just with single pin input or outputs
12:16 PM Lcvette: very simple and easy
12:16 PM Lcvette: turboss are you with servos now?
12:16 PM Lcvette: \o/
12:16 PM TurBoss: yup
12:16 PM Lcvette: bep bop boop
12:17 PM Lcvette: Hurray!
12:22 PM Lcvette: hazzy: what else hazzy?
12:39 PM Lcvette: hows the servo thing going turboss?
12:39 PM TurBoss: its powered
12:39 PM TurBoss: :D
12:43 PM Lcvette: Hurray!
12:48 PM Lcvette: When powered does it move to neutral position?
12:49 PM Lcvette: TurBoss: ^^^
12:49 PM TurBoss: no it goes to one side
12:49 PM TurBoss: not sure yet
12:49 PM TurBoss: playing with halscope
12:49 PM Lcvette: Oh all the way to end of sweep then
12:49 PM Lcvette: Ok
01:25 PM -!- #hazzy mode set to +o by wolfe.freenode.net
01:59 PM Lcvette: TurBoss: movement?
01:59 PM Lcvette: :o
02:00 PM TurBoss: i resigned for today
02:00 PM Lcvette: /o\
02:00 PM Lcvette: not working out?
02:02 PM Lcvette: gi8ving you toruble?
02:02 PM Lcvette: * giving you toruble?
02:02 PM Lcvette: * giving you trouble?
02:18 PM Not-c468: [02probe_basic] 07KurtJacobson pushed 031 commit to 03ATC_Remap [+76/-76/±5] 13https://git.io/Jv2qp
02:18 PM Not-c468: [02probe_basic] 07KurtJacobson 03f3897c6 - atc almost working
02:18 PM Lcvette: \o/
02:18 PM Lcvette: hazzy hurray!!
02:22 PM * Lcvette sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/LjTdKpydMZIMlgHoCjOliSHj >
02:23 PM Lcvette: servo pwm range
02:30 PM Lcvette: turboss this may be helpful?https://electronics.stackexchange.com/questions/129961/how-to-get-the-pwm-frequency-and-duration-of-each-pulse
02:30 PM Lcvette: * turboss this may be helpful? https://electronics.stackexchange.com/questions/129961/how-to-get-the-pwm-frequency-and-duration-of-each-pulse
02:31 PM Lcvette: also this: https://www.princeton.edu/~mae412/TEXT/NTRAK2002/292-302.pdf
03:15 PM pcw_home: if you stay with the default 0 to 1 scale of the PWM gen, a PWM value of 0.05 is one end of the range and 0.10 is the other (at 50 Hz)
03:40 PM pcw_home: Looks like your servo can run at higher frequencies (up to 333 Hz) higher frequencies would allow higher resolutions if needed
03:46 PM Lcvette: pcw_home: nice
03:48 PM Lcvette: So what i saw in those links was this:
03:48 PM Lcvette: When the pulse varies in width, the servo will sweep between 0 and 180 degrees. There is some variation in the recommended length of PPM pulse, try between 1ms and 2ms, and if that doesn't give 180 degrees, try 0.5ms to 2.5ms. You might need to do some experiments to get it right.
03:48 PM Lcvette: A 1.5ms long pulse will command the servo to the 'centre', 90 degree position.
03:50 PM pcw_home: Yeah 1 to 2 ms is standard
03:51 PM * Lcvette so you say default pwm is 0-1?
03:51 PM Lcvette: But we're can adjust it to be 1-2?
03:52 PM pcw_home: you need the scale component
03:52 PM Lcvette: Ah
03:52 PM Lcvette: Turboss ^^^
03:53 PM pcw_home: so for example if you use a scale component with an offset of 0.075 (1.5 ms) and a gain of 0.000556 the input to the scale component would be +-45
03:56 PM Lcvette: Going to research scale components
05:35 PM jthornton: maybe we need a rc servo component...
05:42 PM Lcvette: jthornton: that would be awesome!
05:43 PM Lcvette: I think it would be awesome to use them for cool little ad on functionality
06:26 PM Not-c468: [02qtpyvcp] 07KurtJacobson pushed 031 commit to 03master [+0/-0/±2] 13https://git.io/Jv2Gr
06:26 PM Not-c468: [02qtpyvcp] 07KurtJacobson 03bdac027 - BUG: SubCallButton - Make subcall button search along subroutine path
06:27 PM Not-c468: [02qtpyvcp] 07KurtJacobson pushed 031 commit to 03gh-pages [+464/-0/±0] 13https://git.io/Jv2GX
06:27 PM Not-c468: [02qtpyvcp] 07traviscibot 03eaa745b - Deploy kcjengr/qtpyvcp to github.com/kcjengr/qtpyvcp.git:gh-pages
06:28 PM Lcvette: What's that hazzy.?
06:57 PM hazzy-m: Bug fix
06:57 PM hazzy-m: Hopefully it didn't break anything
06:59 PM hazzy-m: An rc servo comp is a great idea
07:02 PM Lcvette: What bug?
07:03 PM Lcvette: Pathway bug?
07:38 PM TurBoss: > [probe_basic] KurtJacobson pushed 1 commit to ATC_Remap [+76/-76/±5] https://git.io/Jv2qp
07:38 PM TurBoss: Nice commit
08:25 PM hazzy-m: thx
08:53 PM Lcvette: Wow hazzy looks great
08:53 PM Lcvette: Are you using the atc sim subs or probe basic subs?
09:39 PM hazzy-m: atc sim
10:14 PM Lcvette: Ok, that set of remaps had alot of stuff removed to make it work
10:14 PM Lcvette: With the existing vismach stuff
10:15 PM Lcvette: The probe bssic remaps are the unmolested machine remaps
10:16 PM Lcvette: They should only have the latest debug message updates but all other sensor stuff is in there
10:16 PM Lcvette: Not site if that makes a difference in what your working on or not
10:16 PM Lcvette: * Not sure if that makes a difference in what your working on or not
11:01 PM * TurBoss sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/pHEwaQycPENzjWcfhFRoRVrO >
11:01 PM TurBoss: scale.1*
11:04 PM Lcvette: \o/
11:04 PM Lcvette: You did it?
11:04 PM Lcvette: TurBoss: that looks cool
11:04 PM Lcvette: Test it yet?
11:05 PM Lcvette: That's for the oscillation?
11:05 PM TurBoss: no need to test
11:05 PM TurBoss: is what i have for now
11:05 PM Lcvette: Works.?
11:06 PM TurBoss: it just clocks
11:06 PM TurBoss: I can't change pulse width yet
11:11 PM Lcvette: Ah
11:11 PM Lcvette: It's still awesome!
11:11 PM Lcvette: :D