Re: [Emc-users] Gluing little balls

2012-10-09 Thread Slavko Kocjancic
if you have done pick and place then just put something like cotton swab 
(but more durable) and brush hole to spread glue. Maybe Hot glue is 
alternative too? Then you can use something like reprap extrudor to 
apply glue.


On 9.10.2012 13:41, charles green wrote:
 suggestion:  consider alternate method of celebration.

 --- On Tue, 10/9/12, craig cr...@facework.com wrote:

 From: craig cr...@facework.com
 Subject: [Emc-users] Gluing little balls
 To: emc-users@lists.sourceforge.net
 Date: Tuesday, October 9, 2012, 2:52 AM
 I have a CNC related problem.

 I am making small decorative personal gifts using thin wood
 (5-6mm - 1/4
 inch thick) and 6mm diameter colored glass balls (small
 marbles).

 A pattern of shaped holes is cut in the wood with a small
 cnc router
 using 2 tools.  A 1/4 ball nose mill cuts to
 approximately 4mm depth.  A
 3/16 tool then cuts the rest of the way through he wood.
 additional
 surface patterns may also be cut.

 The balls are then glued into the holes with a clear
 adhesive (
 currently a thinned clear caulking compound).

 The resulting items are interesting viewed directly or
 back-lit.


 The problem:

 The marbles are currently glued in by hand.
Painting the glue into the holes, placing the ball
 and pressing it
 down gets tedious.

 I would like to automate this process by replacing the
 spindle with
 other equipment.

 I can automate the pick and placement of the balls.  (
 spheres may be
 the easiest item to pick and place)

 But I have not found a good way to automate the gluing
 process
 inexpensively.

 suggestions? Thoughts?


 Any help would be appreciated.

 Craig

 --
 Don't let slow site performance ruin your business. Deploy
 New Relic APM
 Deploy New Relic app performance management and know
 exactly
 what is happening inside your Ruby, Python, PHP, Java, and
 .NET app
 Try New Relic at no cost today and get our sweet Data Nerd
 shirt too!
 http://p.sf.net/sfu/newrelic-dev2dev
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

 --
 Don't let slow site performance ruin your business. Deploy New Relic APM
 Deploy New Relic app performance management and know exactly
 what is happening inside your Ruby, Python, PHP, Java, and .NET app
 Try New Relic at no cost today and get our sweet Data Nerd shirt too!
 http://p.sf.net/sfu/newrelic-dev2dev
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users



--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Dust-proof case?

2011-11-06 Thread Slavko Kocjancic
Dne 5.11.2011 18:30, piše Kirk Wallace:
 On Sat, 2011-11-05 at 14:09 +0200, Viesturs Lācis wrote:
 2011/11/5 Slavko Kocjancicesla...@gmail.com:
 Hello...

 I think the 1'st thing is to check what is wrong. Not to do something to
 eliminate problem but not know what problem it is.
 Yes, that is exactly my question - is there anything I can do to
 diagnose the cause of problem?
 My experience seems to indicate:

 _Always_ have a filter on VFD power inputs. They are not that expensive.
 Proximity of a VFD to sensitive parts doesn't really indicate much. If
 the hardware is not configured properly (and what is?), the VFD
 interference can travel through metal frames, conduit, unrelated wires,
 shielding, etcetera, and come out on the far side of the machine.
 Sometimes, beads on the output wires can help. Most stepper and servo
 drives are very similar to VFD's, so they may need power input filters,
 or output beads too.

 Most break-out-board inputs (and others) have very high impedance,
 therefore are very susceptible to induced fields on the input wiring, so
 even minor interference can show up at the input pin. Think of hitting
 something hard like a bell. It doesn't absorb or convert the energy very
 well so it rings until the energy gets converted to sound. Hitting dry
 sand converts the all of the energy instantly, so it is hard to drive a
 signal into it,let alone induce noise. I've found that plain buffer
 inputs have very high impedance and often need some some sort of filter
 (lowers impedance, adds sand) that matches the type of signal being
 read. Opto-isolated inputs seem to have more impedance, so are not as
 much of a problem. Switches and relays with real contacts go from very
 high impedance to very low, and bounce, so most likely need filtering.
 Most real machines (my opinion) use 12 Volts for control signals to help
 push the noise into the OFF voltage region.

 Others have more experience with this, but I have found that connecting
 a short piece of wire on my oscilloscope probe picks up interference. I
 can wave it around my machine and find the noisy spots. It seems some
 amount noise is inevitable and normal, so expect to need to deal with
 it, rather than eliminate it. I've heard an AM radio is also good for
 scanning for interference. I recently set up HALscope to trigger on a
 suspicious signal. After forcing a trigger on the scope to clear the
 traces, I sat and watched HALscope until it triggered, then preesed stop
 to keep the traces form getting written over. This indicated that this
 signal was on the edge of ON and OFF. A resistor in the line (current
 limit) and capacitor to ground (low impedance, sand, RC filter) cleared
 it up.

I agree that filtering is good thing to do. But in this case (runnung 
near 1 hour without problem) the EMI isnt the source of trouble. But 
high impedance on input pins can be source of trouble here. Or better 
expresed to high resistance of wires/connectors...

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Dust-proof case?

2011-11-05 Thread Slavko Kocjancic
Hello...

I think the 1'st thing is to check what is wrong. Not to do something to 
eliminate problem but not know what problem it is.
So far I know.
If EMC doesn't crash then motherboard isn't problem (CPU/RAM/ROM/S,N 
bridges...) so try to check where is problem. It can be somewhere betwen 
CPU bus (aka whatewer card you use for IO) throu motor driver board.
Just I don't understand how you are can continue work on next piece 
after crash without rehoming? Do you have servo or stepper. In case of 
stepper there should be position loss so rehoming is mandatory. (Or you 
just tolerate absolute error as you touchof coordinate to part 
machined?) If that's true then jou maybe just have missconfigured 
configuration. Eg you measure latency and got for example 10us and you 
conclude that is it. But sometime some events thermal recalibration of 
HDD for example can cause little longer latency and jou hit the problem. 
And this occour in random time not periodic. Just put that pc with 
intensive work to measure latency for few hours to werify. If you have 
servo then EMI can be problem. (for stepper to but less possible as 
machine run long time without trouble).

So find the problem 1'st then seek for medicine.

Slavko.


Sorry for my bad Eglish.

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Dust-proof case?

2011-11-05 Thread Slavko Kocjancic
Dne 5.11.2011 14:09, piše Viesturs Lācis:
 2011/11/5 Slavko Kocjancicesla...@gmail.com:
 Hello...

 I think the 1'st thing is to check what is wrong. Not to do something to
 eliminate problem but not know what problem it is.
 Yes, that is exactly my question - is there anything I can do to
 diagnose the cause of problem?

 If EMC doesn't crash then motherboard isn't problem (CPU/RAM/ROM/S,N
 bridges...) so try to check where is problem. It can be somewhere betwen
 CPU bus (aka whatewer card you use for IO) throu motor driver board.
 Just I don't understand how you are can continue work on next piece
 after crash without rehoming? Do you have servo or stepper. In case of
 stepper there should be position loss so rehoming is mandatory. (Or you
 just tolerate absolute error as you touchof coordinate to part
 machined?) If that's true then jou maybe just have missconfigured
 configuration. Eg you measure latency and got for example 10us and you
 conclude that is it. But sometime some events thermal recalibration of
 HDD for example can cause little longer latency and jou hit the problem.
 And this occour in random time not periodic. Just put that pc with
 intensive work to measure latency for few hours to werify. If you have
 servo then EMI can be problem. (for stepper to but less possible as
 machine run long time without trouble).
 Here is some data about the machine:
 4 MotionKing stepper drives with Mesa 7i43 for step generation.
 PC is dual-core Intel Pentium CPU with 1GB memory, no idea about motherboard.
 EMC version is 2.4.6 running on Lucid.

 These are the symptoms:
 1) EMC won't start running a file, when a PLC (currently controls
 pneumatics, it will be removed eventually) sends a signal to do so.
 In HAL file I have:

 net deb-in debounce.0.0.in=  hm2_[HOSTMOT2](BOARD).0.gpio.034.in_not
 net oneshot-in   debounce.0.0.out =  oneshot.0.in
 net oneshot-out oneshot.0.out =  and2.0.in0

 setp debounce.0.delay 5

 setp oneshot.0.rising 1
 setp oneshot.0.retriggerable 1
 setp oneshot.0.width 5

 net ready pyvcp.ready =  and2.0.in1
 net start and2.0.out =  halui.mode.auto halui.program.run

 Incoming signal from PLC is filtered through debounce and routed into
 oneshot to watch for rising edge.
 There is pyvcp button Ready for work for operator to enable EMC
 following PLC commands.

 I have been watching these pins in Show HAL Config:
 hm2_[HOSTMOT2](BOARD).0.gpio.034.in_not
 and2.0.out
 halui.program.run
 halui.program.is-running
 halui.mode.auto
 halui.mode.is-auto

 What I have observed:
 There are cases, when EMC does not run a file, when PLC sends a signal
 to do so - I can see that on GPIO pin and and2.0 output pin.
 The thing is that pins that request changing to auto mode and running
 a file are true, but EMC does nothing. Resetting the GPIO pin
 usually solves the situation. So EMC does behave unusually.
 Blowing out the dust from all the cases - PC, monitor and the box with
 Mesa card and stepper drives. EMC behaved correctly for ~30 minutes
 and then this behavior started to repeat once in ~10 minutes.

 2) One of the spindles takes a wrong path.
 The work process is that operator places the material in fixture and
 presses Start button -  pneumatic cylinders hold it in place and
 spindles conduct a movement, shaping both ends of material. Cylinders
 release the material, operator takes the part out and puts the next
 part in and presses Start again.
 And then repeat this for hundreds of times.

 I have 2 joints hardcoded to X and other 2 joints hardcoded to Y in
 kinematics module.

 The error is that sometimes one of the spindles (not the same spindle
 all the times) moves less than needed along X thus ruining part. The
 differene is ~1mm.

 Most surprising is that after such a wrong move next part is correct.
 The thing is that deviance of 0.1 mm can already be seen on the part
 due to the shape of the tool and the shape of the cut.

 I have a suspicion that this might be something connected with Mesa
 card and magnetic field from VFD and also spindle motors, because
 there is CRT monitor ~0,5m from spindle motor and the picture gets
 creeped. It is good as soon as motor is turned off and gets creepy as
 soon as it is turned on. The pattern of creepiness changes as the
 motor moves.

 If there was a noise in step/dir signals, then the error should
 remain. But the thing is that in all the cases it recovers and next
 part is totally fine.

 The pattern for this error was something like this:
 No error for first 40-50 minutes.
 One part ruined.
 Fine for 5-10 minutes.
 One part ruined.
 Fine for ~20 parts.
 One part ruined.
 Fine for 6 parts.
 One part ruined.
 Fine for 4 parts.
 One part ruined.
 Fine for 10-15 parts.
 One part ruined.
 Then I lost the track.

 Confirmed by supervisor - the tendency is that all these errors (and
 they say that there are other errors that I was not able to observe
 during 3 hours I was there) get worse and worse as the machine is
 working. So if one 

Re: [Emc-users] Dust-proof case?

2011-11-04 Thread Slavko Kocjancic
Dne 4.11.2011 17:32, piše Viesturs Lācis:
 2011/11/4 Les Newellles.new...@fastmail.co.uk:
 In general wood dust does not affect computers that much. I have seen
 machines with piles of dust inside, still working fine day in day out.
 Heat is an issue so do as much as possible to keep it cool. Possibly fit
 an over sized CPU cooler.
 The thing is that machine works correctly for 40-50 mins, then
 malfunctions begin to appear - it does not run a file, when button is
 pressed and some other. Or it ruins a part, just as if motor had lost
 steps, but the trick is that next part if good without rehoming or any
 other activity taken - just change material and run the file.
 And the more machine is running the more often these malfunctions
 appear. That tells me that some parts in machine are overheating and
 thus not functioning properly. I would like to blame the dust that
 gets in all the narrow places on the boards and disturb normal heat
 dissipation.


This seems more driver board problem as PC overheating.
If PC overheats then is more possible to hangup. I think you drive some 
electronic on the edge. Ie if you use printer port that is possible to 
work just in margin and when heat's up then doesn't work more. But 
another thing is that you say that after that error you can continue 
work that is wery strange.

And as few people already say. Dry wood dust doesn't harm computer. But 
they accumulate on all fans and heatsinks and cause problems. Presurized 
case with fan with filter seems good idea. For monitor's there is no fan 
so no trouble of that kind should be expected. But if you use old type 
with CRT (not LCD) then this monitor isn't for dust environment. They 
have high anode voltage (10 to 25kV depends on size) and that attract 
dust to accumulate on HV wires. Not good...

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Simple homing question

2011-11-03 Thread Slavko Kocjancic
Dne 3.11.2011 7:21, piše Tom Easterday:
 On Nov 2, 2011, at 5:50 PM, Jon Elson wrote:
 On 11/02/2011 12:07 PM, Tom Easterday wrote:
 Pleas tell me how you home an axis with 2 joints to an index pulse?


 The way commercial machines like big gantry boring mills do it is they
 have a swivel joint in the gantry.  So, each tower of the gantry can move
 independently without any binding.  The beam across the gantry has a swivel
 at one end, and a slotted bearing at the other.  They may have limit
 switches
 on the slotted bearing so if the machine gets seriously out of square, it
 trips the E-stop.  In this manner, the two linear joints can move relatively
 together toward home, and then each homes to its own home switch
 and index pulse.  Once homed, then the CNC program always keeps
 them parallel.
 I would like to see a picture or video, that sounds interesting.  But, let me 
 me rephrase my question…

 Using gantrykins with a gantry that cannot be out of square more than about 
 3/4, how can we home the 2-jointed Y axis?

 We cannot move in World Mode before homing.  We cannot move in Joint Mode 
 without racking.  We cannot understand how to select one encoder to find 
 index pulse on. Can we home to one of the two index pulses or is this 
 impossible?

 -Tom


If you have stepper then if one stepper lost step you have trouble. To 
avoid that I think the only option is to have encoder disc on each side 
and then compare reading pulses from them. As you can tolerate 3/4 
(18mm) then encoder can be homemade as it need only one or two slot's 
(like butterfly for example). And let's do EMC to compare both encoders. 
If they go out of sync 2 or more pulses then STOP is trigered. and all 
the programming (i hope) can be done in HAL.

Slavko.

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Simple homing question

2011-11-03 Thread Slavko Kocjancic
Scenario for Homming...

1. Wire both home switch (assume NC) in series and send motor to home 
and leave motor in just tripped position.
2. Rewire home switches to have both of them readable in port.
3. If both are oppened then machine is in exact position so nothing is 
needed.
3a.  if one switch is untripped then disable motor drive for tripped side.
3b. send other motor to home with own switch. When tripped the machine 
is aligned.

That can be done in HAL without recompiling component's.
Nothing in hardware is needed if home switch are routed to controller 
separatly. All 'relays' to rewire switches can be done with HAL components.

And the sadd news. The steps 1 to 3 can be regular HOME command. For 
3a/b (aligning gantry) probably the some G code is best. (Or PVCP or 
something similar)

I don't have gantry machine (not completed yet) so I can't test to be 
shure how to manage that.  Just thinking...


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Is there a way to automatic start EMC2.4.x with Axis in full screen mode on power up?

2011-10-28 Thread Slavko Kocjancic
Dne 28.10.2011 7:42, piše Andrew:
 2011/10/28 Don Stanleydstanley1...@gmail.com

 Hi  All;
 As clever as EMC2 is I was wonder if it could start with Axis in full
 Screen?
 It is not a show stopper, just a convenience.

 Don,
 Look here
 http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?To_Make_The_AXIS_Screen_As_Large_As_Possible

 Andr
That's unusable as links in article is death.
As I remember that include some software installing...
And a lot of people asked that already. So why that (wishlist) isn't 
done already.
For someone with knowledge of programming it's should be piece of cake 
to 'push that maximize button' or even beter to let's AXIS to save last 
used position (and probably edit window size too) and on next start 
(autostart?) to show AXIS as is last used.

Near all program's can do that. AXIS not...

Slavko

--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] EMC2, Compensating for friction

2011-02-03 Thread Slavko Kocjancic
That's not problem of friction at all!.

The worst you have is 'sticky' axis.
That means you need a lot more power to start to move axis and when already
moving the required power is a way smaller.
And if that ratio is big then tuning PID is near imposible. You can have low
static error or low (or none) overshots but not the both!.
So in this point of view the mechanics is bad nad electronic's can't do the
job.
The ratio can be measured with spring scalle.
Just make arm on screw and then pull that arm with scale. Slowly pull until
axis move then stop pulling and you have reading just at the point before
start and when stoped. (you need some support for pulling as if you pull
with bare hand then the 'stop' can't be measured as hand is to 'springy')
And if ratio is biger than 1:2 then you have serrious problem.



2011/1/26 Igor Chudov ichu...@gmail.com

 I have a rotary table (4th axis) that has considerable friction.

 I know this because the DC servo motor requires at least about 4 amps, to
 turn the table.

 The rotary table has a tight worm drive, not some sort of a ballscrew, and
 the drive is hard to turn. I did try that without the motor, by hand, and
 it
 was clearly a bit hard to move.

 I finally got the table work with EMC2 (thanks to Jon), and have a problem
 with is a high following error. The error is 0.04 degrees. Since there is a
 considerable reduction ratio in the work drive, the following error amounts
 to something like 5 degrees of a turn of the motor (I may be off with my
 math VERY easily, but clearly it is huge with that much reduction).

 Right or wrong, I attribute this to the friction in the worm drive system
 --
 the servo motor develops following error when working against friction.

 I have AMC DC drives working in torque mode.

 My question is what servo tuning parameters could I use to compensate for
 high friction. It seems that I almost need FF(-1) or something like that?

 Thanks

 i

 --
 Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
 Finally, a world-class log management solution at an even better
 price-free!
 Download using promo code Free_Logger_4_Dev2Dev. Offer expires
 February 28th, so secure your free ArcSight Logger TODAY!
 http://p.sf.net/sfu/arcsight-sfd2d
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] EMC2, Compensating for friction

