Re: [Emc-users] What does these do?

2013-10-03 Thread Sven Wesley
2013/10/3 Dave Cole linuxcncro...@gmail.com

 Probably braking resistors for the spindle.   The resistors are
 connected across the 3 phases of the motor to bring the motor to a rapid
 stop.

 Looks like they are wired in a Wye or Star connection..One center
 connection and the three phases which probably connect to a contactor
 which is connected across the motor during rapid braking.

 Dave


I think you are correct Dave, I have no electrical schema but with the tiny
bit of information I can find in the old manuals these are for the Bosch
system and the spindle motor is controlled by one of the Bosch modules. I
think these wires went to the ASM module, got to check that up. Maybe I
need to get them back in the system again, I need to figure out how to get
the motor to a complete stop without burning my VFD (and how to crawl to a
known position for a tool change).

Oh, BTW. I document my retrofit with images as much as possible. Mostly to
help others jump the bridge. You can find the images here.
http://bit.ly/GAwTyg
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] polyurethane resin casting

2013-10-03 Thread Erik Friesen
@Sven Wesley, the shown aluminum part, what is the top of the part, the top
of the block, or the next ledge?


On Wed, Oct 2, 2013 at 6:32 AM, Erik Friesen e...@aercon.net wrote:

 So far, I have realized a number of mistakes.

 #1.  I didn't wax the modeling board the first round, so the silicone
 surface is much too porous. Because of this, the surface releases bubbles
 during molding process and any residual moisture causes issues as well.

 #2.  The back suction action starting at gel?? time has to be considered,
 and material in place to handle it.

 I built a mold out of delrin for testing, and find that bubbles are far
 less a problem, almost non existent with the slow set material.  #1 is
 deduced from this, in part.

 I still would like to try aluminum, but would have to outsource it.
 Firstcut seems pricey,
 http://www.firstcut.com/FirstQuote.aspx?p=574441wmiu
 http://www.firstcut.com/FirstQuote.aspx?p=574440fsir


 On Wed, Oct 2, 2013 at 4:20 AM, Sven Wesley svenne.d...@gmail.com wrote:

 2013/10/2 Steve Blackmore st...@pilotltd.net'

  ...
  I've used West epoxy resins quite a bit, both lay up and vacuum bagged.
  It works very well and there is extensive help and documentation on
  their web site. It's a lay up resin, not a casting resin. If you mix a
  paper cup of the stuff and leave it, it gets so hot it will burn the cup
  and catch fire - done it :)
  ...
 
  Steve Blackmore
  --


 It all depends on the characteristics of the resin. I import, consult and
 sell epoxy. I have a catalog of at least 30 different laminating resins
 and
 at least half of them are good to go for casting and doesn't produce
 enough
 heat to catch fire even in an isolated bucket. It depends on how
 aggressive
 the hardener is, Most West System that is sold is pretty fast to avoid
 dripping etc. And then you get heat, yes.

 Best regards,
 Sven

 --
 October Webinars: Code for Performance
 Free Intel webinars can help you accelerate application performance.
 Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
 from
 the latest Intel processors and coprocessors. See abstracts and register 

 http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users



--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Following Error with Steppers

2013-10-03 Thread Russell Brown
Quoth Chris Morley.

 From: Andy Pugh
 On 2 October 2013 18:26, Russell Brown russ...@lls.lls.com wrote:
 
  loadrt abs names=
  loadrt lowpass names=
 
 This is a stepfconf bug. I can't recall what prompts it. I thought it
 was fixed. (it tries to load a bunch of components with blank names,
 and then their pin names collide)

Pncconf bug -but is probably fixed. what version was this made with?

It's PNCconf Beta 1 (linuxcnc 2.5.3, lucid)

(the system was built from the ISO on the linuxcnc website)

FWIW, I just did a:

git clone git://git.linuxcnc.org/git/linuxcnc.git linuxcnc-dev

config,make,source scripts/rip-environment and then ran bin/pncconf.

