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

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

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

== Release 4.0.5

* Fixed: Bug with J,K,L ports addreses at ATMega2560.
Bug with addreses of ADC at ATMega2560. Tested in Proteus.
asm_demo_mega2560.zip contains LD, asm, hex, Proteus7 model. See end of the page:
https://github.com/LDmicro/LDm...R-Studio-or-PIC-MPLAB-software

* Added menu and shortcats:
"Insert Contacts: Internal Relay Shift+C"
"Insert Contacts: Output pin Shift+L"
"Insert Coil: Internal Relay Alt+L"

* Added in manual.txt:
Note: The several coils with the same 'YName' or 'RName' can be mentally
represented as a one microchip with multiple inputs and one output.
Normal and inverted input are directly transfers the input state (normal or
inverted) to the output. R, S, T inputs lock up (latch) the state of output.
The T input is positive edge triggered. R, S inputs are level sensitive.
If before R, S insert the "OSR: ONE-SHOT RISING" or
"OSF: ONE-SHOT FALLING" you get a "positive edge triggered" element.
If used only the R and S inputs you get classic RS-trigger,
that may be with more than two inputs. If add T input you get "newest" RST-trigger.
May be several R..R inputs, or several S..S inputs.
You can use any combination of inputs for one 'YName' or 'RName' coil.
See also COIL, T-TRIGGER in Release 4.0.3.

== Release 4.0.4

* HotFix: Fixed initialization error of all used banks of PIC's RAM from 4.0.1 version.
Not recomended to use with PIC's MCU releases 4.0.1 - 4.0.3.

== Release 4.0.3

* Fixed: The page correction error while the correction is crosses boundary page.
AUTO_PAGING version 4 for PIC's.

* Modified: You can set X input contacts to the HI level before simulating,
if in your real hardware device the initial state of X input contacts in HI level.
In release 3.5.0 for this feature used symbol '_' after X in contact name.
Now for this feature you can use checkbox
"Set HI input level before simulation" in contacts dialog.
This feature applies only in simulation mode,
and does not affect hex file in physical device.
This feature refers to MCU inputs, not to the external switches(devices/sources).
This feature not refers to negation or normal open NO or
normal closed NC contacts of switches.
Now you can use symbol '_' in the name to see it better (X_in).

* Modified: When selected mode is ("Simulation Mode"), and user
presses once the Spase key ("Single Cycle"), or hold down pressed the
Spase key("Single Cycle" ), then ladder diagram executes one cycle (or
repeatedly) and displayed correctly.

When then select "Start Real-Time Simulation" the ladder diagram is
in work, but can displayed in the one same condition. This happens only
when the cycle time is less than 10 ms and 10 ms, divided by the cycle
time gives an even number, and also 10 ms, divided by the timer time
gives an even number.

There are two causes for this strange behavior.

1) The LDmicro frame rate in "Real-Time Simulation" mode is 10 ms (100 Hz).
I.e. the ladder diagram state is displayed every 10 ms, but not the
every one cycle. If every 10 ms LD state is the same, then user sees the
same picture on the display. Although LD state chenged inside 10 ms over
and over again and go back to the same state.

2) I tried to show LD state at a random time within the 10 ms frame.
But WINAPI InvalidateRect() function works when there are no other
messages in the application queue for that window. And the screen is
redrawn also through an even number of times and showing the same picture
(LD state).

Now LDmicro used UpdateWindow() at a random time within the 10 ms frame.
UpdateWindow() function works without a queue and shows different states
of LD on the screen and picture is not "latched".

Note: The screen refreshes randomly LD state inside 10 ms frame
in "Real-Time Simulation" mode.

* Fixed: RETURN error in MUL,DIV elements in PIC10xxx, PIC12xx microcontroller family.

* Added element COIL, T-TRIGGER.
Added in manual.txt:

Terminology:
"Level sensitive" = output(element) controlled by the level of the input.
"Edge triggered" = output changes only at the point in time
when the input changes from value to the other. Can be positive
edge-triggered (0 to 1), or negative edge-triggered (1 to 0).
Most elements of LDmicro are "Level sensitive", some elements are
"positive edge-triggered".

> COIL, T-TRIGGER Rname Yname
----(T)---- ----(T)----

A coil T-trigger is edge-triggered flip-flop (toggle, tip-over, turn over).
A coil flip-flop every rising edge of the input condition (i.e.
what the input condition goes from false to true).
If rising edge detected, then if coil state is false it is sets true.
If next rising edge detected then if coil state is true it is sets to false.
This instruction must be the rightmost instruction in its rung.
You can simply present as a T-trigger with the positive
edge-triggered input.

* Added: MessageBox("Rename the ALL other 'N' contacts/coils named 'Name' to 'NewName' ?")
after editing the contacts/coils name.

* Added: Menu Edit->Cut Selected Element (Alt+Del). Then use menu
Edit->Paste Rung's/Element &Into Rung (Alt+Insert) to insert element
in new position.