2011-02-03 Thread Slavko Kocjancic
S, Igor Chudov piše:
 On Thu, Feb 3, 2011 at 7:16 AM, Slavko Kocjancicesla...@gmail.com  wrote:

 That's not problem of friction at all!.

 The worst you have is 'sticky' axis.
 That means you need a lot more power to start to move axis and when already
 moving the required power is a way smaller.

 No.

 This is an axis with friction. The opposing force dows not diminish with
 movement.


If that's true then you motor is underpowered. Ie need motor with higher 
torqe or you need to use some kind of gearing. if you assume that 1 is 
max power from emc then 0.1 should (must) be enought to move you axis. 
But you say 4Amps to move. I'm in doubt you have 40Amp servo. So as is 
is not good. Probably the easyest is to introduce some gearing. Do you 
need to turn this axis quick or just as indexer? Worm's are made 
(mostly) for slow drives. So gear your servo and you will see that 
problem dissapear misticaly. ...
btw what is encoder resolution? For good result the encoder resolution 
should be at least 10 times greater than expected resolution. (Higher 
the better for underpowered devices)

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] adding a thread for charge pump

2011-01-13 Thread Slavko Kocjancic
S, Tom Easterday piše:
 I have a charge pump board that wants a 3000-15,500Hz signal.  That is slower 
 then my base-thread so I want to create another slower thread for the charge 
 pump.

 I have tried many combination using loadrt threads but can't get it to work.  
 The problem (or one problem) is that threads says that the threads should be 
 created in order of fastest to slowest.  In my kinematics.hal file I am using 
 EMCMOT to create a base thread of 21600 and servo thread of 100 so when I 
 try in my_machine.hal to do
 loadrt threads name1=cp-thread period1=125000 it complains that it is faster 
 then the existing servo thread.

 But I don't see a way to create the thead in EMCMOT.  I have also tried 
 creating all three in loadrt threads but that fails because it appears that 
 the servo thread is getting created even if I remove the specification of the 
 period from EMCMOT config.

 Any ideas?
 -Tom


You run base thread at 46kHz and if you put charge pump here you got one 
half of that (23kHz). If you charge pump has declared such wide span 
then it's build around diode/capacitor circuit and higher frequency 
doesn't hurt here. So just try with you base thread, it's should work.

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Charge Pump on Wiki

