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 - building ldmicro 2.1 from source code

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

building ldmicro 2.1 from source code (by kendhill)
will ldmicro source code build using the free version of microsoft express lite x86 visual c++ and do you use the makefile method
thanks
kenhill
Mon Mar 8 2010, 10:37:16
(no subject) (by kendhill)
well i read the threads and i have loaded the code and compiled it : on a diff thread i read some wants to make a ini file i think a conf module would answer allot of questions of pic families and atmel processors maby a conf editor to make the header for mpus and generate the cpp to assign the mpu types
thanks
kenhill
Fri Mar 12 2010, 11:37:43
(no subject) (by BoumPower)
Dear Kendhill

I'm writing a compiler for LDmicro, I have changed some stuff (small enhencement) in the .ld file format. If you make changes in LDmicro, can you include these changes ?

Best regards
Fri Mar 12 2010, 14:16:17
(no subject) (by kendhill)
i will : im thinking of using a configuration editor weather i have to start from scratch or rebuild a current one; im thinking of a importing feature ande a alt compiling feature.
reguards
kendhill
Fri Mar 12 2010, 15:54:11
update (by kendhill)
ive been studing a way to make adding mpus and i have added the 16f630 which is a 14 pin processor. i think it would be posible to make a edit screen for testing mpus not listed.
i was going to make a test mpu with pulldown menus and you can edit the mpu table directly;
the test mpu will be for the 16f family;
later im going to make it build a self growing table/database
one step at a time;) i havent got into the function list yet but would like to know what function(s) you(anyone) thank would be nice; im for floating point math lol for one :)

Nice work jonathan:)

thanks
kendhill
Wed Mar 17 2010, 21:20:44
(no subject) (by Juan)
Hi kendhill,

I'm in the Automation field and have installed and porgram plenty PlC's. The common math functions of use is sin, cos, tan, pow, exp, absolute value, div, mul, mod, add, sub, exp(natural base e), ln(natural ln), log, sqrt.

I agree with you floating point math is an necessity but the 16F I think will run out of memmory quick. My suggestion is rather to focus new development on the pic18F series as there memmory layout is easier to manupulate with C/C++.

Also CUD(counter up/down), and functions that converts between float, integer, Double interger etc.
Thu Mar 18 2010, 01:10:26
(no subject) (by kendhill)
yes ive been in automation field sence 83 ive programmed in several languges :)) im only intrested in the 16 family becouse thats what i have ive programmed plcs and ladder takes less though and faster to implement; but you have a valid point i guess i should use the larger 18 family to maybe try a scaled down version of modbus (binary mode); i have a cnc controller i built and i use the 16f630 for it but i may go to a 877 are a larger 4 port mpu:) but im not sure i want to put it all in one chip due to speed concidrations:

have a great day
kendhill
Thu Mar 18 2010, 13:28:54
update on 16f630/676 modification (by kendhill)
some problems are the ld runs on a :
//-----------------------------------------------------------------------------
// Configure Timer1 and Ccp1 to generate the periodic `cycle' interrupt
// that triggers all the ladder logic processing. We will always use 16-bit
// Timer1, with the prescaler configured appropriately.
//-----------------------------------------------------------------------------
im changing the processing a bit and it also improves the delay on how long it takes a action to take place:

the 630 does not have a ccpr1 module:

i am incorpating a alt compiler by BoumPower it will still be able to compile standard will have options for both.

i dont have lots of time to work on this project:
bur i do plan to add some of the newer pics .

thxs
kendhill
Sun May 2 2010, 10:41:59
New LDmicro compiler (by BoumPower)
Dear Kendhill
If you make changes in LDmicro, please include my modifications in file format :
- processor structure
- count up/down flag (default as old ld version) for counter and timer, because I can produce more efficient code if we count down.

You can contact me if you needs more precision..

Best regards
Olivier
Mon May 3 2010, 12:48:01
New LDmicro compiler (by BoumPower)
Dear Kendhill

I also suggest to add new menu items to the compile menu :
"external compile" or something that sounds similar with the possibility to have some options.

The purpose of a menu item is to :
- save the ladder file
- call a batch file (see below)
- display the result of this process.

The batch file will :
- call the new LDmicro compiler with the options selected
- depending option, call other external software

I plan to use a "compiling chain" for microchip PIC (purhaps other processors): the vmMachine output from new LDmicro compiler will be assembled with SmileNG CALM assembler to produce a .hex file directely downloadable to processor.

Best regards
Olivier
Sun May 9 2010, 11:21:36
(no subject) (by kendhill)
yes i was planning to add a menu item to the compile menu bar:

still working some bugs out of the way the ldmicro handels the ladder scaning;

still waiting on jonathan to see if he can answer my help thread;

have a great day all
kendhill
Mon May 10 2010, 07:47:51
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):