* Added: Menu Edit->Replace Selected Element in Group.
For example: CTU->CTD->CTC->CTR->...
Tue Oct 18 2016, 18:30:43, download attachment build405.zip
(no subject) (by Alex)
Is v4.0.5 stable for PICīs?
Wed Oct 19 2016, 02:22:47
(no subject) (by Ihor Nehrutsa)
It is not revealed errors in the v4.0.5
I hope and think that it is stable.
Wed Oct 19 2016, 03:02:31
adc (by Mehmet Suzen)
Hello good friends,
I would like to follow your work. I appreciate and thank you.
Real-time simulation also not be able to see ADCs setting. possible to add?
My e-mail, thank you for quick return
Wed Oct 19 2016, 09:40:13
edit (by Mehmet Suzen)
ADCs setting = There is no slider
Wed Oct 19 2016, 09:47:52
(no subject) (by Alex)
slider is in simulation mode
Wed Oct 19 2016, 11:46:29
(no subject) (by Alex)
when i use "compile as" and then i press "save" message about memory usage is not shown
Wed Oct 19 2016, 13:34:20
(no subject) (by Alex)
for pic 16f877A
Wed Oct 19 2016, 13:34:50
(no subject) (by Alex)
and the save option keeps showing
Wed Oct 19 2016, 13:35:44
(no subject) (by Alex)
when i use "compile" it shows memory usage and create hex correctly.
Wed Oct 19 2016, 13:42:00, download attachment compile.jpg
(no subject) (by Alex)
but when i use "compile as" for overwriting the hex file memory usage isnīt shown and hex doesnīt work.
Wed Oct 19 2016, 13:44:26, download attachment compile as.jpg
(no subject) (by Alex)
iīm just usging a blinking led ladder for this example.
Wed Oct 19 2016, 15:22:30, download attachment 123.ld
(no subject) (by bfwolf)
to Ihor:

Thank you very much for your new work done! ;)

I think, the ADC problem talked about above ist the one
which i told about in thread:
http://cq.cx/ladder-forum.pl?action=viewthread&parent=5342

- size 1bit in simulation-status-window below ladder-diagram.
- instead of slider the pin assignment opens on doubleclicking in the simulation-status-window during simulation.
- clicking on the ADC in the ladder-diagram during simulation simulation opens the ADC-slider which is fine but only can be cancelled by pressing the ESC-key.

Please don't forget about these bugs for your next release! ;)
Regards! ;)
Wed Oct 19 2016, 15:41:44
(no subject) (by Ihor Nehrutsa)
to Mehmet Suzen

Start Simulation and
mouse double-click "READ ADC"
you get a ADC slader.
Wed Oct 19 2016, 16:40:34, download attachment Slider.JPG
(no subject) (by Ihor Nehrutsa)
to Alex

"Save as.." bug will be fixed in v4.0.6.

If you need faster, contact to
[email protected]
Wed Oct 19 2016, 16:46:01
(no subject) (by Ihor Nehrutsa)
to bfwolf

Wait for v4.0.6.
Wed Oct 19 2016, 17:02:37
(no subject) (by alu)
10F200 6-sot NO driver
Wed Oct 19 2016, 20:08:11
(no subject) (by bfwolf)
to Alu:

The PIC10F200 has 256 words of program memory and 16 Bytes of RAM, so i think it's a illusion to have ldmicro for ist! xD
Thu Oct 20 2016, 07:25:12
(no subject) (by Magno Medeiros (Brasil))
It would be nice to attiny attiny 84 and 85.
Thu Oct 20 2016, 10:02:09
(no subject) (by bfwolf)
to Magno:

Yes, it would be nice, but probably needs bigger rework!
ATtiny-devices don't support all of the ATmega instructions,
e.g. the hardware-multiplier (MUL-instruction) is missing.
You could use the c-source-generator of ldmicro
and include the source in an Arduino-sketch
(Arduino supports ATtiny85 now, as far, as i know)
or use Atmel-Studio, which is free and has gcc inside.
Thu Oct 20 2016, 15:55:28
(no subject) (by Alex)
Take your time Ihor;
Thu Oct 20 2016, 20:36:20
(no subject) (by Ihor Nehrutsa)
Fragment of
https://raw.githubusercontent....cro/master/ldmicro/CHANGES.txt
...
Release 3.5.0
...
* Added: Used hardware multiplication MUL, MULS, MULSU for AVR's.
...

So there is no problem with software MUL, DIV operations.
Fri Oct 21 2016, 03:36:22
(no subject) (by Mehmet Suzen)
to Ihor:
Old version / new version, I did not realize.
You then see warn. I think pretty much regardless of the previous location, all appear in the same place during the simulation is more useful. so it will not closes lines.
Thanks
Fri Oct 21 2016, 07:02:08, download attachment resim-463.jpg
(no subject) (by Magno Medeiros (Brasil))
Bfwolf OK, thank you for the answer.
Fri Oct 21 2016, 09:17:46
phase shifting (by smei)
hi sir Ihor Nehrutsa:how to make phase shifting 0 to 120
angle
Sat Oct 22 2016, 02:47:49, download attachment phase shift.jpg
(no subject) (by Ihor Nehrutsa)
Try with Shift Register or Look-Up Table
Sat Oct 22 2016, 05:01:56
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):