Re: [Emc-users] AXIS UI Jog Button

2021-07-18 Thread nkp

sorry for the brevity - language barrier



> > axis
> >
> > flag = 0

And what do these two lines do?


line flag = 0

this line should be added to the file  /usr/bin/axis (if RIP version - 
bin/axis )


=
> it?  What does it do?  Does it work with external jog buttons?

yes, all this code is exactly for this (including code  .axisrc and axis)


loadrt jogaxisget
addf jogaxisget.0   servo-thread

netactiveX jogaxisget.0.activeX   axisui.user.activeX
netactiveY jogaxisget.0.activeY   axisui.user.activeY
netactiveZ jogaxisget.0.activeZ   axisui.user.activeZ

netaxis:0:kb   jogaxisget.0.Xin0   axis.0.kb-jog-active
netaxis:1:kb   jogaxisget.0.Yin0   axis.1.kb-jog-active
netaxis:2:kb   jogaxisget.0.Zin0   axis.2.kb-jog-active

netXisactive jogaxisget.0.Xverify  axisui.user.Xisactive
netYisactive jogaxisget.0.Yverify  axisui.user.Yisactive
netZisactive jogaxisget.0.Zverify  axisui.user.Zisactive

netXin1   jogaxisget.0.Xin1   pin_your_external_button_X
netYin1   jogaxisget.0.Yin1   pin_your_external_button_Y
netZin1   jogaxisget.0.Zin1   pin_your_external_button_Z






___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] AXIS UI Jog Button

2021-07-16 Thread nkp

jogaxisget.comp:
// sudo halcompile --install jogaxisget.comp
component jogaxisget "determines which axis jogging";

pin in bit Xin0 "axis.0.kb-jog-active";
pin in bit Xin1;

pin in bit Yin0 "axis.1.kb-jog-active";
pin in bit Yin1;

pin in bit Zin0 "axis.2.kb-jog-active";
pin in bit Zin1;

pin out bit Xtrigger  ;
pin out bit Ytrigger  ;
pin out bit Ztrigger  ;

pin out bit activeX ;
pin out bit activeY ;
pin out bit activeZ ;


pin in bit Xverify =FALSE "axisui.Xisactive";
pin in bit Yverify =FALSE "axisui.Yisactive";
pin in bit Zverify =FALSE "axisui.Zisactive";


variable hal_bit_t  prev_Xtrigger = FALSE;
variable hal_bit_t  prev_Ytrigger = FALSE;
variable hal_bit_t  prev_Ztrigger = FALSE;

license "GPL";
function _;
;;
FUNCTION(_) {

if (( Xin0 && !Xin1 ) || ( Xin1 && !Xin0 )) {/* XOR2 axisX */
Xtrigger = 1;
} else {
Xtrigger = 0;
}

if (( Yin0 && !Yin1 ) || ( Yin1 && !Yin0 )) {/* XOR2 axisY */
Ytrigger = 1;
} else {
Ytrigger = 0;
}


if (( Zin0 && !Zin1 ) || ( Zin1 && !Zin0 )) {/* XOR2 axisZ */
Ztrigger = 1;
} else {
Ztrigger = 0;
}


if(!!Xtrigger != !!prev_Xtrigger) /* Xtrigger has changed */
{
activeX = 1;
if(!!Xverify) {prev_Xtrigger = Xtrigger; activeX = 0;}
}


if(!!Ytrigger != !!prev_Ytrigger) /* Ytrigger has changed */
{
activeY = 1;
if(!!Yverify) {prev_Ytrigger = Ytrigger; activeY = 0;}
}


if(!!Ztrigger != !!prev_Ztrigger) /* Ztrigger has changed */
{
activeZ = 1;
if(!!Zverify) {prev_Ztrigger = Ztrigger; activeZ = 0;}
}

}
##




.axisrc


if hal_present == 1 :
ucomp = hal.component("axisui.user")

ucomp.newpin("activeX",hal.HAL_BIT,hal.HAL_IN)
ucomp.newpin("activeY",hal.HAL_BIT,hal.HAL_IN)
ucomp.newpin("activeZ",hal.HAL_BIT,hal.HAL_IN)