2011-01-10 Thread Slavko Kocjancic
S, Kirk Wallace pis(e:
 On Sun, 2011-01-09 at 16:13 -0800, Kirk Wallace wrote:
 In case anyone might be interested, I added a charge pump page to the
 wiki. If any one has charge pump information or machine configurations
 they would like to share on that page, please add it to the page.
 Corrections are welcome too.

 http://wiki.linuxcnc.org/emcinfo.pl?About_Charge_Pumps

 Oops, I forgot the subject:(
As e_stop_latch has near same output (one of them) it's good idea to 
mention it in that wiki. And just comment for 567 circuit. The 5V peak 
to peak is little high for them. Just use voltage divider (1/10 ratio) 
on input and should work.
--
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Watchdog Sizing

2010-12-08 Thread Slavko Kocjancic



S, Roland Jollivet piše:
 I was wondering, can a fault ever occur with EMC where the frequency of the
 charge pump frequency increases?? This would keep the charge pump detector
 'up', but a uP would detect an error condition.

 Regards
 Roland


NE567 can solve that too...


--
This SF Dev2Dev email is sponsored by:

WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Watchdog Sizing

2010-12-08 Thread Slavko Kocjancic
S, Erik Christiansen piše:
 On Wed, Dec 08, 2010 at 07:00:27PM -0800, Kirk Wallace wrote:
 Thank you John. I really appreciate the time you take to help. Using
 your information above, I redrew the schematic, which I'll revise as I
 go. It's at the bottom of the page here:
 http://www.wallacecompany.com/machine_shop/Shizuoka/
 Kirk, apropos the comment there that it's not quite clear how the charge
 pump works, does it help at all, just for a more physical visualisation,
 to imagine C1 as a liquid pump's cylinder, with the top plate being the
 piston, driven up and down by IC1A, and D1  D2 as fluid non-return
 valves? C2 is the reservoir into which this pump is pumping positive
 charge [1]. If C1 isn't driven up and down, charge isn't going to flow
 out of ground to C2, and its charge decays through R2.

 The only change I'd make to the circuit is to connect R1 to +5v, so that
 the default state of IC1A output is low. That is because a capacitor is
 more likely than not to go short circuit in the rare event that it
 fails. That would give a false OK, in the absence of input. (It'll
 work fine as-is if there's no component failure.)

 Dunno if my attempt to paint a picture really ended up less laboured,
 and more descriptive that going through it in purely electronic terms,
 but we can always do that if this attempt isn't as clear as it should
 be.

 Erik
Maybe you have just too little current in output. So just route unused 
gates paralel to last one. (pins 1,3,5,9 together and pins 2,4,6,8 together)

--
This SF Dev2Dev email is sponsored by:

WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Teach mode?

2010-12-07 Thread Slavko Kocjancic
There are a way how I managed this stuff *http://tinyurl.com/2wm7qc6

*

S, Michael Haberler pis(e:
 Slavko,

 this looks very useful to me

 would you mind documenting this setup (configuration, packages, versions etc) 
 on the emc Wiki?

 regards
 -Michael

 Am 06.12.2010 um 08:36 schrieb Slavko Kocjancic:

 S, Colin K pis(e:
 Is there a way to record a series of entirely manual (not MDI) moves for
 playback as a program?
 --
 What happens now with your Lotus Notes apps - do you make another costly
 upgrade, or settle for being marooned without product support? Time to move
 off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
 use, and manage than apps on traditional platforms. Sign up for the Lotus
 Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

 Just start teach-in.py script. I does jut that thing.

 ... or check way more in *http://tinyurl.com/23zc3hk thread.

 Slavko.
 *
 --
 What happens now with your Lotus Notes apps - do you make another costly
 upgrade, or settle for being marooned without product support? Time to move
 off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
 use, and manage than apps on traditional platforms. Sign up for the Lotus
 Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

 --
 What happens now with your Lotus Notes apps - do you make another costly
 upgrade, or settle for being marooned without product support? Time to move
 off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
 use, and manage than apps on traditional platforms. Sign up for the Lotus
 Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Teach mode?

2010-12-07 Thread Slavko Kocjancic
S, Viesturs Lācis piše:
 Slavko, in the last message in the thread the links are not included.
 Could You, please, check that?


The all files are added to zip file attached.

 Viesturs

 2010/12/7 Slavko Kocjancicesla...@gmail.com:
 There are a way how I managed this stuff *http://tinyurl.com/2wm7qc6

 *

 S, Michael Haberler pis(e:
 Slavko,

 this looks very useful to me

 would you mind documenting this setup (configuration, packages, versions 
 etc) on the emc Wiki?

 regards
 -Michael

 Am 06.12.2010 um 08:36 schrieb Slavko Kocjancic:

 S, Colin K pis(e:
 Is there a way to record a series of entirely manual (not MDI) moves for
 playback as a program?
 --
 What happens now with your Lotus Notes apps - do you make another costly
 upgrade, or settle for being marooned without product support? Time to 
 move
 off Lotus Notes and onto the cloud with Force.com, apps are easier to 
 build,
 use, and manage than apps on traditional platforms. Sign up for the Lotus
 Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

 Just start teach-in.py script. I does jut that thing.

 ... or check way more in *http://tinyurl.com/23zc3hk thread.

 Slavko.
 *
 --
 What happens now with your Lotus Notes apps - do you make another costly
 upgrade, or settle for being marooned without product support? Time to move
 off Lotus Notes and onto the cloud with Force.com, apps are easier to 
 build,
 use, and manage than apps on traditional platforms. Sign up for the Lotus
 Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users
 --
 What happens now with your Lotus Notes apps - do you make another costly
 upgrade, or settle for being marooned without product support? Time to move
 off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
 use, and manage than apps on traditional platforms. Sign up for the Lotus
 Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

 --
 What happens now with your Lotus Notes apps - do you make another costly
 upgrade, or settle for being marooned without product support? Time to move
 off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
 use, and manage than apps on traditional platforms. Sign up for the Lotus
 Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

 --
 What happens now with your Lotus Notes apps - do you make another costly
 upgrade, or settle for being marooned without product support? Time to move
 off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
 use, and manage than apps on traditional platforms. Sign up for the Lotus
 Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users



--
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Teach mode?

2010-12-06 Thread Slavko Kocjancic
S, Colin K pis(e:
 Is there a way to record a series of entirely manual (not MDI) moves for
 playback as a program?
 --
 What happens now with your Lotus Notes apps - do you make another costly
 upgrade, or settle for being marooned without product support? Time to move
 off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
 use, and manage than apps on traditional platforms. Sign up for the Lotus
 Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

Just start teach-in.py script. I does jut that thing.

... or check way more in *http://tinyurl.com/23zc3hk thread.

Slavko.
*
--
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Teach mode?

2010-12-06 Thread Slavko Kocjancic
camera moves with tool head. (it's mounted on base of router)

2010/12/6 Thomas Powderly tomp4...@gmail.com

 Slavco,
 nice work, do you have UV axis for camera? else i dont imagine how
 'machine moves to where camera was'.
 Here's some reticles that may interest you
 http://en.wikipedia.org/wiki/Reticle
 tom3p http://en.wikipedia.org/wiki/Reticle%0Atom3p


 --
 What happens now with your Lotus Notes apps - do you make another costly
 upgrade, or settle for being marooned without product support? Time to move
 off Lotus Notes and onto the cloud with Force.com, apps are easier to
 build,
 use, and manage than apps on traditional platforms. Sign up for the Lotus
 Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

--
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Watchdog Sizing

2010-12-05 Thread Slavko Kocjancic
S, Erik Christiansen piše:
 On Sat, Dec 04, 2010 at 09:04:54AM -0800, Kirk Wallace wrote:
 Then I got to thinking about what Slavko mentioned previously,
 about this is a safety device and I should think in terms of how it
 could fail.
 So long as the microcontroller's on-board watchdog is enabled, you have
 a watchdog watchdog to provide recovery from a soft error.

 When driving a critical output, you can add a pull-[up|down] resistor, to
 maintain the desired default state during power-up and any reset applied
 by the on-board watchdog.

 Erik
That's funn... If you already have watchdog (hardware) to keep ATtiny 
RESET good why do you need that MCU at all?!? Seems nonsense for me.

I don't hate MCU's. I use it a lot. But in places where they (I think) 
are needed. And Watchdog of that kind is surely not good idea.

But someone on forum say's something about PLL. That can be good idea 
too. There are some tondecoder PLL's like NE567. Cheap 8 pin DIL chip 
and two resistor's and one cap can solve that problem perfectly. You 
just need to do software chargepump at servo rate (1ms for example) and 
got 500Hz output for PLL. That's seems ideal too for me. Can't triger on 
wrong pulses and react fast.

Slavko.

--
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Watchdog Sizing

2010-12-05 Thread Slavko Kocjancic
S, Erik Christiansen piše:
 On Sun, Dec 05, 2010 at 01:40:58AM -0800, Kirk Wallace wrote:
 On Sun, 2010-12-05 at 09:44 +0200, Slavko Kocjancic wrote:
 ... snip
 That's funn... If you already have watchdog (hardware) to keep ATtiny
 RESET good why do you need that MCU at all?!? Seems nonsense for me.
 I think because the MCU is used to validate EMC2 before powering up the
 dangerous bits of the machine. The MCU's internal watchdog validates the
 MCU itself(?), which is a separate function. I need to read the MCU
 manual to see what features come with the using the watchdog. I suppose
 EMC2 could be used to validate the MCU, but things are getting
 complicated.
 Hmmm, its seems Slavko read right past microcontroller's on-board
 watchdog in my post. :-)

 Yes, the ATtiny's watchdog is on-chip, so the quandary doesn't arise.
 I wouldn't trust a microcontroller in any critical role, without a
 hardware supervisor. On an AVR, it has it's own clock, so even if the CPU
 clock dies, the watchdog reset will tri-state port pins.

 That is why a pull-[up|down] to a safe state is helpful on a port pin.
 It takes over in reset scenarios.

 The watchdog improves the reliability of the microcontroller by
 providing recovery from soft errors, whether caused by extreme
 transients or alpha particles.

 However, the ATtiny's watchdog is best enabled only after its program
 has been debugged. ;-)

 Erik


I use that MCU's And can tell you that Watchdog on tiny controlers are 
good one. But have problems. The mcu itself MUST be started correctly 
(reseted) and after that watchdog work correctly. But when big machine 
starts (with a lot of solenoids) the proper reset is wery hard to 
realize! And belive me that if you think in a way that unproper reset 
may casuse injury then just stay off that.

Slavko.


--
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Watchdog Sizing

2010-12-04 Thread Slavko Kocjancic
Just my 2 cents...

For watchdog thing I think the ATtiny is just overkill. That kind of
operation can be done with simple 555 timer or even few diodes and
transistor.

Don't get me wrong. The ATtiny (15L) for example can do that job but as
safety device the any micro isn't good way. And if system hang who says that
it can't set wrong configuration and disable watchdog? Just do that without
micro and use micro for other complicated thing..


2010/12/4 Kirk Wallace kwall...@wallacecompany.com

 On Sat, 2010-12-04 at 09:55 +0800, Jim Coleman wrote:
  I like the idea of a dip switch or solder bridges if one doesn't plan on
  changing the setting alot and wants to save the cost of the dip switch.
  while the pot would be easy to adjust, it's less precise than a truth
 table
  of the dip/bridge positions and the resultant reset timer.
 
  Jim

 Thanks Jim. I agree that it would be nice to have a precise, stable
 input, but I am also trying to avoid any hardware complexity in order to
 avoid an upgrade loop (ATtiny - ATmega - Atom Cube - Nanotube
 Superconducting Buckyball hyper... ). It may also be that one or a few
 presets might be enough. If charge pump is running at 1kHz (based on
 servo thread), it may be acceptable to wait up to a hundred cycles or .1
 seconds to trip an e-stop. If this is the case, .1 seconds might cover
 the range of common watchdog frequencies. Without testing or experience,
 I have a hard time knowing what will work.
 --
 Kirk Wallace
 http://www.wallacecompany.com/machine_shop/
 http://www.wallacecompany.com/E45/index.html
 California, USA



 --
 What happens now with your Lotus Notes apps - do you make another costly
 upgrade, or settle for being marooned without product support? Time to move
 off Lotus Notes and onto the cloud with Force.com, apps are easier to
 build,
 use, and manage than apps on traditional platforms. Sign up for the Lotus
 Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

--
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Video Accuracy

2010-09-17 Thread Slavko Kocjancic
  Out of my knowledge reach. This is job for someone other guy.


Na 17.9.2010 9:22, Sven Wesley je pisal:
 2010/9/16 Andy Pugha...@andypugh.fsnet.co.uk

 Axis is written in Python (I think) so perhaps this page would help?

 http://wwwx.cs.unc.edu/~gb/wp/blog/2007/02/04/python-opencv-wrapper-using-ctypes/http://wwwx.cs.unc.edu/%7Egb/wp/blog/2007/02/04/python-opencv-wrapper-using-ctypes/

 I reckon another tab to go along with the 3D preview and DRO ones
 would be the logical home for it.


 OpenCV is extremely powerful and includes object detection. If anyone would
 like to dig into the idea of integrating an object finder for EMC2, OpenCV
 is for sure the rght way to go.

 /Sven
 --
 Start uncovering the many advantages of virtual appliances
 and start using them to simplify application deployment and
 accelerate your shift to cloud computing.
 http://p.sf.net/sfu/novell-sfdev2dev
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users



--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Video Accuracy

2010-09-16 Thread Slavko Kocjancic
  Na 16.9.2010 0:29, chrisinnana...@hotmail.com je pisal:
 Someone has used a webcam to help align with emc. Though I don't think its 
 very fancy . Look in cnczone under emc I might have added a link to the wiki 
 ...



Just check my post before. It's not fancy but it's very usable. And 
about precission I have machine with halfstepp (400step/rev) and have 
3mm pitch leadscrew. So the minimal movment is 0.0075mm and that is very 
easy seen on webcam.

Slavko

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Video Accuracy

2010-09-16 Thread Slavko Kocjancic
  Na 15.9.2010 22:03, Kirk Wallace je pisal:
 Well that lets me know that I can expect to not need any fancy optics. I
 didn't see anything in the thread saying that Mach did anything other
 than show a video window. I suppose I could put AXIS and a separate
 video window up, but the bees knees would be for EMC2 to use the camera
 output as a probe input. For my application, it also depends on me
 coming up with a way to accurately rotate the gear without having a
 formal rotary table. I do have one, but it would be nice to come up with
 a way to make precise worm gear sets so that one could make a table
 without first having one.

I use that:

http://tinyurl.com/37s4djk*

*It's just webcam over EMC2. It's not integrated as my programming 
knowledge is to low. So I use it to find edges and other things. But I 
had to jog machine to precise possition. I like the way to just click 
part on image and machine goes there by itself. It's 100% doable but I 
can't integrate that in EMC2. Near same thing is in every optical mouse. 
And We don't need precission cameras without image distortion. Just 
sample image calculate aproximate distance and move then check again and 
retry few times. Just like succesive aproximation ADC does.

Slavko
--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Video Accuracy

2010-09-16 Thread Slavko Kocjancic
I just get gqvideocam freware and scrap out all unnecesary stuff. I think is
not worth to examine in detail if that cant be integrated onto axis for
example



010/9/16 Kirk Wallace kwall...@wallacecompany.com

 On Thu, 2010-09-16 at 10:16 -0700, Kirk Wallace wrote:
 ... snip
  I know nothing about video software. Does anyone know where the live
  picture on the screen lives? Can it be accessed? My thinking is, one
  could have the picture be black and white, add a red pixel for the
  center, then have a clickable green dot that marks the target. The
  number of positive or negative, vertical or horizontal pixels from the
  red dot to the green dot could be used for probing feedback.

 What is in /dev/videoX?
 --
 Kirk Wallace
 http://www.wallacecompany.com/machine_shop/
 http://www.wallacecompany.com/E45/index.html
 California, USA



 --
 Start uncovering the many advantages of virtual appliances
 and start using them to simplify application deployment and
 accelerate your shift to cloud computing.
 http://p.sf.net/sfu/novell-sfdev2dev
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Video Accuracy

2010-09-15 Thread Slavko Kocjancic
  Na 15.9.2010 18:18, Kirk Wallace je pisal:
 I have a project that requires being able to locate a scribed line very
 accurately(, worm gear cutting without a rotary table). One way to do
 this might be to use a microscope with a webcam, then center the line on
 an electronic cross-hair. If anyone has done this, your reply could save
 me from setting up the experiment myself. If this works, then the issue
 is how can I get EMC2 to use the webcam as position feedback.
http://bbs.homeshopmachinist.net/showthread.php?t=27425

That's antoher one... Sadly MACH related not EMC2...

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] USB to PARALLEL cable.

2010-09-13 Thread Slavko Kocjancic
  Na 13.9.2010 11:30, Spiderdab je pisal:
 Il 12/09/2010 11:22, Slavko Kocjancic ha scritto:
 Na 11.9.2010 17:00, Spiderdab je pisal:

 Il 11/09/2010 15:08, Andy Pugh ha scritto:

 On 11 September 2010 13:44, Ries van Twiske...@rvt.dds.nl wrote:


 It doesn't work,

 a USB can't be driven realtime.


 Also, I think that they only generally work for printing, (so pins may
 not be individually addressable, and not all pins may be supported)



 Ok, thanks for answering.
 now i'm using my old laptop with a P4 on, but it needs a lot of power
 from battery.
 i need to put this pc in a place with no power, that's the rule..

 now i'm powering the notebook plus the stepper driving card with four
 motors Nema23 with two little inverters (150W) connected to a car
 battery (100Ah).
 do you like the sistem? :)



 NO.

 In that case (mobile setup) I will prefer system without inverters.
 So If you currently have 100Ah/12V the same energy you get from 50Ah/24V.

 So just wire as many bateryes in series to get proper voltage for you
 stepper driver.  At least you have choice for 12V, 24V, 36V, 48V ...
 And you can get regulators from that voltage to laptop voltage. I have
 HP NX9005 laptop runing EMC2 and that need 2A @ 18V (battery dead-removed).

 So machine can work best on battery only but the question is what and
 how to power router. If machine is not big then the router is near all
 time power eater. Just be careful when calculating power needed to keep
 you router work.
 And remember near all power inverter has bad eficiency! If in label say
 that inverter is 92% efficient that this is true only in JUST RIGHT
 comsumption. Just for example. I had 1kW inverter with claim 92%
 efficient. Ind wher I measure that I just discover that efficiency
 changes from (surprise) 92% to just 40%  if I change resistive load from
 100W to 1000W. The peak power (92%) I catch at 850W load. And remember
 in idle time near all inverters took aprox 0.5A.

 Slavko.

 i have measured the current consumption.
 my notebook takes about 1A 220V, and the driver with the 4 stepper
 motors in action take around 0,4A 220V. so i'm using one 150W inverter
 for the notebook (it has a medium life battery which can help about
 current consumption) and a 175W inverter for the driver and motors. it's
 three days that i'm playng and training with this configurations without
 charging the battery. (maybe this night..)

 but i was thinking too, of using two batteries in series (24V) to power
 up the driver card directly, and to use only one inverter on one of the
 two batteries for the notebook. what do you think? is it going to work
 better for sure?

 thanks, davide.



So you have aprox 310W power consumption. (1.4A @ 220V) and this is 
aprox 26A @ 12V.
At your 100Ah battery this is little les than 4 hour operation time to 
deflat battery 100% and reduce live of battery close to nill.
If you keep safe margin at aprox 50% deflating battery you have 2h 
operation time.

If you driver's are 24V then use two battery and power bomputer from 
that. Near all computers have power around 18V so simple adapter is 
needed. (and remove battery as just eat power. If you afraid of power 
glitches the driver board is reseted 1'st and ruin part.)

Still open question how you power router?

Slavko.








--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] USB to PARALLEL cable.

2010-09-13 Thread Slavko Kocjancic
  Na 13.9.2010 12:39, Spiderdab je pisal:
 ..cut..
 So you have aprox 310W power consumption. (1.4A @ 220V) and this is
 aprox 26A @ 12V.
 At your 100Ah battery this is little les than 4 hour operation time to
 deflat battery 100% and reduce live of battery close to nill.
 If you keep safe margin at aprox 50% deflating battery you have 2h
 operation time.

 If you driver's are 24V then use two battery and power bomputer from
 that. Near all computers have power around 18V so simple adapter is
 needed. (and remove battery as just eat power. If you afraid of power
 glitches the driver board is reseted 1'st and ruin part.)

 Still open question how you power router?

 Slavko.

 yes, one.. my notebook works on 20Volts. are you saying to patch
 directly 24V to the notebook? or to find (build) a transformer from 24V
 to 20V?
Just need regulator. You can do it DIY is simple.
Just check what is labbeled on laptop adapter output. 20V ?A
You have to reduce from 24V to 20V. This is easy reach for linear 
regulators.
If you can measure real power consumption (DC side) best without battery 
as it can draw as twice as needed you can selec solution.
If it's under 2A (in most cases yes) you can live with LM78H18 and two 
diodes to do the job (and heatsink)


 and, the reason of not using the inverters is because them using more
 power than needed?


Yes. A lot more.

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] USB to PARALLEL cable.

2010-09-12 Thread Slavko Kocjancic
  Na 11.9.2010 17:00, Spiderdab je pisal:
 Il 11/09/2010 15:08, Andy Pugh ha scritto:
 On 11 September 2010 13:44, Ries van Twiske...@rvt.dds.nl   wrote:

 It doesn't work,

 a USB can't be driven realtime.

 Also, I think that they only generally work for printing, (so pins may
 not be individually addressable, and not all pins may be supported)


 Ok, thanks for answering.
 now i'm using my old laptop with a P4 on, but it needs a lot of power
 from battery.
 i need to put this pc in a place with no power, that's the rule..

 now i'm powering the notebook plus the stepper driving card with four
 motors Nema23 with two little inverters (150W) connected to a car
 battery (100Ah).
 do you like the sistem? :)


NO.

In that case (mobile setup) I will prefer system without inverters.
So If you currently have 100Ah/12V the same energy you get from 50Ah/24V.

So just wire as many bateryes in series to get proper voltage for you 
stepper driver.  At least you have choice for 12V, 24V, 36V, 48V ...
And you can get regulators from that voltage to laptop voltage. I have 
HP NX9005 laptop runing EMC2 and that need 2A @ 18V (battery dead-removed).

So machine can work best on battery only but the question is what and 
how to power router. If machine is not big then the router is near all 
time power eater. Just be careful when calculating power needed to keep 
you router work.
And remember near all power inverter has bad eficiency! If in label say 
that inverter is 92% efficient that this is true only in JUST RIGHT 
comsumption. Just for example. I had 1kW inverter with claim 92% 
efficient. Ind wher I measure that I just discover that efficiency 
changes from (surprise) 92% to just 40%  if I change resistive load from 
100W to 1000W. The peak power (92%) I catch at 850W load. And remember 
in idle time near all inverters took aprox 0.5A.

Slavko.

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Run in place

2010-09-09 Thread Slavko Kocjancic


As Jeff say I just forgot to enter: source scripts/emc-environment
Now it works.

Manuals are pretty bad (well not accurate). I know that kepping manuals up to 
date is near same job as programming itself. But as project (emc2) is 
maintained with so many developers kepping documantation is even harder.
I hate organization of emc2 webpages and support. It's so spreaded that this 
make confussion.
We have mailing list, forum, IRC ... emc2 page at linuxcnc and wiki and ... ... 
...
I think that now is time to join all that together in same place and to keep 
only one of 'delayed support as forum or mailing list' and live IRC.


Near same is in code. There is so many doubled things and that just confuse 
users.
Just one example (I know that as it's done for me.)

In documentation the stepgen has 14 different modes. That's just not true.
It's 15 different modes as one is added half year ago. And if someone look in 
source the same thing appear. In header where types are explained the type 15 
is missing. I find just two lines burried in code that talking something with 
type 15. Near impossible to find it.
And type 15 can be substitute for types 3 to 14 too. So kepping doubled 
functionality is in question. To keep or not to keep. Of course if that types 
are deleted the all users (using it) need to change one line in hal.ini

I must stop as I use EMC2 and I think I got a little out of toppic.





Na 8.9.2010 20:32, K.J. Kirwan je pisal:
 Hi Slavko,

 Although this does not help you with the question you asked,
 on behalf of those of us who are trying to improve the
 documents and user manuals, and for the benefit of those
 who might be reading and following this discussion, may I
 recommend that instead of whatever configuration you are
 using, as in your example

 ./configure --enable-run-in-place

 that you use instead

 ./configure --enable-run-in-place --enable-build-documentation

 so that you will have the latest documents available.

 It does not add too much time to the make, and you will get
 the benefit of the document corrections and updates that we
 are trying to bring you.

 Someone said that now --enable-run-in-place is the default,
 and is no longer needed, is this true?  If so, perhaps the
 --enable-build-documentation should also be made the default,
 and instead have --disable-build-documentation or something
 similar.  Comments?

 And if anyone has any document corrections needed, or any
 suggestions for document improvement, please post them to
 the emc-users list.

 Thanks for reading.

 Kim


 -Original Message-
 From: Slavko Kocjancicesla...@gmail.com
 Sent: Sep 7, 2010 11:00 AM
 To: Enhanced Machine Controller (EMC)emc-users@lists.sourceforge.net
 Subject: [Emc-users] Run in place

 Hello...
 I just try to make new development version of emc2 on my computer.

 as many times before I do:

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

 cd emc2-dev
 cd src
 ./autogen.sh
 ./configure --enable-run-in-place
 make
 sudo make setuid
 cd ..
 emc

 and try to run my configuration.
 The program report error and here is log.
 In the 1'st line is something that seems wrong. I (think) I compile with run
 in place !
 (I use 2.5.0~pre in same computer without problems) - Linux Hardy!



 Print file information:
 RUN_IN_PLACE=no
 EMC2_DIR=
 EMC2_BIN_DIR=/usr/bin
 EMC2_TCL_DIR=/usr/share/emc/tcl
 EMC2_SCRIPT_DIR=
 EMC2_RTLIB_DIR=/usr/realtime-2.6.24-16-rtai/modules/emc2
 EMC2_CONFIG_DIR=
 EMC2_LANG_DIR=/usr/share/emc/tcl/msgs
 INIVAR=inivar
 HALCMD=halcmd
 EMC2_EMCSH=/usr/bin/wish8.4
 EMC2 - 2.4.3
 Machine configuration directory is '/home/slavko/emc2/configs/tester'
 Machine configuration file is 'tester.ini'
 INIFILE=/home/slavko/emc2/configs/tester/tester.ini
 PARAMETER_FILE=stepper.var
 EMCMOT=motmod
 EMCIO=io
 TASK=milltask
 HALUI=halui
 DISPLAY=axis
 NML_FILE=emc.nml
 Starting EMC2...
 Starting EMC2 server program: emcsvr
 Loading Real Time OS, RTAPI, and HAL_LIB modules
 Starting EMC2 IO program: io
 Starting HAL User Interface program: halui
 Starting EMC2 TASK program: milltask
 Starting EMC2 DISPLAY program: axis
 Shutting down and cleaning up EMC2...
 Killing task emcsvr, PID=5873
 Killing task milltask, PID=5996
 Removing HAL_LIB, RTAPI, and Real Time OS modules
 Removing NML shared memory segments
 Cleanup done

 Debug file information:
 Traceback (most recent call last):
   File /usr/bin/axis, line 55, inmodule
 from rs274.interpret import StatMixin
 ImportError: cannot import name StatMixin
 5873
   PID TTY  STAT   TIME COMMAND
 5996
   PID TTY  STAT   TIME COMMAND
 Stopping realtime threads
 Unloading hal components

 Kernel message information:
 [  395.838657] I-pipe: Domain RTAI registered.
 [  395.838671] RTAI[hal]:3.6.1  mounted over IPIPE-NOTHREADS 2.0-04.
 [  395.838674] RTAI[hal]: compiled with gcc version 4.2.4 (Ubuntu
 4.2.4-1ubuntu3).
 [  395.838680] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs
 DISPATCHED), ISOL_CPUS_MASK: 

[Emc-users] Run in place

2010-09-07 Thread Slavko Kocjancic
Hello...
I just try to make new development version of emc2 on my computer.

as many times before I do:

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

cd emc2-dev
cd src
 ./autogen.sh
 ./configure --enable-run-in-place
 make
 sudo make setuid
 cd ..
emc

and try to run my configuration.
The program report error and here is log.
In the 1'st line is something that seems wrong. I (think) I compile with run
in place !
(I use 2.5.0~pre in same computer without problems) - Linux Hardy!



Print file information:
RUN_IN_PLACE=no
EMC2_DIR=
EMC2_BIN_DIR=/usr/bin
EMC2_TCL_DIR=/usr/share/emc/tcl
EMC2_SCRIPT_DIR=
EMC2_RTLIB_DIR=/usr/realtime-2.6.24-16-rtai/modules/emc2
EMC2_CONFIG_DIR=
EMC2_LANG_DIR=/usr/share/emc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
EMC2_EMCSH=/usr/bin/wish8.4
EMC2 - 2.4.3
Machine configuration directory is '/home/slavko/emc2/configs/tester'
Machine configuration file is 'tester.ini'
INIFILE=/home/slavko/emc2/configs/tester/tester.ini
PARAMETER_FILE=stepper.var
EMCMOT=motmod
EMCIO=io
TASK=milltask
HALUI=halui
DISPLAY=axis
NML_FILE=emc.nml
Starting EMC2...
Starting EMC2 server program: emcsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting EMC2 IO program: io
Starting HAL User Interface program: halui
Starting EMC2 TASK program: milltask
Starting EMC2 DISPLAY program: axis
Shutting down and cleaning up EMC2...
Killing task emcsvr, PID=5873
Killing task milltask, PID=5996
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done

Debug file information:
Traceback (most recent call last):
  File /usr/bin/axis, line 55, in module
from rs274.interpret import StatMixin
ImportError: cannot import name StatMixin
5873
  PID TTY  STAT   TIME COMMAND
5996
  PID TTY  STAT   TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:
[  395.838657] I-pipe: Domain RTAI registered.
[  395.838671] RTAI[hal]: 3.6.1 mounted over IPIPE-NOTHREADS 2.0-04.
[  395.838674] RTAI[hal]: compiled with gcc version 4.2.4 (Ubuntu
4.2.4-1ubuntu3).
[  395.838680] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs
DISPATCHED), ISOL_CPUS_MASK: 0).
[  395.838683] PIPELINE layers:
[  395.838686] dcc15000 9ac15d93 RTAI 200
[  395.838688] c0383180 0 Linux 100
[  395.856223] RTAI[malloc]: global heap size = 2097152 bytes, BSD.
[  395.856832] RTAI[sched]: loaded (IMMEDIATE, UP, USER/KERNEL SPACE: with
RTAI OWN KTASKs, kstacks pool size = 524288 bytes.
[  395.856838] RTAI[sched]: hard timer type/freq = 8254-PIT/1193180(Hz);
default timing: periodic; linear timed lists.
[  395.856842] RTAI[sched]: Linux timer freq = 250 (Hz), CPU freq =
2120175000 hz.
[  395.856845] RTAI[sched]: timer setup = 2010 ns, resched latency = 2688
ns.
[  395.953159] RTAI[math]: loaded.
[  396.216659] config string '0x0378'
[  397.674116] RTAI[math]: unloaded.
[  397.784611] SCHED releases registered named ALIEN RTGLBH
[  397.849522] RTAI[malloc]: unloaded.
[  397.945803] RTAI[sched]: unloaded (forced hard/soft/hard transitions:
traps 0, syscalls 0).
[  397.952770] I-pipe: Domain RTAI unregistered.
[  397.952790] RTAI[hal]: unmounted.
--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Monitor cable lengths

2010-09-01 Thread Slavko Kocjancic
Przemek Klosowski pravi:
 On Wed, Sep 1, 2010 at 5:28 AM, Roland Jollivet
 roland.jolli...@gmail.com wrote:
   
 Why not use camera cable for the analog?

 Surveillance cameras run off long thin cables and they seem to work ok?
 

 Yes but the cameras use the NTSC-like (640x486, 60Hz, interlaced)
 resolution, i.e. the frequency bandwidth is  10MHz;
 people here want to use 1080p, which is 1920x1080 at 120Hz, i.e. 250
 MHz bandwidth.
   
If LCD is used and not for games then just use lowest possible refresh 
rate. 120Hz is just overkill. even 30 frames work (if you can tell that 
to driver)  You will be amazed how big difference is just lovering from 
120 to 60Hz,,,

just try cost is null!!!



--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] ngc file runtime estimation ?

2010-08-28 Thread Slavko Kocjancic
Hmm this seems just right. But I think the feedrate should be taken into 
acount and then used some normalized value.

So if we Have G1 move 10mm long with F10  that should be equal to G1 
move 100mm long with F100.
And if we precalculate total length(normalized) we can in runtime 
predict time to end (or percentage). With this the estimated time can be 
precise even if speed override is used.

This should work until some probe cycle is involved.
Canned cycles isn't problematic and subs too.. (just need to execute it) 
But Probe cycle and some other ones can be problematic.

Slavko.



Viesturs Lācis pravi:
 Well, just as it was said in the previous discussion, even without
 functions, subroutines etc this approach sucks, because  You can have
 one line of G1 move for 0.5 mm and second line with G1 move of 3000
 mm. They will be treated equally in this approach, while there is
 difference of thousand of times, how long it actually takes to execute
 both of them.
 I think that distance traveled vs total distance to go is more precise
 approach. Actually that is what I would like to use, but that is not
 that high priority for me to start investigating that.

 /vie

 2010/8/27 Ries van Twisk e...@rvt.dds.nl:


--
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Unexpected latency problem

2010-06-13 Thread Slavko Kocjancic
Gene Heskett pravi:
 because the output process to tell you adds to the problem.  So it is 
 occurring later even if not reported.

 Set your BASE_PERIOD for say 50us, and the servo loop time for at least 10x 
 that.  Try this, and reduce the BASE_PERIOD 5u-secs at a time until you can 
 just barely note that the machine feels busy and keyboard response loses its 
 instant feel.  Add the last 5u-secs back and leave it there.  This has 
 worked well for me, on an old Athlon running at 1.6Ghz.
   
My machine work happy with 20us and mouse doesn't stick. So I have 25us 
as safe. The motor's sound's good but in 30uS the some noise start 
appearing and goes worse till 45us when motors stall.

 Longer BASE_PERIODs will have a noticeable effect on how the motors sound at 
 higher speeds because it limits the size of the speed step available and you 
 hear the motors stepping up and down like 2 or 3 key gaps on the piano 
 keyboard.  The shorter BASE_PERIODs will make this smoother, and because the 
 motors can follow these smaller steps easier, you can get higher speeds.  I 
 have also, at least on my little machine, found that setting the 
 accelerations to smaller values so you hear the motors winding up and 
 unwinding, also helps to achieve the higher speeds.  This, like everything 
 else has trade offs because the smaller motions never get to a very high 
 speed.

 Your broken bit because Z didn't retract was probably caused by the 
 combination of a too high acceleration setting, combined with MAX_VEL also 
 being too high, and when one of those latencies hit, the motor went out of 
 sync  stopped, and the next pulses after the latency hit were too fast for 
 the motor of follow from a dead stop.
   

I don't know why. The machine worked without problems. Just got that 
single 'hickup' once in aprox half of year.
That's the reason why I ask for latency error message. Is that apear if 
latency is longer than base thread or what.
I assume that acceleration is ok as work now without problem. I think 
the error can be some EMI interference
or just one bad jitter on computer. So the question is is EMC capable to 
say that jitter is longer than base period?

 So the first thing is to find out where the latency is.  Personally, the 
 least interfering video driver (which causes 75% of these problems, and poor 
 APIC hardware is often found) turned out to be the vesa driver.  The nvidia 
 driver was by far the worst, the nv driver was better, and the vesa driver 
 was hand downs the best.  YMMV of course.  I haven't ever had an ATI card in 
 that machine, just a series of nvidia cards, which have a limited lifetime, 
 those with fans only last as long at the $0.65 fan they use on them.

 APIC related problems are best treated with a different motherboard.

 Somewhere in all the above rambling might be something helpful.  I hope so 
 at any rate.

   
 The latency error is only reported once, the first time it happens, 
 mainly

How to change driver?!? I had what is on live CD and works.

Slavko.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Unexpected latency problem

2010-06-12 Thread Slavko Kocjancic
Hello...

Just one question.
What even't triger RTAI error message Unexpected latency error message 
(showed only once)
I know that is report of lattency problem but when is trigered?
I have base thread on 25uS so is this triggered when jitter is more than 
25uS or what?

I have laptop for running EMC. If I startup computer and immediatly 
start EMC I got that error and if I start lattency test right on startup 
then I got lattency in range of miliseconds. But after few minutes they 
dissapear and then latency stay in 15uS range (glxgear running over the 
30hour test) I suspect that this is caused as the laptop has no battery 
(was death) and when charger abort charge the latency problem is solved.

Just now I had problem (once) that Z axis was'nt goes up and I broke 
drill bit. So I don't know what cause that. I suspect if that is jitter 
problem (over 25uS) i should got message about that but here are no 
message. I know I have underpowered Z stepper but also have slow 
acceleration and speed. I't never bind till now.
I use phase drive so step/dir timing's isn't cause.

Slavko.

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Latency and laptop.

2010-06-04 Thread Slavko Kocjancic

Hello...

I know that laptop's are not great for EMC, but I have few of them lying
around and wish to use it.

HP NX9005 work's now for longer time without some troubles. It has some
strange thing. The layency in 1'st few minutes (up to 5) is high(in
range 1ms). I don't know why but after that they are low (around 15uS)
and stay there all the day. more hour's machining isn't problematic. (I
didn't disabled SMI) I expect that is caused by death baterry(removed).

Now I try to wake up the IBM ThinkPad T23
Pentium III 1GHz
640MB/RAM
The 1'st issue was SMI. The 200uS latency every 60 seconds. I disabled
SMI and got latency in range 15uS. I leave just latency test running one
hour to be safe. (I was surprised as CPU fan is turned on and off few
times during that test with SMI off). After that I run glxgears and
leave another hour. all just fine. But then I maximized glxgear window
and horror of 2 miliseconds appear.
I try to open openoffice and was just ok. I can write / open / save no
bad latency. But the resizing window (no mather what window) does bad
latency. I discovered if I just run latency test and maximize it's
window the bad think happens?

What can be cause? Video? (S3 Graphich SuperSavage/IXC1014 reported
within WindowsXP)

Any cure?

Slavko.


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Jog under PAUSE / tool cnange

2010-05-18 Thread Slavko Kocjancic
John Kasunich pravi:
 I already wrote half a book last night, and I'm not going to do it
 again today.  Suffice it to say that Run from Line is another one
 of those things that is incredibly hard to do in a correctly in all
 cases.  If a program uses nothing but G0, G1, G2, G3, then it is
 relatively easy.  But when you start using fixture offsets, automatic
 tool length measurement, variables, loops, etc, it gets very tricky.

 I'll bet anyone a pint of their favorite beer that for any suggested
 implementation of run-from-line, I can come up with g-code that breaks
 it.  If we ever get to the point when I have to buy someone a beer,
 then we finally have a design spec that is worthy of the name, and
 that can be used to actually code up the feature.

 Regards,

 John Kasunich

   
Just that.
And saddly very true.
The run from line is not possible to implement.
As John says if Only G0,1,2,3 was in program then we realy don't need to 
scan all data before. Just pick last XYZ... and reuse it. Or if you stop 
machine and save with G30.1 and do whatever you want and after that 
execute G30 the machine restore end point and just run from (that 
interupted line) again wil do just right. (if you use I and J instead R 
in G2,3 ).
If your program has something more (subs, canned) the solution can 
reach inpossible to implement point.
Just imagine that program use touch probe to measure something and store 
to variable. And after pause the program scans again file until start 
from here line come. How to store correct value in variable if machine 
should not move !

So stop thinking in that way. This is just time eater. Instead writting 
long post the beter way is to make some constructive decision. (or even 
solution)

As I know the three real event are in interest and many not real 
inportant wishes.

And I think we should focus on this three event's

1. Swarf removal
Need to pause machine and jog tool out of part, clean swarf, resume 
position and resume operation. (this should be not to hard to implement 
Just JOG is needed)
   
2. Tool change
Manual tool change need to jog and to make TouchOff. As interpreter 
stops already at M6 I think this is not so hard to do too as queue is 
stoped by M6)

3. Tool change when broken
Need to pause machine, Jog and TouchOff. This seem's to be hardest 
to implement's as machine is probably stoped within line. Touch Off is 
queue problem. (or not?)

So two of option should be easy to implement. the other 33% is harder. 
So let's make this two operational. This wil make 66% people happier and 
33% still waiting.

I'm not studied queue operaton but I wonder how is managed.
Is there are all coordinates in machine coordinate? If yes then TouchOff 
need to clean queue. If not then program can resume in that queue when 
resume is pressed. And this is pointing me to idea to have two queues. 
One main and one for operations under break.
Eg when hitting PAUSE all machine offsets/modals/positions are saved.
The queue is replaced
the all motion needed is done then
when resume is hitted
machine restore previous queue
restore all saved data
restore position
and continue queue operation.

Slavko.


--

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


Re: [Emc-users] Jog under PAUSE / tool cnange

2010-05-17 Thread Slavko Kocjancic
I like that description John.
I'm myself are aware of problems of realtime programming as I do that 
daily with microcontrollers but other user's doesn't know that problems.
I know that editing/modifiing realtime software is pain. You make new 
function and other one stops work as should. It's nasty. And my 
program's are up to about 40 kilobyte of machine code and EMC2 is hughe.

But! Yes there is But. It can be done! And it should be done!
Why?
Beacouse all workaround are so messy and dangerous that we should 
minimise risk!
Is someone milling plastic and swarf catch the tool the user want to 
pause and cleanup the tool as they know that this mees will burn part. 
And how he can do that?
It can pause machine and can stop spindle(not in emc but there should be 
some external controll too) Now the plastic can be wraped around tool 
and the only way to get it out is to cut that from spindle as we can't 
jog in out of the work. And cutting with sharp knife in sharp tool isn't 
good idea.

another one:
The user drill printed circuit board.
They broke drill bit and pause machine. How to replace it? In software 
as is there are no way to do that. But has some messy workaround. as 
stop program jog machine and resume last line and forgot that pisece of 
broken bit is in that hole and restart just to broke another one.

But if we PAUSE machine the motion queue can be cleaned! For resumming 
we only need the last (paused) position and line where it happens to 
resume on just right spot and fill up the motion queue with new data.
It can be done.

And the last. The people (developers) makes great program for free. So 
we can only to have wish what we want and they wil decide if thing wil 
be done. That's true. If they don't need that stuff then this will be 
done latter.(if at all)
Is someone of developer come to Slovenia then just drop the mail and I 
wil fillup the fridge with beer. There this is the only payment method 
with opensource and free program as EMC2 is.

Slavko.


p.s.
Just one thing. What software (or machine) doesn't alow jog under pause?


--

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


Re: [Emc-users] Jog under PAUSE / tool cnange

2010-05-17 Thread Slavko Kocjancic
Slavko Kocjancic pravi:


 p.s.
 Just one thing. What software (or machine) doesn't alow jog under pause?

   
Uff I forgot that one. EMC2


--

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


Re: [Emc-users] Jog under PAUSE / tool cnange

2010-05-17 Thread Slavko Kocjancic
Andy Pugh pravi:
 On 17 May 2010 09:12, Ian W. Wright watchma...@talktalk.net wrote:

   
 As my initial suggestions - I can't see why the program would have to
 return to exactly the same place in the script as it was when it was
 paused before the jog surely it could return to the start of the
 'block' or line it was cutting at the pause..
 

 This would be simpler (I think). You basically throw away the queue
 when pause is pressed and run from line but if you imagine needing
 to unclog a cutter near the end of a very long slot, you could have
 been in that same G-code line for 20 minutes.
   
Assume program:

N1 G01 X100 Y100
N2 G01 X300 Y-10
N3 G01 X0 Y0

If you stop/pause that progran let's say in N2 just before they end and 
save coordinate like G30.1 and do jog or whatever...
And if you restore coordinate like G30 the machine wil go to the point 
where is paused (linear line)
and if you rerun line N2 it wil do just smal move to the end at X300 
Y-10 not the whole thing from X100 Y100 to X300 Y-10
It should work at least with G0/1/2/3 (G2/3 with radius can be 
problematic but not with I,J)
In case of canned cycle the restore of Z axis can be problematic. I 
think to restore from backoff Z is much safer. (and to decide retry last 
canned cycle or skip to next)

For my knowledge the only stop point and line is needed and queue can be 
cleaned. The stop point can be probably saved (we must wait to machine 
do real stop with deceleration) and line is already known. (or axys lye 
where program is)


Slavko.

--

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


Re: [Emc-users] Jog under PAUSE / tool cnange

2010-05-17 Thread Slavko Kocjancic
I can't belive that we are talking so much how hard is to implement this.
And nobody implementing this just beacouse is hard.

http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?EmcFeatures
There are features that at least 90% of user's doesn't need. But will be 
added just beacouse they are simple to implement. :-(

--

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


Re: [Emc-users] Jog under PAUSE / tool cnange

2010-05-17 Thread Slavko Kocjancic
Stuart Stevenson pravi:
 Slavko,

 On Mon, May 17, 2010 at 4:15 AM, Slavko Kocjancic esla...@gmail.com wrote:

   
 Slavko Kocjancic pravi:
 
 p.s.
 Just one thing. What software (or machine) doesn't alow jog under pause?


   
 Uff I forgot that one. EMC2

 


 Forgive me if I did not understand the tone of this post. I speak English
 and a little Spanish so I understand the difficulties of expressing an idea
 with complete clarity in a second language.
   Hell, I understand the difficulty of expressing an idea in my native
 language. :) It seems many times my employees have heard me say 'Just do
 whatever the hell you want to do' when in reality that is NOT what I said.

   
Well I didn't speak english very well.
So if my post hurt somebody thet is not my intention! I just want to 
say that some common and needed feature (i found it in a other software 
and machines) doesn't implemented in EMC2 and should be!
Now I have some small pcb drilling CNC with my own software controller 
and one biger CNC with EMC2. And I install EMC2 instead something else 
(or write by myself) I didn't do that beacouse I know that this is not 
easy task. EMC2 is good. But We Want to be better. And that jogging 
definetly will make EMC2 better - more user friendly.

Slavko.

p.s.
I want to say:  We need that feature Please.
not to say: stupid developers why this isn't already there. :-D

--

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


Re: [Emc-users] Jog under PAUSE / tool cnange

2010-05-17 Thread Slavko Kocjancic
Hello...
Not bad idea to be separate item as jog under toolchange can be resolved 
quicker.
I changed wiki and I think all command M0 M1 and M6 can behave similar.
For example if someone mill plastic then can issue few M1 in program and 
has optional stop on M1 dissabled.
If swarf come up then just enable M1 pause and have nice workaround.
Maybe there is not bad idea to have another one pause button that pause 
program like inserting M1 after just current line?!? Easyer to implement.

Beaware of one nasty thing with manualtoolchange.py! When window popup 
the keyboard control is on that window! If someone uses Estop in 
keyboard and something goes wrong during toolchange dialog then Estop 
button wont work!
Slavko

Ries van Twisk pravi:
 Salvko,

 i think it would be a good idea to seperate item 15 into two items:


 15) JOG under PAUSE - Alow users to jog machine when program is paused.
 16) JOG under ToolChange - Alow users to jog machine when program  M6  
 executed. The TouchOff? should be enabled too and maybe even MDI

 Although they look the same, the problem domain is in both cases  
 somewhere else.

 As noticed before, item 16) is possible easer to solve then item 15)  
 because of various internals


 With 15 it would be just fine if you can jog out, stop the spindle  
 clean the workpiece, clean the bit and the machine and continue. For  
 me personally it would already be awesome if when I press pause the  
 tool will just move up and spindle stop (not need for jogging)
 The problem with 15) is that you can pause in the middle if a running  
 line, and it's hard to re-start in the middle of an operation.

 With 16) The machine stops at a distinct line and already can continue  
 from there, we just need to have a way to touch off (can that be done  
 with the modified manual hal toolchange??)

 If they are broken into two piece, it will be easer to solve because a  
 programmer can just concentrate on a easer task.

 Ries
 PS: I am going to modified the hal:manualtoolchange a bit so it will  
 find the start point of 3 axis routers better, my little project for  
 EMC :)

   


