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

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

News... (by Dzairo)
Hi all.
Here are some news in LD micro.
I add to LD micro this new MCU: ATmega164,324,644,1284 in DIP40 package.
I test all hardware: PWM,ADC,UART work good..
Only one function not working : PERSIST
Pls MPG add here some easy example for ATmega32 to test it (this is original code what I not change) and if will working then I try test with ATmega644.
I try code after power up MCU to set PWM from variable in EEprom.

Ehm.... but in Source code (original ) are some bugs what I find.
1.for avr MCU is setting Interupt bit for timer1 . not need it
2.in mcutable.h MCU PWM pin is 0 for mega16,32 then Idd corect pin in DIP40 this pin is 21 (OC2). This pin is used for mega164,324,664,1284 .. test it and work good.


Please MPG check PERSIST function or send to me any example how to use it .

I try add another MCU to LDmicro ATmega48,88,168,328 also..

Best regards
Mon May 19 2014, 10:51:42, download attachment LDmicro 2.3.zip
(no subject) (by MGP)
Hallo Dzairo

I don't use Atmel controllers, i use pic's, so I cannot test your new version of ldmicro.
I attached a program to test the PERSIST instruction.
Maybe someone else can test this...

All I need is more speed, a pic with a crystal >40Mhz.
Mon May 19 2014, 15:18:07, download attachment persist.ld
(no subject) (by hari )
Hello Dzairo

Its really great work to add new micro-controller, appreciate it can you please add atmega328 also it would be helpful for me.
Tue May 20 2014, 01:36:59
(no subject) (by dzairo)
hi hari.
today I check SFR for atmega328 .. etc.. if this register are same like for atmega644 then is easy to add this mcu to ldmicro atmega48,88,168,328 .. dip version only .. but may be add TQFP package too.. if register is not same then need more time to add this mcu to ld micro..

MPG it's OK .. you are onnly microchip .. also good..
lader logic is not designed for speed..
ld micro .. is easy .. not uese interupt, not call function.. etc.. then more code .. too slow ..
for example .. send string by uart .. send one byte per plc cycle.. not send all data in one cycle.. ok.. uart speed is slow .. but if want send data .. one byte by one cycle then need more code ..and then code is also slow.. using eeprom.. etc..

but OK..

MPG pls write more about your problem.. may be can help you..
I'm not work with microchip but ....

today try add new mcu to code.. but I don't have PCB with whit mcu then I can not test it .. sorry..

see you today or tomorrow..
Tue May 20 2014, 05:18:37
(no subject) (by dzairo)
hi.
I check all register .. all register for atmega48,88,168,328 are in same place like atmega164,324,644,1284 then it's easy to add.
then I add this mcu to ldmicro .. but only for DIP-28 version..

now check if can add TQFP or MLF package..

butneed help with C for win32.. I want add new function ..and need help with this ..

best regards
Tue May 20 2014, 06:41:16, download attachment LDmicro2.3.zip
(no subject) (by dzairo)
ehm.. don't need add chip with TQFP or MLF package.
Pin number are different but name are still same ..then not need change it .. but TQFP 32 or MLF32 have 2 adc input more ..

question for all > do you want add this chip ??
yes or not ???
Tue May 20 2014, 07:11:21
(no subject) (by dzairo)
ehm.. MPG tahnks for persist example .. I test it and work in atmega32 or atmega644 thanks.. now start thinking about new instruction...

add instruction read write from to SFR special function register .. from RAM memory 0 to max 0xFF .. need help with this ..
Tue May 20 2014, 08:40:36
(no subject) (by MGP)
@Dzairo, I need speed for reading and writing RC servo signals.
Now with a cycle time of 0.2mS the resolution is 5, which is good for lights on/off, not motors.

If I can use Atmel µC with higher speed then I can change from pic's to Atmega.
Tue May 20 2014, 11:12:41
(no subject) (by S A Khan)
Working well, tested on Arduino Uno R3
Tue May 20 2014, 11:17:31
(no subject) (by dzairo)
to S A Khan : good .. try all function ,PWM,ADC,UART,PERSIST .. if work then write to me ..

