Re: [Emc-users] Spindle control

2015-12-29 Thread Todd Zuercher
That is fine if he has spindle feed back, but if not, then the best option is 
to use the at speed output from his VFD.

All you need to do is net the input pin motion.spindle-at-speed to the signal 
from your VFD, it is that simple.  So if your VFD signal is connected to the 
parallel port pin #15, the line in your hal file would be:
net spindle_at_speed <= parport.0.pin-15-in => motion.spindle-at-speed

- Original Message -
From: "Sarah Armstrong" 
To: "Enhanced Machine Controller (EMC)" 
Sent: Tuesday, December 29, 2015 10:19:18 AM
Subject: Re: [Emc-users] Spindle control

arh ,
if i'm reading correctly , you wish to use an external output form your vfd
to trigger ? , hence an input pin

the spindle at speed signal is internally generated within linuxcnc , using
the spindle rpm encoder
so therfore does not need an input from the vfd directly to use . so long
as your spindle speed rpm is correct or within bounds of a few rpm
it will work fine ,




On 29 December 2015 at 15:11, Sarah Armstrong 
wrote:

> you can use stepconf to produce a configuration ,
> you usually see a
> sets spindle-at-speed true , this overides the spindle at speed
> it may be in your postgui.hal file .
> comment it out and you should be ok
>
>
>
>
>
>
> On 29 December 2015 at 14:59, lloyd wilson 
> wrote:
>
>> I'm trying to add a pyvcp panel to control a spindle vfd. To take
>> advantage of the 'at-speed' signal from the vfd to inhibit motion until
>> ready, the motion component of LCNC needs to be aware of the spindle
>> command state- from the documentation:
>>
>> *motion.spindle-at-speed* IN BIT
>>
>> Motion will pause until this pin is TRUE, under the following
>> conditions: before the first feed move after each spindle start or speed
>> change; before the start of every chain of spindle-synchronized moves;
>> and if in CSS mode, at every rapid->feed transition.
>>
>> but I can't find a reference to HAL input pins for spindle control in
>> the motion control component documentation. Is that communication done
>> by other methods (NML??- gasp!).
>>
>> Can someone point me to a sample configuration that properly integrates
>> an 'at-speed' signal into LCNC?
>>
>> Thanks in advance
>>
>> -ldw
>>
>> --
>> ___
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
>>
>
>
>
> --
>
> The information contained in this message is confidential and is intended
> for the addressee only. If you have received this message in error or there
> are any problems please notify the originator immediately. The unauthorised
> use, disclosure, copying or alteration of this message is strictly
> forbidden. This mail and any attachments have been scanned for viruses
> prior to leaving the RcTechnix network. RcTechnix will not be liable for
> direct, special, indirect or consequential damages arising from alteration
> of the contents of this message by a third party or as a result of any
> virus being passed on.
>
> RcTechnix reserves the right to monitor and record e-mail messages being
> sent to and from this address for the purposes of investigating or
> detecting any unauthorised use of its system and ensuring effective
> operation.
>
> (c) RcTechnix
>



-- 

The information contained in this message is confidential and is intended
for the addressee only. If you have received this message in error or there
are any problems please notify the originator immediately. The unauthorised
use, disclosure, copying or alteration of this message is strictly
forbidden. This mail and any attachments have been scanned for viruses
prior to leaving the RcTechnix network. RcTechnix will not be liable for
direct, special, indirect or consequential damages arising from alteration
of the contents of this message by a third party or as a result of any
virus being passed on.

RcTechnix reserves the right to monitor and record e-mail messages being
sent to and from this address for the purposes of investigating or
detecting any unauthorised use of its system and ensuring effective
operation.

(c) RcTechnix
--
___
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] Spindle control

2015-12-29 Thread Sarah Armstrong
arh ,
if i'm reading correctly , you wish to use an external output form your vfd
to trigger ? , hence an input pin

the spindle at speed signal is internally generated within linuxcnc , using
the spindle rpm encoder
so therfore does not need an input from the vfd directly to use . so long
as your spindle speed rpm is correct or within bounds of a few rpm
it will work fine ,




On 29 December 2015 at 15:11, Sarah Armstrong 
wrote:

> you can use stepconf to produce a configuration ,
> you usually see a
> sets spindle-at-speed true , this overides the spindle at speed
> it may be in your postgui.hal file .
> comment it out and you should be ok
>
>
>
>
>
>
> On 29 December 2015 at 14:59, lloyd wilson 
> wrote:
>
>> I'm trying to add a pyvcp panel to control a spindle vfd. To take
>> advantage of the 'at-speed' signal from the vfd to inhibit motion until
>> ready, the motion component of LCNC needs to be aware of the spindle
>> command state- from the documentation:
>>
>> *motion.spindle-at-speed* IN BIT
>>
>> Motion will pause until this pin is TRUE, under the following
>> conditions: before the first feed move after each spindle start or speed
>> change; before the start of every chain of spindle-synchronized moves;
>> and if in CSS mode, at every rapid->feed transition.
>>
>> but I can't find a reference to HAL input pins for spindle control in
>> the motion control component documentation. Is that communication done
>> by other methods (NML??- gasp!).
>>
>> Can someone point me to a sample configuration that properly integrates
>> an 'at-speed' signal into LCNC?
>>
>> Thanks in advance
>>
>> -ldw
>>
>> --
>> ___
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
>>
>
>
>
> --
>
> The information contained in this message is confidential and is intended
> for the addressee only. If you have received this message in error or there
> are any problems please notify the originator immediately. The unauthorised
> use, disclosure, copying or alteration of this message is strictly
> forbidden. This mail and any attachments have been scanned for viruses
> prior to leaving the RcTechnix network. RcTechnix will not be liable for
> direct, special, indirect or consequential damages arising from alteration
> of the contents of this message by a third party or as a result of any
> virus being passed on.
>
> RcTechnix reserves the right to monitor and record e-mail messages being
> sent to and from this address for the purposes of investigating or
> detecting any unauthorised use of its system and ensuring effective
> operation.
>
> (c) RcTechnix
>



-- 

The information contained in this message is confidential and is intended
for the addressee only. If you have received this message in error or there
are any problems please notify the originator immediately. The unauthorised
use, disclosure, copying or alteration of this message is strictly
forbidden. This mail and any attachments have been scanned for viruses
prior to leaving the RcTechnix network. RcTechnix will not be liable for
direct, special, indirect or consequential damages arising from alteration
of the contents of this message by a third party or as a result of any
virus being passed on.

RcTechnix reserves the right to monitor and record e-mail messages being
sent to and from this address for the purposes of investigating or
detecting any unauthorised use of its system and ensuring effective
operation.

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


Re: [Emc-users] Spindle control

2015-12-29 Thread Dave Caroline
motion.spindle-at-speed IN BIT
the IN states it is an input so you already found it.
that pin being in the pins section of
http://linuxcnc.org/docs/html/man/man9/motion.9.html

Dave Caroline

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


Re: [Emc-users] Spindle control

2015-12-29 Thread Gene Heskett
On Tuesday 29 December 2015 09:59:34 lloyd wilson wrote:

> I'm trying to add a pyvcp panel to control a spindle vfd. To take
> advantage of the 'at-speed' signal from the vfd to inhibit motion
> until ready, the motion component of LCNC needs to be aware of the
> spindle command state- from the documentation:
>
> *motion.spindle-at-speed* IN BIT
>
> Motion will pause until this pin is TRUE, under the following
> conditions: before the first feed move after each spindle start or
> speed change; before the start of every chain of spindle-synchronized
> moves; and if in CSS mode, at every rapid->feed transition.
>
> but I can't find a reference to HAL input pins for spindle control in
> the motion control component documentation. Is that communication done
> by other methods (NML??- gasp!).
>
> Can someone point me to a sample configuration that properly
> integrates an 'at-speed' signal into LCNC?
>
> Thanks in advance
>
> -ldw

I used a near module to develop an at-speed on my lathe.