ucomp.newpin("Xisactive",hal.HAL_BIT,hal.HAL_IN)
ucomp.newpin("Yisactive",hal.HAL_BIT,hal.HAL_IN)
ucomp.newpin("Zisactive",hal.HAL_BIT,hal.HAL_IN)

ucomp.ready()

def fun(pin,act):
global flag
if pin:
if flag :
flag = 0
try:
act()
except:
print "except flag = ", flag
else:
flag = 1



def activate_axisX():
print "activate_axisX"
activate_axis(0)


def activate_axisY():
print "activate_axisY"
activate_axis(1)


def activate_axisZ():
print "activate_axisZ"
activate_axis(2)


def user_live_update():

if "xyzabcuvw".index(vars.current_axis.get())!=0:
fun(ucomp["activeX"],activate_axisX)
if "xyzabcuvw".index(vars.current_axis.get())!=1:
fun(ucomp["activeY"],activate_axisY)
if "xyzabcuvw".index(vars.current_axis.get())!=2:
fun(ucomp["activeZ"],activate_axisZ)


if "xyzabcuvw".index(vars.current_axis.get())==0:
ucomp["Xisactive"] = 1
ucomp["Yisactive"] = 0
ucomp["Zisactive"] = 0
if "xyzabcuvw".index(vars.current_axis.get())==1:
ucomp["Xisactive"] = 0
ucomp["Yisactive"] = 1
ucomp["Zisactive"] = 0
if "xyzabcuvw".index(vars.current_axis.get())==2:
ucomp["Xisactive"] = 0
ucomp["Yisactive"] = 0
ucomp["Zisactive"] = 1


#
postgui.hal


loadrt jogaxisget
addf jogaxisget.0   servo-thread

netactiveX jogaxisget.0.activeX   axisui.user.activeX
netactiveY jogaxisget.0.activeY   axisui.user.activeY
netactiveZ jogaxisget.0.activeZ   axisui.user.activeZ

netaxis:0:kb   jogaxisget.0.Xin0   axis.0.kb-jog-active
netaxis:1:kb   jogaxisget.0.Yin0   axis.1.kb-jog-active
netaxis:2:kb   jogaxisget.0.Zin0   axis.2.kb-jog-active

netXisactive jogaxisget.0.Xverify  axisui.user.Xisactive
netYisactive jogaxisget.0.Yverify  axisui.user.Yisactive
netZisactive jogaxisget.0.Zverify  axisui.user.Zisactive




axis

flag = 0



17.07.2021 02:59, John Dammeyer пишет:

Yes.  Keyboard and click on radio button both change so the Tool
buttons refer to the correct axis.  But Pendants don't seem to have
that feature. John

If a USB (or in this case a Ps/2) keyboard can do it, then somewhere
in the code for that, there must be a way to get any other device
connected by USB to make the same GUI updates.

Or am I just being naive?

Martin

Mouse and keyboard inputs are handled very differently from those on a
pendant.  The mouse and keyboard are part of the user interface and
get to Linuxcnc through Axis or what ever UI is being used.  Pendant
inputs get to Linuxcnc directly through Hal.  This has the advantage
of being real-time and independent of userspace hangups, but has the
disadvantage of not being easily tied into the UI.

Todd

I had suspected as much, but in this case its (this jogging from a mesa
encoder input dial) is all handled by hal, which IIRC sends it to
motion, never getting anywhere near axi

Re: [Emc-users] switch_two_spindle_ZA

2021-05-07 Thread nkp

thanks Andy


07.05.2021 14:49, andy pugh пишет:

On Fri, 7 May 2021 at 12:27, nkp216  wrote:

addf   switchZA.0  servo-thread

  ...


can a component cause problems for stepper motors - they are jerky


Your switch would need to run in the base-thread to transfer steps
directly.

I am not 100% clear on what you want to do, but would it work to swap
around the stephen commands rather than the stepgen steps? You can do that
in the servo thread.

But, if your component has no floating-point operations it can run in the
base thread.





___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Can Linux CNC control twin turrets

2020-05-24 Thread nkp
Based on the topic on the forum 
https://forum.linuxcnc.org/38-general-linuxcnc-questions/19055-can-linux-cnc-control-twin-turrets