--

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


Re: [Emc-users] Jog under PAUSE / tool cnange

2010-05-17 Thread Slavko Kocjancic


 Offsets are applied in the interpreter, and the already-offset motions 
 are queued for the motion controller to execute.  If you change the tool 
 offset, the queue has to be discarded and re-filled with a new set of 
 offset motions.  Executing G-code can change the interpreter state, e.g. 
 by changing variable values (or coordinate offsets, G90/91 motion modes 
 ...).  This increases the complexity of re-running code quite a lot, 
 since we would need a way of returning the interpreter to the state it 
 was in when the executing motion was queued.  That's not an easy problem.

 - Steve



   
There is one (nasty) thing when run from line is applied.
The queue is cleaned and program resume from selected line but not with 
correct modal parameters!

For example:
I run the program and somewhere hit stop.
I do whatever I want and after that resume from selected line.

Or example 2:
I just finish very long roughting part and decide to turnoff machine 
beacouse is time to go to sleep.
In next day just turn on machine select proper point on program (eg 
finishing pass) and start from selected line.
... and got error like F parameter not set or similar nonsense

As run from selected line just do RUN FROM SELECTED LINE!
and if machine is metric and in 1'st line you have G20 then part come 
out realy big.
and if somwhere within program some variables are set after Run from 
selected line they have big chance to be wrong.

So be aware from STOP / JOG(go to take beauty sleep) / Run from selected 
Line sequence. Can be very unpredictable.

The solution is that when Run from selected line is executed the parser 
run program from start without motion til got selected line. Of course 
this is not easy too. Just imagine probe move here :D

Slavko.

--

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


Re: [Emc-users] Jog under PAUSE / tool cnange

2010-05-17 Thread Slavko Kocjancic
Stephen Wille Padnos pravi:

 This is one reason why you never ever ever ever use a keyboard or mouse 
 action as an emergency stop.  Ever.

 It's not just hal_manualtoolchage either, the OS can pop up a window 
 or change focus for any reason, at any time.

 The only stop button that can legitimately be called an emergency stop 
 button, is one that physically, in hardware, will stop the machine, 
 regardless of what the PC or the machine are doing.

 - Steve


   
I'm aware of that. And I have Hardware ESTOP even in smalest machine. 
But sadly I see machines that rely only on keyboard key as estop.
The best thing is to remove that button from AXIS GUI. Let's force users 
to be safer.

Slavko.

--

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


Re: [Emc-users] Jog under PAUSE / tool cnange

2010-05-17 Thread Slavko Kocjancic
Ries van Twisk pravi:
 The proper way to solve e-Stop is to have a external button connected  
 to your machine,
 next to a emergency stop. I think every decent size machine (that can  
 seriously hurt a human)
 should have external buttons for that I do have, but luckly never used  
 them :)

 Ries
   
The smalest CNC can hurt people. And All machines should have Latching 
ESTOP button. The Estop button in AXIS GUI should be deleted for safety 
issues! As many operator's of small machines think that this is safe!

Slavko.

--

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


Re: [Emc-users] Jog under PAUSE / tool cnange

2010-05-17 Thread Slavko Kocjancic
Jon Elson pravi:
 Kenneth Lerman wrote:
   
 Jog on tool change (or on pause) should be straight forward. At the 
 pause, simply remember each of the jogs. Then when resume is executed, 
 play them back in reverse order.
   
 
 Allen-Bradley controls apparently use this technique.
   
 I believe that all of this can be done with HAL components.

 This would NOT solve the touch off problem. One could, of course, use an 
 offset HAL component that could be used as part of a touch off.
   
 
 I think for that, you have to purge the queue and start off clean.

 Jon
   
