Re: [Emc-users] Uncondiftional , Conditional Program Jumps .

2014-10-02 Thread Chris Morley


> Date: Thu, 2 Oct 2014 22:33:53 -0400
> From: linux...@thinkingdevices.com
> To: emc-users@lists.sourceforge.net
> Subject: Re: [Emc-users] Uncondiftional , Conditional Program Jumps .
> 
> I was a bit surprised to see that LinuxCNC didn't have an unconditional 
> jump, ie a GOTO.  I chalked it up to LinuxCNC being written by 
> programmers, and the structured programming Nazis have beaten it into 
> their heads that GOTO statements are evil, and only stupid BASIC 
> spaghetti programmers use them.
> 

I tend to agree with you. bad use of goto is .. bad.
good and sparse use of goto is fine, possibly good.

Just look at our beloved HAL code ( coded in C )
you will see lots of goto statements for error cleanup/messages.
makes the code easy to follow and clean.

besides if someone wants to write 'bad' gcode with gotos that
work, who are we to tell them how to program :)

Chris M
  
--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Uncondiftional , Conditional Program Jumps .

2014-10-02 Thread Gregg Eshelman
On 10/2/2014 8:33 PM, Bruce Layne wrote:
> way back in 1978. I had read the
> entire textbook the summer before my freshman year. Near the end of the
> class, I used a GOTO in one of my programming assignments.  The teaching
> assistant went nuts.  My PL/C program was returned, and she had circled
> the GOTO statement and scrawled, "Where did you get this?!?!?"  The
> language had a GOTO statement, and it was listed with all of the other
> syntax in an index in the back of the book.

A programming teacher who didn't know ALL of the statements in the 
language she was teaching, or did but failed to teach the use of all of 
them?

May as well have a math teacher who neglects to teach fractions because 
she doesn't like them. Decimals are just the *right* way to always do 
non-integers.

For something that *always* has to run the same and is *always* called 
the same way, a GOTO type of statement makes perfect sense. For example 
a homing routine that retracts the Z axis then runs X and y until they 
hit their home switches, then returns to a ready state. In most 
languages a GOTO just jumps with no "memory" of where it jumped *from* 
so the programmer must know exactly where to GOTO again at the end of 
the gone-to routine. No problem there if the programmer doesn't want the 
code to jump back to where it came from.

A GOSUB and RETURN does that, RETURN automatically jumps back to the 
next line after the GOSUB, no matter what other changes are made in the 
code. Useful for leaving a loop and returning to it, with conditional 
stuff inside the loop to determine whether or not the GOSUB gets used.

An example would be a loop that does one thing if an input it's 
monitoring is an even number, but if the input is odd it goes to the 
GOSUB, does that subroutine then RETURN jumps back to the next command 
in the loop. Whatever is next happens then back to the beginning of the 
loop to test the next input for even or odd.

Disclaimer: I haven't written any program code in years, but I do 
remember some things! I did a bunch of small things and one large 
project. I wrote the big one out longhand, in pencil, fully sorted out 
and debugged, before I started typing. There were a lot of variables to 
be filled in and a whole lot of subroutines. Worked perfectly the first 
time, loops and jumps and all. :)

Programming is what made algebra make sense to me! A good old BASIC 
language would be an excellent teaching tool for math teachers.

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com


--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Uncondiftional , Conditional Program Jumps .

2014-10-02 Thread Bruce Layne
I was a bit surprised to see that LinuxCNC didn't have an unconditional 
jump, ie a GOTO.  I chalked it up to LinuxCNC being written by 
programmers, and the structured programming Nazis have beaten it into 
their heads that GOTO statements are evil, and only stupid BASIC 
spaghetti programmers use them.

I'm an electrical engineer, but I specialized in computers and digital 
electronics.  I pretty much have a minor in computer science.  I 
remember my first programming class, way back in 1978. I had read the 
entire textbook the summer before my freshman year. Near the end of the 
class, I used a GOTO in one of my programming assignments.  The teaching 
assistant went nuts.  My PL/C program was returned, and she had circled 
the GOTO statement and scrawled, "Where did you get this?!?!?"  The 
language had a GOTO statement, and it was listed with all of the other 
syntax in an index in the back of the book.  That was when the 
structured programming Nazis were just getting a philosophical foothold.

