(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.
(no subject) (by MGP)
It works, thx
What was wrong with EEPROM write? I never had problems.
error compile (by Antonio)
Hello, error compile save as in versio 4.2.3: Save x.hex
Regards.
(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.
(no subject) (by Alex)
iīm using UART TX, caný use RB1/RX as an input
(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.
(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.
(no subject) (by Andre Luiz )
image
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
(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
(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 ?
(no subject) (by MAQ)
Dear
think Cycle Time is limited (version V4.2.3) 0.001ms is not support or limited ??
Operating speed: 20 MHz, 200 ns instruction cycle (by MAQ)
Dear see Please
Operating speed: 20 MHz, 200 ns instruction cycle
thanks
(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"?
(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.
(no subject) (by Alex)
thanks for the explanation
(no subject) (by Alex)
in that case, which ldmicro version would be the most stable?
(no subject) (by MGP)
I dont know, your program also does not work with V354.
(no subject) (by Alex)
not even in 2.3 format
(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
(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.
(no subject) (by Alex)
Thanks for your reply
(no subject) (by Alex)
simulation works if i set a "TON" timerin the last lcd rung.
(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 ;-)
(no subject) (by Alex)
yeah, thatīs true, but now i know why mine didnīt work
(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"
(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
(no subject) (by Alex)
thanks for the reply Ihor ill test all
Post a reply to this comment:
|