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 - LDMicro IDE Upgrade

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

LDMicro IDE Upgrade (by Jason)
my thread is more of an invite to my wish list for LD Micro.

I would love to see it interfaced with Arduino IDE(AVRs) or pinguino (PICs) so that i can use a single platform to quickl produce prototypes.

recently i installed visual micro which is an arduino IDE plugin for MS Visual Studio.

The one thing that is missing is a truely simple graphical method of programming like LDmicro

LDMicro has been worth its weight in gold, It really is the most impressive piece of work i have come across for getting things up and running quickly.

Flowcode is pants, i find it too basic and the Arduino virtual simulator for arduino is just as simplistic.

The only thing missing with LDMicro is a good programmer connection - the arduino and pinguino code are both opensource
if we can find a programming genious with too much free time who wants to take up the challange, then i for one would love to have a copy of the program.

i have thought of subscripting the help of a coder on Vworker(rentacoder) to merge the two applications Arduino IDE and LDMicro but it really belongs here and should be instigated by Jeff - after all it is his baby.

having recently used the painfull arduino forum where 90% of the replies are either insulting or pointless. I did notice that there were alot of requests for an application like LDmicro.

id love to hear from anyone is interested in driving this project, or if it has been acheived already.

best regards
J.
Sat Mar 2 2013, 06:25:18
(no subject) (by Devel)
What problem you have with interfacing Arduiono with LDmicro.
Arduiono is GCC+... , so it´s a really big application.

Hovever, you generate the ladder code with ldmicro, preprocess
it with the arduino preprocessor, and use it.
The simple arduino PDE is :
#include "ladder.h"

/* Plc cycle interval, set this according to LDmicro settings. (micro sec.) */
#define PLC_INTERVAL 10000

void setup()
{
PlcSetup();
}

void loop()
{
if (IsPlcInterval())
{
PlcCycle();
}
}

/* Plc Cycle timing function. */
boolean IsPlcInterval()
{
static unsigned long last_run;

if (micros() - last_run >= PLC_INTERVAL)
{
last_run = micros();
return true;
}
return false;
}
Sat Mar 2 2013, 10:08:11
(no subject) (by Devel)
Sat Mar 2 2013, 10:15:29
(no subject) (by Jason)
Hi Devel,
cool,but not 100% what i had in mind.
if it was integrated into an Arduino like IDE then it would be fantastic.

I envisage going from the ladder straight to compile and upload in one application.
J.
Sat Mar 2 2013, 17:06:05
(no subject) (by Devel)
It´s possible, but you must install arduino differently.
Google for command line arduino compiling / download / upload,
whatever.

Once you are out of the Arduino GUI, it´s possible to compile
and download from the LDmicro application.
This is the real secret, and because there exists several
version/method doing this, there is no single how to do that.

If you have it and you know how to do that, drop me a email with the required command or post it here and i tell you how to configure ldmicro for that.
Sat Mar 2 2013, 19:18:30
(no subject) (by Devel)
Question, do you want having the Arduino, or just burning the
hex code.

Arduino is, like having 6x hw-pwm, interfacing external
components just adding a lib and using it.

You want to process exteral RF Temperature sensors from weather/dcf stations, just add a RFM12 Module, download the
libs, install it and with just 4 lines of C code you could use
the temperature sensors inside the ladder code.

Burning mean using a programmer or bootloader to download the
hexfile to the cpu, from the ldmicro.
Sat Mar 2 2013, 19:37:32
arduino like ide (by Volhout)
This discussion may be going in the wrong direction.

Jason (if I understand right) would like to see the download function (via bootloader) integrated in LDmicro.
Wed Mar 13 2013, 03:29:55
P.S. (by Volhout)
- and so do I myself -
Wed Mar 13 2013, 03:31:16
Pic 16f628a (by Luis Paulo Inacio)
Bom dia Devel!!!

Queria saber qual o tempo do ciclo e o oscilador que devo colocar em configurações para o PIC 16f628a,pois faço tudo correto e na hora de testar na protoboard para acender um led não da certo.To usando a0 como entrada e b0 como saída.Se puder me envia o passo a passo como fasso para acerder um led com essas entradadas e saidas!!!

Grato,Luis Paulo.
Mon Sep 15 2014, 09:51:10
(no subject) (by Alex)
To Devel:

Hello your Arduino PDE code:

/* Plc cycle interval, set this according to LDmicro settings. (micro sec.) */
#define PLC_INTERVAL 10000

void setup()
{
PlcSetup();
}

void loop()
{
if (IsPlcInterval())
{
PlcCycle();
}
}

/* Plc Cycle timing function. */
boolean IsPlcInterval()
{
static unsigned long last_run;

if (micros() - last_run >= PLC_INTERVAL)
{
last_run = micros();
return true;
}
return false;
}





"HOW CAN I USE IT IN PIC C COMPILER I MEAN, TRANSLATE IT TO MICROSHIP IN PI C COMPILER"
Mon Oct 31 2016, 08:38:36
(no subject) (by Alex)
i was thinking in using timer0 in pic, but i still can´t handle it for calling the plcCycle with the ansi c code.

thanks
Mon Oct 31 2016, 09:59:24
(no subject) (by Alex)
Does your code handles rollover?
Wed Nov 2 2016, 23:20:43
plc online (by tarek)
can LDMicro IDE connect to microcontroller online not simulation to test program like any plc ide
Tue Jul 30 2019, 04:46:31
(no subject) (by Ihor Nehrutsa)
to tarek
No. Not all microcontrollers have hardware debug interface (like JTAG) and LDmicro doesn't support this functionality.
Tue Jul 30 2019, 11:42:48
(no subject) (by tarek)
Ihor Nehrutsa
i wonder if we can add modbus slave library to ld micro
to connect every (x as input ) , (y as output ),(r as relay)
(t as timer ) ,(c as counter) to holding register
as example when x0 is ON then the register 40001 is oN also so i can debug the program with any modbus opc server .
so i think we need to add modbus address to all input out ,put,relay, timer , counter in ld micro .
the next step would be adding opc server to ld micro to connect direcly ladder program to opc server like simulation
Sun Aug 18 2019, 12:20:17
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):