[Emc-users] c++ gui module

2017-06-07 Thread theman whosoldtheworld
hi,

into /home/linuxcnc-dev/src/emc/usr_intf/axis/extension ... i read these:

static int Stat_init(pyStatChannel *self, PyObject *a, PyObject *k) {
char *file = get_nmlfile();
if(file == NULL) return -1;

RCS_STAT_CHANNEL *c =
new RCS_STAT_CHANNEL(emcFormat, "emcStatus", "xemc", file);
if(!c) {
PyErr_Format( error, "new RCS_STAT_CHANNEL failed");
return -1;
}

self->c = c;
return 0;
}

so write a c++ interface using RCS_STAT_CHANNEL(emcFormat, "emcStatus",
"xemc", file) with "xemc" param is still valid option i suppose. I'm in
wrong?

bkt
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] c++ gui module

2017-06-07 Thread Jeff Epler
> RCS_STAT_CHANNEL *c =
> new RCS_STAT_CHANNEL(emcFormat, "emcStatus", "xemc", file);

The parameter "xemc" here is a mostly-meaningless string that needs
to match the "name" column of an "emcStatus" line in the
linuxcnc.nml file.  You can think of it as just meaning "the
standard name for a UI process".

Jeff

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] RPI saga continues - SPI probably solved

2017-06-07 Thread Gene Heskett
On Tuesday 06 June 2017 11:46:27 Bertho Stultiens wrote:

> On 06/06/2017 03:30 AM, Gene Heskett wrote:
> > Does the image I downloaded Saturday and wrote to an sd card
> > yesterday have this stuff in it?
>
> No, you need to pull the most recent source-files (hm2_rpspi.c and
> spi_common_rpspi.h) from the mailing list (or the forum).
>
> Login as pi user and put them in
> ~/linuxcnc-git/src/hal/drivers/mesa-hostmot2/
>
> Then do:
> $ cd ~/linuxcnc-git/src
> $ make
I am ready to do the make. I've crashed it at least a dozen times so far 
today, but we'll see if it can actually get thru a make. Did, building 
only the hm2_rpspi.so

> $ sudo make setuid
did this too.

Now print this so I don't have any typo's when I goto the machine for the 
test run.

> $ ../scripts/linuxcnc -v
> ../../linuxcnc/configs/sheldon-lathe/7i90-axis.ini
>
> That should run your sheldon lathe config. You may need to update the
> config as needed.


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] backtool lathe tool table DIAM entry and tool orientation

2017-06-07 Thread tom-emc
The Emco 120P I am using is a back tool lathe.  Tool turret is above to the 
right of the spindle, and +X is up, -X is down towards spindle.  

For my threading tool which is pointing straight down, if I enter a value into 
the DIAM column in the Tool Table for the radius of the tool tip, will that 
then be taken into account as the difference between the physical tip and 
control point?  Or is the control point only considered when using G41/G42?  
G41/G42 don’t really make sense for this tool since it is pointing down, there 
isn’t really a left or right for compensation, correct?  My threading routine 
sets G43 (when changing to the tool), but also turns off compensation (G40).  
Is that what I should be doing?

Also, according to the lathe tool orientation diagram here 
(http://linuxcnc.org/docs/html/lathe/lathe-user.html#lathe-tool-orientation) my 
threading tool (T3) which is pointing down would be at Position 6 90° (because 
my +X is pointing up so the diagram needs to be flipped over).  If that is 
correct,  I would then enter “6” into the Tool Table Orientation and Back angle 
= 120 and Front Angle= 60, yes?  It is my understanding that these values only 
affect the display in Axis, yes?

-Tom
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users