If we need alternate work.
Is it possible to apply such a scheme?
Switch mux-demux allowed only if turretA and turretB in zero position.
(tool_change_position_turretA = tool_change_position_turretB = home_posA 
= home_posB)


https://imgur.com/au1zYFp

only a separate work of the axes considered



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] custom_G42 rs274

2020-04-26 Thread nkp

I want the interpreter to handle the compensation path, like this:

https://imgur.com/xs9e3BJ
https://imgur.com/Zo5pvHR

I'll try to change for myself  convert_straight(),
convert_straight_comp1() , convert_straight_comp2()


Maybe someone similar already did ?



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] cloning hard drive to new SSD

2020-04-22 Thread nkp

I use Clonezilla for this.
Great-great program!
https://clonezilla.org


23.04.2020 06:37, R C пишет:
if the new disk is smaller, unlikely nowadays, you might be able to 
shrink it  image you created (if you did), effectively


it just truncates the file/iso and leave the empty space out.



On 4/22/20 9:31 PM, Jon Elson wrote:

On 04/22/2020 09:22 PM, andrew beck wrote:

Hey guys.

Just a quick question here

I recently heard some funny clanking noises in my old 2nd hand hard 
drive

on my VMC and thought I better change it out and get a SSD in there.

I have a bunch of stuff loaded onto the hardrive for probe basic gui 
and

other stuff and would like to clone the drive and keep everything.

I can manage a windows cloning I am just not sure if the process 
will work

on a linux system.  I am using a crucial brand SSD and can download the
drive cloning software (it is rebadged acronis cloning software)


Well, there are two basic procedures.  As long as the new drive is at 
least as large or larger than the old drive, then you can make an 
absolute clone in a few hours with the dd command.


Best to boot off a live dvd, figure out the names of the two drives 
and then


|dd  if=/dev/sdX of=/dev/sdY bs=64K conv=noerror,sync

if= is the input disk, of= is the output disk.  Replace X and Y with
the appropriate letters.Make REALLY sure you get
these right, or you will end up wiping the old disk.

To make sure, you can use fdisk /dev/sdX
and then type p to see the partition tables and makes of the drives.
That should tell you for sure which one has the linux file system,
and which one probably has no partitions set up.

The above procedure may not be real fast.

If the new drive is larger, you can then expand the Linux file system to
fill the disk.

If the new disk is smaller, then this won't work.


*** ONLY do the following if the new disk is smaller than the old one 
***


You have to create
partitions with fdisk, make the file systems with mkfs and then copy
all the files with :

# mkdir /mnt/original
# mkdir /mnt/copy
# mount /dev/sdX#  /mnt/original
# mount /dev/sdY#  /mnt/copy
   where X is for the original disk, Y is the copy, and # is the 
partition number

# cp -rfa /mnt/original /mnt/copy
and repeat this for all partitions (you don't need to copy the
swapfile partition.  You create that with mkswap.

Now, the big issue here is that since files have been moved around on 
the disk,
the grub loader will not know where to find them.  So, you have to 
use the
live DVD system to run grub to update the loader to know where things 
are.

The procedure is a bit involved, so I won't detail it unless you need to
go that route.

Jon

|


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users




___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] ensure_mdi function call

2020-04-01 Thread nkp

I tried to make such a feature :
https://imgur.com/fPVBktb

in version 2.7 it works

https://youtu.be/X9R3icekrTY



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] ensure_mdi function call

2020-04-01 Thread nkp

for instance

halui.mode.is−mdi


01.04.2020 21:31, andy pugh пишет:

(Where are you reading the mode?)




___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] ensure_mdi function call

2020-03-31 Thread nkp

in this case the mode does not switch:
that is - when you press F5, the mode remains "manual"


01.04.2020 00:42, andy pugh пишет:

So seems deliberate.




___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] ensure_mdi function call

2020-03-31 Thread nkp

--- axis2.7.15.tcl
+++ axis.master.tcl
...
...
...
@@ -804,7 +822,7 @@
 $_tabs_manual configure -borderwidth 2
 $_tabs_mdi configure -borderwidth 2