That also identifies itself as Beta 1 Version although the linuxcnc it
built is 2.6.0~pre

  http://ruffle.me.uk/cnc/Mesa_Mill.ini
  http://ruffle.me.uk/cnc/Mesa_Mill.hal
 
 The INI file Z axis max velocity in the INI is a lot higher than the
 stepgen max velocity in the HAL file.

I'm sure that was hand edited.

Yes the velocities in the INI file have been hand edited while I was
mucking around (the comments in the file show the various
values/problems).  I must admit that I didn't notice the absolute values
in the HAL file...  I just changed the INI file as I had with the
vanilla parallel port setup and as the docs suggest was normal practise
after generating the initial config.

 Also, the HAL file is not actually looking in the INI file for the
 stepgen maxaccel, so ini file settings are not having any effect.

FWIW, they do effect the AXIS UI by limiting the max jog speeds.

 (Which version of PNCconf is this? It is making a lot of mistakes). If
 you look in the HAL file both stepgen accel and velocity are absolute
 values rather than being sucked out of the INI file.

That is the way it was meant to be.
PNCconf has no stepgen_max entries.
If they are there - they are hand edited.

U  maybe I misunderstood what you just said but PNCconf does
generate MAX_VELOCITY and MAX_ACCELERATION in the INI file for each
axis.

PNCconf also, as Andy rightly observed, puts
hm2_5i25.0.stepgen.XX.maxaccel and hm2_5i25.0.stepgen.XX.maxvel in the
HAL file as absolute values (albeit different to the values in the INI
file; see below).

(I just did fresh test configuration run with PNCconf to confirm the
above).

This is what lead to my confusion as I was changing the values in the
INI file but, I guess, the values in the HAL file were causing the
following errors (the numbers stack up anyway as the HAL file had a
Z-maxvel of 17.7 and X-maxvel of 39.8; these pretty much match up with
the tripping point of the following errors for each axis).

So I tried changing my 'real' HAL file like so:

setp   hm2_5i25.0.stepgen.00.maxaccel[AXIS_0]MAX_ACCELERATION
setp   hm2_5i25.0.stepgen.00.maxvel  [AXIS_0]MAX_VELOCITY

for each axis.  Bzzzt Nope that wasn't good and made things
worse (X would only go to  586 mm/min without following errors).

So I then changed the absolute values in the HAL and INI to match (used
round numbers) and tried jogging.  That generated following errors when
I stopped the jog (took my finger off the mouse button in continuous
mode).

H  back to my test config, I reran PNCconf and set max speed to
4000 mm/min and the three axis to:

X   800 Stepper Scale, 3000 mm/min Velocity, 350 mm/sec2 Acceleration
Y   800 Stepper Scale, 3100 mm/min Velocity, 400 mm/sec2 Acceleration
Z   400 Stepper Scale, 3200 mm/min Velocity, 450 mm/sec2 Acceleration

This puts the following in the INI file:

X MAX_VELOCITY = 50.0MAX_ACCELERATION = 350.0
Y MAX_VELOCITY = 51.67   MAX_ACCELERATION = 400.0
Z MAX_VELOCITY = 53.33   MAX_ACCELERATION = 450.0

and in the HAL file:

setp   hm2_5i25.0.stepgen.00.maxaccel 437.5
setp   hm2_5i25.0.stepgen.00.maxvel   62.5

setp   hm2_5i25.0.stepgen.01.maxaccel 500.0
setp   hm2_5i25.0.stepgen.01.maxvel   64.6

setp   hm2_5i25.0.stepgen.02.maxaccel 562.5
setp   hm2_5i25.0.stepgen.02.maxvel   66.7

...and I can jog at full speed on each axis without following errors.

So.  Why are the absolute values in the INI different to the ones in the
HAL file?  There's obviously some magic going on here :-)

...and how is one meant to tweak velocities/acceleration in 
a configuration generated by PNCconf?  (perhaps a comment in the PNCconf
generated INI file would stop someone else falling into the same hole).

-- 
 Regards,
 Russell
 
| Russell Brown  | MAIL: russ...@lls.com PHONE: 01780 471800 |
| Lady Lodge Systems | WWW Work: http://www.lls.com  |
| Peterborough, England  | WWW Play: http://www.ruffle.me.uk |
 

