Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - Inclusion of subroutines

(you are viewing a thread; or go back to list of threads)

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.
Mon Feb 7 2011, 16:08:34
(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.
Tue Feb 8 2011, 02:13:51
(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
Wed Feb 9 2011, 00:13:36
(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
Wed Feb 9 2011, 00:34:15
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):