I think here is the problem.
Se this.

User hit PAUSE/STOP
User does jog, touchoff, maybe even MDI
Now user hit RESUME (Or start from here)

Parser is forced to cleanup queue as there are no other way to do that.
.. and start filling queue from selected line.
This from selected line is wrong. As that does't restore all modal 
parameters and variables.
So machine should remember more thing to safe restore position. Or to 
have very restricted options enabled when paused.

Slavko.

--

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


Re: [Emc-users] Jog under PAUSE / tool cnange

2010-05-17 Thread Slavko Kocjancic
Leslie Newell pravi:
 As run from selected line just do RUN FROM SELECTED LINE!
 and if machine is metric and in 1'st line you have G20 then part come 
 out realy big.
 and if somwhere within program some variables are set after Run from 
 selected line they have big chance to be wrong.
   
 

 I thought it re-ran the whole code. My mistake. I probably got confused 
 by Mach which does re-run the whole code.

   
I think not. But maybe I'm wrong

G0 x0 y100
G1 x100 (stopped here)
G1 x200 y200

if code is stopped im midle line and axis joged in y direction then 
resume from 2'nd or 3'rd line doesn have similar (right one) path. If 
code is reread from start then should know to have set right Y

Slavko.

--

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


Re: [Emc-users] Jog under PAUSE / tool cnange

2010-05-17 Thread Slavko Kocjancic
Viesturs Lācis pravi:
 I think, that following solution might be easy to implement:
 1) press pause
 2) press button, which stores coordinates of current position
   
That G30.1 does
 3) jog away, do what ever...
 4) press button, which returns to saved coordinates. here is
 important, that first move is in XY plane, Z move is last
   
That's G30 (axis)
 5) hit resume
 6) machine should remember all the variables, feed rates etc. during
 this pause (i do not know, if EMC already does it. if so, please
 ignore)

 So actually 2 buttons with IMHO simple functions have to be implemented

 About the safety of such solution: i agree that it is operator's
 responsibility to make sure, that machine is jogged to place, from
 which it can safely return to the saved point.

 I believe (but am not sure) that this way machine can be paused and
 resumed in the middle of the line...

   
But how to touch off? Queue has wrong data

I use that as have no other chance (of course using STOP instead pause)

Slavko.

--

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


Re: [Emc-users] Jog under PAUSE / tool cnange

2010-05-17 Thread Slavko Kocjancic
Leslie Newell pravi:
 I agree. There is no need for an estop button in the GUI. In fact the 
 start button is of dubious value. On any machine I build you have to 
 physically press a button to enable the drives. Trying to do it in the 
 GUI will do nothing.

 Les
   
I found that some chargepump output from EMC is good. So the (hardware) 
machine can't be turned on if EMC isnt live. Or some strange output from 
printer port came while PC is in bootup process.
.. but that's other topic.

Slavko.

--

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


Re: [Emc-users] Jog under PAUSE / tool cnange

2010-05-16 Thread Slavko Kocjancic

Dave pravi:

OK.. now I am confused.   I haven't looked at Les' jog during tool change fix.  
 Where is that fix documented?  Is it in the Wiki?

I have no idea why that is not in V2.4.  Perhaps no one asked that it be 
included?

Are you saying that you can do a jog during a tool change but you cannot do a 
jog during a pause?

I can clearly see the value of doing a jog during a pause as I have seen 
cutters get bound up with stringy swarf many times.

Dave

  
The fix has no other documentattion than just posts on this list long 
time ago.
It alow jog/touchOff during tool change as it's executed when toolchange 
appears. How to execute it just on M1 or pause I don't know.


From discussion there are some user's that realy like that feature 
enabled and in opposite group that say's this is danger operation. On 
big commercial machines that sort of thing is (can be) enabled and only 
warning in manual tell's that this can be dangerous. I don't think that 
we need some automatic here. KISS is the best. If user pause machine and 
stop spindle collant's or whatever or jog machine the 1'st thing when 
machine resume operation is to move xyz to last coordinate in linear 
move. If they hit fixture that's operator problem not the problem for 
developer of software. So before resume the user is responsible to jog 
machine back into position when linear move can't hurd and before resume 
to turn on spindle collant as is before.


Slavko.

p.s.
here is repost of hal_manualtoolchange.py
#!/usr/bin/env python
import sys, os
import gettext
BASE = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), ..))
gettext.install(emc2, localedir=os.path.join(BASE, share, locale), 
unicode=True)

import emc, hal

def do_change(n):
if n:
message = _(Insert tool %d and click continue when ready) % n
else:
message = _(Remove the tool and click continue when ready)
app.wm_withdraw()
app.update()
app.tk.call(nf_dialog, .tool_change,
_(Tool change), message, info, 0, _(Continue))
h.changed = True
app.update()

h = hal.component(hal_manualtoolchange)
h.newpin(number, hal.HAL_S32, hal.HAL_IN)
h.newpin(change, hal.HAL_BIT, hal.HAL_IN)
h.newpin(changed, hal.HAL_BIT, hal.HAL_OUT)
h.ready()

import Tkinter, nf, rs274.options

app = Tkinter.Tk(className=AxisToolChanger)
app.wm_geometry(-60-60)
app.wm_title(_(AXIS Manual Toolchanger))
rs274.options.install(app)
nf.start(app); nf.makecommand(app, _, _)
app.wm_protocol(WM_DELETE_WINDOW, app.wm_withdraw)
lab = Tkinter.Message(app, aspect=500, text = _(\
This window is part of the AXIS manual toolchanger.  It is safe to close \
or iconify this window, or it will close automatically after a few seconds.))
lab.pack()

def withdraw():
app.wm_withdraw()
app.bind(Expose, lambda event: app.wm_withdraw())

app.after(10 * 1000, withdraw)

try:
while 1:
change = h.change
if change and not h.changed:
do_change(h.number)
elif not change:
h.changed = False
app.after(100)
app.update()
except KeyboardInterrupt:
pass
--

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


Re: [Emc-users] Jog under PAUSE / tool cnange

2010-05-16 Thread Slavko Kocjancic
Leslie Newell pravi:
 It has been a while since I last looked at it but if I remember 
 correctly my 'fix' is just a hack to the tool change routine. on a tool 
 change it takes a note of the current line then stops the interpreter. 
 You can then jog etc. Afterwards it just does a 'run from here'. This 
 only works on a tool change and can't be safely implemented during 
 pause. It is also pretty easy to get things horribly out of sync if you 
 aren't careful. That is why I didn't ask for it to be included in EMC.

 Les

   
Just right!.
It's bad design, It's bad implemantation, It's ugly hack..

I love that! As is enable me to use machine and I doesn't have any other 
solution. I don't like to split files as already here is a mess of it's

So Leslie wery thank's for that ugly hack!.  :D

...just sadd as pause isn't supported. (can't be in that way)

Slavko.

--

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


Re: [Emc-users] (fwd) Re: Jog under PAUSE / tool cnange

2010-05-16 Thread Slavko Kocjancic
Steve Blackmore pravi:

 Are you saying that you can do a jog during a tool change but you cannot do 
 a jog during a pause?
 

 Yes.
   

 How do you do that?!? I can jog only in toolchange phase.
   
 I can clearly see the value of doing a jog during a pause as I have seen 
 cutters get bound up with stringy swarf many times.
 

 Exactly.
   
plastic swarf flying and burning stock... How to (safe) remove it. (I 
see PAUSE, jog Z up, clean, resume.. )
Slavko.


--

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


Re: [Emc-users] Jog under PAUSE / tool cnange

2010-05-15 Thread Slavko Kocjancic
I found nothing.
Seem's that developers all have machines with ATC and EMC as is work's 
ok for them. All other user's (with coolets routers) need's to use some 
strange workarounds. In my case the toolcnahge.py script from this 
thread. Near all machines I see does have option to do tool seeting 
under pause/toolchange and near all doesn't bother if tool crash if user 
doesn't it jog in correct place. Near all machines have just small 
warning notes in manual. Nothing else.

Slavko.



Steve Blackmore pravi:
 On Tue, 16 Mar 2010 14:42:10 +0200, you wrote:

 Has any thought been given to this by the development group since March?

   
 - what is allowed during a pause? everything? only jogging? some MDI? 
 all
 g-codes? running subprograms?
   
 My first thought was jog-only, but then I realised you need to be able
 to touch-off.
 And possibly switch to a different tool (MDI) or run an automated
 measure and touch-off (subprogram) and then the size of the task of
 even speccing this becomes clearer.
 
 Jog only and be able to switch spindle and coolant on/off and touch off
 a tool.
   
 see.. this is where differences of oppinion appear (which is by itself a 
 very good thing, but takes a lot of time to decide upon something)..
 Wasting programmers time to write a spec is not really useful, that's the 
 only reason why this hasn't been implemented yet.

 Decide upon a spec, and I'm sure it'll (quickly) get implemented.

 
 Any other bells, whistles and toolchanges should be programmed in the
 code in the first place.

 It shouldn't work within canned cycles or subroutines either. It doesn't
 on the commercial controllers I've used, and therefore don't see why
 that should be used as an excuse not to implement it.
   
 this is a very useful datapoint, together with info what the controllers 
 were (make, type and version).
 even collecting information like this in a central point will get things 
 going

 I started a wiki page on this topic, hopefully everyone who has a saying 
 about it will contribute to it [1]
 http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?ManualWhilePaused

 Regards,
 Alex


 [1] - if you haven't added anything to the wiki, it's very easy, just follow 
 the basic steps here: http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?BasicSteps





 __
 This email has been scanned by Netintelligence
 http://www.netintelligence.com/email
 

 Steve Blackmore
 --

 --

 ___
 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] OT quick question on sizing flyback diodes.

2010-05-12 Thread Slavko Kocjancic
Greg Bentzinger pravi:
 I'm putting a small H-bridge together using TIP121/126 to replace a 
 SN754410NE. The schematic I'm following didn't list any values for the 
 flyback diodes. In fact some examples left them out. I know that when this 
 circuit is in use it switches from full forward to full reverse with no 
 ramping. This tends to overheat the SN754410NE with small motors and blow it 
 with motors slightly larger.

 The H-Bridge is driven by a LM339 and about the only adjustment I have is the 
 amount of deadband between directions.

 My question is how to determine values for the flyback diodes. In the past I 
 used the motor stall current spec to be on the safe side. In other circuits I 
 often see very small diodes like 1A on a 7A drive. Also voltage rating, does 
 the back EMF rise much greater than the supply voltage? If so how much higher 
 % should one use?

 Since someone will ask - this is the ram servo control for a small tabletop 
 sinker EDM - the abrupt movements really aid in flushing as well as breaking 
 momentary shorts sometimes caused by debris in the work contact area.

 Thanks much team.

 Greg 

 --

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

   
TIP 121/126 Has flyback diode already built in! So that is reason why 
they doesn't rated.
just see datasheet!

Slavko

--

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


Re: [Emc-users] part program exceeds machine limits

2010-05-12 Thread Slavko Kocjancic
Jon Elson pravi:
 There used to be a capability to run part of a G-code program that 
 exceeds the machine limits.
 I tried doing this today, and got the first big dialog box that says 
 program exceeds machine minimum on axis Y and hit the run anyway 
 button.  I intended to stop the program before it ran into the limits.

 The spindle started, the Z axis moved a short distance, then the spindle 
 stopped and I got a different dialog box, the Axis one with the red stop 
 sign with the white X in it, saying linear move on line 448 would 
 exceed joint 1's negative limit.  So, I had to edit the program to put 
 an M02 before the part where it would exceed the limits.  So, now the 
 behavior is that you cannot run the beginning of a program which much 
 later will exceed a machine limit.  My EMC2 version on this production 
 machine is a Git download from late 2009, I think.

 Any comments on this?  The run anyway button now appears to not be 
 usable anymore.

 Jon

 --

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

   
I don't want to run program that exceds machine limits.
If part is bigger than machine is capable I think the splitting file to 
sections is safe way to do.
So each part fit into machine limits. Anyway when we move part in 
machine then some new offset should be introduced.

Slavko.

--

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


Re: [Emc-users] part program exceeds machine limits

2010-05-12 Thread Slavko Kocjancic
Dave pravi:
 On 5/12/2010 3:02 AM, Slavko Kocjancic wrote:
   
 Jon Elson pravi:

 
 There used to be a capability to run part of a G-code program that
 exceeds the machine limits.
 I tried doing this today, and got the first big dialog box that says
 program exceeds machine minimum on axis Y and hit the run anyway
 button.  I intended to stop the program before it ran into the limits.

 The spindle started, the Z axis moved a short distance, then the spindle
 stopped and I got a different dialog box, the Axis one with the red stop
 sign with the white X in it, saying linear move on line 448 would
 exceed joint 1's negative limit.  So, I had to edit the program to put
 an M02 before the part where it would exceed the limits.  So, now the
 behavior is that you cannot run the beginning of a program which much
 later will exceed a machine limit.  My EMC2 version on this production
 machine is a Git download from late 2009, I think.

 Any comments on this?  The run anyway button now appears to not be
 usable anymore.

 Jon

 --

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


  
   
 I don't want to run program that exceds machine limits.
 If part is bigger than machine is capable I think the splitting file to
 sections is safe way to do.
 So each part fit into machine limits. Anyway when we move part in
 machine then some new offset should be introduced.

 Slavko.

 --

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


 



 I've seen the same thing..  Looks like a contradiction.Either don't 
 allow it and take out the want to run anyway option, or alter the 
 program so it truly allows it to run outside the limits.

 Dave

 --
   
I still prefer to have complete program (or split part) inside travel's. 
Just in case if somebody ring in the door and that take little more time 
that I think.. (cras over limits? no harm but...)

--

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


Re: [Emc-users] emc on 10.4 LTS?

2010-05-07 Thread Slavko Kocjancic
Gene Heskett pravi:
 Hi all;

 Has anyone an estimate as to how long it will take to port emc to 10.4?

   
The 10.4 was just relased. So we can wait to bugs was sorted out. ... 
and EMC2 work just fine on Hardy.
The real benifit for 10.4 should be sata support. I realy not found 
other + points. I like light system for EMC2 and every new version is 
bulkier.
I have few older laptops (without SMI problems) and Ubuntu install/work 
is so slow that it's unussable. But If I run Puppy linux they work 
charming. Just don't have enought knowledge to make EMC2 to work on Puppy.

Slavko.

p.s.
I know some Russian guy does Puppy EMC. But he does that on Russian 
Puppy (Cyrilic alphabet). Anyone smart enought to make Puppy EMC liveCD 
distro?

--

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


Re: [Emc-users] Homing

2010-05-06 Thread Slavko Kocjancic
Ian W. Wright pravi:
 Hi,

 I'm just in the process of adding home/limit switches to my 
 new little mill - didn't bother on the last one but I keep 
 running the Z-axis up to the top stop so I thought I'd 
 better add them. However, each time I start up EMC2 and hit 
 Home for the Z-axis, it ends up at a different reading. i.e. 
 EMC2 doesn't seem to be consistent in how it starts and the 
 Homing procedure doesn't reset the home position. For 
 example - I have set the ini file to home to 0.00 and then 
 to back off to -2.00 (it is +2.0 in the ini file..). I just 
 closed down EMC2 and restarted it and hit Home for the 
 Z-axis. The machine did its thing and settled where it 
 should physically - just off the switch - but the AXIS 
 readout said -4.000. I repeated the shutting down and 
 restarting and this time it settled in the same physical 
 position reading -3.500. Another time it read 5.220 - in 
 each case, all I have done is start EMC2, jog the Z-axis 
 away from ) a bit and hit the Home button in AXIS so I 
 haven't affected any of the other functions at all. Is there 
 no way that the display can be automatically made to reset 
 itself to the ini file setting ( in this case -2.000) when 
 an axis is homed or do I have to manually 'touch off' each 
 time. Surely that can't be right.
 Thanks,

 Ian
 __
 Ian W. Wright
 Sheffield  UK
   
