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.
(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.
(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
(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