[Machinekit] Building ProtoBuf data structure for command: MT_EMC_AXIS_SET_HOMING_PARAMS

2019-08-21 Thread Klemen Zhivko
Maybe somebody knows how to prepare data packet for homing parameters or direct me to documentation how to use it. I believe ContainerType is: *MT_EMC_AXIS_SET_HOMING_PARAMS* But I am not sure how to build the command with all parameters (copied from .ini): HOME = 0.000 HOME_OF

Re: [Machinekit] Re: DE10 Nano suggested development environment?

2019-08-21 Thread justin White
I threw the new FW on the nano and the stepgens are all working now. Still no SS but I suppose that was to be expected. As PCW said, since the version prints as "0", the SS CPU must be broken. On Wednesday, August 21, 2019 at 3:25:53 PM UTC-4, justin White wrote: > > Well that makes sense, my SS

Re: [Machinekit] Re: DE10 Nano suggested development environment?

2019-08-21 Thread justin White
Well that makes sense, my SS pins were on GPIO1_00 and GPIO1_01, Stepgens start on GPIO1_02 so it might explain quite a bit. I would have tested it out a bit earlier but I went full nerd yesterday and built a 3900x/5700xt system I've been working on getting running. I got quatus installed and u

Re: [Machinekit] Re: homing of X axis causes "joint 0 on limit switch error"

2019-08-21 Thread Klemen Zhivko
Justin, it is working, thank you SO MUCH! Now I only need to set proper HOME_OFFSET through protobuffer and zmq. Maybe @machinekoder could help what is right procedure to build command that needs to be sent to MK. regards, On Wednesday, 21 August 2019 18:46:24 UTC+2, Klemen Zhivko wrote: > > T

Re: [Machinekit] Re: homing of X axis causes "joint 0 on limit switch error"

2019-08-21 Thread justin White
You didn't need to change the switch, just the "polarity" that it's seen as in hal. I don't use a BBB but since it has an "invert" parameter on the GPIO pins, that should do the job. I was actually incorrect in what I said before, that signal is prior to the pin input so it won't change by inve

Re: [Machinekit] Re: homing of X axis causes "joint 0 on limit switch error"

2019-08-21 Thread Klemen Živkovič
Thanks Justin, I will try this immediately. As per your suggestion I changed switch to NO switch. On halscope I saw that raw signal from beaglebone oscillates pretty much, and it is not clear to me why, as it is tied to 5v over resistor. See x-max signal fro cramps schematic. https://reprap.org/me

[Machinekit] Re: New Alpha Machinekit Trinamic SPI configurer Tool

2019-08-21 Thread Michael Brown
Ok SG detection now functions properly and full register and status indicator Documentation tooltips added. Place a note if you need more getting started info :-) On Monday, 19 August 2019 23:23:35 UTC+2, Michael Brown wrote: > > I have been wanting to experiment with the Trinamic SPI functiona

Re: [Machinekit] Re: homing of X axis causes "joint 0 on limit switch error"

2019-08-21 Thread justin White
Yes you can make one switch work. Change lines 340-342 to this: net limit-x-max => axis.0.home-sw-in net limit-x-min => axis.0.neg-lim-sw-in net limit-x-max => axis.0.pos-lim-sw-in Now your axis 0 max and home hal pins are connected to the same signal. Keep HOME_INGNORE_LIMITS=YES because you h

Re: [Machinekit] Re: homing of X axis causes "joint 0 on limit switch error"

2019-08-21 Thread Klemen Živkovič
Yes there is only one switch - this is enough for calibrating x axis - no? It is max limit switch since it position is positive. Have you seen anything weird in my last configuration because I still cannot make this work? regards On Wed, 21 Aug 2019 at 14:44, justin White wrote: > That is a limi

[Machinekit] Re: homing of X axis causes "joint 0 on limit switch error"

2019-08-21 Thread justin White
That is a limit switch since it's at the very end of travel, but there's only one switch? The first hal file you posted had that whole section commented out. That is either your min-limit, or your max limit, depending on how that thing is oriented. I would tend to call that the Min-limit but th