--
October Webinars: Code for Performance

Re: [Emc-users] Following Error with Steppers

2013-10-03 Thread andy pugh
On 3 October 2013 13:22, Russell Brown russ...@lls.lls.com wrote:
 So.  Why are the absolute values in the INI different to the ones in the
 HAL file?  There's obviously some magic going on here :-)

The stepgen accel and velocity limits are limits on how fast the
stepgen will create pulses, and how fast it will allow the pulse rate
to change.
This can be very useful for controlling motors that are not connected
to an Axis, you can simply pass the stepgen a position number, and it
will move the motor to that position at the specified speed and
acceleration.
However, if the axis limits are exactly the same as the stepgen limits
then the stepgen has no overhead to work with, and trouble ensues.
So the stepgen limits on velocity and accel need to be a shade higher
than the axis limits.

it used to be that the stepgen limits could be set to zero and the
stepgen would simply do as it was told. I don't recall what changed
there, or why it changed.

It is perfectly OK to add things to the INI file and reference them in
your HAL file if you want to. It would be nicer if pncconf did this
for you for those parameters, though.

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

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] polyurethane resin casting

2013-10-03 Thread Sven Wesley
2013/10/3 Erik Friesen e...@aercon.net

 @Sven Wesley, the shown aluminum part, what is the top of the part, the top
 of the block, or the next ledge?


It's an open mold with a plug in the center (with vertical walls). The
outer pockets in short ends are holding the plug. Here are some dropbox
links instead for you:
https://dl.dropboxusercontent.com/u/45105575/2011-12-08%2008.28.51.jpg
https://dl.dropboxusercontent.com/u/45105575/2011-12-08%2008.29.50.jpg
https://dl.dropboxusercontent.com/u/45105575/2012-01-18%2009.25.54.jpg
The red one is made in another mold but have the same function.

/Sven
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Following Error with Steppers [SOLVED]

2013-10-03 Thread Russell Brown
Quoth andy pugh.
On 3 October 2013 13:22, Russell Brown russ...@lls.lls.com wrote:
 So.  Why are the absolute values in the INI different to the ones in the
 HAL file?  There's obviously some magic going on here :-)

However, if the axis limits are exactly the same as the stepgen limits
then the stepgen has no overhead to work with, and trouble ensues.
So the stepgen limits on velocity and accel need to be a shade higher
than the axis limits.

That's the kiddy.  Have a cigar Mr Pugh.

I misinterpreted Peter Wallace's earlier comment in this thread when he
said:

One thing that is required is that the per axis stepgen maxaccel
parameter be set to about 20% greater than the machine maxaccel for
that axis.

My befuddled brayne though he was talking about the INI STEPGEN_MAXACCEL
setting.  Too many settings with the same name!  However even that's not
the full solution.

it used to be that the stepgen limits could be set to zero and the
stepgen would simply do as it was told. I don't recall what changed
there, or why it changed.

In http://www.linuxcnc.org/docs/devel/html/drivers/hostmot2.html (13.2
Parameters maxaccel) is still says you can set it to 0.

It is perfectly OK to add things to the INI file and reference them in
your HAL file if you want to. It would be nicer if pncconf did this
for you for those parameters, though.

Can the code that expands the references in the INI file do
multiplication then?  It would need to be able to do this to maintain a
working reference so you end up with:

setp   hm2_5i25.0.stepgen.00.maxaccel[AXIS_0]MAX_ACCELERATION * 1.2
setp   hm2_5i25.0.stepgen.00.maxvel  [AXIS_0]MAX_VELOCITY * 1.2

Because taking on board both your and Peter's comments, setting *both*
the hm2_5i25.0.stepgen.XX.maxaccel and hm2_5i25.0.stepgen.XX.maxvel to
the values in the INI file +20% makes everything work.

Just changing maxaccel or just maxvel doesn't fix the 'Following errors'
problem.

Ta to everyone for their comments.  I'll post sommat on the Forum for
future reference.

