Hi to all.
First of all thank you for your opinions.
I'm Italian but I'm not a stupid BASIC spaghetti programmers. [ ;-) ]
Especially in CNC programming where usually the program flow from top to
bottom and stops at the end with M2 (with no infinite loop as a void main
) and you need to do a
I am reminded of a sign on one of the computer science professor's door at the
university where I worked:
GOTO is an obscene four-letter word and should only be used in dire
emergencies - but even then, not in good company
...or something to that effect.
That kind-of sums it up :-)
Regards
Honestly I don't understand what evil is inside the GOTO statement to be
rejected .
As I told before so many CNC manufactures are including it in their G Code
dialects .
So are they living on another planet ?
A programmer can write bad code without any use of GOTO.
So why the absence of GOTO is
On 02.10.14 10:04, Dave Cole wrote:
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
On 03.10.14 04:55, Chris Morley wrote:
I tend to agree with you. bad use of goto is .. bad.
good and sparse use of goto is fine, possibly good.
Ah, awareness ... good to see on a thread with a sad amount of
misinformed absolutism.
For any still under the thrall of absolutist teaching in their
Apologies - I did not mean to imply anything bad or evil in my quote of the
prof (who was a structured programming nut), but I probably sounded that way.
I actually agree that GOTO should be available for all the situations in which
it is appropriate. However, I also know how it can be easily
Hi Erik .
Nice terms usage (GOTO-phobia) .
You explained the concept clearly and effectively .
Alex
On Fri, Oct 3, 2014 at 10:24 AM, Erik Christiansen dva...@internode.on.net
wrote:
On 03.10.14 04:55, Chris Morley wrote:
I tend to agree with you. bad use of goto is .. bad.
good and sparse
On 3 October 2014 09:24, Erik Christiansen dva...@internode.on.net wrote:
Not for nought is it
said that a determined programmer can write fortran in any language.
You have seen the FORTRAN++ that makes up the bulk of the NML code in
LinuxCNC then?
--
atp
If you can't fix it, you don't own
On 3 October 2014 08:08, alex chiosso achio...@gmail.com wrote:
I wonder to know how difficult is to implement the GOTO logical operators
within the LCNC G Code interpreter.
The first question is how you would define the target position. As
LinuxCNC G-code doesn't pay attention to line numbers
On 03.10.14 10:19, andy pugh wrote:
On 3 October 2014 09:24, Erik Christiansen dva...@internode.on.net wrote:
Not for nought is it
said that a determined programmer can write fortran in any language.
You have seen the FORTRAN++ that makes up the bulk of the NML code in
LinuxCNC then?
On 03.10.14 10:29, andy pugh wrote:
But, this leaves no scope for the (I shudder to mention this even
amongst GOTO advocates) computed GOTO.
ISTM that the computed GOTO went extinct around the time that the more
structured switch statement invaded that ecological niche in the
programming world.
On 3 October 2014 11:38, Erik Christiansen dva...@internode.on.net wrote:
said that a determined programmer can write fortran in any language.
You have seen the FORTRAN++ that makes up the bulk of the NML code in
LinuxCNC then?
Errr ... is that relevant to the context?
It was a joke. Or an
On Friday 03 October 2014 05:29:11 andy pugh did opine
And Gene did reply:
On 3 October 2014 08:08, alex chiosso achio...@gmail.com wrote:
I wonder to know how difficult is to implement the GOTO logical
operators within the LCNC G Code interpreter.
The first question is how you would
On Friday 03 October 2014 06:59:31 Erik Christiansen did opine
And Gene did reply:
On 03.10.14 10:29, andy pugh wrote:
But, this leaves no scope for the (I shudder to mention this even
amongst GOTO advocates) computed GOTO.
ISTM that the computed GOTO went extinct around the time that the
Seems to me every language has a GOTO that is not called a GOTO rather the
GOTO is embedded in an if/then etc
Also, fortran is Formula Translation? If so, then every attempt at
translating a mathematical algorithm into the 'language of choice' would
necessarily 'look' like fortran. no?
On
On 3 October 2014 10:29, andy pugh bodge...@gmail.com wrote:
In the interpreter at the moment the loop ends are matched by number.
O100 while - O100 endwhile etc. In the context of GOTO it guess that
you would need an O101 GOTO to jump to your O101 LABEL.
If you fancy having a go, the O-word
Seems to be briefly mentioned in the manual...
http://linuxcnc.org/docs/html/gcode/o-code.html#sec:looping
JT
On 10/3/2014 7:14 AM, andy pugh wrote:
On 3 October 2014 10:29, andy pugh bodge...@gmail.com wrote:
In the interpreter at the moment the loop ends are matched by number.
O100 while
On 03.10.14 12:06, andy pugh wrote:
On 3 October 2014 11:38, Erik Christiansen dva...@internode.on.net wrote:
said that a determined programmer can write fortran in any language.
You have seen the FORTRAN++ that makes up the bulk of the NML code in
LinuxCNC then?
Errr ... is that
On 3 October 2014 13:24, Erik Christiansen dva...@internode.on.net wrote:
There wouldn't be much of it in your engine controllers?
That used to all be C, now it is mainly auto-generated C produced from
Simulink models.
For some reason we get given the C (in pdf format!) rather than the
model as
Understanding the history of where we came from is important to me to
have a framework to see how to go into the future.
The origins of the G-Code 'language' goes back to the use of paper
tape (that is what my Dad used 40+ years ago and it was well
established then).
Yes, G-code isn't modern or
Hey Guys,
I have a D525MW setup.. using pport and I do use the PC's 12v supply to switch
some relays.. and to handle a charge pump which has a integrated 5v relay If
memory serves me. I'm
doing away with the pport and moving to 5i25 + 7i76 setup.. and was planning on
using the PC's 12v
OK, where are people staying? Not that it is critial we all
stay the same place,
but where are a majority of people staying? Can the locals
recommend a
decent place, maybe with a breakfast included? (If we have
to go out
to eat every morning, we end up eating too much...)
I gotta book the
The best practice is to put a diode right at the device that can cause
the voltage spike.I usually use socket-ed relays and I put the diode
across the coil screw terminals.
The same with motor contactors and hydraulic/pneumatic solenoid valve
coils that are driven by DC circuits.
You can
I just made my reservations (plane, hotel, rental car) last night.
I'm staying at Candlewood Suites Houston I-10 East. It is 9
miles and about 15 minutes from TxRx according to Google
Maps.
It's a roughly $100 a night place. The down-town hotels that
are closer are also much more expensive:
On 10/03/2014 11:30 AM, John Kasunich wrote:
I just made my reservations (plane, hotel, rental car) last night.
I'm staying at Candlewood Suites Houston I-10 East. It is 9
miles and about 15 minutes from TxRx according to Google
Maps.
It's a roughly $100 a night place. The down-town hotels
Mach4 has GOTO in the industrial version. Here is a short snip of how it
works.
(IF INITIAL FEEDRATE IS OMITTED)
IF [#8 NE #0] GOTO20
#8 = #9
N20
seems pretty handy to me, and quite clear to read.
ron ginger
--
On Friday 03 October 2014 08:24:15 Erik Christiansen did opine
And Gene did reply:
On 03.10.14 12:06, andy pugh wrote:
On 3 October 2014 11:38, Erik Christiansen dva...@internode.on.net
wrote:
said that a determined programmer can write fortran in any
language.
You have seen the
On Friday 03 October 2014 08:34:44 andy pugh did opine
And Gene did reply:
On 3 October 2014 13:24, Erik Christiansen dva...@internode.on.net
wrote:
There wouldn't be much of it in your engine controllers?
That used to all be C, now it is mainly auto-generated C produced from
Simulink
I booked a room at Baymont Inn Suites Houston Hobby Airport through Expedia
for $42 a night. Unfortunately I may need to cancel and stay home as my wife
will be 8 months pregnant. Now that I look at the reviews more carefully
though, I'm not seeing anything positive about that motel.
Moses
On Friday 03 October 2014 11:38:26 Billy Huddleston did opine
And Gene did reply:
Hey Guys,
I have a D525MW setup.. using pport and I do use the PC's 12v supply to
switch some relays.. and to handle a charge pump which has a
integrated 5v relay If memory serves me. I'm doing away with the
That usage does NOT require a goto, a conventional if statement works:
O100 if [#8 NE #0]
#8 = #9
O100 endif
If your goal is to either skip or execute some code based on a condition,
a regular if/else/endif structure does the job, while still enforcing structured
code and avoiding
On Fri, Oct 3, 2014, at 01:19 PM, Jon Elson wrote:
On 10/03/2014 11:30 AM, John Kasunich wrote:
I just made my reservations (plane, hotel, rental car) last night.
I'm staying at Candlewood Suites Houston I-10 East. It is 9
miles and about 15 minutes from TxRx according to Google
Maps.
Oh, yes, I remember that one on trip advisor. 200 reviews:
11 excellent, 16 very good, 34 average and 34 poor.
And 105 terrible.
First review that popped up mentions not being able to sleep
because of the fight going on in the parking lot. Next one
mentioned the hookers coming and going at all
not being able to sleep
because of the fight going on in the parking lot. Next one
mentioned the hookers coming and going at all hours...
In other words: Onsite entertainment and full service! ;-)
There was a Baymont Inn not far from my house that existed for a short
period of time and now
That usage does NOT require a goto, a conventional if statement works:
He was simply pointing out the syntax. Of course a two line statement
didn't need a goto.
There are plenty of ways to use goto that are clean and structured. And
every one of those ways is better done using
On Fri, Oct 03, 2014 at 04:26:46PM -0400, Stephen Dubovsky wrote:
If someone wants to write code using it (or has existing code)
what difference does it make to others? LCNC is about having more
flexibility and freedom
Wow this is bringing out strong feelings.
The sticking point here, which
On 10/03/2014 03:02 PM, John Kasunich wrote:
Oh, yes, I remember that one on trip advisor. 200 reviews:
11 excellent, 16 very good, 34 average and 34 poor.
And 105 terrible.
First review that popped up mentions not being able to sleep
because of the fight going on in the parking lot. Next
The 200 branch go to:
Many years ago,/in the days of punch cards and mainframes,/ I wrote, /in
FORTRAN/ a complex radar system modeling/simulation tool to evaluate
radar system designs in a variety of environments. The program used a
large variety of signal generation and signal processing
38 matches
Mail list logo