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 - compiling C code generated by LDmicro

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

compiling C code generated by LDmicro (by erik)
Hi,
I am looking at using the internal clock on my PIC 16F627-04 (4MHZ), the only way i can see doing this is to compile the ladder logic into C code, and change it manually. However, it states to include a ladder.h, which I cannot find. Any suggestions or work-arounds?

Thank you
Fri Jun 11 2010, 21:19:43
(no subject) (by Jonathan Westhues)
See the comments in the generated code. It is not possible to make the program run with the correct cycle time (or interface to I/O pins, to the A/D, etc.) in a platform-independent way.

This means that to use the generated C code, it's necessary to provide that infrastructure yourself. Basically, it must call the PlcCycle() function every cycle time, and implement the I/O functions. This is the code that should be provided (or for which prototypes should be provided) in ladder.h.
Sat Jun 12 2010, 10:49:46
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):