to MPG: write more about your problem..
I control 5x step motor. But not generate step by LDmicro .
I use exsternal MCU ATmega328 to generate pulse , acceleration,deceleration, etc.. LDmicro use only for conroll .. you may be need do this..

ehm.. if you need measure any time period .. then need use any hardware timer.. and do it in hardware not in software..
If add new function read - write to-from Special function register then easy set hardware in MCU and then can do more .. and faster..

write more.. may be can help..
Tue May 20 2014, 11:47:23
(no subject) (by S A Khan)
ADC, PWM & UART's are tested. I will test presist tomorrow. Nice work, thanks dzairo
Tue May 20 2014, 12:30:41
(no subject) (by S A Khan)
Please add ATMEGA2560
Tue May 20 2014, 12:44:39
(no subject) (by najib)
Hi, thanks

But please add PIC
Tue May 20 2014, 13:49:05
(no subject) (by Magno Medeiros (Brasil))
Dzairo Hello, you sure have the gratitude of many who use and admire LDmicro, I am also very grateful. congratulations for your work! if possible, make a change that many have asked in this forum, which is to add the function to copy and paste (ctrl-c / ctrl-v).
Tue May 20 2014, 20:18:06
(no subject) (by dzairo)
Hi.
atmega2560 - same SFR position like atmega644 only need add PORT pin. I do it..

add PIC - sorry .. I not work with PIN MCU than I can not add any PIC MCU to LD micro

ctrl-c/ctrl-v - huh .. I not working with C or win32 then also have problem make any changes in LDmicro . But I look to code if can do it or not ..

then I add atmega2560 to LDmicro but I don't have this MCU then you must test it self.
Wed May 21 2014, 01:36:31
(no subject) (by dzairo)
Hi. Here is latest upgrade> add ATmega2560 100pin TQFP
but need test.. because ports H,J,K,L are in position 0x100 to 0x10B, but I think will be work..
need test all function USART,ADC,PWM,PERSIST..

ehm.. copy / paste .. hm... too complex.. if in Delphi then easy for me . but in C ..
Wed May 21 2014, 03:46:16, download attachment LDmicro 2.3.zip
(no subject) (by S A Khan)
Tested on ATMEGA2560 (ADC, PWM, USART & PERSIST) It's working ... ... dzairo, thank you again
Wed May 21 2014, 04:43:09
(no subject) (by dzairo)
Khan ok .. now help me ..
I want add to ld micro special function useful for all ..
find friend what want help me to make any changes in code..
Wed May 21 2014, 05:08:51
(no subject) (by dzairo)
Hi.
About copy/paste instruction or complete rung from-to ..
I thinkig about it .. and result is :

Easy way is open saved file *.ld and copy part what need to this file from another file.
This is easy way.. and fast..

For example:
RUNG
CONTACTS XB1 0
ADD PORTB PORTB 2
END

this is one rung with two instruction.
and tis part we can easy copy to another *.ld file with any text editor.

thsi is really easy way.. use this ..

best regards.
Wed May 21 2014, 05:37:10
help (by meiyazhakan)
sir please add copy paste function
Wed May 21 2014, 06:34:19
BIT to INT and INT to BIT function (by J R)
Hello Dzairo

can you add "BIT to INT" and "INT to BIT " instructions in to LDMicro? like this example:


thanks in advance
Thu May 22 2014, 14:31:24, download attachment BITtoINT.jpg
(no subject) (by dzairo)
Hi.

In this days I work in new function .

Read from SFR
Write to SFR
Set Bit in SFR
Clear Bit in SFR
Test if Bit is set in SFR
Test if Bit is clear in SFR

Why this function...

This function enable to experts complete control MCU.
For example:
read port in one instruction, write to port .. enable I2C (external LCD,ADC,DAC,Memory,RTC etc...) enable SPI, all timer/counter etc..
This special functioin enable control ram memory.. you can read write to internal ram..

