Ld micro question?? (by anthon)
I have a problem with ld micro when I used ld micro with AVR atmega16. ld micro not support to program or generate PWM signal in Atmega16. I think, that is about programming initialization in ld micro with atmega16 not support. I have question, do you have any idea to solve them ?? thanks very much....
How to mix Generated C file with other hand writen code. (by syed_Hassan)
Hi ther,
i created a simple ladderlogic file for atmega8 which included just one rung
Rung one: |----------]x1[---------(y1)------|
Rung two |----------]x2[----------(y2)-----|
rung2 continue. |------(R0)-----|
i wanted to use that in my already present project which includes files
main.h
main.c
uart.h
uart.c
ladder.h*
ladder.c**
*: described in generated Ansi C file By software.
**.Generated Ansi C file.
now my question is how to use only one specific rung function from my main program at a time??
how to use all rungs as a sewuance.??
thank u very much for creating this awsome software which is also free.
How to mix Generated C file with other hand writen code. (by syed_Hassan)
Sorry for saying "including just one rung" actually two rungs are including as we can see. again thnx for help in advance.
(no subject) (by Jonathan Westhues)
There's no particularly easy way to execute only a subset of the program in the generated C source code. If you want that level of granularity, then I would suggest splitting the logic into two .ld files, and generating two different .c files, and then calling the PlcCycle() function from those respective files in whatever sequence you need.