Try to reset Fixture offsets (reset touch off's)

Is the error additive or just random around -3?
(ie if just rehoming Z multiple times are error increase or is somewhere 
around same reading?)

Slavko.

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


Re: [Emc-users] Musings on Spindle Encoders.

2010-04-25 Thread Slavko Kocjancic
2010/4/24 Andy Pugh a...@andypugh.fsnet.co.uk

 The usual sort of encoder is not desperately convenient for mounting
 on a machine tool spindle, as such applications generally require a
 sizeable through-hole.

 Car engines nowadays use a pickup on the crank to tell the engine
 controller the current crank angle. These used to be a proximity
 sensor on the starter ring-gear. To get an index pulse one or two gear
 teeth were machined short, a scheme normally referred to as 32-minus-1
 or 64-minus-1 or whatever the engine actually had. Thus the index and
 the pulses were detected by the same sensor.

 Nowadays this is rarely the case, the typical crank sensor ring is a
 magnetically encoded disc mounted behind the crank pulley. Typically
 with a pressed-steel hub with a 3 or bigger through-hole. In fact I
 have pressed one onto the outside of a 4 2-Jaw-chuck on a test rig.

 The advent of stop-start-stop systems on vehicles (which I hated the
 idea of but actually quite like in practice) has meant that engines
 are now required to start from hot in 0.3s or less. The single-sensor
 systems can't tell when the crank has rotated backwards as the engine
 stopped, so it has to wait to see an index before it can inject fuel
 and start. This can take a significant proportion of the allowed time.
 So, the latest development is a dual-pickup using quadrature to detect
 back-rotation. This suddenly makes them look quite attractive for CNC
 machine use.

 These devices are inexpensive commodity items intended for rough
 service. I think the sensor is $5 and the ring $20. The only reason
 that we can't use them on tool spindles is that the missing tooth
 index scheme is not suported by EMC2. I wonder if it is worth adding
 it?

 Missing tooth scheme can be very good idea to EMC. In that case the sensor
are cheap, the gear can be made with drill press (thing can do the work with
only 3 tooth and 1 missing) and at least the only one pin on printer port is
needed.
The best way I think is to make just one more RT component that have one
input pin from outside world (missing pulse input) and two output pins
(phaseA and Index) so in HAL that can be coupled on just any other
component.

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


Re: [Emc-users] Runtime.

2010-04-23 Thread Slavko Kocjancic
yann pravi:
 Le lundi 19 avril 2010 16:21:18, Slavko Kocjancic a écrit :
   
  Like instead 2 hour's machining showed in
 Property dialog the actual time is over 3 hrs. I know that my file has a
 lot of short segments and machine need to accelerate/decelerate but all
 

 You pointed it out. This is the problem. 

   
 that parameters are known to emc so I think it can calculate near
 perfect time (..until speed override)
 

 Seems to be not as simple as it looks like.
 There was a big discussion on this a few weeks or months ago. Have a look in 
 the list's archives.

   
I search but not found.

Of course I understand that correct time is hard to calculate.
I assume that presented way is just to calculate G0 lenght's and all 
other (G1,G2,G3.. moves). And just calculated time based on rapid and F 
speeds.
The precise way should assume accelerations/deceleration for each line 
and G64 bledding too. It's not simple but can be done. It's just 
functionality we like. More people want that the bigger chance is to 
someone write that. I think a lot of people wan't to know how long 
machining will last. (or I'm maybe wrong and all just want to make 
finished part)
Sadly the new wasshing machine's have estimate time to the end. :-X

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


Re: [Emc-users] Runtime.

2010-04-23 Thread Slavko Kocjancic
Sven Wesley pravi:
 2010/4/23 yann brico...@free.fr

   
 Le lundi 19 avril 2010 16:21:18, Slavko Kocjancic a écrit :
 
  Like instead 2 hour's machining showed in
 Property dialog the actual time is over 3 hrs. I know that my file has a
 lot of short segments and machine need to accelerate/decelerate but all
   
 You pointed it out. This is the problem.

 
 that parameters are known to emc so I think it can calculate near
 perfect time (..until speed override)
   
 Seems to be not as simple as it looks like.
 There was a big discussion on this a few weeks or months ago. Have a look
 in
 the list's archives.


 
 My simple suggestion from that discussion was to count executed steps
 compared to the total number of steps. But someone's got to do it though...

   

Hmm probably nobody. Why?
That solution can report percentage of execution. and works only in 
stepper sistem. The solution should be steper and servo friendly.
If we want that precision then assuming coherent file we can just 
calculate percentage from CurrentLine/TotalLinesInFile*100 %
And from that and already elapsed time we can get ETA time pretty good. 
Ie if we are in 10% and for that needed 10 minutes we know that 90 
minutes is time to go.
But the files are no coherent so the output will wary. The question is 
just how much? If half of file is roughting and other half is finishing 
then at 50% the report can be pretty wrong (the feedrates are not 
calculated)

The better way can be to calculate normalised lenght of path (to 
acount feedrate) and calculate percentage of that.

A lot of different way to solution. But have no knowledge to programming 
to do that.

Slavko.


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


[Emc-users] Runtime.

2010-04-19 Thread Slavko Kocjancic
Hello...

I just wonder if there is some better way to estimate part runtime?
In File/Property the time is always to short. Sometime is pretty close 
and other is far far away.  Like instead 2 hour's machining showed in 
Property dialog the actual time is over 3 hrs. I know that my file has a 
lot of short segments and machine need to accelerate/decelerate but all 
that parameters are known to emc so I think it can calculate near 
perfect time (..until speed override)
The time to go in staus bar can help too...

Slavko.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] G00 rapid

2010-04-19 Thread Slavko Kocjancic
Hello...

I never saw that G00 rapid is affected by speed override. It should be 
rapid. But if you slow down to say 20% the rapid is too only 20% of max 
possible.

Slavko.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] ESTOP latch

2010-04-16 Thread Slavko Kocjancic
Alex Joni pravi:
 Try starting from a terminal, and check for the error message.
 Alternatively look in dmesg for errors.

 Regards,
 Alex


 On 4/15/2010 4:47 PM, Slavko Kocjancic wrote:
 Hello...

 Does estop latch works in emc2 2.3.5?

 I try to load it in my hal file

 #this works
 loadrt estop_latch count=1


 #when I add
 addf estop-latch servo-thread
 #or when I add
 addf estop_latch servo-thread

 the emc crashes


 Slavko.
Each latch should be addes separately to the thread
This works.

loadrt estop_latch count=1
addf estop-latch.0 servo-thread

The next problem is that latch itself doesn't do right job!
The watchdog is active if input's are ok and latch not trigered.
Ie I watch with hallmeter the output pin from estop latch. It does right 
thing.
ie if ok.in and fault.in are correct and reset signal applied the output 
goes true.
but the watchdog start togling just if ok.in and fault.in are correct 
(without trigger) Thar's wrong.
It should togle just if output is true!

Slavko.




--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] ESTOP latch BUG - Solved

2010-04-16 Thread Slavko Kocjancic
Slavko Kocjancic pravi:
 The next problem is that latch itself doesn't do right job!
 The watchdog is active if input's are ok and latch not trigered.
 Ie I watch with hallmeter the output pin from estop latch. It does right 
 thing.
 ie if ok.in and fault.in are correct and reset signal applied the output 
 goes true.
 but the watchdog start togling just if ok.in and fault.in are correct 
 (without trigger) Thar's wrong.
 It should togle just if output is true!

 Slavko.

   

I checked estop_latch.comp and find:


FUNCTION(_) {
/* check inputs */
if ( ok_in  !fault_in) {
/* no fault conditions, check for reset edge */
if ( reset  !data.old_reset ) {
/* got a rising edge, indicate OK on outputs */
ok_out = 1;
fault_out = 0;
}
/* toggle watchdog */

//OLD LINE
watchdog = !watchdog;  'AS   I UNDERSTAND THIS TOGLE IF  ( 
ok_in  !fault_in)
//NEW LINE
if ( ok_out ) {watchdog = !watchdog;} 'I CHANGED PREVIOUS LINE INTO 
THIS NOW WORKS


} else {
/* fault condition exists, trip */
ok_out = 0;
fault_out = 1;
}
/* store state of reset input for next pass (for edge detect) */
data.old_reset = reset;
}



I'm not familiar enought with git to make update/patch. So please some 
of the bosses to do that.

Thanks
Slavko.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Unhome on ESTOP

2010-04-16 Thread Slavko Kocjancic
Hello...

I looking for solution how to unhome machine if Estop button is pressed.
If I pressed ESTOP the power to the motor's are killed. So when I relase 
estop and engage power the position on display is wrong. I find best 
solution is to flag axis as unhomed to force rehoming.
Just can't find right pin where to connect estop button to clear homed flag.

Any help?

Slavko.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Unhome on ESTOP

2010-04-16 Thread Slavko Kocjancic
Michał Geszkiewicz pravi:
 You should use VOLATILE_HOME ini file option  to make it work.
 http://www.linuxcnc.org/docview/devel/html//config_ini_config.html , 
 section 2.2.9.1

 Regards,
 Michael
   
Doesn't work. I use 2.3.5 now as 2.5.0~pre has danger bug (machine 
uncontrolled move when stop[ESC] is presed)

huh...

Slavko.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Unhome on ESTOP

2010-04-16 Thread Slavko Kocjancic
Michał Geszkiewicz pravi:
 You should use VOLATILE_HOME ini file option  to make it work.
 http://www.linuxcnc.org/docview/devel/html//config_ini_config.html , 
 section 2.2.9.1

 Regards,
 Michael

   
btw.. I want to unhome only for estop not regular stop.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Unhome on ESTOP

2010-04-16 Thread Slavko Kocjancic
Andy Pugh pravi:
 On 16 April 2010 09:30, Slavko Kocjancic esla...@gmail.com wrote:

   
 I find best
 solution is to flag axis as unhomed to force rehoming.
 Just can't find right pin where to connect estop button to clear homed flag.
 

 http://www.linuxcnc.org/docview/devel/html//gui_halui.html

 says halui.joint.n.unhome (bit, in) - unhomes this joint

 This is not mentioned in the halui manual page at
 http://www.linuxcnc.org/docview/devel/html//man/man1/halui.1.html

 Though, and seems to only exist in the development release.

   
Probably true.
In my version doesn't exists. (2.3.5)
I seek with halMeter what pins I have. A lot of halui pins but not 
unhome one.


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] User to demanding. (Or just lost?)

2010-04-16 Thread Slavko Kocjancic
Hello...

Now I'm totaly lost. What version to use? Is there safe version?

The story..

I hit (expensive) bug in 2.5.0~pre check [Emc-users] Tool Crash when STOP

So I go back to 2.3.5 and recompile with latest stepgen.c
Now another thing doesn't work see [Emc-users] Unhome on ESTOP

Someone pointed me to 2.4~pre (where to get that?!?) and what will 
doesn't work here?

I search the wiki to see what version is 'latest'. It's seems to be 
2.3.5. But all documentation is for never version 2.4
I know that this is open project but is there someone to clearly say 
what version is best?!?
As I read maillist I fell like to demanding person to use emc?!?
... but I just like to have safe working system. .. and want to help 
to be better.

I had few versinos of EMC on computer. but none is functional. All 
together have all functions I want ... huh

Slavko.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] User to demanding. (Or just lost?)

2010-04-16 Thread Slavko Kocjancic
I just enter git diff and got as I see teh estop latch should be working now


sla...@emc2:~/emc2-git$ git diff
diff --git a/src/hal/components/estop_latch.comp b/src/hal/c
index 2a1e0dd..390a639 100644
--- a/src/hal/components/estop_latch.comp
+++ b/src/hal/components/estop_latch.comp
@@ -22,7 +22,7 @@ FUNCTION(_) {
fault_out = 0;
}
/* toggle watchdog */
-   watchdog = !watchdog;
+   if ( ok_in ) {watchdog = !watchdog;}
 } else {
/* fault condition exists, trip */
ok_out = 0;
diff --git a/src/hal/components/stepgen.c b/src/hal/componen
index b0fa061..44cdff7 100644
--- a/src/hal/components/stepgen.c
+++ b/src/hal/components/stepgen.c
@@ -305,6 +305,8 @@
 #include rtapi_math.h

 #define MAX_CHAN 8
+#define MAX_CYCLE 10
+#define USER_STEP_TYPE 13
:
diff --git a/src/hal/components/estop_latch.comp
b/src/hal/components/estop_latch.comp
diff --git a/src/hal/components/estop_latch.comp
b/src/hal/components/estop_latch.comp
index 2a1e0dd..390a639 100644
--- a/src/hal/components/estop_latch.comp
+++ b/src/hal/components/estop_latch.comp
@@ -22,7 +22,7 @@ FUNCTION(_) {
fault_out = 0;
}
/* toggle watchdog */
-   watchdog = !watchdog;
+   if ( ok_in ) {watchdog = !watchdog;}
 } else {
/* fault condition exists, trip */
ok_out = 0;
diff --git a/src/hal/components/stepgen.c b/src/hal/components/stepgen.c
index b0fa061..44cdff7 100644
--- a/src/hal/components/stepgen.c
+++ b/src/hal/components/stepgen.c
@@ -305,6 +305,8 @@
 #include rtapi_math.h

 #define MAX_CHAN 8
+#define MAX_CYCLE 10
+#define USER_STEP_TYPE 13

 /* module information */
 MODULE_AUTHOR(John Kasunich);
@@ -314,6 +316,9 @@ int step_type[MAX_CHAN] = { -1, -1, -1, -1, -1, -1, -1,
-1 };
 RTAPI_MP_ARRAY_INT(step_type,MAX_CHAN,stepping types for up to 8
channels);
 const char *ctrl_type[MAX_CHAN] = { p, p, p, p, p, p, p, p
};
 RTAPI_MP_ARRAY_STRING(ctrl_type,MAX_CHAN,control type (pos or vel) for up
to 8 channels);
+int user_step_type[MAX_CYCLE] = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1};
+RTAPI_MP_ARRAY_INT(user_step_type, MAX_CYCLE,
+   lookup table for user-defined step type);

 /***
 *STRUCTURES AND GLOBAL VARIABLES   *
@@ -373,7 +378,7 @@ static stepgen_t *stepgen_array;

 /* lookup tables for stepping types 2 and higher - phase A is the LSB */
:
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] User to demanding. (Or just lost?)

2010-04-16 Thread Slavko Kocjancic
just paste incomplete text here is all

sla...@emc2:~/emc2-git$ git diff
diff --git a/src/hal/components/estop_latch.comp b/src/hal/c
index 2a1e0dd..390a639 100644
--- a/src/hal/components/estop_latch.comp
+++ b/src/hal/components/estop_latch.comp
@@ -22,7 +22,7 @@ FUNCTION(_) {
fault_out = 0;
}
/* toggle watchdog */
-   watchdog = !watchdog;
+   if ( ok_in ) {watchdog = !watchdog;}
 } else {
/* fault condition exists, trip */
ok_out = 0;
diff --git a/src/hal/components/stepgen.c b/src/hal/componen
index b0fa061..44cdff7 100644
--- a/src/hal/components/stepgen.c
+++ b/src/hal/components/stepgen.c
@@ -305,6 +305,8 @@
 #include rtapi_math.h

 #define MAX_CHAN 8
+#define MAX_CYCLE 10
+#define USER_STEP_TYPE 13
:
diff --git a/src/hal/components/estop_latch.comp
b/src/hal/components/estop_latch.comp
diff --git a/src/hal/components/estop_latch.comp
b/src/hal/components/estop_latch.comp
index 2a1e0dd..390a639 100644
--- a/src/hal/components/estop_latch.comp
+++ b/src/hal/components/estop_latch.comp
@@ -22,7 +22,7 @@ FUNCTION(_) {
fault_out = 0;
}
/* toggle watchdog */
-   watchdog = !watchdog;
+   if ( ok_in ) {watchdog = !watchdog;}
 } else {
/* fault condition exists, trip */
ok_out = 0;
diff --git a/src/hal/components/stepgen.c b/src/hal/components/stepgen.c
index b0fa061..44cdff7 100644
--- a/src/hal/components/stepgen.c
+++ b/src/hal/components/stepgen.c
@@ -305,6 +305,8 @@
 #include rtapi_math.h

 #define MAX_CHAN 8
+#define MAX_CYCLE 10
+#define USER_STEP_TYPE 13

 /* module information */
 MODULE_AUTHOR(John Kasunich);
@@ -314,6 +316,9 @@ int step_type[MAX_CHAN] = { -1, -1, -1, -1, -1, -1, -1,
-1 };
 RTAPI_MP_ARRAY_INT(step_type,MAX_CHAN,stepping types for up to 8
channels);
 const char *ctrl_type[MAX_CHAN] = { p, p, p, p, p, p, p, p
};
 RTAPI_MP_ARRAY_STRING(ctrl_type,MAX_CHAN,control type (pos or vel) for up
to 8 channels);
+int user_step_type[MAX_CYCLE] = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1};
+RTAPI_MP_ARRAY_INT(user_step_type, MAX_CYCLE,
+   lookup table for user-defined step type);

 /***
 *STRUCTURES AND GLOBAL VARIABLES   *
@@ -373,7 +378,7 @@ static stepgen_t *stepgen_array;

 /* lookup tables for stepping types 2 and higher - phase A is the LSB */