yes .. this function will be dangerous because can halt mcu ..etc..but I need this functions and some another user also..

if make changes in seting for MCU then can move idex start ram for example to +64bytes more.. then all user will have 64 bytes to read write from to .. can use for sepcial using..

for example atmega1284 40dip package is full pin compatible with atmega16/32 .. but have 128kB flas and 16kB ram..
really big ram..

if all will work for 100% then today finish new function .. but need help with simulation and another problem .
Fri May 23 2014, 01:57:46
(no subject) (by dzairo)
Hi all.

Latest news ..

I add this special function ReadSFR,WriteSFR,Set bit in SFR,Clear bit in SFR, Test if bit set in SFR, Test if bit clear in SFR .

I test it and work.. but need test more ..
Before I put new version here then pls all who want test this new version .. contact me and I send it to you for testing .. if all will work then I put new wersion oficial..

pls contact me if want test it first ..

best regards.
Sun May 25 2014, 13:57:26
(no subject) (by J R)
Hello Dzairo

can you add PIC12F675 , PIC12F629 or ATtiny85 into LDMicro?

thanks in advance
Thu May 29 2014, 03:11:39
(no subject) (by Dzairo)
Hi.
Sorry J R but I not working with PIC then I can not add new PIC MCU..

ATtiny85 have only 6 pn input .. sorry .. but reagister are in different position like atmega8 or 168 .. 164 .. then need more work to add this chip to Ldmicro.

best regards.
Thu May 29 2014, 10:28:09
(no subject) (by meiyazhakan)
please add at89s52
Thu May 29 2014, 13:19:49
(no subject) (by Dzairo)
Hi meiyazhakan ... sorry but at89s52 is totally different MCU like atmega.. or attiny .. it's not only add port or pin.. need complete change architecture.. AT89S52 use standard MSC51 instruction set.. I work with this MCU 10 year ago.. but not now .. sorry .. use C compiler for this ..
Fri May 30 2014, 03:25:44
new wersion (by J R)
Hi Dzairo,

when will you release new version of LDmicro with new function for testing?

best regards.
Fri May 30 2014, 03:41:25
(no subject) (by Dzairo)
Hi J R .. I can put it here but it's not good if not testing..
But OK I put it here...

New special function not complete ... work if compile and save to file .. but not working : simulation (show error and exit program), save to C format (show error and exit) , save to Byte code (show error and exit). Then if not use this option normal work .. or if not use SFR instruction in your project then work all .. simulation , ansi C or byte code..

What I do is :
I use move instruction as basic instruction.. and clone this instruction and make changes.. Original move instruction move literal or variable to any other variable..

I use this basic function and make changes.. literal or variable input is real Ram space position from 0 to 32768 ..
Output is also real RAM position..
Only Read from SFR is little different.. read from ram to variable only .. but of course can add read SFR from ram to another places of ram .. but I prefer only to variable..

read , write is normal function, read or write 1 byte only .
set bit, clear bit is literal or variable .. set bit or clear .. test if bit set , test if bit clear... check if bit are set or not .. if are set .. result 1 if not then 0 .. etc..

ehm.. bug .. if you set value in variable or literal set less then 0 -> -25 for example .. then I don't know what happened .. literal and variable are signed 16bit .. then pls don't use it..
with this function you can read write directly to port , pin , DDR, work with I2C , or SPI, timers, etc.. because can read write byte from special function register in avr mcu .. or read bit , set bit .. clear.. of course this is not good way to make big project .. but can use for easy .. control any I2C external IO or RTC .. etc..

pls test it and let me know how it work..

PS: now I don't have more free time then I can not add other option... for example simulation , compile to ansi C or byte code.. sorry.. I can help with this .. But I don't need it .. in my project.. may be later if have more free time ..

PPS: I have plan make small RTOS for LD micro.. and PLC cycle will be only one task of this RTOS.. RTOS will work with second USART,LCD, I2C etc.. and support MOdBus RTU or ASCII .. but .. it's for future ..

best regards..

