Moving a data problem

fpaezp

Member
Join Date
Apr 2011
Location
mexico
Posts
24
Hello everybody...

the video shows the problem to data move to a timer [ACC]

The purpose of the program is that when KM6 is disable, the timers ACC are not reset..the value of N is moved to the ACC, but for a moment put "0"..what happens?

Video: http://www.youtube.com/watch?v=Z7VJeQNw_PA

Ladder:
LADDER.png
 
If KM6 (O:0/8) is ON (= 1), then the 3 timers will be energized and work in a normal manner.

If KM6 is OFF (= 0), then the timer accumulators will be reset to "0" time.

Increase the timer PRE values temporarily, and you can see what is really happening. The YouTube video does not show what KM6 is doing. Is it going ON/OFF rapidly?

Seems to be a lot of effort for not much gain...
 
Last edited:
What do you mean by "KM6 disabled"? Do you mean "when KM6 is = 0"?

Anyway, since when a TON Timer input is NOT ENABLED, the ACC = 0, then when KM6 = 0, all timer ACC s = 0.

If you want to retain the last values, use RTO (Retentive) timers, not the TON type.
 
Last edited:
Fpaezp,
If you use RTO timers, you will need to add a RESET instruction somewhere to reset ACC to 0. RESET will not happen automatically, unlike with the TON timers.
 

Similar Topics

I'm a Siemens person, and this is one of my first AB programs. The customer wants everything programmed in Ladder. I have a lot of data (3...
Replies
14
Views
153
I have run into a wall. I have one PLC where I have an array of data d_postdetectJobQueue Dint[50] Under d_postdetectJobQueue[6] is the carrier...
Replies
3
Views
1,796
Hello all, I work with internet of things and am not a PLC expert at all - that's why I need your help. I have a customer who's running a mix of...
Replies
31
Views
14,288
Hey guys!! I have never used ANY-pointers or configured larger areas to be moved. As you see, i want to copy whats inside DB1, 256 byte long and...
Replies
16
Views
4,485
Need a little help with a better way to copy data. I am saving data in an array and I want to move the data from the second oldest to the oldest...
Replies
5
Views
1,492
Back
Top Bottom