-${pane_top}.tabs itemconfigure mdi -raisecmd "[list focus 
${_tabs_mdi}.command]; ensure_mdi"
+${pane_top}.tabs itemconfigure mdi -raisecmd "[list focus 
${_tabs_mdi}.command];"

 #${pane_top}.tabs raise manual
 after idle {
 ${pane_top}.tabs raise manual
...
...
...




function call is missing. (ensure_mdi)
is this a bug?



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] ESTOP and ENABLE buttons/indicators on AXIS

2020-01-31 Thread nkp

src/emc/usr_intf/axis/extensions/emcmodule.cc


31.01.2020 21:55, nkp пишет:

linuxcnc.py does not exist ,this module is in C


31.01.2020 21:50, John Dammeyer пишет:

-Original Message-
From: nkp [mailto:nkp...@gmail.com]

it is described here:

http://linuxcnc.org/docs/2.7/html/config/python-interface.html


That describes the program which is great.  However a search on 
"linuxcnc.py" does not turn up the source code and although 
"linuxcnc" is highlighted in light blue throughout the document 
there's no link to the software itself.  At least not what I could find.


Thanks
John




___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users






___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] ESTOP and ENABLE buttons/indicators on AXIS

2020-01-31 Thread nkp

linuxcnc.py does not exist ,this module is in C


31.01.2020 21:50, John Dammeyer пишет:

-Original Message-
From: nkp [mailto:nkp...@gmail.com]

it is described here:

http://linuxcnc.org/docs/2.7/html/config/python-interface.html



That describes the program which is great.  However a search on "linuxcnc.py" does not 
turn up the source code and although "linuxcnc" is highlighted in light blue throughout 
the document there's no link to the software itself.  At least not what I could find.

Thanks
John




___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users




___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] ESTOP and ENABLE buttons/indicators on AXIS

2020-01-31 Thread nkp

it is described here:

http://linuxcnc.org/docs/2.7/html/config/python-interface.html


31.01.2020 21:01, John Dammeyer пишет:

Thanks Gene,


-Original Message-
From: Gene Heskett [mailto:ghesk...@shentel.net]

On Thursday 30 January 2020 23:30:37 John Dammeyer wrote:


I'm trying to figure out how to set up these two buttons in the HAL
file so they behave the way I'd like.

In short, its a problem still in search of a solution at my place too,
that when found should be added to the wiki. Something we can all use.

Others have had similar problems.
https://www.forum.linuxcnc.org/49-basic-configuration/26596-estop-out?start=10
Unfortunately he never posted his final solution.

Last night, for about 2 hours until 2AM, I spent some time looking through the 
AXIS python code.  I've been so spoiled by Delphi and developing Windows based 
programs I'd forgotten how bad Python (and for that matter 1970's BASIC) 
programming is.  But of course if one only has a hammer everything looks like a 
nail.

In a modern development environment one would just highlight the graphical 
object which has been positioned by dragging it to where you want it.  Then you 
double click on it and are taken to the method that deals with the on click 
event.  Here you can fill in what you want to happen for the on click.  If it's 
changing the main state based on the current status of the button then that's 
what you can do.  And you can track through the IDE each of the other methods 
in other objects to walk through the flow of the program.

You don't have to enter in various search terms like STOP or ESTOP to find the 
code fragment in the 4122 line program.

def estop_clicked(event=None):
 s.poll()
 if s.task_state == linuxcnc.STATE_ESTOP:
 c.state(linuxcnc.STATE_ESTOP_RESET)
 else:
 c.state(linuxcnc.STATE_ESTOP)

 def onoff_clicked(event=None):
 s.poll()
 if s.task_state == linuxcnc.STATE_ESTOP_RESET:
 c.state(linuxcnc.STATE_ON)
 else:
 c.state(linuxcnc.STATE_OFF)

So we know now there is an object named 'c' that has a method named 'state' 
that takes a parameter like 'STATE_ESTOP' or 'STATE_ESTOP_RESET' and probably 
assigns that value into another object 's'  that contains 'task_state'.

Now try searching for the declaration of the object 'c' or 's'.  Can you spell 
badly written software.  You'd fail a first year computing science assignment 
writing code like Microsoft basic was written in the 70's.

To quote from 
https://github.com/LinuxCNC/linuxcnc/blob/master/docs/src/code/style-guide.txt
" However, descriptive names for global variables are a must. To call a global 
function 'foo' is a shooting offense."