any opinion ??
Fri May 30 2014, 04:55:28, download attachment LDmicro_experimental_sfr.zip
(no subject) (by meiyazhakan)
sir i need RPS CALCULATE 3SEC REFRESH ACCURATE RPM HOW DESIGIN
PLEASE U MAKE EXAMPLE
Fri May 30 2014, 06:06:13, download attachment RPMFINAL.ld
(no subject) (by meiyazhakan)
how to run induction motor 3phase x 130vac
Fri May 30 2014, 07:04:53
LDmicro_experimental_sfr (by J R)
Hi Dzairo,

can you attach an example how to work with new function,
for example how to read PORTD and write to POTRB on ATmega8 MCU.

thanks in advance
Fri May 30 2014, 16:52:01
(no subject) (by dzairo)
hi. here is small example .
after run then first sfr write instruction set DDRB to 255(0xff) in position 55 (0x37) , second write to DDRD 0 to position 49 (0x31) .With this we set portb for output and portd for input.

next rung . read PIND register to variable and then read from variable to register PORTB.

sorry I'm not tested tomorrow ..
Open pdf for atmega8 and read page 309 about special function register
Fri May 30 2014, 17:57:05, download attachment atmega8_sfr.ld
(no subject) (by Dzairo)
Hi J R .
Right now I tested this example and work.. I tested it in AVR Studio 4.19 .

All who want use SFR then must exactly knokw how MCU work, what are Special function register.. and how to use it..
Good is if work with ASM before .

regards.
Sat May 31 2014, 02:11:25
digital power supply 0-25,5V and 02,55A (by J R)
Hi Dzairo,

look at example of digital power supply 0-25,5V and 02,55A with R2R DAC on PORTB and R2R DAC on POTRD.
PC2 and PC3 is used for voltage setting and PC4 and PC5 is used for amperage setting.
Really simple ...

best regards
Sat May 31 2014, 08:09:30, download attachment atmega8_digital_power_supply.ld
"Set bit in SFR" and "Clear bit in SFR" (by J R)
Hi Dzairo,

the function "Set bit in SFR" and "Clear bit in SFR" doesn't work correctly.

1.)When I set bit 2 in SFR and after that I clear bit 2 in SFR, bit 2 remain set.

2.)When I set bit 2 in SFR and after that I clear bit 4 in SFR, bit 2 is cleared.

You can see this in attached file with examples

best regards
Sat May 31 2014, 15:07:41, download attachment example.zip
(no subject) (by dzairo)
hi J R .. sorry for bugin set bit and clear bit .. I try test it and check whre is problem..

sorry again.. now I don't have more free time .. but tomorrow I solve problem.. pls test all other function..

your digital power supply R2R is nice idea .. and this is exactly why I add this function to LDmicro.. some operation can do in one istruction .. more easy .. faster...

tomorrow I solve problem with set bit , clear bit .. but pls test all other..

best regards.
Sat May 31 2014, 15:21:30
"Test if bit Clear in SFR" (by J R)
Hi Dzairo,

the function "Test if bit Set in SFR" works correctly,

but when I used "Test if bit Clear in SFR" function and after I saved the file LDmicro has crashed and showed an error message.

best regards
Sat May 31 2014, 15:51:02, download attachment error1.jpg
"Set bit in SFR" and "Clear bit in SFR" (by J R)
Hi Dzairo,

I have tested all SFR funtions and there are mistakes.
All these functions "Set bit in SFR" , "Clear bit in SFR" , "Test if bit Set in SFR" and "Test if bit Clear in SFR" don't work correctly , because in each SFR we need to work only with one bit from (bit0 - bit7). At this time when we set "bit7" in SFR we really set "bit0 , bit1 and bit2" in SFR . The same situation is with "Set bit in SFR" , "Clear bit in SFR" , "Test if bit Set in SFR" and "Test if bit Clear in SFR" . This is not correct.

best regards
Sat May 31 2014, 18:24:36
(no subject) (by dzairo)
Hi J R.