-- 
 Regards,
 Russell
 
| Russell Brown  | MAIL: russ...@lls.com PHONE: 01780 471800 |
| Lady Lodge Systems | WWW Work: http://www.lls.com  |
| Peterborough, England  | WWW Play: http://www.ruffle.me.uk |
 

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Following Error with Steppers [SOLVED]

2013-10-03 Thread andy pugh
On 3 October 2013 14:32, Russell Brown russ...@lls.lls.com wrote:
 My befuddled brayne though he was talking about the INI STEPGEN_MAXACCEL

He was. Unfortunately it appears that the HAL file wasn't paying any
attention to that. (and if the HAL isn't, then neither is anything
else). I am not entirely sure what was going on there. Assuming that
was a pncconf-created INI file.

 Can the code that expands the references in the INI file do
 multiplication then?

Sadly not, it would be useful at times.
I was suggesting that you could add a STEPGEN_MAXVEL to the INI file
to keep the STEPGEN_MAXACCEL and then reference them both in the HAL
file.

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

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Following Error with Steppers

2013-10-03 Thread Marius Liebenberg
Chris
This is a very old bug that has been reported several times. At least 
once by myself. It is still in all the latest code on master. We just 
delete these lines each time. :)

On 2013/10/03 04:43 AM, Chris Morley wrote:

 From: bodge...@gmail.com
 Date: Wed, 2 Oct 2013 18:47:08 +0100
 To: emc-users@lists.sourceforge.net
 Subject: Re: [Emc-users] Following Error with Steppers

 On 2 October 2013 18:26, Russell Brown russ...@lls.lls.com wrote:

  loadrt abs names=
  loadrt lowpass names=
 This is a stepfconf bug. I can't recall what prompts it. I thought it
 was fixed. (it tries to load a bunch of components with blank names,
 and then their pin names collide)

 Pncconf bug -but is probably fixed. what version was this made with?

 http://ruffle.me.uk/cnc/Mesa_Mill.ini
 http://ruffle.me.uk/cnc/Mesa_Mill.hal
 The INI file Z axis max velocity in the INI is a lot higher than the
 stepgen max velocity in the HAL file.

 I'm sure that was hand edited.

 Also, the HAL file is not actually looking in the INI file for the
 stepgen maxaccel, so ini file settings are not having any effect.
 (Which version of PNCconf is this? It is making a lot of mistakes). If
 you look in the HAL file both stepgen accel and velocity are absolute
 values rather than being sucked out of the INI file.

 That is the way it was meant to be.
 PNCconf has no stepgen_max entries.
 If they are there - they are hand edited.

 Chris M

   
 --
 October Webinars: Code for Performance
 Free Intel webinars can help you accelerate application performance.
 Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
 the latest Intel processors and coprocessors. See abstracts and register 
 http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


-- 
Regards / Groete

Marius D. Liebenberg
MasterCut cc
Cel: +27 82 698 3251
Tel: +27 12 743 6064
Fax: +27 86 551 8029
Skype: marius_d.liebenberg



---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 131003-0, 2013/10/03
Tested on: 2013/10/03 04:21:03 PM
avast! - copyright (c) 1988-2013 AVAST Software.
http://www.avast.com


--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Following Error with Steppers [SOLVED]

2013-10-03 Thread Dewey Garrett
 Can the code that expands the references in the INI file do
 multiplication then?

Sadly not, it would be useful at times.

Computations, loops, conditionals, procedures, etc. are doable in 
ini files using haltcl as a substitue for halcmd. 

The syntax for haltcl files is very similar to halcmd.
Ini files can include both hal and haltcl files, and they
can be intermixed with care:
   [HAL]
   HALFILE=core_sim.tcl
   HALFILE=otherfile.hal 

Ref:
 http://www.linuxcnc.org/docs/html/hal/haltcl.html

 
http://article.gmane.org/gmane.linux.distributions.emc.devel/2518/match=haltcl

 $ man haltcl

There is an example sim ini file in:
  configs/sim/simtcl/twopass_demo.ini