Odds are it's probably inside the code brought in with
'import linuxcnc *'

Haven't found that source code yet.  It should be python right?

The lack of documentation is truly astounding.
John Dammeyer





___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users




___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] chaotic_highlighting

2020-01-28 Thread nkp

Hi!
When the Gcode contains subroutines,
chaotic highlighting of the active line is observed.
(I"m using hal_sourceview.py )
The reason is clear - lcnc highlights the line number from the "main" code ,
when a subroutine  is found - jumps to the line (line number) from the 
subroutine.

Is there any solution to this?


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Backlash comp monitoring

2020-01-23 Thread nkp

there is a small description in the source code:
'compute_screw_comp()' is responsible for calculating backlash and
   lead screw error compensation.  (Leadscrew error compensation is
   a more sophisticated version that includes backlash comp.)  It uses
   the velocity in emcmotStatus->joint_vel_cmd to determine which way
   each joint is moving, and the position in emcmotStatus->joint_pos_cmd
   to determine where the joint is at.  That information is used to
   create the compensation value that is added to the joint_pos_cmd
   to create motor_pos_cmd, and is subtracted from motor_pos_fb to
   get joint_pos_fb.  (This function does not add or subtract the
   compensation value, it only computes it.)  The basic compensation
   value is in backlash_corr, however has makes step changes when
   the direction reverses.  backlash_filt is a ramped version, and
   that is the one that is later added/subtracted from the position.


24.01.2020 09:38, Marcus Bowman пишет:

It would also be very useful to understand the algorithm being used to apply 
backlash compensation. Is there a link to an explanation, somewhere?




___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] disconnect .var file

2019-12-28 Thread nkp

it seems to work fine

thanks!!


28.12.2019 21:50, Dewey Garrett пишет:

Try:

RS274NGC]
PARAMETER_FILE = /dev/null

Ref: https://en.wikipedia.org/wiki/Null_device




___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] disconnect .var file

2019-12-28 Thread nkp

tried to set:

[RS274NGC]
PARAMETER_FILE = ""

emc   creates too files  named "" and  "".bak
=

tried to set:

[RS274NGC]
PARAMETER_FILE =

emc   creates too files  named rs274ngc.var and  rs274ngc.var.bak





___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] disconnect .var file

2019-12-28 Thread nkp

is that simple?
=)
Thanks!


28.12.2019 19:36, Gene Heskett пишет:

If you have that file named in your .ini, make it ="".




___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] disconnect .var file

2019-12-28 Thread nkp

I do not want Lcnc to remember offsets.


28.12.2019 14:11, N пишет:

Have a line in my filename.ini file like the one below, where filename is 
whatever name of your configuration files have.
   HALFILE = filename.hal



Hello!
Can I somehow disconnect .var file?
Is it possible ?

To replace it:

#!/bin/bash

rm /home/cnc/linuxcnc/configs/test/sim.var.bak
rm /home/cnc/linuxcnc/configs/test/sim.var

sleep 3s
linuxcnc  /home/cnc/linuxcnc/configs/test/test.ini

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users




___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] How to preset pins

2019-02-02 Thread nkp

How to preset pins in component code?

/* sudo halcompile --install example.comp */
component example ;

pin out  pinname-##-not = True [32]  ;



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] arc_blending with more than 3 axes

2019-01-21 Thread nkp

"I haven't implemented arc blending with more than 3 axes yet. However, the
last big refactor will make it easier to do that in the future. The big
obstacle is that it requires changing how the trajectory planner treats
velocity and arc length internally. Right now, the path progress and
velocity only consider XYZ motion, and the other axes follow
proportionally. To get arc blending to work with other axes, the planner
needs to consider all 9 axes when calculating path progress and velocity.
It's not as scary as it sounds, since most of the math is the same.
However, it means a lot of small changes in the TP."


Is there any progress on this issue?



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] tool changer with swiveling arm

2019-01-05 Thread nkp

Are there any examples  where the tool is prepared in advance?

Machine : tool changer with swiveling arm.

like this
http://www.electronicsam.com/images/KandT/conversion/toolchangerspindle.JPG
(image taken from the forum)



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Axis(gremlin) for horizontal mill