sorry.. ehm.. set bit , clear bit , test if bit set , test if bit clear ..
this function not set by 0 to 7 .. this function work with mask..

if want set bit 2 then literal or variable is 4 , if want set bit 0 and 5 then use 33 deca (0x21) ...
sorry I not write this on first .. sorry..

then if you want set bit then must do this :

bit - value
0bit - 1
1bit - 2
2bit - 4
3bit - 8
4bit - 16
5bit - 32
6bit - 64
7bit - 128

why this ? becase we can set or clear bit only in one instruction..
I do this : if set bit then use logic function OR
if clear then do logic function COM -> AND .

example : set bit 2,5 . previouse value is : 87


OR
01010111 previous value
00100100 set bit 2,5
----------
01110111 after set is 119 (0x77)



clear bit 4,7 . previouse value is 241

AND
11110001 previous value 241
----------
10010000 clear bit 4,7 144
01101111 invert all bits - then result is 111

11110001 previuse value 241
01101111 new bits after negate 111
----------
01100001 after AND is 97

you can see we clear bit 4,7 only. Bit 0,5,6 is still set..

why this ? becase it's more efective .. not more easy .. but more efective..


test if bit set or if bit clear..

on first is: AND , XOR and test if zero.. test if bit set

if test if bit clear then :
negate bits , AND, XOR and test if zero..

we can test one bit only or test for more bits ..
then we can test more bits in one instruction..

test it again.. I check load save ld micro file ..
Sun Jun 1 2014, 02:20:52
(no subject) (by dzairo)
Hi. I have bug in my code sorry..
now solve problem with load or save ldmicro file ..
now work..

test it .. pls .. I have another work..

dzairo
Sun Jun 1 2014, 03:05:36, download attachment LDmicro_experimental01_sfr.zip
ATMEGA2560 (by SAM)
AD Port F (F0-F7) are working, port K (K0-K7) are not working
Sun Jun 1 2014, 08:49:10
(no subject) (by dzairo)
hi SAM .
Yes again bug.. sorry..
problem with ADMUX5 .. i different register..
solve problem .. test it.. pls..

ADC input 0...7 is in ADMUX 0..3 multiplexer. ADC input 7..15 is bit ADMUX in ADCSRB ..

test it pls let me know..
Sun Jun 1 2014, 12:47:11, download attachment LDmicro_experimental02_SFR.rar
(no subject) (by SAM)
Not working
Sun Jun 1 2014, 14:09:58
(no subject) (by dzairo)
ok SAM tomorow .. sorry.. I try find problem.. but if ADC0 to ADC7 is working then ADC8..to ADC15 will work only need make any changes..

sorry..
Sun Jun 1 2014, 15:35:50
(no subject) (by Dzairo)
Hi SAM ... I make 3 mistakes .. sorry.. bad register position and bit setting..

I solve problem and simulate in AVR Studio .. work but can not test inreal hardware ..
here are only *.exe file .. if you want source code then ask..

sorry..

best regards..
Mon Jun 2 2014, 03:15:45, download attachment LDmicro_experimental03_SFR.zip
(no subject) (by SAM)
Now Port K's are working but Port F's are not working
Mon Jun 2 2014, 05:43:41
(no subject) (by Dzairo)
hmmmmm.... why ??? ... hmmm... sorry.. I must test it again.. but .. hmmm..... give me some time..
Mon Jun 2 2014, 05:51:06
(no subject) (by dzairo)
Hi SAM .
I test it again and again.. and I see all is OK..
problem was only in correct setting admux5 bit .. pls try it again.. if not make any mistake in ld micro ..
I test it in AVR Studio .. generate hex file and open in avr studio.. if test it ... then work..

