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

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

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

== Release 4.3.6

* Fixed: "Compile ANSIC" DO_LDSTUBS.

* Fixed: PWM simulation.

* New: Higher PWM resolution available for:
All AVR, all PWM timers 0-256 (8 bits);
ATmega2560(timers 1,3,4 based PWM) 0-100%,256,512,1024;
ATmega16(timer 1 based PWM);
ATmega32(timer 1 based PWM);
ATmega328(timer 1 based PWM);

* Updated: Pin mapping for Arduino UNO and Aduino Mega 2560 in ladder.h.

* Updated: Timer adjust is applied.
Total timer delay (ms) = Delay (ms) + Adjust * PLC cycle time (ms).
Timer adjust =-1 is equal to the v2.3 timer.

TON, TOF, etc. in v2.3 and v3.5.3 and later
https://github.com/LDmicro/LDm....-in-v2.3-and-v3.5.3-and-later

* Wiki: SG90 Servo PWM
https://github.com/LDmicro/LDmicro/wiki/Servo-PWM
Sun Jan 21 2018, 18:12:18, download attachment build436.zip
2 days later (by Ihor Nehrutsa)
Is anybody here?

I'm (not) waiting for the bug reports.
Tue Jan 23 2018, 16:14:02
(no subject) (by Ihor Nehrutsa)
Are there any willing to sponsor (donate) the development (support) of LDmicro software?
Tue Jan 23 2018, 16:14:49
(no subject) (by Ziggy)
Ihor ,

You can count on me.
Tue Jan 23 2018, 16:31:27
(no subject) (by Antonio)
hello Ihor Nehrutsa ldmicro-es.exe is in English language.

Thanks.

Regards.
Tue Jan 23 2018, 17:07:36
(no subject) (by Antonio)
Thank you very much for sharing your work.
Tue Jan 23 2018, 17:09:14
(no subject) (by Alex)
Great :) , testing
Tue Jan 23 2018, 23:35:56, download attachment IMG_20180123_233026.jpg
(no subject) (by bfwolf)
Hello Ihor ;-)

German Version 'ldmicro-de.exe' is in english, too...

Thx for integrating my idea with 'DO_LDSTUBS' ;-)
Looks good...

I have another idea, if this could help you:
The generated stub-functions with return type don't have a return statement at their end...
This is no issue, but the compiler gives warnings and of cause the functions will return random values in runtime...

You have a possibility for setting the initial-state of inputs for in the inputs-dialogue: checkbox 'Set hi input level before simulation'...

How about generating different stub-macros for functions with return-type? ;-)

example in traffic.c:

/* You provide these functions. */
LDSTB1( ldBOOL Read_Ub_Yyellow(void) )
LDSTUB( void Write_Ub_Yyellow(ldBOOL v) )

/* You provide these functions. */
LDSTB0( ldBOOL Read_Ub_Ygreen(void) )
LDSTUB( void Write_Ub_Ygreen(ldBOOL v) )

and then in the 'ladder.h_'

#ifdef DO_LDSTUBS
#define LDSTUB(x) x { ; }
#define LDSTB0(x) x { return 0; }
#define LDSTB1(x) x { return 1; }
#else
#define LDSTUB(x) PROTO(extern x ;)
#define LDSTB0(x) PROTO(extern x ;)
#define LDSTB1(x) PROTO(extern x ;)
#endif

The generated stubs could even used for some tests then... ;-)

Regards
Wed Jan 24 2018, 03:47:28
Atmega328 com 3 PWM (by Tavares)
Bom dia.Escrevi um programa com 3 PWM com atmega8 funciona. Mas
com Atmega328 nâo funciona.Por que?
Wed Jan 24 2018, 09:54:34
Atmega328 with 3 PWM (by Tavares)






Good morning. I wrote a program with 3 PWM with atmega8 works. But
with Atmega328 does not work. Why?
Wed Jan 24 2018, 10:00:08
(no subject) (by Ihor Nehrutsa)
to Tavares

Can you send more information?
Is it possible to publish the LD file?
Thu Jan 25 2018, 08:59:13
Atmega328 com 3 PWM (by Tavres)
Para Ihor Nehrutsa
Thu Jan 25 2018, 22:09:23, download attachment DIMER pwm 3 PHASES-Teste JT Atmega328.ld
(no subject) (by Paulino Calubert)

It is not well composed so it does not work for you.
I made you some modification you have to divide and they are independent outputs, if you want several PWM outputs you must RESetar each time and activate PWM.

tell me if it went well
Greetings Paulino

No esta bien compuesto por ello no te funciona.
te hice alguna modificación tienes que dividir y son salidas independientes, si quieres en una salida varios PWM debes de RESetar cada vez y activar PWM.

dime si te fue bien.
Saludos Paulino
Tue Aug 3 2021, 06:08:26, download attachment DIMERpwm3PHASES-TesteJTAtmega328.ld
(no subject) (by Samukelo Shezi )
I want to sponsor but it is as if it is impossible to send money to Ihor, in Ukraine.
Ihor have you considered receiving money through BITCOIN?
Fri Aug 6 2021, 21:50:33
(no subject) (by MGP)
Sat Aug 7 2021, 02:55:44
(no subject) (by Samukelo Shezi )
Thank you MGP!
Sat Aug 7 2021, 07:57:23
(no subject) (by Hudson)
Ihor Nehrutsa, oque se referiu-se a patrocinar? Seria custos, investimentos. Não entendi direito, dependendo posso ajudar. Tenho interesses caso esteja falando em investimentos
Sat Aug 7 2021, 10:03:14
(no subject) (by Samukelo Shezi)
Liberapay uses PayPal, and PayPal does not work in Ukraine!
Sun Aug 8 2021, 03:18:18
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):