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
(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.