The example uses the axis gui and provides procedures
that implement the setup steps normally done with
core_sim.hal, axis_manualtoolchange.hal, simulated_home.hal


-- 
Dewey Garrett


--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Modbus VFD Adapter

2013-10-03 Thread Kirk Wallace
I'm thinking about completing some work I did with AVRs and Modbus by 
making an adapter that has a Modbus port for a PC connection, with 
digital and analog IO for VFD control. This could allow one to add 
Modbus control to a VFD that normally only has keypad or button and 
potentiometer control. If there is any demand for such a thing, I could 
have some boards made, otherwise I'll just hack together a few for my 
needs. Another thought, there are cheap VFDs with Modbus that could be 
had for not much more than the adapter would cost. Any thoughts?
-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Modbus VFD Adapter

2013-10-03 Thread Dave Cole
It's like you say ... VFDs are so cheap these days..  I consider the GS1 
and GS2 series from Automation Direct to be throwaways if they fault 
out.  And they seem to be quite durable on top of that...   If you 
had a bunch of machines that already had VFDs in place and you didn't 
want to change them out, a board might make sense.  Otherwise, I'd 
simply swap the drives out.

Dave

On 10/3/2013 12:29 PM, Kirk Wallace wrote:
 I'm thinking about completing some work I did with AVRs and Modbus by
 making an adapter that has a Modbus port for a PC connection, with
 digital and analog IO for VFD control. This could allow one to add
 Modbus control to a VFD that normally only has keypad or button and
 potentiometer control. If there is any demand for such a thing, I could
 have some boards made, otherwise I'll just hack together a few for my
 needs. Another thought, there are cheap VFDs with Modbus that could be
 had for not much more than the adapter would cost. Any thoughts?

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Modbus VFD Adapter

2013-10-03 Thread David Armstrong
On 03/10/13 17:29, Kirk Wallace wrote:
 I'm thinking about completing some work I did with AVRs and Modbus by
 making an adapter that has a Modbus port for a PC connection, with
 digital and analog IO for VFD control. This could allow one to add
 Modbus control to a VFD that normally only has keypad or button and
 potentiometer control. If there is any demand for such a thing, I could
 have some boards made, otherwise I'll just hack together a few for my
 needs. Another thought, there are cheap VFDs with Modbus that could be
 had for not much more than the adapter would cost. Any thoughts?
i'd be interested

Dave

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Modbus VFD Adapter

2013-10-03 Thread Ricardo Moscoloni
Hi Kirk,
im interested in modbus control, in the past week i was working on
controlling some delta vfd and servo drives (only non-rt processes
like on/off, rpm set, reverse, warnings, alarm clear, status), do it
with an usb/rs485 adapter from ebay (very cheap), and using mb2hal for
interfacing with LCNC (have problems with the vdf as it is the cheap
of the line and dont accept modbus fnct16 only fnct6). Some examples
with mb2hal control an arduino mega, as a modbus I/O control.

Im interested, what is your intention with the AVRs adaptor?

about the lcnc side of things It could be done with classicladder but
editor window has to be open for modbus to work.

regards
Rick


2013/10/3 Kirk Wallace kwall...@wallacecompany.com:
 I'm thinking about completing some work I did with AVRs and Modbus by
 making an adapter that has a Modbus port for a PC connection, with
 digital and analog IO for VFD control. This could allow one to add
 Modbus control to a VFD that normally only has keypad or button and
 potentiometer control. If there is any demand for such a thing, I could
 have some boards made, otherwise I'll just hack together a few for my
 needs. Another thought, there are cheap VFDs with Modbus that could be
 had for not much more than the adapter would cost. Any thoughts?
 --
 Kirk Wallace
 http://www.wallacecompany.com/machine_shop/
 http://www.wallacecompany.com/E45/

 --
 October Webinars: Code for Performance
 Free Intel webinars can help you accelerate application performance.
 Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
 the latest Intel processors and coprocessors. See abstracts and register 
 http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Modbus VFD Adapter

