Inclusion of subroutines (by Evan Raftery)
Is it possible to include interrupts or Subroutines in LD Micro.
this would enable faster scan times to catch pulses when required before switching in the body of the program desired.
(no subject) (by Jonathan Westhues)
I've considered that, but I don't think that fits very well with ladder. To solve those problems, I'd be more inclined to code special ops to latch pin state; for example, a bit variable that goes true when an input goes true, but then stays true until cleared; or support for certain micros' capture-and-compare peripherals. But those are fairly hardware-specific, so I haven't done any yet.
(no subject) (by Max)
Hi Jonathan,
For sure that don’t fits with ladder, but would be extremely useful, imagine to be able to run your main program in ladder and in the background your have a small routine to take care of those high speed signal... WOW ... best of both world, the simplicity of ladder and the execution speed of assembly (or other language)
Most of the time I need to run my scan time at 0.1ms and I’m still to slow... and at that kind of speed you got really limited in the program size
Just an idea here...
2 version of LDmicro
1 for basic task for free (current version)
and
1 with the high speed subroutine, that we can buy a licence ex; 100$
I would buy it right away
(no subject) (by David R)
Hi all I understand both comments about this,
I think the optimum way would be to somehow compile two
ladder pages with different scan times.
This could have other advantages as I might have A program that
I want to include in another program, Through the variables would need to carry over.
Regards
David