pls make hex file and ld file .. and send to me I try to test it in avr studio in simulator .. I don't have real MCU then can not test it .. sorry..
Mon Jun 2 2014, 13:41:32
ATMEGA2560 (by SAM)
Hi Dzairo, Sorry for late, I was traveling.
Simple program,
“if ADC0> 512 then PA0 = High
if ADC8> 512 then PC0 = High”
Port F not working, Port K’s are working but when ADC8> 512 then Port PA0 and PC0 work together.
Sun Jun 8 2014, 02:02:07, download attachment 2560TEST.zip
(no subject) (by Dzairo)
Hi SAM .
Sorry.. right now I don't have this MCU then Ican not test it..
It's seem must debug by hardware .. don't see ano other way..

IF test it in simulator then work.. maby be problem is not in ADC .. problem can be in port setting after MCU start.. maby ..

sorry.. I try order this MCU and test .. but not see in near time ..

test all port pin first .. thne we can continue .. or make program .. and simulate self in avr studio.. sorry.. but right now don't have more free time .. sorry..
Sun Jun 8 2014, 05:27:33
How to add different package? (by Bobot Labrador)
Hi, how can I add different packages? I wish to make use of a TQFP/QFN package for ATmega644p.

Thank you. :)
Mon Jan 26 2015, 19:53:37
(no subject) (by Ziggy)
Bobot,

If the exiting solution works properly and You wish to use a differen component package, it should be easy to check.
Compare the pinouts of the two packages and observe if there are any

pinout assignment difference

register differences

If no differences exist in silicone between the two packages it should work provided the fuse settings are set correctly.
Thu Jan 29 2015, 16:33:02
number of lines (steps) (by Magno (Brasil))
Hello Dzairo.

I'm using your version of LDmicro to program the ATmega328, and realized that the number of rows (steps) this limited to 99. Could the friend enlarge this number?
As the AT328 has a memory of 32k we can make a bigger program and it consumes more lines.

Already grateful for your attention.
Great.
Thu Feb 12 2015, 12:45:40
Arduino Uno test (by Md Azad)
I am using Arduino Uno. made program with ardunio uno select avr 328.with Ldmicro after compile it's created hex file.with avrpal download hext file to arduino uno.but not work.the hex file work on proteus simulation soft perfectly.plz brief how to run ldmicro program on arduino uno.please brief the proceduel.azad
Thu Sep 17 2015, 14:51:30
Arduino uno problem (by Md Azad)
Hellow Dzairo,

please help.in my arduino uno not work ldmicro hex file.output port high without toggle .but in simulator work perfectly. why not work in real board.am i missing any think?what is real fact or procedure.SA Khan already test successfully. plz help.

Azad
Sat Sep 19 2015, 22:57:51
(no subject) (by Alex)
In the latest download version there are no some mcu you included, is this one an official download?
Sun Feb 7 2016, 08:51:11
can't access ldmicro (by segar)
hi, any one have download new version ldmicro v2.3 and install straight? i try to download and install v2.3 ,can't open ldmicro software as well

thanks
Sun Jun 12 2016, 03:41:29
(no subject) (by Ihor Nehrutsa)
to segar and Alex

The official version v2.3 from Jonathan Westhues is stable and working http://cq.cx/ladder.pl. It not include third party additional.

Experimental sfr(spasial function register) version from Mr.Dzairo include new MCU and is stable and working too. Latest version is v2.3experimental_05sfr. Unfortunately Mr.Dzairo have not visited this forum recently.

Unofficial support https://github.com/LDmicro/LDmicro start
from Release 3.0.0 and up to 3.3.1. It include additions from Mr.Dzairo and others.
Please read CHANGES.txt.
In the near future will be added
http://cq.cx/ladder-forum.pl?action=viewthread&parent=5070
and new PIC MCU.
Mon Jun 13 2016, 08:33:28
(no subject) (by MGP)
Ihor,

"new PIC MCU" whaaw I hope a fast one ;-)

I dont think that many users are waiting for modbus and web based additions because they are too complex to use.

Most of the users searching for simplicity like 7seg output, 4bit lcd output, bitwise instructions, puls output or PPM (servo) output.

For example, in this video you see a 4x 7seg GPS location.
4 digits is the max we can use pactical little or no flickering.

https://youtu.be/obkw5EvIvyE

