(you are viewing a thread; or go back to
list of threads)
eeprom decoder program (can someone do this?) (by David R)
Hi all,
I don't expect you to have time Jonathan, but maybe some one else in the forum that can.
A program that you load the (.ld file) , (.hex eeprom file)
and it displays the values with the variable names and allows the user to change the values and resave the (.hex eeprom).
Regards
David.
(no subject) (by olivier)
i dont think the variable name are stored into hex file, they are just comments into the ld files
(no subject) (by David R)
That is correct I think, But the eeprom uses sets of 4 hex characters so there will be some order that LDmicro assigns
the memory space for each "make persistent" like the first one in the ladder gets the first 4 spaces and the next one in code gets the next 4 spaces etc.
So then all that needs to happen is read the first 4 spaces,convert the value to decemial and assighn it the varaible name of the first "make persistent" in LDmicro and so on.
regards
David.
(no subject) (by Jonathan Westhues)
The easiest way to do that might be to write a program that modifies the .ld file (whose file format is obvious), and then compile from the command line, with the syntax
ldmicro /c input-file.ld output-file.hex
Or you could just put comments at the top of the .ld file with MOV statements to set up the variables, and let the user make the changes and recompile. A bit more complex, but maybe not too bad.
(no subject) (by David R)
The main idea is to download the eeprom hex from the chip and view it in an easy tidy way with the variable attached.
Regards
David.
Sample examples (by Charles Torach)
Dear fellow programmers, Just a suggestion kindly share some of the ld micro ladder programs you are developed or working on so that some of us just starting to learn ld micro may expand our knowledge. I really liked the software and would really want to learn more.
(no subject) (by MGP)
Software made by someone else is very hard to understand if every line is not commented.
What you can study are small programs that explain something, like in SamplesV2.zip
(no subject) (by paulino)
Como yo lo hago, es con botones externos hago mover lo que el usuario quiera, pero lo hago por numeros y le hago una tabla para que sepa que variable mueve de balor. como veras se ajusta el tiempo des de el exterior osea el usuario.
How I do it is with external buttons I make the user move whatever he wants, but I do it by numbers and I make a table so he knows which variable moves by value.
Post a reply to this comment:
 |