:
diff --git a/src/hal/components/estop_latch.comp b/src/hal/c
index 2a1e0dd..390a639 100644
--- a/src/hal/components/estop_latch.comp
+++ b/src/hal/components/estop_latch.comp
@@ -22,7 +22,7 @@ FUNCTION(_) {
fault_out = 0;
}
/* toggle watchdog */
-   watchdog = !watchdog;
+   if ( ok_in ) {watchdog = !watchdog;}
 } else {
/* fault condition exists, trip */
ok_out = 0;
diff --git a/src/hal/components/stepgen.c b/src/hal/componen
index b0fa061..44cdff7 100644
--- a/src/hal/components/stepgen.c
+++ b/src/hal/components/stepgen.c
@@ -305,6 +305,8 @@
 #include rtapi_math.h

 #define MAX_CHAN 8
+#define MAX_CYCLE 10
+#define USER_STEP_TYPE 13

 /* module information */
 MODULE_AUTHOR(John Kasunich);
@@ -314,6 +316,9 @@ int step_type[MAX_CHAN] = { -1, -1, -1,
 RTAPI_MP_ARRAY_INT(step_type,MAX_CHAN,stepping types for u
 const char *ctrl_type[MAX_CHAN] = { p, p, p, p, p
 RTAPI_MP_ARRAY_STRING(ctrl_type,MAX_CHAN,control type (pos
+int user_step_type[MAX_CYCLE] = {-1,-1,-1,-1,-1,-1,-1,-1,-1
+RTAPI_MP_ARRAY_INT(user_step_type, MAX_CYCLE,
+   lookup table for user-defined step type);

 /**
 *STRUCTURES AND GLOBAL VARIABLES
@@ -373,7 +378,7 @@ static stepgen_t *stepgen_array;

 /* lookup tables for stepping types 2 and higher - phase A

-static const unsigned char master_lut[][10] = {
+static unsigned char master_lut[][MAX_CYCLE] = {
 {1, 3, 2, 0, 0, 0, 0, 0, 0, 0},/* type 2: Quadratur
 {1, 2, 4, 0, 0, 0, 0, 0, 0, 0},/* type 3: Three Wir
 {1, 3, 2, 6, 4, 5, 0, 0, 0, 0},/* type 4: Three Wir
@@ -386,16 +391,17 @@ static const unsigned char master_lut[
 {1, 2, 4, 8, 16, 0, 0, 0, 0, 0},   /* 11: Five Wire Uni
 {3, 6, 12, 24, 17, 0, 0, 0, 0, 0}, /* 12: Five Wire Wav
 {1, 3, 2, 6, 4, 12, 8, 24, 16, 17},/* 13: Five
-{3, 7, 6, 14, 12, 28, 24, 25, 17, 19}  /* 14: Five
+{3, 7, 6, 14, 12, 28, 24, 25, 17, 19}, /* 14: Five
+{0, 0, 0, 0, 0, 0, 0, 0, 0, 0} /* 15: User-defined */
 };

-static const unsigned char cycle_len_lut[] =
-{ 4, 3, 6, 4, 4, 4, 4, 8, 8, 5, 5, 10, 10 };
+static unsigned char cycle_len_lut[] =
+{ 4, 3, 6, 4, 4, 4, 4, 8, 8, 5, 5, 10, 10, 0 };

-static const unsigned char num_phases_lut[] =
-{ 2, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, };
+static unsigned char num_phases_lut[] =
+{ 2, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 0, };

-#define MAX_STEP_TYPE 14
+#define MAX_STEP_TYPE 15

 #define STEP_PIN   0   /* output phase used for STE
 #define 

Re: [Emc-users] User to demanding. (Or just lost?)

2010-04-16 Thread Slavko Kocjancic
Andy Pugh pravi:
 (Note that I am not a developer, nor do I speak for the developers)

 As I understand it, 2.4 is now frozen, there will be no new features
 added, just bugfixes prior to release.
   

Probably you have right here.

 Look on the bright side, if you used one of the closed-source
 controllers you wouldn't have most of these features, and you would
 have no way to do anything about it either.
   

You have right here too.

 From what Michał Geszkiewicz has said it looks like your best bet is
 to grab the latest 2.5~pre master from Git and use that. I am not
 clear if e-stop latch is working as you want but you already had a
 solution to that in HAL which worked.
   

I just downloading from scratch that.
If move after stop problem is solved then no problem.
Estop latch can be fixed to. It's not my needed feature. I just want to 
work as in documentation is stated.

  I am not sure that the existing function is technically wrong
 either.The watchdog is there to kill the machine if the computer
 crashes. You could take the view that if the computer is running then
 it is the job of the controller to look after motion and any time EMC2
 is live the watchdog should be too.
   

It's not same as documentation say's So we ned to change one to be 
consistient.
About watchdog. I have ESTOP button hardwired to cut out power line for 
complete machine. (drivers/spindles)
But in series of that I have one relay too. So if I want to engage 
machine without EMC can't do that. I must start emc to have operational 
power for drivers. The term watchdog from estop_latch can make mess. As 
I use just for chargepump not watchdog.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] User to demanding. (Or just lost?)

2010-04-16 Thread Slavko Kocjancic
Andy Pugh pravi:
 On 16 April 2010 11:50, Slavko Kocjancic esla...@gmail.com wrote:

   
 Now I'm totaly lost. What version to use? Is there safe version?
 

 2.3.5 is the Safe released version, but as you have found it lacks
 some features.
 It does seem that you have a knack for needing unusual features.

   
Well unusual or not can be discussed.
Custom stepgen.c can be unussual as step/dir is more common
Working estop_latch can't call unussual
Unhome when Estop can't call unussual
Jog while toolchange can't call unussual (all people working with 
collet's know that)
And that's all what I have problem for now.
 Michał Geszkiewicz said a day or so ago that he had fixed the
 STOP-crash bug in 2.4~pre but didn't say if it was fixed in 2.5~pre
 but it seems likely.
   
seems that 2.5 stil fail.
 I don't know if 2.4~pre has the custom stepgens, and I haven't figured
 out how to view the 2.4 documents to find out. (As a 2.4~pre user it
 would be quite nice to know)

   
as I try the 2.4 doesn't have custom stepgen

I have feeling that i make some mess in my files. So I deleted all and 
now downloading fresh master



--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] User to demanding. (Or just lost?)

2010-04-16 Thread Slavko Kocjancic
I downloaded from scratch the 2.5~pre master
Seems that move when stop problem is solved.

The estop_latch stil doesn't work as should.

Here is patch I made (only one line changed in source) and don't know how to
post it.


sla...@emc2:~/emc2-git$ git diff
diff --git a/src/hal/components/estop_latch.comp
b/src/hal/components/estop_latc
index 2a1e0dd..9cf84a6 100644
--- a/src/hal/components/estop_latch.comp
+++ b/src/hal/components/estop_latch.comp
@@ -22,7 +22,7 @@ FUNCTION(_) {
fault_out = 0;
}
/* toggle watchdog */
-   watchdog = !watchdog;
+   if ( ok_out ) {watchdog = !watchdog;}
 } else {
/* fault condition exists, trip */
ok_out = 0;
sla...@emc2:~/emc2-git$
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] User to demanding. (Or just lost?)

2010-04-16 Thread Slavko Kocjancic
2010/4/16 Jon Elson el...@pico-systems.com

 Slavko Kocjancic wrote:
  I just enter git diff and got as I see teh estop latch should be working
 now
 
 Can you describe what you have changed in estop-latch and what the side
 effects are?
 I use estop-latch with all my products.  The watchdog in that case is in
 the external hardware, so I don't need to have a software one.

 Jon


In the documentation for estop latch from
http://linuxcnc.org/docs/2.4/html/man/man9/estop_latch.9.html
is stated:

While ok-out is true, watchdog toggles, and can be used for chargepumps or
similar needs.

And I want just that!

But in reality the watchdog togles if ok_in is true and fault_in is false.
They not observe if latch is reseted.

So I change source estop_latch.comp to match the documentation. Ie the
watchdog output togle only if ok_out is true.

the change is on only one line!
Instead
watchdog = !watchdog;

i write
if ( ok_out ) {watchdog = !watchdog;}

And thing work's as is stated in documentation.

and gere is git output. And I don't know where how to post it.
I don't want to make some direect upload (probably I can't too) but some of
developers check if I make something wrong before updating.

Slavko.

diff --git a/src/hal/components/estop_
latch.comp b/src/hal/components/estop_latc
index 2a1e0dd..9cf84a6 100644

--- a/src/hal/components/estop_latch.comp
+++ b/src/hal/components/estop_latch.comp
@@ -22,7 +22,7 @@ FUNCTION(_) {
fault_out = 0;
}
/* toggle watchdog */
-   watchdog = !watchdog;
+   if ( ok_out ) {watchdog = !watchdog;}

 } else {
/* fault condition exists, trip */
ok_out = 0;
sla...@emc2:~/emc2-git$
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Tool Crash when STOP

2010-04-15 Thread Slavko Kocjancic
Alex Joni pravi:
 As far as I know the custom stepgen is the only missing in  2.3.5

 btw the 2.3.4 was preloaded in live cd. how to compile 2.3.5 and to
 overwrite 2.3.4. I already have two version with run in place mode. .. and
 2.3.4 was totaly unussable for me.

 

 There are as usually a couple of ways.
 1. Uninstall emc2 usign apt (sudo apt-get remove emc2), then you don't have 
 an installed emc2, and you can have as many run-in-place versions as you 
 want.

 2. Upgrade emc2 to the latest release 2.3.5 using apt and internet access 
 (sudo apt-get update, sudo apt-get install emc2).
 Then you get the 2.3.5 from the repositories, but not with the modified 
 stepgen.

 3. Build a 2.3.5 (or whatever number package, I'd actually recommend you 
 change the package number to 2.3.80 or so, so you don't get automatic 
 updates which will replace it).

 To build a debian package out of the source:
 - get the source you want (either tar.gz, or git checkout, etc).
 - cd emc2-source
 - do your modifications
 - debian/configure -r
 - change debian/changelog (first line has the emc2 package version in the 
 title)
 - debuild

 after a long time you will have new packages


 Regards,
 Alex
   
Forgot to say Thank you for guidance. :-[

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Tool Crash when STOP

2010-04-15 Thread Slavko Kocjancic
Alex Joni pravi:
 As far as I know the custom stepgen is the only missing in  2.3.5

 btw the 2.3.4 was preloaded in live cd. how to compile 2.3.5 and to
 overwrite 2.3.4. I already have two version with run in place mode. .. and
 2.3.4 was totaly unussable for me.

 

 There are as usually a couple of ways.
 1. Uninstall emc2 usign apt (sudo apt-get remove emc2), then you don't have 
 an installed emc2, and you can have as many run-in-place versions as you 
 want.

 2. Upgrade emc2 to the latest release 2.3.5 using apt and internet access 
 (sudo apt-get update, sudo apt-get install emc2).
 Then you get the 2.3.5 from the repositories, but not with the modified 
 stepgen.

 3. Build a 2.3.5 (or whatever number package, I'd actually recommend you 
 change the package number to 2.3.80 or so, so you don't get automatic 
 updates which will replace it).

 To build a debian package out of the source:
 - get the source you want (either tar.gz, or git checkout, etc).
 - cd emc2-source
 - do your modifications
 - debian/configure -r
 - change debian/changelog (first line has the emc2 package version in the 
 title)
 - debuild

 after a long time you will have new packages


 Regards,
 Alex
   
Not exactly as you write.
I update EMC to 2.3.5 via apt-get (you step 2)
But step 3 doesn't work. no such file/script error.
So I just try
make clean
make
sudo make install
And it' works.
Jus't can't change the version number. I changed VERSION file and 
changelog but no effect.
It's not important too. I can live with 2.3.5. I have all updates 
dissabled so no problem at all.

Seems all work ok now. (strange move dissapear) Just teach-in doesn't 
work any more.
If I try to use file from 2.5.0~pre I got teach-in running but just Y 
coordinate work and only if it is in World coordinates.

Slavko.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] ESTOP latch

2010-04-15 Thread Slavko Kocjancic
Hello...

Does estop latch works in emc2 2.3.5?

I try to load it in my hal file

#this works
loadrt estop_latch count=1


#when I add
addf estop-latch servo-thread
#or when I add
addf estop_latch servo-thread

the emc crashes


Slavko.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] EMC2 to Compact Flash

2010-04-14 Thread Slavko Kocjancic
Евгений Александрович pravi:
 I had to build EMC on Puppy linux to be able start EMC 2 from CF, USB Flash, 
 DOM and another modules.
 I use Puppy because that OS work in RAM and write on disk only when I 
 shutdown PC.
 Also I am looking for tinycore linux, but it is very difficult to start EMC 
 on tinycore linux.

 Evgeny

   
Can you make puppy distro with EMC2?!

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Tool Crash when STOP

2010-04-14 Thread Slavko Kocjancic
Slavko Kocjancic pravi:
 Hello...

 I have strange motion when hit [esc] key for stop.
 When I hit ESC the machine should stop. But doesn't. The spindle is 
 stopped but XY is still moving in some strange direction. (Doesn't 
 continue move to the program path).
 After aprox 10cm of movment the error message popup and motion stops 
 (with already brooken tool)
 The error message is:

 Can't do that (EMC_TRAJ_SET_TELEOP_ENABLE) in automode with 
 interpreter idle.

 I can repeat that situation with folowed steps:
 1.Load attached file
 2.Home all axes
 3. jog to reference
 4.touchoff
 5.start program
 6.when program reach line 28 I hit ESC key

 It' does in some other lines too. Line 28 is just long enought to have 
 time to press ESC.

 Can someone else try to repeat that (costly) error?

 Thanks

 p.s.
 Ubuntu Hardy EMC 2.5.~pre
Even worse...
I try to pause program on line 28. And program stop as should be. After 
that if I  hit continue all is ok.
If I press ESC after pause (on line 28) the machine start to move!!!

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Tool Crash when STOP

2010-04-14 Thread Slavko Kocjancic
Slavko Kocjancic pravi:
 Slavko Kocjancic pravi:
   
 Hello...

 I have strange motion when hit [esc] key for stop.
 When I hit ESC the machine should stop. But doesn't. The spindle is 
 stopped but XY is still moving in some strange direction. (Doesn't 
 continue move to the program path).
 After aprox 10cm of movment the error message popup and motion stops 
 (with already brooken tool)
 The error message is:

 Can't do that (EMC_TRAJ_SET_TELEOP_ENABLE) in automode with 
 interpreter idle.

 I can repeat that situation with folowed steps:
 1.Load attached file
 2.Home all axes
 3. jog to reference
 4.touchoff
 5.start program
 6.when program reach line 28 I hit ESC key

 It' does in some other lines too. Line 28 is just long enought to have 
 time to press ESC.

 Can someone else try to repeat that (costly) error?

 Thanks

 p.s.
 Ubuntu Hardy EMC 2.5.~pre
 
 Even worse...
 I try to pause program on line 28. And program stop as should be. After 
 that if I  hit continue all is ok.
 If I press ESC after pause (on line 28) the machine start to move!!!

   
Just more digging.. If I cut program (to have just 50 lines) I can't 
replicate the error. Short program work's ok.



--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Tool Crash when STOP - AXIS File size?!?

2010-04-14 Thread Slavko Kocjancic
As far I digging into that problem seems that nothing is wrong with 
code. And nothing is wrong with machine too. Just seems to be problem 
with AXIS. If I split that long file into two parts the problem 
dissapear. I was try with more different files.

Does AXIS have some limits on filesize?!? Backplot seems perfect just 
behaviour is odd.

Slavko.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Tool Crash when STOP

2010-04-14 Thread Slavko Kocjancic
Andy Pugh pravi:
 On 14 April 2010 13:14, Slavko Kocjancic esla...@gmail.com wrote:

   
 Here are HAL and INI.
 ... seems that this is problem with AXIS handling longer files.
 

 net enLatchA or2.0.in0 or2.0.out and2.0.in0
 net enLatchB or2.0.in1 motion.motion-enabled
 net chPumpA and2.0.in1 charge-pump.out
 net chPumpQ and2.0.out parport.0.pin-09-out


 http://www.linuxcnc.org/docview/devel/html//man/man9/axis.9.html says
 that motion.motion-enabled is an input. If this is true then the
 or2.0.in1 and motion.motion-enabled pins are unconnected to a signal
 source.

 motion.motion-enable is new to me, as it seems to only exist in the
 development branch of the docs.

 Of course, if motion.motion-enabled is a mis-documented  output, once
 the or2.0.out pin goes high, it stays high regardless of other
 signals, sending the charge-pump to the drive regardless of the state
 of motion.motion-enabled. From the comment that is your intention.

 At least, that is how it looks to me from my sketch of the logic wiring.

 I assume that ESC kills the trajectory planner, as it leaves the
 Amp-Enable lines active and you have the stepgen-enable lines
 connected to amp-enable (just like the sample configs I have just
 looked at). I see you are using a user-specified step type, and
 presumably a development branch of EMC2? I wonder if this is related
 to the problem?

   
I bypas (removed) all AND and OR stuff. Just leave charge-pump.out 
routed to parport.
The problem is still here.

And have something with file I attached.

There are strange thing.
If I split file in two parts all is ok.
If I have file untouched the error (and movment occour) in any G1 move 
(seems)

I Make test file like this

g01 x100
g00 x0
and repeated that to get 1Mb long file.
The error can't be replicated.

And yes I have usertype and version 2.5.0~pre as no other relases have 
custom step type.

Slavko.




--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Tool Crash when STOP

2010-04-14 Thread Slavko Kocjancic
Andy Pugh pravi:
 On 14 April 2010 13:14, Slavko Kocjancic esla...@gmail.com wrote:

   
 
 Here are HAL and INI.
 ... seems that this is problem with AXIS handling longer files.
 
   
 net enLatchA or2.0.in0 or2.0.out and2.0.in0
 net enLatchB or2.0.in1 motion.motion-enabled
 net chPumpA and2.0.in1 charge-pump.out
 net chPumpQ and2.0.out parport.0.pin-09-out


 http://www.linuxcnc.org/docview/devel/html//man/man9/axis.9.html says
 that motion.motion-enabled is an input. If this is true then the
 or2.0.in1 and motion.motion-enabled pins are unconnected to a signal
 source.
 
In PDF integrator manual (V2.3 November 7. 2009) Chapter 8.1.1 the 
motion.motion-enabled is stated as output!

And this part works as should. (I should rewrite that as estop latch can 
be used instead)

Slavko.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Tool Crash when STOP

2010-04-14 Thread Slavko Kocjancic
2010/4/14 Michał Geszkiewicz mic...@wp.pl

 Slavko Kocjancic pisze:
  Here are HAL and INI.
  ... seems that this is problem with AXIS handling longer files.
 Hi Slavko

 I've reproduced this issue in latest development branch.
 Stay tuned for bugfix and until fixing it I would recommend using
 emc2.3.5 version.

 regards,
 Michael



Can't!!! I use custom type of steepgen.
I hope that solution will came quick.
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Tool Crash when STOP

2010-04-14 Thread Slavko Kocjancic
2010/4/14 Alex Joni alex.j...@robcon.ro

 You can also use a custom type stepgen on 2.3.5..
 But that involves taking the stepgen source from 2.5~pre (or at least
 applying the same change) and compiling it on 2.3.5

 Regards,
 Alex


As far as I know the custom stepgen is the only missing in  2.3.5

btw the 2.3.4 was preloaded in live cd. how to compile 2.3.5 and to
overwrite 2.3.4. I already have two version with run in place mode. .. and
2.3.4 was totaly unussable for me.

Slavko
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Homming error

2010-04-09 Thread Slavko Kocjancic
Dave pravi:
 is great, everybody should be thankfull for others work, and obviously work
 together and not against each other.

 I agree..

 Bernhard, I really appreciate your efforts at the filtering..  and the 
 interaction with the other developers, Epler, Alex, Cradek, SWPadnos.and 
 others ..etc.   I am constantly impressed by the speed at which 
 communication and collaboration take place regarding EMC2.

 I need to do some filtering work and I didn't notice that a change had 
 slipped out of the master..  I'm sure we can get it slipped back in if 
 that happened.  ;-)I need to go back and look at that patch again.

 I can appreciate Slavko's frustration if he has an outstanding issue,  
 but compared to dealing with a commercial control company or other 
 closed source CNC software, the help available from the EMC2 community 
 is fantastic!!

 I simply can't express my gratitude sufficiently to the many people on 
 the IRC and this list who have helped me out.

 THANKS!  just doesn't seem to be sufficient.


 Dave
 (Dave911 on the IRC)
   
Hello...

I don't want to blame EMC2 community. If I do that then it's not 
intentionaly. As my english is no so good there is big chance to some 
post from me can be missreaded.

I'm still new in emc2. I'm new to linux too. To be worse I can call 
myself as newbye for CNC too. I have small CNC for drilling PCB circuit 
board over 20 years. It's made entirely from aluminum but is to light to 
make some other thing. so few years ago I start 1m x 0.5m wood router 
and 30cm x 30cm router.(Before that I made some MDF routers just for fun 
and learn lot) As smaller is done I make some parts and hit some 
problems too. I'm not machinist.