Grepping for near in the .hal files shows this:
gene@lathe:~/linuxcnc/configs/my_LinuxCNC_machine2$ grep near *.hal
my_LinuxCNC_machine2.hal:loadrt nearnames=near.speed
my_LinuxCNC_machine2.hal:addf   mult2.buttonscale   servo-thread# s/b 
in front of near.speed
my_LinuxCNC_machine2.hal:addf   near.speed  servo-thread
my_LinuxCNC_machine2.hal:netspindle-velocitysumenc.out  
pid.s.feedback near.speed.in2
my_LinuxCNC_machine2.hal:netspindle-drive0  
motion.spindle-speed-out-rpsrvsaccel.in near.speed.in1
my_LinuxCNC_machine2.hal:netspindle-at-speednear.speed.out  
motion.spindle-at-speed
my_LinuxCNC_machine2.hal:# near.speed.in1 is from pid.s.command
my_LinuxCNC_machine2.hal:netspindle-at-speed   <=  near.speed.out
my_LinuxCNC_machine2.hal:setp   near.speed.scale[SPINDLE_9]NEAR_SCALE
my_LinuxCNC_machine2.hal:setp   near.speed.difference   [SPINDLE_9]NEAR_TOL

and a grep for at-speed:

gene@lathe:~/linuxcnc/configs/my_LinuxCNC_machine2$ grep at-speed *.hal
Gearchange_snippet.hal:#sets spindle-at-speed true
my_LinuxCNC_machine2.hal:netspindle-at-speednear.speed.out  
motion.spindle-at-speed
my_LinuxCNC_machine2.hal:netspindle-at-speed   <=  near.speed.out
pyvcp_options.hal:net spindle-at-speed=>pyvcp.spindle-at-speed-led

sumenc.out is the output stage of a lashup that sums the last 4 encoder 
samples and outputs the average, a de-noising technique I have cobbled up.
It lets me run higher gains in pid.s and results in a quite stiff
maintenance of the spindle speed even at speeds down to about 60 rpm
without rattling the gear clearances in the backgear too badly as the 
encoder slots go by.  The fly in that soup is there is not a signal I
can get directly from a Mesa 5i25 card that indicates an edge has gone 
by, so I save the last velocity reading, and declare an edge clocking 
pulse if the next reading has changed by more than a couple counts. 
It probably miss-fires at the higher rpms, missing an edge here and 
there as the shop made encoders slots are going by faster than the 
servo-thread can read it, but by 500 rpm, inertia takes over and the 
speed control remains quite stiff.

I hope its helpfull.

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 

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


Re: [Emc-users] Rewiring the BP

2015-12-29 Thread Jerry Scharf
Hi,

RS232 is an old connection from terminals (DTE) to modems (DCE). at some
point, every wire in the 25 line cable had active signals.

To connect two DTEs together, you need a "null modem" crossover. The most
typical null modem does the following. (I will note the pin number on the
DB25 conector):

Exchanges RxD(3) and TxD (2)  on the two sides
Connects signal ground(7) on the two sides
Connects RTS(4) to CTS(5) on the same side
Connects DTR(20) on one side to both DCD(8) and DSR(6) on the other

The other signals are for things like synchronous modems and the like.

You can get a RS232 Breakout box like
http://www.altex.com/RS232-Breakout-Box-BRB-232-P140389.aspx
to debug things. This allows you to connect and disconnect signals, set
them to values...

Data lines are negative true and signalling lines are positive true.

Yes, I remember debugging 300 baud modems. Then again, people think I also
remember the dinosaurs. :)

jerry

On Tue, Dec 29, 2015 at 11:59 AM, John Thornton  wrote:

> An update, I got the serial isolator but it did not work out of the box.
> It had something about DTE and DCE that I didn't understand how to tell
> what the GS2 uses and can't find anything about DTE or DCE in the manual...
>
> JT
>
> On 12/25/2015 4:51 PM, John Thornton wrote:
> > I think a fresh thread is in order for this ordeal.
> >
> > I'm starting at the plug... I dug up some 10-3 SO cord and wired the
> > plug and brought that into the left cabinet. Landed the wires on some
> > terminal blocks with the DIN rail bolted to the cabinet with star
> > washers between the DIN rail and the cabinet. I also scraped the paint
> > off the cabinet in that area. Ground terminal blocks surround the
> > distribution terminal blocks (two blocks tied together). I'm also making
> > a print of the wiring as I go along. So from the distribution blocks the
> > 240v goes to the VFD filter and the control transformer. I have a second
> > filter for the 120v side, should that go just after the control
> transformer?
> >
> > JT
> >
> >
> --
> > ___
> > 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
>



-- 
Jerry Scharf
FINsix IT
650.285.6361 w
650.279.7017 m
--
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Rewiring the BP

