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 - Ld micro question??

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

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....
Wed Apr 18 2012, 19:03:05
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.
Fri Apr 27 2012, 23:41:58
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.
Fri Apr 27 2012, 23:44:50
(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.
Sun Apr 29 2012, 13:24:40
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):