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 - LDMICRO for DsPic 16 bit is it possible?

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

LDMICRO for DsPic 16 bit is it possible? (by Carlos )
Hello good evening, first I want to congratulate you on your initiative creating ldmicro , the truth seems to me a fairly comprehensive and highly efficient software. Honestly I'm sorry to bother you, but I'm electrical engineering student in Venezuela and I am to culminate my career , as work degree I chose to do an interface that allows me to program the logic relay and then burn it to a dspic33ep , exactly as does your program . I was researching the facets of a compiler and I think I can work from the bytecode ldmicro to create from that other lines of understandable code for a compiler dsPIC , that's my idea , but my problem is I want to know the instruction set or the logic used to create the bytecode , unclear whether this to their availability, and if you could help me I would appreciate forever .. Greetings .
Carlos Reyes
Thu Aug 27 2015, 19:24:00
(no subject) (by Jonathan Westhues)
Have you looked at ldinterpret.c? That's a sample bytecode interpreter, and could be adapted for any target.
Fri Aug 28 2015, 21:49:19
(no subject) (by Carlos )
Hello, thanks for your reply, and yes i have looked the ldinterpreted.c, but i want to make a translator, like this: bytecode(generated for ldmicro) to ---> c-code for dspic compiler.. is that possible?.
Thank you
Wed Sep 16 2015, 10:31:38
(no subject) (by Jonathan Westhues)
Of course; but if you want C code, then why not just use the "ANSI C Code" target that already exists?
Wed Sep 16 2015, 19:14:12
(no subject) (by Carlos)
Thank you Jonathan in the past week i has loooked and tested your idea with the ANSI C Code, and i have a question, is there any code like ldinterpret.c for the ANSI C? The instructions
Mon Sep 28 2015, 08:44:49
(no subject) (by Jonathan Westhues)
There's no equivalent to ldinterpret.c for the generated C code, because no interpreter is required: you should be able to just compile it directly.

You do need to supply some kind of runtime, to periodically call PlcCycle(), but that's explained in some detail in the comments in the generated file itself. Let me know if you have any questions, though...
Thu Oct 1 2015, 17:24:00
configuration LDmicro (by Magno Medeiros (Brasil))
Hello Mr. Jonathan Westhues. I wonder if it is possible to leave the option marked as standard (internal relay), for in a program that is more than 50%. right now I'm grateful for any help.
Fri Oct 2 2015, 12:57:14
(no subject) (by Carlos)
Thanks a lot Jonathan, i've been testing and it's the best way forma me, work with the ANSI C . in fact im designing the traductor for add the dspic instrctions.. But i have a question , i want to modify some functions of the ldmicro (dissable) in the menu i can modify the source code. But for the new .exe can i use visual studio?
Wed Oct 14 2015, 17:59:25
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):