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 - Calling the .hex file created by LD Micro does not recognised by Atmel AVR STK500 IDE

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

Calling the .hex file created by LD Micro does not recognised by Atmel AVR STK500 IDE (by Jorge Jacome)
Hi all

A very small program created in LD Micro, just to get used to how to use this compiler etc was succesfully simulated and compile as a .hex file, but when I call that file using the ATMEL AVR STK500 IDE came up with the following:

AVR Simulator: ATmega16 configured O.K.
Coordinator: The object file does not contain source code
information
Loaded object file; c:\LD Micro\prueba.hex

Any ideas why I can not see the code to edit then add additional code to finally downloaded to the chip ?

regards

Jorge
Sun Apr 8 2012, 19:33:40, download attachment prueba LD micro.ld
(no subject) (by Jonathan Westhues)
The code generated by LDmicro is a complete program; there is no easy way to link that with other code.

If you want to create a project that's written partially in ladder logic, and partially in another language (for example, C code), then you may be able to do what you want with the ANSI C code back end, for example by compiling the generated code together with hand-written C code.
Sun Apr 8 2012, 19:41:48
On-delay timer (by Jorge Jacome)
Hi Jonathan

Many thanks for your clarification on this subject, and I have another one.

I downloaded prueba.hex into an ATMEGA16 using the STK500, the
first rung of the LAdder is O.K. but when I tested the second rung which includes the on-delay timer is does not function as I may expect it.All of these tests with the STK500.

It act as an extended pulse timer, coming on as soon I activated the corresponding input ( short period of time ) and stay on for the period of time programmed. But if I simulate the On-delay timer with LD Micro it works O.K. as It should be.Unless it is working as an Off-delay timer ?

I have not tested yet the same On-delay timer keeping the input condition "ON" equal or longer the programmed time, which I will let you know.

At the same time I will test the Off-delay and the other timer

regards

Jorge
Fri Apr 13 2012, 03:56:00
On-delay and off-delay timers (by Jorge Jacome)
Hi Jonathan
I created another rung with the Off-delay timer into the LDMicro
then simulated the on-delay and the off-delays timers work O.K. both as it should be.
But when I downloaded to the ATMEGA16 is exactly the opposite
the on-delay timer works as an off-delay timer and viceversa.

regards

Jorge
Sat Apr 14 2012, 22:27:53, download attachment prueba LD micro.ld
(no subject) (by Jonathan Westhues)
Do you have a dev board with the LEDs wired from Vdd to the port pin, and with the switches wired from the port pin to ground?

In that case, logic LOW corresponds to the LED-on or switch-closed state, so the logic levels will be inverted from what you're expecting. To fix that, mark the contacts and coils as negated.
Sat Apr 14 2012, 22:48:58
(no subject) (by Jorge Jacome)
Hi Jonathan
thanks for your reply. I did marking the 2 outputs coils as negate, I did not fix as I did think. because as you can see on the first rung of the LDmicro program a N.O input drives an output which becomes true only when the input is true as it works O.K. on the LDMicro simulator and using the STK500 as well

Jorge
Sat Apr 14 2012, 23:00:19
(no subject) (by Jorge Jacome)
Jonathan
Problem fixed
The inputs and outputs need to be negated
Thanks again
Jorge
Sat Apr 14 2012, 23:09:32
timer (by jimson james bringas)
i have an idea to further more improve the ldmicro functionality,i wish it could have the capability to set the timer on delay and timer of delay to be variable,using move comand,the value of time delay would be set.
Sun Aug 12 2012, 02:08:08
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):