2015-12-29 Thread Bertho Stultiens
On 12/29/2015 08:59 PM, John Thornton wrote:
> An update, I got the serial isolator but it did not work out of the box. 
> It had something about DTE and DCE that I didn't understand how to tell 
> what the GS2 uses and can't find anything about DTE or DCE in the manual...

DTE/DCE is whether you need to cross the Tx/Rx lines (straight or
cross-over cable).

In a three-wire serial connection you only have two options:
- straight cable (rx-rxd, tx-txd, gnd-gnd)
- cross-over cable (tx-rxd, rx-txd, gnd-gnd)

Most of these serial isolators are powered from the TX lines, so you
must have them connected correctly.

-- 
Greetings Bertho

(disclaimers are disclaimed)

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


Re: [Emc-users] Spindle control

2015-12-29 Thread Gene Heskett
On Tuesday 29 December 2015 11:35:09 Todd Zuercher wrote:

> That is fine if he has spindle feed back, but if not, then the best
> option is to use the at speed output from his VFD.
>
If it has such a beast. I'd assume todays stuff would be expected to have 
that as a given.  But that means you are taking some elses idea of at 
speed at face value.  Since I built the encoder on my lathe, I'd trust 
what I see with a bit more confidence.

OTOH, if the vfd is sufficiently programmable, I'd expect its "near" 
output to be just as valid.  The docs for our near module aren't as 
self-explanatory as I'd like, with my formal schooling I get lost in the 
higher math pretty easy, so I had a bit of trouble setp-ing it to  work 
well most of the time.  Being able to set its target on one input, and 
feed the result into the other ought to work, but there is a scale and a 
tolerance that isn't well explained to this mathematically challenged 
person.  I'd assume that feeding desired rpms into one pin, noise 
filtered rpms from the encoder to the other, setting scale to 1.000, but 
the tolerance exhibited doesn't seem to a +- percentage about matched 
speeds.  I've not looked at it in a while but ISTR I had to apply a 
non-1.000 scale to center its response and that didn't do quite as I 
expected.  But its working well enough to do some rigid tapping OK.

> All you need to do is net the input pin motion.spindle-at-speed to the
> signal from your VFD, it is that simple.  So if your VFD signal is
> connected to the parallel port pin #15, the line in your hal file
> would be: net spindle_at_speed <= parport.0.pin-15-in =>
> motion.spindle-at-speed
>
> - Original Message -
> From: "Sarah Armstrong" 
> To: "Enhanced Machine Controller (EMC)"
>  Sent: Tuesday, December 29, 2015
> 10:19:18 AM
> Subject: Re: [Emc-users] Spindle control
>
> arh ,
> if i'm reading correctly , you wish to use an external output form
> your vfd to trigger ? , hence an input pin
>
> the spindle at speed signal is internally generated within linuxcnc ,
> using the spindle rpm encoder
> so therfore does not need an input from the vfd directly to use . so
> long as your spindle speed rpm is correct or within bounds of a few
> rpm it will work fine ,
>
>
>
>
> On 29 December 2015 at 15:11, Sarah Armstrong
> 
>
> wrote:
> > you can use stepconf to produce a configuration ,
> > you usually see a
> > sets spindle-at-speed true , this overides the spindle at speed
> > it may be in your postgui.hal file .
> > comment it out and you should be ok
> >
> >
> >
> >
> >
> >
> > On 29 December 2015 at 14:59, lloyd wilson
> > 
> >
> > wrote:
> >> I'm trying to add a pyvcp panel to control a spindle vfd. To take
> >> advantage of the 'at-speed' signal from the vfd to inhibit motion
> >> until ready, the motion component of LCNC needs to be aware of the
> >> spindle command state- from the documentation:
> >>
> >> *motion.spindle-at-speed* IN BIT
> >>
> >> Motion will pause until this pin is TRUE, under the following
> >> conditions: before the first feed move after each spindle start or
> >> speed change; before the start of every chain of
> >> spindle-synchronized moves; and if in CSS mode, at every
> >> rapid->feed transition.
> >>
> >> but I can't find a reference to HAL input pins for spindle control
> >> in the motion control component documentation. Is that
> >> communication done by other methods (NML??- gasp!).
> >>
> >> Can someone point me to a sample configuration that properly
> >> integrates an 'at-speed' signal into LCNC?
> >>
> >> Thanks in advance
> >>
> >> -ldw
> >>
> >> ---
> >>--- ___
> >> Emc-users mailing list
> >> Emc-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/emc-users
> >
> > --
> >
> > The information contained in this message is confidential and is
> > intended for the addressee only. If you have received this message
> > in error or there are any problems please notify the originator
> > immediately. The unauthorised use, disclosure, copying or alteration
> > of this message is strictly forbidden. This mail and any attachments
> > have been scanned for viruses prior to leaving the RcTechnix
> > network. RcTechnix will not be liable for direct, special, indirect
> > or consequential damages arising from alteration of the contents of
> > this message by a third party or as a result of any virus being
> > passed on.
> >
> > RcTechnix reserves the right to monitor and record e-mail messages
> > being sent to and from this address for the purposes of
> > investigating or detecting any unauthorised use of its system and
> > ensuring effective operation.
> >
> > (c) RcTechnix


Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, 

