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 - Time variable

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

Time variable (by Wojtek)
Hi guys

It is possible move variable to TON etc. from READ ADC?
Thu Jun 28 2018, 05:38:43
(no subject) (by Ahmad sakr)
I tried to write variable instead of a literal number for on delay timer,
In v 2.3 , it does not write anything
In v 4.3.8 gives error it is not possible to make timer value 0 or negative
In v442 last one, after writing a variable and by pressing ok the program ldmicro closes.
For counter it possible to write it's value as a variable and also it is possible to make comparison and mathematical instructions depending on the counter value. It will be good if Ihor Nehrutsa make it possible for timers like counter.
Thu Jun 28 2018, 11:45:10
(no subject) (by MGP)
Have you ever thought how you could make that?

Set a timer with adc, start and then adjust the adc, what should happen with the timer / counter, reset or what?
With professional PLCs you can also not change the timers while running

Here you have a software timer(TON) that you can change during running.
Fri Jun 29 2018, 01:26:48, download attachment TON_with_ADC.ld
(no subject) (by Tom J.)
It would be possible to do a series of rungs, each with a different value <=,>= and have a timer of a different value on each rung. Not that it would be pretty.
Fri Jun 29 2018, 11:58:09
(no subject) (by Ziggy)
A lot would depend on the granularity of the timing requirement as a function of PLC cycle.

If the measurement granularity can be approached such that PLC cycle is less than the granularity then a counter can be used in lieu of a timer.
This is to say set up a heart beat of appropriate period and then use it as input to the counter.

Otherwise ....
Fri Jun 29 2018, 21:27:40
(no subject) (by Ihor Nehrutsa)
Mon Jul 2 2018, 04:00:38
(no subject) (by david flores)
que tal yo tambien quiero hacer lo mismo pero como al parecer no se puede hacer directamente en el ldmicro quiero pasar el codigo a c para arduino y modificar ahi
Thu Jul 5 2018, 22:58:03
(no subject) (by david flores)
quiero pasar el codigo de ldmicro a arduino para hacer la modificaccion de los timers
Thu Jul 5 2018, 23:01:38
Only 5 rungs (by Ihor Nehrutsa)
1-second variable delay based on ADC.
Fri Jul 6 2018, 05:16:50, download attachment TON_with_ADC_1s.ld
Move variable to Timer on etc (by Tajmul)
Hi, Wojtek.
you can try this ,Move to variable Timer on etc
via ADC value,,
Fri Jul 6 2018, 12:11:42, download attachment Timer Sewitch.zip
temporizador movibles (by Calubert)
esto es un programa con temporizadores movibles en contadores.
la función es que se active el rele con un tiempo programado del exterior y se active con otro tiempo distinto. ON/OFF y al dar le la alimentación empieza a hacer todo el ciclo.
todo se programa del exterior los tiempos, con el ADC se pasa a un contador y este hará de temporizador y se guarda el tiempo en memoria no residual (Permanen)
Mon Jul 16 2018, 14:26:03, download attachment On_off.ld
placa terminada (by Calubert)
esta es la placa terminada de prototipo de ON/OFF.
http://www.tecnocalubert.com/img/servicio/servicio_1_322_med.jpg
Mon Jul 16 2018, 15:02:32
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):