2013-10-03 Thread Dave Cole
Chris Morly made a change about a year ago so the window could be closed 
while Classic Ladder was still running.   He added a Hal bit to allow 
that.   I'm not sure where it was pushed to, but it was really nice.  :-)

Dave

On 10/3/2013 12:50 PM, Ricardo Moscoloni wrote:
 about the lcnc side of things It could be done with classicladder but
 editor window has to be open for modbus to work.



--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Modbus VFD Adapter

2013-10-03 Thread Kirk Wallace
On 10/03/2013 09:50 AM, Ricardo Moscoloni wrote:
 Hi Kirk,
 im interested in modbus control, in the past week i was working on
 controlling some delta vfd and servo drives (only non-rt processes
 like on/off, rpm set, reverse, warnings, alarm clear, status), do it
 with an usb/rs485 adapter from ebay (very cheap), and using mb2hal for
 interfacing with LCNC (have problems with the vdf as it is the cheap
 of the line and dont accept modbus fnct16 only fnct6). Some examples
 with mb2hal control an arduino mega, as a modbus I/O control.

I don't like USB much for using with LinuxCNC. The VFD/Modbus components 
work well enough or can be modified easily enough to get what I need. 
Plus I don't know Ladder.

 Im interested, what is your intention with the AVRs adaptor?

I have a few VFD's that I run three twisted pair to for FWD, REV, and 
speed PWM. With a micro controller I could get that plus monitor 
frequency, load, and other things with two pair.

-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Following Error with Steppers [SOLVED]

2013-10-03 Thread Gene Heskett
On Thursday 03 October 2013 14:46:18 Dewey Garrett did opine:

  Can the code that expands the references in the INI file do
  multiplication then?
 
 Sadly not, it would be useful at times.
 
 Computations, loops, conditionals, procedures, etc. are doable in
 ini files using haltcl as a substitue for halcmd.
 
 The syntax for haltcl files is very similar to halcmd.
 Ini files can include both hal and haltcl files, and they
 can be intermixed with care:
[HAL]
HALFILE=core_sim.tcl
HALFILE=otherfile.hal
 
 Ref:
  http://www.linuxcnc.org/docs/html/hal/haltcl.html
 
 
 http://article.gmane.org/gmane.linux.distributions.emc.devel/2518/match
 =haltcl
 
  $ man haltcl
 
 There is an example sim ini file in:
   configs/sim/simtcl/twopass_demo.ini
 
 The example uses the axis gui and provides procedures
 that implement the setup steps normally done with
 core_sim.hal, axis_manualtoolchange.hal, simulated_home.hal

Some interesting concepts there, thanks for the tut and links, Dewey.

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

True happiness will be found only in true love.
A pen in the hand of this president is far more
dangerous than 200 million guns in the hands of
 law-abiding citizens.

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Following Error with Steppers

2013-10-03 Thread Chris Morley


 From: russ...@lls.lls.com
 To: emc-users@lists.sourceforge.net
 Date: Thu, 3 Oct 2013 13:22:08 +0100
 Subject: Re: [Emc-users] Following Error with Steppers
 
 Quoth Chris Morley.
 
  From: Andy Pugh
  On 2 October 2013 18:26, Russell Brown russ...@lls.lls.com wrote:
  
   loadrt abs names=
   loadrt lowpass names=
  
  This is a stepfconf bug. I can't recall what prompts it. I thought it
  was fixed. (it tries to load a bunch of components with blank names,
  and then their pin names collide)
 
 Pncconf bug -but is probably fixed. what version was this made with?
 
 It's PNCconf Beta 1 (linuxcnc 2.5.3, lucid)
 
 (the system was built from the ISO on the linuxcnc website)
 
 FWIW, I just did a:
 
 git clone git://git.linuxcnc.org/git/linuxcnc.git linuxcnc-dev
 
 config,make,source scripts/rip-environment and then ran bin/pncconf.
 

