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.GitHub news v4.3.2

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

LDmicro.GitHub news v4.3.2 (by Ihor Nehrutsa)
https://github.com/LDmicro/LDmicro/releases/tag/4.3.2

== Release 4.3.2

* HotFix review: Fault in arithmetic or compare operations.
http://cq.cx/ladder-forum.pl?action=viewthread&parent=6457
Wed Oct 18 2017, 10:09:30, download attachment build432.zip
(no subject) (by Ihor Nehrutsa)
Still not tested for AVR
Wed Oct 18 2017, 10:10:21
bug in simulation of 'formatted string over UART' fixed? (by bfwolf)
Hello Ihor,

did you fix the bug of UART-simulation? ;-)
It seems, that you did, it works again... :-)

I ask, because you didn't mention the fix...

Thx a lot ;-)
Wed Oct 18 2017, 10:25:07
(no subject) (by Ihor Nehrutsa)
to bfwolf

Yes, UART bug was associated with * HotFix review: Fault in arithmetic or compare operations.
Wed Oct 18 2017, 10:54:06
(no subject) (by Alex)
i wanted to try again "UART RECV", i pretended to turn on a led sending the word "on" and turn led off with switchoff button (specified in ladder attach), i did it by sending first 'o' and then 'n' using 2 rungs, but when i use it in 1 rung it doesn´t work anymore, i tried it on pcb and it works just using 2 rungs as in simulation, see ladder atach please.
Fri Oct 20 2017, 00:06:58, download attachment on.ld
(no subject) (by MGP)
Its normal, in rung 3 the switch(o) becomes "high" for only one cycle.

Switch(o) becomes false after 1 cycle, so after 1 cycle you cannot use switch(n) anymore in rung 1 because switch(o) is false at that moment.

In fact you made a programming error in rung 3.
Fri Oct 20 2017, 03:12:42
(no subject) (by MGP)
I made a typo... sorry

" ....
Switch(o) becomes false after 1 cycle, so after 1 cycle you cannot use switch(n) anymore in rung --> 3 <--- because switch(o) is false at that moment. "
Fri Oct 20 2017, 03:16:52
Generated ANSIC source (by bfwolf)
Hello Ihor,

did you consider about my suggestion made earlier,
to surround the generated functions in the ANSIC source

UART_Init(), UART_...(), setupPlc(), mainPlc(), main()

by eg #ifndef UART_Init_EXTERNAL ... #endif

(means #ifndef <function_name>_EXTERNAL)

so that they could be switched off by defining Macros in the "ladder.h" ???

This would enable usage of the ANSIC source with nearly any compiler... ;-)

Thx in advance ;-)
Fri Oct 20 2017, 04:25:38
(no subject) (by Alex)
Yeah, i will simulate it manually
Fri Oct 20 2017, 08:00:48
(no subject) (by MGP)
Hey Ihor

"Compile as", does not work, ldmicroV4.3.2 continues to ask to save.

"Compile" works, so its not urgent. Thx.
Sun Oct 22 2017, 07:44:24
space (by Magno Medeiros (Brasil))
Hello, Ihor Nehrutsa!

A suggestion of change.
Is it possible to reduce this space?
Mon Oct 23 2017, 13:35:09, download attachment 0001.png
(no subject) (by Alex)
I have tested a tof timer made with "ADD" and "MOVE" in both 2.3v and 4.3.2v, i made it, both ladders, intuitive, but in 4.3.2v ladder doesn´t work, is it because the explanation gave between cycles?


https://www.youtube.com/watch?v=phveqgZAonw&feature=youtu.be


ladder, preoteus and image attach
Sat Oct 28 2017, 08:23:26, download attachment tof with add_TEST.rar
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):