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

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

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

== Release 4.2.3

* HotFix:
Move Selected Rung Up/Down with COMMENT
http://cq.cx/ladder-forum.pl?a...;parent=6321&tt=1495630635

* Fixed: PIC16F88 PIN IO names. CCP1 function on RB3.

* Fixed: PIC MCU's EEPROM write.

* Fixed: PIC ANSI C UART functions.
Mon Jun 26 2017, 05:41:07, download attachment build423.zip
(no subject) (by MGP)
It works, thx

What was wrong with EEPROM write? I never had problems.
Mon Jun 26 2017, 13:42:42
error compile (by Antonio)
Hello, error compile save as in versio 4.2.3: Save x.hex

Regards.
Sun Jul 2 2017, 02:17:38
(no subject) (by MGP)
2 thing to look at if you have time, "compile as" does not work and in this thread
http://cq.cx/ladder-forum.pl?a...p;parent=963&tt=1498823394

In the last program "send lcd 1.ld" there is something wrong with de variable A1, which is also an analog input but not in the program.
Sun Jul 2 2017, 04:15:04
(no subject) (by Alex)
iīm using UART TX, caný use RB1/RX as an input
Fri Jul 21 2017, 01:46:35, download attachment timer_16f628A.ld
(no subject) (by MGP)
Ihor, I still have problems with the comment instruction in version 423.
The editor of V420 is much much better than V423.
Sat Jul 22 2017, 07:49:51
(no subject) (by Andre Luiz )

Ihor Nehrutsa, very good job, but I do not know in which version,
When we put two contacts in and rename one, he asks if he wants to change the name of the other with the same name, this is bad.

ps google translator.
Mon Aug 7 2017, 20:22:44
(no subject) (by Andre Luiz )
image
Mon Aug 7 2017, 20:25:54, download attachment ldmicro.png
Encoder 2000 PPR (by MAQ)

Dear
Ihor Nehrutsa thanks to edit more LdMicro 4.2.3

Currently I face a Problem in Pic16f877a Practically

THANKS
Tue Aug 22 2017, 17:54:00, download attachment CHECK.rar
(no subject) (by MGP)
5000ppr is not 5Khz.
'
Ldmicro's cycletime must see a '1' and the next cycletime a '0'
So at 5kHz you can count max 5000/2 = 2500 Hz only IF the one's and zero's following the cycletime.
Normally you must counting with 5000/3 = 1660 puls/sec max.

Keep in mind that you program may not be longer than the cycletime.
A cycletime of 0.1mS is very short and its possible that the cycletime is skipped over and in real 0.2mS is
Tue Aug 22 2017, 18:47:29
(no subject) (by Alex)
i hace tested time accurate between ihorīs stopwatch and my selfmade one, ihorīs is more accuarate, after 20 days there was a 1 min approx difference comparing my cellphoneīs and computerīs clock , but my one was 5 minutes difference in 1 one day, ihorīs uses a different form to calculate time, i just use timer TON 1s delay. shouldnīt the be the same ?
Wed Aug 23 2017, 09:55:43, download attachment time accurate.rar
(no subject) (by MAQ)

Dear

think Cycle Time is limited (version V4.2.3) 0.001ms is not support or limited ??
Fri Aug 25 2017, 02:31:46
(no subject) (by MGP)
Fri Aug 25 2017, 04:42:13
Operating speed: 20 MHz, 200 ns instruction cycle (by MAQ)
Dear see Please

Operating speed: 20 MHz, 200 ns instruction cycle

thanks
Wed Aug 30 2017, 20:24:13, download attachment Operating speed.JPG
(no subject) (by Alex)
Hello, i have a problem using the serial lcd, lcdīs loop stops.


check ladder please, in rung 8 if i set "mov: 1" (rung 6) it works ok but if i set "mov: 2" (rung 7), loop stops, shoulnīt work using "mov: 2"?
Wed Sep 20 2017, 18:43:21, download attachment ds3231_test.ld
(no subject) (by MGP)
I dont know what goes wrong in the simulator but always try not to include cursor movements before printing a variable.
Rung 6 and 7 where the same cursor movements and I changed the program a bit and now it works.
Thu Sep 21 2017, 02:23:42, download attachment ds3231_test_V2.ld
(no subject) (by Alex)
thanks for the explanation
Thu Sep 21 2017, 09:32:17
(no subject) (by Alex)
in that case, which ldmicro version would be the most stable?
Thu Sep 21 2017, 09:39:12
(no subject) (by MGP)
I dont know, your program also does not work with V354.
Thu Sep 21 2017, 11:54:15
(no subject) (by Alex)
not even in 2.3 format
Thu Sep 21 2017, 12:47:05
(no subject) (by Alex)
I think for stopwatch using "ADD" is more accurate than using "1second ton timer", thatīs why i got like 5 minuntes difference comparing with my cellphoneīs clock when using TON, "ADD" ok for stopwatch
Fri Sep 22 2017, 02:39:43, download attachment ton & add.jpg
(no subject) (by MGP)
You cannot use a 1s timer, every second you lose 1 cycletime.
With a cycletime of 10ms you must use a 990ms timer.
Fri Sep 22 2017, 03:03:24
(no subject) (by Alex)
Thanks for your reply
Sat Sep 23 2017, 14:37:16
(no subject) (by Alex)
simulation works if i set a "TON" timerin the last lcd rung.
Sun Sep 24 2017, 18:35:29, download attachment ds3231_test_V3.ld
(no subject) (by MGP)
Ok, the transmission time will be greater than the cycletime.
But why another timer?

My code is much shorter and more transparent ;-)
Mon Sep 25 2017, 02:22:57
(no subject) (by Alex)
yeah, thatīs true, but now i know why mine didnīt work
Mon Sep 25 2017, 12:50:20
(no subject) (by Alex)
* Fixed: PIC ANSI C UART functions

Could someone give me a simple example using ansi c with 4.2.3.v, it is not the same like using the old ansi c code generator, i always get the same error with "PI C COMPILER"

"ldBOOL"
Wed Oct 11 2017, 15:04:36, download attachment ansic error Expecting a {.jpg
(no subject) (by Ihor Nehrutsa)
ldBOOL type defined in ladder.h and used as BOOLEAN type.

/* Type Size(bits)
ldBOOL unsigned 1 or 8, the smallest possible
SWORD signed 16
SDWORD signed 32 */
#ifdef CCS_PIC_C
typedef int1 ldBOOL;
typedef signed int16 SWORD;
typedef signed int32 SDWORD;
#elif defined(HI_TECH_C)
#ifdef ___USE_MACRO
typedef bit ldBOOL;
#else
typedef unsigned char ldBOOL;
#endif
typedef signed short int SWORD;
typedef signed long int SDWORD;
#endif
Thu Oct 12 2017, 15:44:52, download attachment ladder.h
(no subject) (by Alex)
thanks for the reply Ihor ill test all
Thu Oct 12 2017, 17:14:34
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):