During my career, I did a LOT of assembler programming using RISC 
(reduced instruction set) microcontrollers.  The RISC microcontroller 
instruction set had 36 instructions and one of them was a GOTO.  
Sometimes, you ALWAYS want to go somewhere, and in my opinion, it's not 
sloppy spaghetti code to use a GOTO.  This is particularly true in real 
world control applications, such as microcontrollers, or CNC control.  A 
GOTO is much more structured, intuitive and elegant than forcing a 
conditional branch instruction to be an unconditional branch by using 
some condition that is always true.  I've actually seen DO WHILE 0 < 1 
when looking at other people's code.  That's just dumber than dirt.  
It's the sort of ugly code that results from the religious belief that 
the GOTO is anathema.

/Only a Sith deals in absolutes./
/  - Obi-Wan Kenobi/


In some G-code I wrote last week, I wanted to always return to make 
another part on the lathe.  I planned to manually stop it when I wanted 
to stop.  I wanted the operator to control that, and not have the G-code 
force it on the operator.  Instead, I made a DO UNTIL loop with a 
counter that would make all of the parts that would fit on a piece of 
bar stock.  Even then, the lack of any facility for unconditional 
branching seems awkward at best.





On 10/02/2014 09:50 PM, Jack Coats wrote:
> IMHO, GOTOs aren't bad.  They are used poorly.  Most situations they
> are not needed, but in languages without do-while or do-until type
> loops, they do help.
>
> I am not advocating use of GOTOs or similar technologies (one guy
> suggested a 'COMEFROM' ... some tek ideas don't every fly).  But using
> it just because you don't want to re-organize the program isn't a
> reasonable excuse (trust me, writing it well will make maintenance
> SOOO much easier in the long run, or even make portions reusable in
> other programs).
>
> OK, back in my hole. ... Pulling the rock back over it now.
>
> --
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
>

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Uncondiftional , Conditional Program Jumps .

2014-10-02 Thread Jack Coats
IMHO, GOTOs aren't bad.  They are used poorly.  Most situations they
are not needed, but in languages without do-while or do-until type
loops, they do help.

I am not advocating use of GOTOs or similar technologies (one guy
suggested a 'COMEFROM' ... some tek ideas don't every fly).  But using
it just because you don't want to re-organize the program isn't a
reasonable excuse (trust me, writing it well will make maintenance
SOOO much easier in the long run, or even make portions reusable in
other programs).

OK, back in my hole. ... Pulling the rock back over it now.

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Uncondiftional , Conditional Program Jumps .

2014-10-02 Thread Marcus Bowman

On 2 Oct 2014, at 18:32, andy pugh wrote:

> On 2 October 2014 17:59, alex chiosso  wrote:
> 
>> I've checked out the "jump" functionality (within the G code) used from
>> several CNCs on the market (Fanuc,Siemens ,Heidenhain,Fagor ...) and it is
>> present.
> 
> Nearly every other programming language either does not have a
> jump/goto or deprecates the use of it.
> 

I second that emotion

> A do-while loop can generally be used for a conditional jump
> backwards, and a while-endwhile for forwards, but only to specific
> points, and they can't be interleaved without madness ensuing.
> 
> A cleaner way to do what I think you are proposing is to have the code
> blocks in subs, and then conditionally loop between a sequence of the
> subs.
> 

Logically more structured; saner, too.
On of the most valuable features of LinuxCNC is its growth as a programming 
"language", with decent and useful logical structures. Structure is a key 
attribute. 

Marcus
> -- 
> atp
> If you can't fix it, you don't own it.
> http://www.ifixit.com/Manifesto
> 
> --
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Uncondiftional , Conditional Program Jumps .

2014-10-02 Thread andy pugh
On 2 October 2014 17:59, alex chiosso  wrote:

> I've checked out the "jump" functionality (within the G code) used from
> several CNCs on the market (Fanuc,Siemens ,Heidenhain,Fagor ...) and it is
> present.

Nearly every other programming language either does not have a
jump/goto or deprecates the use of it.

A do-while loop can generally be used for a conditional jump
backwards, and a while-endwhile for forwards, but only to specific
points, and they can't be interleaved without madness ensuing.

A cleaner way to do what I think you are proposing is to have the code
blocks in subs, and then conditionally loop between a sequence of the
subs.

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

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Uncondiftional , Conditional Program Jumps .

2014-10-02 Thread alex chiosso
Hi to all.
After a few days and no answer at all I have to deduce that the argument is
not interesting. :-(
I've checked out the "jump" functionality (within the G code) used from
several CNCs on the market (Fanuc,Siemens ,Heidenhain,Fagor ...) and it is
present.
Believe it or not this is really useful and widely used .
So I would like to know your opinion (dear Gentlemen) and understand if it
is too difficult to implement at G code interpreter level .

Regards

Alex





On Wed, Sep 24, 2014 at 4:01 PM, alex chiosso  wrote:

> Hi to all.
> I'm testing some Gcode programs trying to experiment the LinuxCNC Gcode
> (dialect) flexibility and functional power .
> I've to say that I'm not oriented to a machine tool application
> (everything but the machine tool) .
> So for that reason the approach is a bit "unconventional" .
> Usually for that kind of applications when using a CNC I start the Gcode
> main program and during the execution I can jump forward and backward (to a
> Label/line number) within the program (and subs) and never end the program
> execution until a program stop is requested from the operator or another
> external request.
> The jump sintax is quite simple and clear regardless the CNC brand (for my
> personal experience).
> As an example I point to you the Siemens Sinumerik way to do it :
> Sinumerik Programming Manual Fundamentals
> 
> See the Section 10 "Arithmetic Parameters and Program Jumps"
>
> I looked into the LCNC user manual but I didn't find nothing comparable .
> I know about the "o" words and the conditional looping or program
> switching .
> But this way is too much constrictive and in some case not fitting the
> application.
> Especially if a structured and parametric program is needed where to jump
> back and forth is a must to have.
> If there is a workaround please let me know I will appreciate.
> As usual I have to say that "this is not a criticism to anybody" but just
> a point to discuss with you.
>
> Regards
>
> Alex
>
--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Problem with 5i25 on D525MW

2014-10-02 Thread Dave Cole
>>I used 12V from PC for 7i76 field power (is it wrong?).

In general Yes, but I have done it before to power external 12 volt devices.
However, you should really use a separate power supply for field power.  If you 
have a switch turning a relay or coil on and off that is connected to the
12 volt supply and you open the switch;  The collapsing magnetic field in the 
relay will spike the power supply as the switch opens.  (Think ignition coil.)
You can get around that by putting diodes on your relay coils, but miss one 
diode and you may still take out your PC.

I would disconnect the suspect power supply and jumper it on and check the 
voltages at the power supply leads.

I think that jumping the green wire to ground (black) will turn on the power 
supply. (I forget.)   Check out the article below.

http://www.techrepublic.com/article/troubleshooting-pc-power-supplies/

Dave


On 10/2/2014 7:41 AM, Andrew wrote:
> Hello,
>
> I've been retrofitting an old lathe with LInuxCNC. An old 9-step
> electromagnetic gearbox was replaced with Toshiba VFS-11, old asyncronous
> servo motors got replaced with a couple of newer servos in position mode.
> Thus I use 5i25+7i76 on D525MW. First I successfully set up the VFD for
> manual 3 step gearbox, then I connected Z axis servo drive and it was
> jogging around pretty well.
>
> The next day I powered up the PC and Z servo drive (but not VFD), the PC
> started booting. I remember the boot log appearing and then suddenly the
> screen gets black. Since then no picture from that PC, even no bios logo. I
> checked the display, the PSU etc with no success.
> It looks like the D525MW is dead. Pretty frustrating.
>
> Here's the first question: could it burn because of some electromagnetic
> issues? I used 12V from PC for 7i76 field power (is it wrong?). The
> (chinese) servo drive was connected to STEP/DIR in differential mode. The
> servo drive is supplied directly from 220V, but it has opto-isolated enable
> input, I connected it to GND and one of the field outputs.
>
> Later I took another D525MW which had been used with 7i43 + 7i48. But
> somehow this D525MW doesn't see the 5i25 board. I get "... hm2_pci.ko: No
> such device" error. lspci doesn't list 5i25. But the 5i25 lists on another
> PC and the config starts OK.
>
> The second question: what can be wrong with this D525MW?
>
> Thanks!
>

---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com


--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] LinuxCNC Meeting Stuttgart, Germany 2014

2014-10-02 Thread alex chiosso
Hi Christian .
So the Meeting will be on October 25th and 26th , ins't it ?
I'm planning to be there .
I would like to be on site since Friday 24th early afternoon is it possible
?
I can help you to prepare the site if you want or whatever else you need to
do for the Meeting.
If something is changed please let me know.

Regards

Alex

On Fri, Sep 12, 2014 at 1:44 PM, Christian Stöveken <
christian.stoeve...@gmail.com> wrote:

> On Fri, Sep 12, 2014 at 9:35 AM, Marius Alksnys 
> wrote:
>
> > I could bring electric cabinet I built for Reis RV6 robot, connect it to
> > the ABB robot and try to run it. Probably I could prepare for this in
> > advance.
> > It has Mesa electronics with 5i23, 7i44, 7i37, 6x 8i20 and 7i49 for
> > resolvers, THCAD.
> >
> > Are you interested?
> >
>
> Sure, why not.
>
>
> > If the answer is YES, then..
> > For connection connector adapters are needed from Reis to ABB. For this
> > connector parts to cabinet (Reis side) are needed:
> > http://www.tme.eu/parking/99d7c3c845593fe353a7848e4474a3bb9d2b2676.html
>
>
> That's a Harting Han-72-DD connector - I will check on monday if we have
> one lying around.
>
> The ABB has a Harting Han-40-D - and I already organized 3 connectors with
> wires.
> Also I already figured out the pinout of the ABB's.
>
> ... could
> > you please figure out what we would need to make adapters?
> >
>
> Pinout of the Reis Han 72 DD, a soldering Iron and some shrinking tube I
> guess ;-)
>
> --
> Want excitement?
> Manually upgrade your production database.
> When you want reliability, choose Perforce
> Perforce version control. Predictably reliable.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Problem with 5i25 on D525MW

2014-10-02 Thread Andrew
2014-10-02 15:36 GMT+03:00 andy pugh :

> On 2 October 2014 13:32, John Alexander Stewart 
> wrote:
>
> > I wonder if the PC power supply is in trouble?  Can you test the 5i25
> > ...without the 5i25 cards?
>
> I had a problem where the D510 wouldn't boot at all with certain PCI
> riser cards. it took me 3 attempts to find one that worked.
> Probably not the problem here, but it might be worth trying with all
> the slots empty.
>
> Thank you. But no signs of life either, unfortunately.
--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Problem with 5i25 on D525MW

2014-10-02 Thread Andrew
2014-10-02 15:32 GMT+03:00 John Alexander Stewart :

> Andrew - I have 3 D525MWs, two with Mesa 5i25 cards. One's been in
> operation for almost 2 years, the other is a new install that I'm
> completing.
>
> Not being an expert in this area, but I did purchase a small switching
> supply for field power, (12v in my case) and I have another 5v one for
> analogue spindle control.
>
> I have 2 switching PSUs at hand: a tiny 12V 2A PSU and 24V 350W PSU. I
just did not want to use them for the test period... and it probably was a
mistake.


> When disconnected from your machine, what voltages do you see on the pc
> power supply bus?
>
> I wonder if the PC power supply is in trouble?  Can you test the 5i25
> boards with a known good PSU, without the 5i25 cards?  It is a hassle, but
> switching boards is a fairly quick operation, especially if only for
> testing purposes.
>

I connected another D525MW to this PC and it works. But I should check the
PSU thoroughly. Thank you.

-- 
Andrew
--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Problem with 5i25 on D525MW

2014-10-02 Thread Andrew
2014-10-02 15:19 GMT+03:00 andy pugh :

> On 2 October 2014 12:41, Andrew  wrote:
> > The next day I powered up the PC and Z servo drive (but not VFD), the PC
> > started booting. I remember the boot log appearing and then suddenly the
> > screen gets black. Since then no picture from that PC, even no bios
> logo. I
> > checked the display, the PSU etc with no success.
> > It looks like the D525MW is dead. Pretty frustrating.
>
>
> Does the board have an alternative graphics port? (HDMI or VGA or
> something?)
>
> No. But I tried an old PCI VGA card, still nothing.


> Is there any sign of life at all? Can you ssh into it? Do the ethernet
> LEDs flicker when you turn it on?
>

Ethernet LEDS are dead too.

The only thing it does is starting the PSU when the power button is pushed.
Then nothing happens.

-- 
Andrew
--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Problem with 5i25 on D525MW

2014-10-02 Thread andy pugh
On 2 October 2014 13:32, John Alexander Stewart  wrote:

> I wonder if the PC power supply is in trouble?  Can you test the 5i25
> ...without the 5i25 cards?

I had a problem where the D510 wouldn't boot at all with certain PCI
riser cards. it took me 3 attempts to find one that worked.
Probably not the problem here, but it might be worth trying with all
the slots empty.

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

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Problem with 5i25 on D525MW

2014-10-02 Thread John Alexander Stewart
Andrew - I have 3 D525MWs, two with Mesa 5i25 cards. One's been in
operation for almost 2 years, the other is a new install that I'm
completing.

Not being an expert in this area, but I did purchase a small switching
supply for field power, (12v in my case) and I have another 5v one for
analogue spindle control.

When disconnected from your machine, what voltages do you see on the pc
power supply bus?

I wonder if the PC power supply is in trouble?  Can you test the 5i25
boards with a known good PSU, without the 5i25 cards?  It is a hassle, but
switching boards is a fairly quick operation, especially if only for
testing purposes.

JohnS.





On Thu, Oct 2, 2014 at 7:41 AM, Andrew  wrote:

> Hello,
>
> I've been retrofitting an old lathe with LInuxCNC. An old 9-step
> electromagnetic gearbox was replaced with Toshiba VFS-11, old asyncronous
> servo motors got replaced with a couple of newer servos in position mode.
> Thus I use 5i25+7i76 on D525MW. First I successfully set up the VFD for
> manual 3 step gearbox, then I connected Z axis servo drive and it was
> jogging around pretty well.
>
> The next day I powered up the PC and Z servo drive (but not VFD), the PC
> started booting. I remember the boot log appearing and then suddenly the
> screen gets black. Since then no picture from that PC, even no bios logo. I
> checked the display, the PSU etc with no success.
> It looks like the D525MW is dead. Pretty frustrating.
>
> Here's the first question: could it burn because of some electromagnetic
> issues? I used 12V from PC for 7i76 field power (is it wrong?). The
> (chinese) servo drive was connected to STEP/DIR in differential mode. The
> servo drive is supplied directly from 220V, but it has opto-isolated enable
> input, I connected it to GND and one of the field outputs.
>
> Later I took another D525MW which had been used with 7i43 + 7i48. But
> somehow this D525MW doesn't see the 5i25 board. I get "... hm2_pci.ko: No
> such device" error. lspci doesn't list 5i25. But the 5i25 lists on another
> PC and the config starts OK.
>
> The second question: what can be wrong with this D525MW?
>
> Thanks!
>
> --
> Andrew
>
> --
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Another 5i25-7i76 question - spindle encoder this time.

2014-10-02 Thread John Alexander Stewart
Two great ideas - I'll be in my workshop after work to have a peek.

Thank you - John A. Stewart.
--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Problem with 5i25 on D525MW

2014-10-02 Thread andy pugh
On 2 October 2014 12:41, Andrew  wrote:
> The next day I powered up the PC and Z servo drive (but not VFD), the PC
> started booting. I remember the boot log appearing and then suddenly the
> screen gets black. Since then no picture from that PC, even no bios logo. I
> checked the display, the PSU etc with no success.
> It looks like the D525MW is dead. Pretty frustrating.


Does the board have an alternative graphics port? (HDMI or VGA or something?)

Is there any sign of life at all? Can you ssh into it? Do the ethernet
LEDs flicker when you turn it on?

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

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Tuning a spindle servo

2014-10-02 Thread andy pugh
On 2 October 2014 13:15, Erik Christiansen  wrote:
> As for "pointers as to ... all required information", I suspect that our
> doughty¹ developers are thinking "Use the wiki, Luke.", after all, that
> is the "pointers as to ... all [available] information"

Actually, the Wiki is (I find) of limited use, but I go to this page a lot:
http://www.linuxcnc.org/docs/html/


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

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Tuning a spindle servo

2014-10-02 Thread Erik Christiansen
On 22.09.14 13:31, Gregg Eshelman wrote:
> Instructions that assume prior knowledge of something, or do not have 
> pointers as to where else in the instructions (or online) all required 
> information can be found are often not much better than no instructions 
> at all.

Traditionally, most manpages are not tutorials - they all require a
threshold level of understanding for them to be of much use. And they
very often minimally document _how_ to invoke stuff, barely alluding to
_what_ that might be good for. I remember in the early days, cycling
through the manpages in "SEE ALSO" on many a unix manpage, in order to
gain sufficient overview to try some experiments, in order to clarify my
understanding of the command's many option combinations. After a few
decades, it does seem infinitely easier.

Even the on-line manual embedded in vim can be remarkably inscrutable,
despite the fact that it _is_ example-rich and full of detail, simply
because we only know the best search keyword once we know at least half
the solution to the gaping lack of knowledge which initiated the search
in the first place.

Mutt is in a similar boat; a very detailed linked manual, full of
wonderful information - but all of it hidden by our ignorance of the
right keyword to take us straight to the thing we want to do.

On the other hand, it often does not occur to the guru creating the
manpage to document stuff which is dead obvious after just having
finished coding the relevant service or module. That's where we users
come in - we can whip up an explanatory paragraph or two when a
documentation omission has been explicated.

As for "pointers as to ... all required information", I suspect that our
doughty¹ developers are thinking "Use the wiki, Luke.", after all, that
is the "pointers as to ... all [available] information"

Erik

¹ Used here not only in the sense "Able; strong; valiant; redoubtable;",
but also Danish dygtig (skilful). 

-- 
Tragically, Liberia - which already ranks fourth-last in the world for numbers
of doctors per population - has lost almost 20 doctors to Ebola. They only
produce 10 doctors per year in a medical class.
- 
http://www.abc.net.au/news/2014-09-13/australian-doctor-says-time-running-out-to-contain-ebola/5741858

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Documentation auto-generation [Was: Tuning a spindle servo]

2014-10-02 Thread andy pugh
On 2 October 2014 12:33, Erik Christiansen  wrote:

> A commonly used tool for auto-generating documentation from code is:
> http://en.wikipedia.org/wiki/Doxygen

I am fairly sure that halcompile (nee "comp") does this for LinuxCNC
components.

As I said, we would need a new keyword in halcompile. It isn't
difficult, but someone would have to do it.

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

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Problem with 5i25 on D525MW

2014-10-02 Thread Andrew
Hello,

I've been retrofitting an old lathe with LInuxCNC. An old 9-step
electromagnetic gearbox was replaced with Toshiba VFS-11, old asyncronous
servo motors got replaced with a couple of newer servos in position mode.
Thus I use 5i25+7i76 on D525MW. First I successfully set up the VFD for
manual 3 step gearbox, then I connected Z axis servo drive and it was
jogging around pretty well.

The next day I powered up the PC and Z servo drive (but not VFD), the PC
started booting. I remember the boot log appearing and then suddenly the
screen gets black. Since then no picture from that PC, even no bios logo. I
checked the display, the PSU etc with no success.
It looks like the D525MW is dead. Pretty frustrating.

Here's the first question: could it burn because of some electromagnetic
issues? I used 12V from PC for 7i76 field power (is it wrong?). The
(chinese) servo drive was connected to STEP/DIR in differential mode. The
servo drive is supplied directly from 220V, but it has opto-isolated enable
input, I connected it to GND and one of the field outputs.

Later I took another D525MW which had been used with 7i43 + 7i48. But
somehow this D525MW doesn't see the 5i25 board. I get "... hm2_pci.ko: No
such device" error. lspci doesn't list 5i25. But the 5i25 lists on another
PC and the config starts OK.

The second question: what can be wrong with this D525MW?

Thanks!

-- 
Andrew
--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] Documentation auto-generation [Was: Tuning a spindle servo]