Ok thanks. Can you tell me what options you selected?
This bug comes from options added or changed.

  The INI file Z axis max velocity in the INI is a lot higher than the
  stepgen max velocity in the HAL file.
 
 I'm sure that was hand edited.
 
 Yes the velocities in the INI file have been hand edited while I was
 mucking around (the comments in the file show the various
 values/problems).  I must admit that I didn't notice the absolute values
 in the HAL file...  I just changed the INI file as I had with the
 vanilla parallel port setup and as the docs suggest was normal practise
 after generating the initial config.
 

Where in the docs did you see this? It is normal but we should mention
the problem you have encountered (needing to adjust both)
 
  Also, the HAL file is not actually looking in the INI file for the
  stepgen maxaccel, so ini file settings are not having any effect.
 
 FWIW, they do effect the AXIS UI by limiting the max jog speeds.

The Could  be - AXIS looks in the [DISPLAY] section though
it may look else where if it doesn't find them in the right place.

 
  (Which version of PNCconf is this? It is making a lot of mistakes). If
  you look in the HAL file both stepgen accel and velocity are absolute
  values rather than being sucked out of the INI file.
 
 That is the way it was meant to be.
 PNCconf has no stepgen_max entries.
 If they are there - they are hand edited.
 
 U  maybe I misunderstood what you just said but PNCconf does
 generate MAX_VELOCITY and MAX_ACCELERATION in the INI file for each
 axis.

Yes it does, because the trajectory planner requires it.
The HAL file doesn't use this entry and should not.
I see you have added a patch to PNCconf with STEPGEN_MAX ETC in it.
That is the entry the HAL file will use.
They are two different settings.
eg MAX_VELOCITY is used by the trajectory planner, NOT the stepgen.

There are also multiple max velocity setting for the GUI.

The reason PNCconf didn't use the setting is I don't like substitutions in
the HAL file. It doesn't use Mesa board name substitutions either.
It does use stepgen settings substitutions in the HAL file but only
because  the tuning program inside of AXIS requires it.

But if it makes life easier for beginners then I'm fine with some
substitutions.
We do need to make sure the manual reflects the changes.
The STEPGEN_MAX write up in the manual is from the software stepgens.
They sound incorrect for hostmot2 steppers - eg it should say about 
20% higher.
 
 
 PNCconf also, as Andy rightly observed, puts
 hm2_5i25.0.stepgen.XX.maxaccel and hm2_5i25.0.stepgen.XX.maxvel in the
 HAL file as absolute values (albeit different to the values in the INI
 file; see below).
 

See above.

Chris M
  
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Modbus VFD Adapter

2013-10-03 Thread Gregg Eshelman
On 10/3/2013 10:41 AM, David Armstrong wrote:
 On 03/10/13 17:29, Kirk Wallace wrote:
 I'm thinking about completing some work I did with AVRs and Modbus by
 making an adapter that has a Modbus port for a PC connection, with
 digital and analog IO for VFD control. This could allow one to add
 Modbus control to a VFD that normally only has keypad or button and
 potentiometer control. If there is any demand for such a thing, I could
 have some boards made, otherwise I'll just hack together a few for my
 needs. Another thought, there are cheap VFDs with Modbus that could be
 had for not much more than the adapter would cost. Any thoughts?
 i'd be interested

 Dave

I ordered a Teco/Westinghouse JNEV-203-H1 from Wolfman Automation. Cost 
less than $300 for the single phase to 3HP 3-phase model. As-is it has 
some inputs that can be used fro various things. I plan to connect one 
to the spindle control output of my BOB.

There are various addon cards available, including RS-232, RS-485, 
Modbus and others.

Less expensive than a new 3HP single phase motor. I got the converter 
for my mill, will test the 3HP motor in my Monarch 12CK. If the motor is 
good I'll get another converter and sell the 5HP 220V single phase motor 
I have.


--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] server under attack?

2013-10-03 Thread Gene Heskett
I was just doing an update to my shop machines, running 2.5.3, and noted it 
was rather slow, as in very slow, 20kb/sec.  Normally I get about 380k/sec 
from here.

Is the server under attack?

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

Life is NP-hard, and then you die.
-- Dave Cock
A pen in the hand of this president is far more
dangerous than 200 million guns in the hands of
 law-abiding citizens.

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60134791iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users