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 to arduino

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

LDmicro to arduino (by ritesh )
Hi,
I would like see if any one can help me.
I am working on project in which i am trying to program arduino board using ladder logic through LDmicro, link given below

http://electronics4dogs.blogsp...11/07/ldmicro-and-arduino.html

i was trying processor which is given in above link there is some problem during compilation, error show

sketch_jun04a.cpp.o: In function `loop':
C:\Users\RINKU\AppData\Local\Temp\build8371174935676393128.tmp/sketch_jun04a.cpp:11: undefined reference to `PlcCycle()'

i had tried with example which is given in above link that show the same problem

it would be very help for me if some can suggest me or give some idea so that i can run LDmicro program in arduino board.
Tue Jun 25 2013, 17:57:25
(no subject) (by Alex)
use this:


#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;
}


took from:

http://cq.cx/ladder-forum.pl?action=viewthread&parent=3296
Sun Feb 19 2017, 18:18:15
(no subject) (by Ihor Nehrutsa)
You can see cdemo.zip at

https://github.com/LDmicro/LDm...e-LDmicro-and-Arduino-software

Send you own ld file to [email protected] and receive 4 generated for Arduino files.
Mon Feb 20 2017, 04:49:15
merging ldmicro plc file with oled arduino file (by Pradeepkumar)
Dear sir,

I was trying to merge the plc file generated with LDmicro and combing it with OLED sketch to show the time with Arduino along with RTC ds 3231. However the merged file can be uploaded to arduino however the plc progrm not executing where as the time function is working. please help me to find a way to merge both files. I am biginner in arduino and familiar with plc. I tried on arduino nano v.3.

I would like to appreciate the LDmicro software as its powerful as good as real Plc.

Regards,
Pradeepkumar.
Sat Oct 3 2020, 06:02:28
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):