For now I made just few jigs and few PCB on machine running EMC.
the 1'st problem I have is my unconventional motor driver. I need to add 
custom phase drive. As I only change the last phase sequences (to be 
able to run machine) the patch 'arrive' just two day's latter. I very 
like that.
The other's two problem's (webcam tab and homming report) sems to be not 
accepted in comunity. I like webcam as I find it easyest way to center 
drill holles for PCB. I have that on old machine I see that on MACH3 
forum and is pretty hard to understand why not in EMC.  I was trying to 
incorporate it but fail as my knowledge to python in nill. Now I bother 
with different window's flying around desktop.

I do have more wishes for EMC functionality but a lot of them public 
doesn't need it. But thing's as webcam or home repport I think the 
public want just doesn't aware the benifit's of it.

and again. I don't want to blame people making EMC! If i'm unhappy when 
my idea is rejected then that's my problem. I'm programmer too (just 
other languages) and know how many free hour's take project like EMC2. 
And findin'g people to make that effort for free can't be blamed!

Slavko.



--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Homming error

2010-04-09 Thread Slavko Kocjancic
Andy Pugh pravi:
 On 9 April 2010 08:28, Slavko Kocjancic esla...@gmail.com wrote:

   
 I do have more wishes for EMC functionality but a lot of them public
 doesn't need it. But thing's as webcam or home repport I think the
 public want just doesn't aware the benifit's of it.
 

 I can see the value of the homing report. Perhaps if a machine that
 is already homed is re-homed and the new home position and old
 position differ by more than a certain amount then a following error
 should be triggered? (Or perhaps just an information note)

 It seems to me that if the home position has moved then there is an
 error, and the user should be told. Most of the time they probably
 know, and are re-homing because of it, but for those of us running
 open-loop with steppers it would be valuable information.

   
... What to say... Agree.

While I'm not C programmer I throw view in source to check how to manage 
that. But I'm lost. The home routines are in separate file but are 
little complicated. I have simple aproach in mind. When home move is 
ended just calculate difference from current position and home position. 
But found that isn't so easy. The machine coordinate are preseted in 
midle of sequence too. As machine need to reset coordinate in correct 
place to get screw compensation ready.

Other option seems to be something like:

save all joint's positions
call doHome
calculate differences and print message

...but can't find that doHome point. Seems that homing is just initiated 
and finish is in motion routine. ?!?

just to much for me...

Have nice day
Slavko.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Homming error

2010-04-09 Thread Slavko Kocjancic
Dave pravi:
 I agree that the homing report could be a valuable thing.I think 
 you are assuming there is no support for a homing report, but I didn't 
 notice anyone asking if anyone thought it was a good idea or not.  
 Sometimes noise will get on Servo encoder cables also and cause 
 positioning errors also, so it could be valuable to a servo system.

 I'm not sure that what is wanted couldn't be done in Hal right now..  
 on the edge of home, switch grab the current axis position count, 
 display that on a PyVcp screen ??  If the result isn't zero or whatever 
 it should be (it should always be the same or close) then you have a 
 problem.
   
I was try some thing but for now I got false reading all the time.
 Regarding the video inside of EMC2;  Slavko, are you using another app 
 in a different window right now?  Why doesn't that work for you?When 
   
Yes. I was able to make thing ussable. It's ussable but not practic. 
Let's see what and why.
If I arrange all windows to not overlap then all are too small so in 
first place I maximize AXIS interface. (why can't be started maximized 
at all?!? Or at least remember last position?!?)
After that I start Camera window. I right click camera window and select 
always on top and move that window over AXIS preview place. (just fit 
inside)
After that I start Learn.py and make that window always on top too and 
move over code window of AXIS.
So now I have all windows visible doesn't matter witch is selected.
Now I must click somewhere on AXIS interface and jog machine to 
reference point (with help of webcam)
After that I must select and click Learn/Position. Then again I must 
click somewhere on AXIS interface to select it and repeat jog move to 
other reference points. And repeat that for all reference points. It's 
very easy to mess the selected window and keystrokes. I think to easy to 
make mess.
After that I close the cam window and learn window. The coordinate of 
reference points are stored in file.
All that just to save current coordinate in file. (under jogging) The 
old Turbocnc Can do that with single keypress. And modern CNC machines 
too! Few times I must scan hole position for PCB board. And in more 
machine procedure is same. Jog over the hole (with help of camera or 
optical finder) and pres single key to save coordinate. I don't 
understand why on EMC2 is too hard to have same thing?! (well keyboard 
shortcuts are pretty bussy).

 they put the video window inside of Mach3, that caused all kinds of 
 issues and it seems like no one is happy with the size of the window 
 within Mach3, the way the cross hairs display etc, etc...  Then you can 
 get into camera differences also.  So many desires, and so little time.  
 ;-)

 Dave
 (Dave911 on IRC)

After digging into camera stuff I realized that linux just doesn't have 
(yet) good camera support. They need a bunch of drivers and tweaking. So 
the code to grab picture inside AXIS seem's not good way. Simply won't 
run on all computers. But I think if the another tab for webcam just 
reflect image from some pipe od even webcast (streaming video) then 
thing is a lot easyer. I find few videostreaming packages and work's 
with different cameras. I try to run some on these and result is ok. I 
can have live video in firefox browser on EMC2 machine and on other (XP) 
machine in same time.So it's works. It can be done. Someone want that? 
Well at least one right now here :-)

Slavko.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] pin configuration for diy xyz stepper controller

2010-04-09 Thread Slavko Kocjancic
Andy Pugh pravi:
 ie, assuming that Pin 11 is the all limits and all homes pin then
 set it to be the combined pin for the X axis and then edit the hal
 file to combine all the axes on one pin.
 Something like:
 net all-homes-and-limits  parport.0.pin-11-in-not = axis.0.home-sw-in
 axis.0.neg-lim-sw-in axis.0.pos-lim-sw-in axis.1.home-sw-in
 axis.1.neg-lim-sw-in axis.1.pos-lim-sw-in axis.2.home-sw-in
 axis.2.neg-lim-sw-in axis.2.pos-lim-sw-in
 (All on one line, ignore any spurious line wrapping).

 You will need so assign a home sequence number to each axis so they
 can home one at a time or EMC won't know which one has hit a limit.
 Note also that this might not actually work, I have not tried it. You
 might need to use some slightly more clever logic (AND functions or
 similar) to prevent inactive axes faulting when another homes. However
 I think that limits should be disabled during homing by default
   
Nope. Isnt' dissabled.
You must add in ini file under AXES section (for each axis separate)
HOME_IGNORE_LIMITS = YES
'it's in documentation but I still lost near hour why doesn't work

Slavko.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] couple of questions

2010-04-09 Thread Slavko Kocjancic
Chris Reynolds pravi:
 I've been using EMC2 now for a while and I really like it. I just have a 
 couple of questions. A lot of the parts I'm making require tool changes, and 
 what I've found is that it would be really nice to have the program run a 
 section, then pause so I can jog the machine, change tools, touch off, then 
 resume the program. I've been using M00 to pause the program at different 
 points so I can change tools, however I have to actually stop the program in 
 order to jog the machine and do my tool change, then after I'm done I have to 
 touch off again, then highlight the next line of code in the preview window 
 at the bottom and then right click and select start from here. Is there a 
 better way to do it? I'm honestly not well versed in gcode since I'm 
 self-taught, but I'd like to streamline my process if it's possible. It's 
 nothing critical mind you, and it's in no way a complaint against EMC2, just 
 something that I had been wondering about. In fact it was only the
  other night that I learned that while touching off I could use the I  and C 
 keys to jump back and forth between constant jogging and interval jogging and 
 then use the END key to set the offset. hahaha  I know I know I'm probably 
 WAY behind on learning gcode, but anyway if anyone has a suggestion I would 
 be most grateful. 

  Chris 
   

For jogging just look little back to the topic Jog under pause/toolchange
if you lazy one then just check
http://article.gmane.org/gmane.linux.distributions.emc.user/17898/match=

and use it. When program hit's M6 you can jog machine. And Warning! Jog 
machine back to the position where was before M6 so be shure the path is 
free.

Slavko


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Homming error

2010-04-09 Thread Slavko Kocjancic
Andy Pugh pravi:
 On 9 April 2010 16:41, Slavko Kocjancic esla...@gmail.com wrote:

   
 After that I start Camera window. I right click camera window and select
 always on top and move that window over AXIS preview place. (just fit
 inside)
 After that I start Learn.py and make that window always on top too and
 move over code window of AXIS.
 So now I have all windows visible doesn't matter witch is selected.
 Now I must click somewhere on AXIS interface and jog machine to
 reference point (with help of webcam)
 

 Two possibilities occur to me:
 1) You could add jog and store buttons to the learn.py interface.
   

I'm hanging on other side. To add  command save machine coordinate to 
file  and of course binded with key shortcut.
 2) You could hook up a USB joypad for jogging (well worth doing
 anyway) and use one or more of the buttons on that to store the
 learned position. (You can link physical buttons to hal pins that will
 run G-code fragments, see the [HALUI] section on this
 page:http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl/emcinfo.pl?Adding_More_Controls_To_Simple_Remote_Pendant

   
Nice. I have plan to setup yoistick but for now I'm stuck to keyboard. 
But If I have yoistick I have no clue how to write coordinate to file 
with button press. Yes I know I can link buton to some HAL pin or Gcode. 
But how from Gcode Open file, add coordinate to the end and close file? 
The way can be custom program M1xx. That can open and close file and 
even write betwen. But how to retrive machine coordinate ?!? I know M1xx 
can be uset easily for output. But how to get input from HAL? I looking 
that for near 1'st day I start with EMC.

Slavko.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Homming error

2010-04-09 Thread Slavko Kocjancic
Jon Elson pravi:
 The problem with the homing report is the destruction of data.  When the 
 home position is found, the machine position count is set to zero (or 
 whatever the HOME_OFFSET value is).  So, the old home position is 
 destroyed by that operation.

   

Just that. Before writing that HOME_OFFSET just read previous value and 
show difference. But doesn't work! The destruction of data is done 
earlyer too! That's is done to screw_comp file come at right position!
So isn't simple as I think.

Slavko.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Homming error

2010-04-09 Thread Slavko Kocjancic
Dave pravi:
 On 4/9/2010 12:04 PM, Jon Elson wrote:
   
 The problem with the homing report is the destruction of data.  When the
 home position is found, the machine position count is set to zero (or
 whatever the HOME_OFFSET value is).  So, the old home position is
 destroyed by that operation.  To stay with the canonical encoder
 definition as it is, you would have to store the position JUST before
 the home operation completed.  I think you could make a custom HAL
 component that recorded the machine position every servo cycle.
 Whenever it saw ENCODER_INDEX transition from true to false, it would
 save the value recorded from the previous cycle.  This would be the
 position one millisecond (at the default SERVO_THREAD rate) before the
 home position was found.  I think this would give you a pretty
 consistent way of checking for drift of the home position.  On the first
 home whe EMC is started, it would show the distance traveled from where
 the machine was to the home position.  On later homing operations, the
 value should be very close to zero, assuming the approach to the home
 switch is slow.  (Maybe watching ENCODER_INDEX only works where the
 index pulse is being used, how does the position count get set for
 stepgen, for instance?  I'm only familiar with servo-like interfaces.)

 I think this will work if there's a signal that tells you the home
 operation is happening NOW, and doesn't require any change to EMC2
 itself.  You would monitor this with HalMeter or the show hal signals menu.

 Jon



 
 Hi Jon,

 Slavko is running steppers so I believe he has a base thread running 
 also which should be plenty fast enough to catch the step count just 
 before hitting the home switch.   :-)
 And if not, then I would think that a base thread could be added to 
 increase the accuracy.

 Just has to be worked out.

 Dave
   
Dave you are right.
It's stepper based. And base thread is set very conservative at 50uSec. 
Stepper's start buzzing if I set base period at 60uS and computer's fell 
lazy is I set BT at 20uSec. Latency of system is aprox 16uSec. I have no 
problem with dir/step timming as I use phase drive.

Slavko.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Homming error

2010-04-09 Thread Slavko Kocjancic
Roland Jollivet pravi:
 You could implement a similar function using a contrived method, that is not
 part of the G28 command or other homing function.

 Basically you would have a subroutine to deliberately move the machine to
 the home switches and write the x,y,z values to file as the switches are
 crossed. Assuming they should be  0,0,0, the new, 'wrong' values might be
 0,3,0. Then a program outside EMC could interrogate the file data. It might
 also be time stamped. The routine would then have to move back to resume
 machining.

 So depending on how critical your project is, you could use a text or other
 editor to insert this gcode as a call function every 500 lines, or 1000
 lines, or maybe after every tool change, into your gcode before you run the
 file.

 I don't know how difficult it would be to implement this using EMC.
 When I worked with an Emco mill(stepper), some programs ran for more than
 24hrs. I wanted to insert a 'home' call at the start of every new pass. If a
 few steps were somehow lost, at least one would be starting with a 'clean
 slate', and not have an incremental error. But it could not be done.

 Roland
 PS (now I'll wait to get shot to pieces by the gurus...)


   
I'm not shure what you mean.
The problem to handle this is that switch is limit switch too. So any 
code moving axis can't reach that switch as soft limit is trigered 
before. If I override soft limit then switch act as limit and triger 
hard limit.. So the only rehular way is while homming.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Homming error

2010-04-08 Thread Slavko Kocjancic
Dave pravi:
 In my experience with steppers that are running on the edge 
 (mechanically or electrically), they almost never lose steps the same 
 amount in both directions.

 Best thing I can think of doing is to put a 1 dial indicator on the 
 questionable axis,  write a test program or better yet, patch an 
 existing one, so the axis deflects the indicator and pauses there,  then 
 goes away from the indicator and runs a lengthy program away from the 
 indicator then have it come back and touch the indicator at the end of 
 the run.  If you do that right, you can loop the program and let it run 
 for a while, if anything is out of wack, that will show up as a changing 
 indicator position.

 You can work the home thing out also, but the dial indicator thing is is 
 a lot more flexible IMO and works on almost all machines..

 If your machine is way out of wack, be careful how you mount your 
 indicator so it doesn't get wiped out if the machine is erractic.

 Dave
   
For now my machine work o.k. But in very rare case I got small error and 
wan't to know when.
I'm talking for drilling PCB for example.
When you drill PCB and got somewhere error for example 0.5mm or 1mm it's 
invisible for naked eye. But if after drilling I send machine to gome 
position and get home difference then board can be assumed junk. As I 
say for now I just check coupler's. And Y coupler is burried in machine 
and the Y axis is problematic one. I got random error in rare case.. 
maybe 1 error per month. But wan't to know when hit's me. If I make 
check with dial indicator's then all is ok.
As I home machine when clamping work that solution can be just fine.

I just wonder why every time I post something here got feedback (that's 
not good, just use this and .., you don't need that.. etc etc...) and 
near none gave solution?

Seem's that I'm not alone. The Bernhard Kubicek write nice filter option 
and was included in git and working few days after that was cripled and 
doesn't work any more. The problem is posted but noone wan't to correct.

Slavko.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Homming error

2010-04-08 Thread Slavko Kocjancic
Jan de Kruyf pravi:
 Oh boy am I truly glad I am not a statistic!

 So the solution to the statistical dilemma is to put a mark on the
 shaft and bearing housing.
 Since we know how many mm the table moves per steppermotorrevolution
 we travel a multiple of that distance
 And the stepper shaft will be in exactly the same position on either
 end of the travel if all is right.

 Jan de Kruyf.

   
Correct. I do that. But to do that in Y axes I need a loot of digging 
under bellow to se the bearing. I'm shure that few lines of code can 
make beter solution. ...just can't do as my knowledge is limited in this 
area and I (unsucesful) bother other people.

Slavko.

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Homming error

2010-04-08 Thread Slavko Kocjancic
Alex Joni pravi:
 I just wonder why every time I post something here got feedback (that's
 not good, just use this and .., you don't need that.. etc etc...) and
 near none gave solution?
 

 You asked for a way to test your axis, and got 3 solutions:
   

Maybe that is the problem. I didn't ask for solution. (My english is not 
so good so maybe I ask by mystake.)
I propose solution. The software solution to just show message with home 
difference when homing is done. (just need something like in basic 
Print X offset ,current_machine_position - machine_home_position just 
before setting home position before after homing axis. (of course for 
each axis when homed)

 * use a dial indicator
   
Not good. The error is to rare
 * use the home switch for probing
   
How to do that if home is limit too?
 * mark the coupler and watch the position change
   
That's work. The problem all thing is under bellow and it's not practical.
 If you don't like any of the solutions, then I don't see why anyone is to 
 blame.

   
I don't want to blame anyone.
 Seem's that I'm not alone. The Bernhard Kubicek write nice filter option
 and was included in git and working few days after that was cripled and
 doesn't work any more. The problem is posted but noone wan't to correct.
 

 I am not sure of what issue you are talking about, also not about where it 
 is posted.
 Bugreports get reported here, where I couldn't find anything:
 http://sourceforge.net/tracker/?group_id=6744atid=106744
   
As I remember it's posted on linuxcnc forum and emc-developers group. 
And when I do git pull I got that filter menu to work. few day's lather 
the filter menu dissapear. bkubicek provided zip.file as response all is 
on the linux cnc forum. *http://tinyurl.com/y9u5yoh
*After patch then menu again works but next git pull kill that.
 If you want to help resolving such an issue, it really helps to provide 
 further information (then it gets sorted faster):
 * when the original patch was added,
 * when it stopped working,
 * a patch that fixes the issue (either patch or a pull address from your 
 repo where it's fixed).
   
It's all posted at *http://tinyurl.com/y9u5yoh
*Seem's bad idea to have two locations for that. I like forum but the 
response is low.
 For developing related things the devel mailing list is probably more 
 appropriate.

 Best regards,
 Alex
   
I like EMC2 but has filling that 'developers' send's homemade machine's 
and hobby operator in background with their wishes. I just can't bet it 
why the targeting big commercial machines with GPL software more than 
hobby one?

em I missing something?!?
Slavko

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


  1   2   >