Re: [Emc-users] Rewiring the BP

2015-12-29 Thread John Thornton
An update, I got the serial isolator but it did not work out of the box. 
It had something about DTE and DCE that I didn't understand how to tell 
what the GS2 uses and can't find anything about DTE or DCE in the manual...

JT

On 12/25/2015 4:51 PM, John Thornton wrote:
> I think a fresh thread is in order for this ordeal.
>
> I'm starting at the plug... I dug up some 10-3 SO cord and wired the
> plug and brought that into the left cabinet. Landed the wires on some
> terminal blocks with the DIN rail bolted to the cabinet with star
> washers between the DIN rail and the cabinet. I also scraped the paint
> off the cabinet in that area. Ground terminal blocks surround the
> distribution terminal blocks (two blocks tied together). I'm also making
> a print of the wiring as I go along. So from the distribution blocks the
> 240v goes to the VFD filter and the control transformer. I have a second
> filter for the 120v side, should that go just after the control transformer?
>
> JT
>
> --
> ___
> 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] Advice needed

2015-12-29 Thread John Thornton
Here is an example of a simple HAL spool winder, not that it has 
anything to do with a beam saw just showing simple control of a device.

http://gnipsel.com/linuxcnc/examples.html

Do you have a photo of the beam saw?

JT

On 12/28/2015 6:30 PM, CNC wrote:
> Hello all
>
> I have an old beam saw that I need to replace the control on. It's all 
> digital IO.
>
> Would LinuxCNC be a good idea for this running as a PLC?
>
> I was thinking of using this as a text to get to learn LinuxCNC for when I 
> need to do a CNC router.
>
> If this will work, where do I start?


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


Re: [Emc-users] Spindle control

2015-12-29 Thread Sarah Armstrong
you can use stepconf to produce a configuration ,
you usually see a
sets spindle-at-speed true , this overides the spindle at speed
it may be in your postgui.hal file .
comment it out and you should be ok






On 29 December 2015 at 14:59, lloyd wilson 
wrote:

> I'm trying to add a pyvcp panel to control a spindle vfd. To take
> advantage of the 'at-speed' signal from the vfd to inhibit motion until
> ready, the motion component of LCNC needs to be aware of the spindle
> command state- from the documentation:
>
> *motion.spindle-at-speed* IN BIT
>
> Motion will pause until this pin is TRUE, under the following
> conditions: before the first feed move after each spindle start or speed
> change; before the start of every chain of spindle-synchronized moves;
> and if in CSS mode, at every rapid->feed transition.
>
> but I can't find a reference to HAL input pins for spindle control in
> the motion control component documentation. Is that communication done
> by other methods (NML??- gasp!).
>
> Can someone point me to a sample configuration that properly integrates
> an 'at-speed' signal into LCNC?
>
> Thanks in advance
>
> -ldw
>
> --
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>



-- 

The information contained in this message is confidential and is intended
for the addressee only. If you have received this message in error or there
are any problems please notify the originator immediately. The unauthorised
use, disclosure, copying or alteration of this message is strictly
forbidden. This mail and any attachments have been scanned for viruses
prior to leaving the RcTechnix network. RcTechnix will not be liable for
direct, special, indirect or consequential damages arising from alteration
of the contents of this message by a third party or as a result of any
virus being passed on.