2014-10-02 Thread Erik Christiansen
On 22.09.14 12:34, andy pugh wrote:
> On 22 September 2014 12:22, Gene Heskett  wrote:
> > IMO an
> > example usage stanza should be shown.
> 
> Most of the component manpages are auto-generated by "comp", but in
> many cases it is hard for comp to auto-generate a valid usage example.

A commonly used tool for auto-generating documentation from code is:

http://en.wikipedia.org/wiki/Doxygen

If that is already what is being used, then all that is required for the
insertion of examples is a suitable comment in the code. Now everyone
wins: The coder does not have precious tweaked documentation overwritten
by auto-generation (since the tweaks come from the extra code comments);
the user has examples (or whatever other goodies are added) in the
manpage; and the coder also has them in the code, to serve as a reminder
of the code's documented requirements.

There may be other tools, but this one seems to be the frontrunner is
FOSS circles. If a bit of awk were needed, to massage the doxygen output
to manpage layout, then that'd be no biggy. (I'm thinking of
auto-insertion of groff formatting gumpf, a la "man 7 man", as an
example.)

Mind you, according to:

http://en.wikipedia.org/wiki/Comparison_of_documentation_generators

it'll generate manpages and html directly.

Erik

-- 
"You have seven to eight million people entering the workforce in China every
single year, so you have to give them something to do in order to retain the
legitimacy of the government," says Doran. "Maybe 10 or 15 years ago they were
doing things that made sense - roads, rail, power stations etc - but now it's
investment for investment's sake." - http://www.bbc.com/news/magazine-19049254

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Emco 140 lathe retrofit

2014-10-02 Thread Erik Christiansen
On 25.09.14 15:21, Bjørn Kristiansen wrote:
> Hello. I have a Emcoturn 140 lathe. i am going to use linuxcnc for 
> retrofitting, and i will use the 5 ph stepper drives. but does anyone 
> know anything about step timing for these drives?

Hej Bjørn,

If your stepper drives aren't here:

http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Stepper_Drive_Timing

then we'd need to know the manufacturer and model number of your drives
in order to know whether we have used anything similar.

Are your drives second-hand, so that you don't have any data?

Erik

-- 
Investment in infrastructure accounts for much of China's GDP - the country is
said to have built the equivalent of Rome every two months in the past decade.
And with such a large pool of labour, it is harder to put the brakes on when
growth slows and supply outstrips demand. - 
http://www.bbc.com/news/magazine-19049254

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Another 5i25-7i76 question - spindle encoder this time.

2014-10-02 Thread andy pugh
On 2 October 2014 03:14, John Alexander Stewart  wrote:
> I see nothing - no counts, no "action" on the input.

It might be worth looking at the A-input pin as GPIO, just to make
sure that it is working electrically. (GPIO 16, or possibly 33
depending on which header you are on)

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

--
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users