2018-12-21 Thread nkp

More experiments:

https://www.youtube.com/watch?v=OKCRbs_kcSQ











___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Axis(gremlin) for horizontal mill

2018-12-19 Thread nkp

The video shows the principle of visualization of a rotating table.
To do:
to rotate the source contour.

https://youtu.be/Gk50wphVu80




___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Axis(gremlin) for horizontal mill

2018-12-16 Thread nkp


I am satisfied with the fact that the coordinate system now moves when 
the table is “rotated”.

(This is seen in the video.)

I think it would be logical to turn the axes in sync with the table:
https://www.youtube.com/watch?v=Qfj021uKGq4&feature=youtu.be

I suspect that static workpiece and moving tool is baked-in quite
deeply in Gremlin.





___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Axis(gremlin) for horizontal mill

2018-12-16 Thread nkp

I think it would be logical to turn the axes in sync with the table:
https://www.youtube.com/watch?v=Qfj021uKGq4&feature=youtu.be




___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Axis(gremlin) for horizontal mill

2018-12-15 Thread nkp

Thanks Andy for the push in the right direction!)
I almost got what I wanted.

OpenGLTk.py:

rotation_vectors = [(1.,0.,0.), (0., 1., 0.)]

rotates around Y axis


(but  rotates around Z axis( require  - around Y)






___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Axis(gremlin) for horizontal mill

2018-12-15 Thread nkp

https://www.mail-archive.com/emc-developers@lists.sourceforge.net/msg17937.html



ps
 Vismach in some tasks was limited:





___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Axis(gremlin) for horizontal mill

2018-12-15 Thread nkp

Thanks!
But now required Axis.
ps
 Vismach in some tasks was limited:
 https://www.mail-archive.com/emc-developers@lists.sourceforge.net/msg17936.html

 but VisMach is pretty easy to visualize the placement






___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Axis(gremlin) for horizontal mill

2018-12-15 Thread nkp

retrofitting big_machine (17t) (EMC2_control)


What are you trying to do?





___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Axis(gremlin) for horizontal mill

2018-12-15 Thread nkp

if in glnav.py (function set_view_p)
edit :
self.lat = 0
self.lon = 0


p_view -  normal

(but  rotates around Z axis( require  - around Y)



You can change the views here:
https://github.com/LinuxCNC/linuxcnc/blob/master/lib/python/glnav.py#L395






___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Axis(gremlin) for horizontal mill

2018-12-15 Thread nkp



Now it looks like this:
https://imgur.com/gallery/cW2PQbO

Isn't that view identical to the top-down view of a conventional mill?





___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Axis(gremlin) for horizontal mill

2018-12-15 Thread nkp

If the axes are positioned in this way:

https://imgur.com/gallery/gqfFde0

the perception of the trajectory will be better.(IMHO)


What would change? Are you wanting to add the radial axis?





___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Remap_error

2016-03-13 Thread nkp
here is my function g711:
https://github.com/nkp2169/G71/blob/master/remap.py#L23
if H int - it works
if H float - no
what am I doing wrong?

13.03.2016 12:48, Michael Haberler пишет:
>> Am 13.03.2016 um 09:21 schrieb nkp :
>>
>> What does this  error mean?
>> https://picasaweb.google.com/107033522069386867580/132016#6261445564700413634
> exactly what it says: the remap procedure does not return an integer
>
> look 5 lines up where it is done right: 'return INTERP_OK'
>
>
> as documented in 'Calling conventions for python= subroutines' here: 
> http://www.linuxcnc.org/docs/devel/html/remap/remap.html#_calling_conventions_ngc_to_python
>
>
>> P.S.
>> If not used float H :
>> https://picasaweb.google.com/107033522069386867580/132016#6261445543825452002
>>
>>
>> --
>> Transform Data into Opportunity.
>> Accelerate data analysis in your applications with
>> Intel Data Analytics Acceleration Library.
>> Click to learn more.
>> http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
>> ___
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
>
> --
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Remap_error

2016-03-13 Thread nkp
What does this  error mean?
https://picasaweb.google.com/107033522069386867580/132016#6261445564700413634
P.S.
If not used float H :
https://picasaweb.google.com/107033522069386867580/132016#6261445543825452002 


--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users