You see, with the use of 1 controller you can make good stuff ;-)

Btw, I made this with a 4Mhz intern oscillator with a cycle time of 1mS but at a certain point ldmicro gave me a note that I had to take a higher frequency, so I took a 20Mhz crystal and yet that was not enough.

Where am I wrong in my thinking, 4 times faster crystal and only 2 instruction more and it does not work anymore without encrease the cycle time.

Thanks for the good work.
Mon Jun 13 2016, 13:11:17
(no subject) (by Alex)
Thanks for your reply Mr. Ihor and i agree with Mr. MGP.
Thu Jun 16 2016, 00:27:04
(no subject) (by Alex)
How can i download fully latest version ldmicro from github?
Fri Jun 17 2016, 01:05:30
(no subject) (by Alex)
in the RELEASES page, there are 2 SOURCE CODE files, zip and tar.gz, what are they for?
Fri Jun 17 2016, 11:37:18
(no subject) (by Ihor Nehrutsa)
zip usaly used in Windows, tar.gz in Unix. Files inside the archives are identical.
Compiled exe and bat files are stored at releases pages.
Last release now is
https://github.com/LDmicro/LDmicro/releases/tag/3.3.1
Fri Jun 17 2016, 17:31:29
(no subject) (by Ihor Nehrutsa)
To MPG:
Can you describe problem more detailed? Send me LDs to mail, please. I try decrease cycle time limits for PICs.
Fri Jun 17 2016, 18:01:50
(no subject) (by MGP)
Ihor,

Here you have a program that's does the same thing.
I could not find the other program with 1mS CT

At a cycletime of 0.8/4Mhz I must encrease the cycletime even when I use the same cycletime with a 20Mhz crystal.

Is there something I'm overlooking?
Sat Jun 18 2016, 03:42:08, download attachment Test-cycletime.ld
(no subject) (by Ihor Nehrutsa)
to MGP

Version v3.5.1

http://cq.cx/ladder-forum.pl?action=viewthread&parent=5139

include more informative messages about timers period.
Messages include a Timer name and available values of period.
Tue Jul 26 2016, 09:20:14, download attachment TON_TOFF_Err.JPG
(no subject) (by Ihor Nehrutsa)
to MGP

There is a simple solution for error
"Timer period too long (max 32767 times cycle time); use a slower cycle time."
You can use several timers in series with
T(long long)=T1+T2+..+Tn
Tue Jul 26 2016, 09:32:27, download attachment TON_TOFF_Solution.JPG
(no subject) (by Ihor Nehrutsa)
to MGP

There is a complex solution for error
"Timer period too long (max 32767 times cycle time); use a slower cycle time."

It is consist to increase/decrease the size of the variables inside LDmicro.
3 bytes per variable can store values from -8388608 to 8388607,
but increase execution time of LD program.
1 bytes per variable can store values from -128 to 127,
but decrease execution time of LD program.
Tue Jul 26 2016, 09:47:10
STM32F072 ST MICRO Micro (by Roy )
Hi anyone got LDMICRO to work on this IC ?
Tue Jul 26 2016, 09:55:25
(no subject) (by Ihor Nehrutsa)
STM32F072 ST MICRO added to

https://github.com/LDmicro/LDmicro/issues/24
Tue Jul 26 2016, 09:59:46
(no subject) (by Ihor Nehrutsa)
to Roy

You can try use "ANSI C Code" in LDmicro.
Read genareted sources and write prototipes for you inputs/outputs in ladder.h.
And include genareted.c and ladder.h into your ST project.

And please create new thread in future for different themes.
Tue Jul 26 2016, 10:12:45
(no subject) (by MGP)
Ok now I understand it and sorry I had not seen this.
The information at the bottom of the screen did me a lot of things clearer.
It's now easier to optimize the critical programs.
Wed Jul 27 2016, 09:43:00
Ihor Nehrutsa (by smei)
hi mr.Ihor Nehrutsa how to using lcd 4line display 4bit mode
Sat Jul 30 2016, 02:52:54
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):