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 - TURN-ON DELAY Tdon don't work as described in help !!!!!

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

TURN-ON DELAY Tdon don't work as described in help !!!!! (by mbruck)
This is from help:

"When the signal going into the instruction goes from false to true, the output signal stays false for 1.000 s before going true. When the signal going into the instruction goes from true to false, the output signal goes false immediately.."
But that not happening in my simulation. When I turn off signal from timer, output is still true.
That's is visible fro simulation print screen.
Next problem with timer is not waiting for signal goes from false to true to start, instead it start immediately after reseting.
In my test.ld application, if X1 is on, when X2 is true, then timer 1 is reset, but it immedialtelly start (!?). Timer should wait for X1 goes from false to true THEN start. Whish is again not according to documentation.
This is in simulation mode, not tryed on real hardware.
Fri Feb 4 2011, 08:44:47, download attachment TON problem.jpg
no subject (by simon)
hi

your program has a little problem .RTO timer has no name . His name should be identical to the reset .
Fri Feb 4 2011, 10:22:40, download attachment rto.ld
(no subject) (by Jonathan Westhues)
Also, I note that the documentation you quote is for a TON timer (turn-on delay), but the screenshot you post has an RTO timer (retentive turn-on delay).
Fri Feb 4 2011, 11:44:15
(no subject) (by Boris)
Simulation is 100% OK!
Problem is only in programming.
Sat Feb 5 2011, 03:07:22
(no subject) (by mbruck)
YES, I'm glad it's my mistake. I didn't notice it was RTON.

However, other part about reset still remain.

I atached project, and test procedure is:
Set X1
Timer wait 1 second and set Y1
Set X2
Timer is reset, Y1 is false
Timer wait 1 second, and set Y1 again!!!

So, TON after reset don't wait for LOW to HIGH transition on input.

I also notice, while simulation is on, there is no visible timer activitiy (from 0 to upper value). Always setup vaule is shown.
As remember that was in some previous version. (is it?)
Mon Feb 7 2011, 04:47:29, download attachment test.ld
(no subject) (by Boris)
That is OK if input X1 is on when You reset timer it will count to Ton time and it will switch output on.
What exactly do You need? Try with set-reset internal relay and internal relay to switch output.Try this way.
Mon Feb 7 2011, 09:01:02, download attachment test.ld
(no subject) (by mbruck)
>>What exactly do You need?
Nothing exactly. testing only.

Just point that TON should NOT start unles low to high transition on input occur.

>>> That is OK...
No, it is not. In this situation, TON start without any change on input.
Mon Feb 7 2011, 11:48:29
(no subject) (by Boris)
Set- X1 high + timer
Reset- X2 high or X1 low
Set again- X1 low > then > X1 high + timer
Mon Feb 7 2011, 17:41:04, download attachment test.ld
(no subject) (by Jonathan Westhues)
The TON and RES instructions are working as designed here. The TON timer is level-sensitive, not edge-sensitive: it starts counting whenever its input is high, not on the rising edge. If you want different behavior, then you of course can code that, for example with set-only/reset-only coils or with the one-shot-rising op.
Tue Feb 8 2011, 00:53:16
(no subject) (by mbruck)
Quote: "The TON timer is level-sensitive, not edge-sensitive...

This is from documentation:
"When the signal going into the instruction goes from false to true,...".
...FROM FALSE TO TRUE....

This is description for edge-sensitive operation.
So confusion remain.
And in this case timer is action as both edge-sensitive and level-sensitive which is not good.

:)
Fri Feb 11 2011, 14:05:37
(no subject) (by Boris)
It is same as LOW > HIGH ; 0 > 1 ; Off > On
For TON timer input must be longer ON than time in timer.
If time for TON timer is set 2sec than input must be ON(+5V) for min. 2,5sec that is LEVEL-SENSITIVE.
Fri Feb 11 2011, 14:37:43
(no subject) (by David R)
if you had A push button connected to the Micro controller
and you did NOT want a bump of the button to have an effect then you could use TON set to (say 100ms) so now you must push the button for 100 ms or more for the button to have an effect.
Fri Feb 11 2011, 15:17:35
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):