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, crash with this ladder

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

LDmicro, crash with this ladder (by Ricardo DIAZ)
Hi,

I am trying to enter a ladder program for an Arduino UNO, but when selecting compile LDmicro it closes without doing anything. I have executed LDmicro in administrator mode with the same result. I use Windows 10 Core I5 ​​8 Mb.

I ask myself if this is a bug or is it an error in the implementation of the ladder.
Somebody could help me? I show below what I try to program taken from the notebook.

I want to program an Arduino port as a set button and another as a reset button.

LDmicro0.1
MICRO=Atmel AVR ATmega328 28-PDIP
CYCLE=10000 us at Timer1, YPlcCycleDuty:0, ConfigurationWord(s):0x0
CRYSTAL=16000000 Hz
BAUD=9600 Hz

IO LIST
X1 at 14 0 0
X2 at 13 0 0
Y1 at 19 0 0
END

PROGRAM
RUNG
CONTACTS X1 1 0
COIL Rx1 0 0 0 0
END
RUNG
CONTACTS X2 1 0
COIL Rx2 0 0 0 0
END
RUNG
PLACEHOLDER
END
RUNG
CONTACTS Rx1 0 0
COIL Ry1 0 1 0 0
END
RUNG
CONTACTS Rx2 0 0
COIL Ry1 0 0 1 0
END
RUNG
PLACEHOLDER
END
RUNG
CONTACTS Ry1 0 0
COIL Y1 1 0 0 0
END



Thank you.
Mon Jan 14 2019, 12:44:29, download attachment set-reset.jpg
(no subject) (by MGP)
You can not have empty rungs (003, 006), use the "comment" instruction or use Gilles newer version of LDmicro .

Attached a copy.
Mon Jan 14 2019, 13:21:00, download attachment LdMicro-Spi-En.zip
(no subject) (by José GILLES)
Yes, that's this bloody "Terminate bug"...

As MGP said, you can use ldmicro32, in which this bug is fixed.
Download is available at :

https://github.com/joegil95/LdMicro32

To compile directly in hex you just need .exe file.

JG
Mon Jan 14 2019, 17:19:55
(no subject) (by Ricardo DIAZ)
Hi


I have installed the LDmicro32 version and it has worked successfully, without comments it shows me an alert and with them it compiles without problems.

I appreciate the support
Mon Jan 14 2019, 20:02:37
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):