RcTechnix reserves the right to monitor and record e-mail messages being
sent to and from this address for the purposes of investigating or
detecting any unauthorised use of its system and ensuring effective
operation.

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


Re: [Emc-users] Linuxcnc on Fujitsu Siemens FUTRO S400

2015-12-29 Thread andy pugh
On 29 December 2015 at 06:53, Paul Lacatus  wrote:

> Please indicate me where can I find a procedure to transfer the setting for 
> my MF 70 from my old Linux CNC with 2.6 . I have found some paragraphs about 
> and I have understood that is not a copy only procedure. Some more details ?

It shouldn't entail very much more than copying the entire config
directory (from ~/linuxcnc/configs) to the new machine.
There are a couple of minor config changes needed, look at "Updating
configuration files" here:
http://linuxcnc.org/docs/2.7/html/getting-started/updating-linuxcnc.html#_updating_configuration_files

You may also need to alter the parallel port base address in the HAL
or INI files

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

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


[Emc-users] Spindle control

2015-12-29 Thread lloyd wilson
I'm trying to add a pyvcp panel to control a spindle vfd. To take 
advantage of the 'at-speed' signal from the vfd to inhibit motion until 
ready, the motion component of LCNC needs to be aware of the spindle 
command state- from the documentation:

*motion.spindle-at-speed* IN BIT

Motion will pause until this pin is TRUE, under the following 
conditions: before the first feed move after each spindle start or speed 
change; before the start of every chain of spindle-synchronized moves; 
and if in CSS mode, at every rapid->feed transition.

but I can't find a reference to HAL input pins for spindle control in 
the motion control component documentation. Is that communication done 
by other methods (NML??- gasp!).

Can someone point me to a sample configuration that properly integrates 
an 'at-speed' signal into LCNC?

Thanks in advance

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


Re: [Emc-users] Cutsim update

2015-12-29 Thread Les Newell

Hi Anders,

Just a note to add to the instructions. On a pretty bare Ubuntu install 
I needed

apt-get install libqglviewer-dev libboost-all-dev

I tried opening a file as per the instructions but when I hit play I 
just get an error:

Interpreter exited with error
Unable to a open file.

I have attached the complete debug log.

Les

On 29/12/2015 11:11, Anders Wallin wrote:

Hi all,

I was delighted to see that Kasuyasu Hamada has picked up my old cutsim
work from 2011 and made it into a working 5-axis prototype application. It
now looks like this:
https://youtu.be/aSwDVi8W2XM
and code over here:
https://github.com/KASUYASU/cutsim

It uses a linuxcnc-derived g-code interpreter in a crude way: the rs274
binary chews through the g-code and spits out canon-lines which are then
used as input for the simulator.

I don't have a lot of time to work on this myself but the code-base should
be quite familiar so I can help if someone wants to contribute. I am
interested in the low-level octree stock model and 3D representation - the
stumbling hurdles for me earlier were UI-code, multithreading, and the
g-code interpreter. I've posted this on g+ also in the hope that we'd find
a team of programmers wanting to take  this further.

happy new year!

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


