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 - coont ld 5405 v

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

coont ld 5405 v (by kostas)

with the new version the coont line 09 does not work. maybe I am doing something wrong
Tue Jan 26 2021, 12:22:01, download attachment 4digit_voltmeter_CC-displays.ld
count ld 5405 v (by kostas)
sorry count I wanted to write line 09 to the LDmicro file
Tue Jan 26 2021, 12:30:15
(no subject) (by Paulino)
Hola te adjunto tu programa con visualización en TX/RX para que veas donde tienes el error, yo te lo he arreglado y veo los contadores.
te e cambiado el renglón 16 MOV--digit---Cloop.
tu la tenias el renglón 12 MOV---Cloop----digit (No funciona siempre manda un 0.
se tiene que tener en cuenta que hay versiones de LDMicro que cambian la forma de colocar las variantes (que mueve (X) a (Z)) o arriba o abajo. de abajo a arriba. Mi conclusión cuando veáis que no funciona cambiar la variante de posición.

Hello, I am attaching your program with TX / RX visualization so that you can see where you have the error, I have fixed it for you and I see the counters.
I have changed row 16 MOV - digit --- Cloop.
you had it on line 12 MOV --- Cloop ---- digit (It does not work always send a 0.
It must be taken into account that there are versions of LDMicro that change the way of placing the variants (which moves (X) to (Z)) or up or down. from bottom to top. My conclusion when you see that changing the position variant does not work
Mon Feb 1 2021, 12:28:55, download attachment doublevariable (1).ld
(no subject) (by Paulino)
Dime si funciona para ti.
Tell me if it works for you
Mon Feb 1 2021, 12:31:16
(no subject) (by kostas)
Hello Paulino. thank you for your answer. the problem I am facing is that in ldmicro it works normally while in proteus it does not. with the change you made it shows me digit3 that digit2 in proteus always. thank you.
Tue Feb 2 2021, 01:21:48
count ld 5405 v (by Paulino)
No se que es lo que quieres hacer yo solo te puse para que veas por serie (tx_rx) para que cuando hagas las pruebas veas por pantalla del PC si cuenta los contadores, cuando lo probé no daba nada solo (0) no cambiaba. y lo que te cambie en (MOV), fue la variable de posición el que tenias en la renglón la que pusiste arriba yo la cambie a bajo y la de abajo la puse arriba. y te puse el contacto para cuando tocaras el pulsador salga el nº que esta en el contador.

la gente cree que cuando se hace la simulación funciona pero no es cierto ya que por ejemplo; los contadores como temporizadores, etc, por la rapidez de cuentas no se ve pero si lo hacemos para ver lo por pantalla del pc (TX-RX lo veremos como cuenta ya que el programa si le dices que Mueva una variable y en otro peldaño le dices lo mismo o parecido amueve, siempre que haga un ciclo te moverá y si tienes un 0 siempre moverá el 0, por ello tenemos que colocar Francos alto o franco bajo OSR-OSF. esto lo que hace es mandar el pulso solo 1 pulso quita revotes y no deja fijo lo que ha Movido el Mueve. (si tienes varias variables que tienen los valores = tienes que acostúmbrate a usar los francos esto es parecido cuando vemos este símbolo ^, delante de los contactos de entrada esto solo se puede hacer en las entradas digitales, no en las analógica.
mírate el manual y lo que te pongo aquí le echas un vistazo y lo entenderás y luego podrás ayudar a la gente de este foro.
ponte tu programa de escalera de LDMicro y el programa que yo te hice la modificación y veras los cambios que te hice, una vez que lo tengas modificado te puedes destruir el TX-Rx, pero yo si tienes bastante memoria en el pic lo dejaría.

es muy importante que los programas los haga uno mismo ya que si algún día se tuviera que modificar saber donde ir a modificar, por ello yo no hare un programa para este foro para que la gente aprenda a programar a la manera de cada uno.

I do not know what you want to do, I only put you so that you can see by series (tx_rx) so that when you do the tests you will see on the PC screen if it counts the counters, when I tried it it did not give anything, only (0) did not change. And what changed you in (MOV), it was the position variable that you had in the row that you put up, I changed it to low and the bottom one I put up. and I put the contact for you when you will touch the button, the number that is on the counter comes out.

people believe that when the simulation is done it works but it is not true, for example; the counters such as timers, etc., due to the speed of the counts, it is not seen but if we do it to see it on the pc screen (TX-RX we will see it as a count since the program if you tell it to move a variable and in another step it will You say the same or similar furnish, whenever you do a cycle it will move you and if you have a 0 it will always move 0, so we have to place Francs high or frank low OSR-OSF. What it does is send the pulse only 1 pulse removes it revotes and does not leave fixed what the Move has moved. (If you have several variables that have the values ​​= you have to get used to using francs this is similar when we see this symbol ^, in front of the input contacts this can only be done in digital inputs, not analog.
look at the manual and what I put here you take a look and you will understand it and then you can help the people in this forum.
Put on your LDMicro ladder program and the program that I made the modification for you and you will see the changes that I made, once you have it modified you can destroy the TX-Rx, but if you have enough memory in the pic I would leave it.

It is very important that the programs be made by yourself, because if one day you have to modify it to know where to go to modify it, so I will not make a program for this forum so that people learn to program in the way of each one.
Tue Feb 2 2021, 04:40:26
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):