g2m: setting rs274 path:  /home/gw/Documents/cutsim/cutsim/build/bin/rs274
Read Machine Spec. file: 
/home/gw/Documents/cutsim/cutsim/build/bin/machine.mspec
TRAVERSE_FEED_RATE  1500.0
HOLDER_RADIUS   15.0
SPINDLE_RADIUS  11.5
SCENE_RADIUS100
Successflly read Machine Spec. file
g2m: setting tooltable /home/gw/Documents/cutsim/cutsim/build/bin/Tool_table.tbl
Slot No.1 Tool:CYLN Len. 30 Diam. 6 Flute len. 2 Neck Diam. 5.8 Reach len. 22 
Shank Diam. 8
Slot No.2 Tool:BALL Len. 30 Diam. 2 Flute len. 3 Neck Diam. 1.8 Reach len. 20 
Shank Diam. 4
Slot No.3 Tool:CYLN Len. 30 Diam. 4 Flute len. 5 Neck Diam. 3.9 Reach len. 20 
Shank Diam. 6
Slot No.4 Tool:BALL Len. 30 Diam. 1 Flute len. 3 Neck Diam. 0.99 Reach len. 20 
Shank Diam. 4
Slot No.5 Tool:BALL Len. 30 Diam. 4 Flute len. 5 Neck Diam. 3.9 Reach len. 20 
Shank Diam. 6
Slot No.6 Tool:CYLN Len. 30 Diam. 8 Flute len. 3 Neck Diam. 4 Reach len. 20 
Shank Diam. 8
Slot No.7 Tool:CYLN Len. 30 Diam. 10 Flute len. 18 Neck Diam. 10 Reach len. 25 
Shank Diam. 10
Slot No.8 Tool:CYLN Len. 30 Diam. 4 Flute len. 20 Reach len. 25 Shank Diam. 6
Slot No.32 Tool:?
Read Setup file: 
/home/gw/Documents/cutsim/cutsim/build/bin/KJ66_Diffuser_Top.csim
; KJ66 Diffuser Top Setup file.
OCTREE_CUBE_SIZE150.02
OCTREE_MAX_DEPTH9
OCTREE_CENTER   0.0, 0.0, 0.0 OK
USER_ORIGIN 0.0, 0.0, 20.3, 0.0, 0.0, 0.0 OK
INITIAL_POSITION0.0, 0.0, 20.3, 0.0, 0.0, 0.0 OK
STEP_SIZE   VARIABLE  0.05 OK
STOCK
RECTANGLE
WIDTH   150.0
LENGTH  150.0
HIGHT   20.3
CENTER  0.0, 0.0, 0.0
ROTATION0.0, 0.0, 0.0
RCENTER 0.0, 0.0, 0.0
OPERATION   SUM
END STOCK OK
;specific cutting force
SCF 900.0
PARTS
RECTANGLE
WIDTH   45.0
LENGTH  20.0
HIGHT   10.0
CORNER  -112.0, -10.0, 20.0
ROTATION0.0, 0.0, 45.0
RCENTER 0.0, 0.0, 0.0
OPERATION   SUM
END PARTS OK
PARTS
RECTANGLE
WIDTH   45.0
LENGTH  20.0
HIGHT   10.0
CORNER  -112.0, -10.0, 20.0
ROTATION0.0, 0.0, -45.0
RCENTER 0.0, 0.0, 0.0
OPERATION   SUM
END PARTS OK
PARTS
RECTANGLE
WIDTH   45.0
LENGTH  20.0
HIGHT   10.0
CENTER  63.0, -63.0, 20.0
ROTATION0.0, 0.0, 35.0
RCENTER 63.0, -63.0, 0.0
OPERATION   SUM
END PARTS OK
PARTS
RECTANGLE
WIDTH   45.0
LENGTH  20.0
HIGHT   10.0
CENTER  63.5, 63.5, 20.0
ROTATION0.0, 0.0, -45.0
RCENTER 63.5, 63.5, 0.0
OPERATION   SUM
END PARTS OK
; Open & Read Diffuser#1_Top_Rough_Water_to_Top_Outer_Cut.ngc, Diffuser#2... 
after this.
1 Error for reading Setup file
g2m: setting file 
/home/gw/Documents/cutsim/cutsim/build/bin/Diffuser#1_Top_Rough_Circle_to_Top_Hole_Rough_Circle.ngc
g2m: interpreting  
/home/gw/Documents/cutsim/cutsim/build/bin/Diffuser#1_Top_Rough_Circle_to_Top_Hole_Rough_Circle.ngc
Interpreter exited with error:
Unable to open file


g2m: Total time to process that file: 158.88 ms
GPlayer: play
--

[Emc-users] Cutsim update

2015-12-29 Thread Anders Wallin
Hi all,

I was delighted to see that Kasuyasu Hamada has picked up my old cutsim
work from 2011 and made it into a working 5-axis prototype application. It
now looks like this:
https://youtu.be/aSwDVi8W2XM
and code over here:
https://github.com/KASUYASU/cutsim

It uses a linuxcnc-derived g-code interpreter in a crude way: the rs274
binary chews through the g-code and spits out canon-lines which are then
used as input for the simulator.

I don't have a lot of time to work on this myself but the code-base should
be quite familiar so I can help if someone wants to contribute. I am
interested in the low-level octree stock model and 3D representation - the
stumbling hurdles for me earlier were UI-code, multithreading, and the
g-code interpreter. I've posted this on g+ also in the hope that we'd find
a team of programmers wanting to take  this further.

happy new year!

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