Implement logic! need help please

backendcode

Member
Join Date
Aug 2017
Location
brampton
Posts
249
Hello guys, Just wondering if someone can help me please

I have a timer when gets enable I move .acc value of that timer to another tag to store the .acc value but next time when the timer gets enable again, it overwrites the last stored value of .acc into that tag.

but I would like to add the new accumulator value of that timer to existing value of my tag where I am storing .acc value.

Or is there any timer which keeps the value of .acc (Don't set to zero) when become disable and I can reset that .acc value at 7 am which I will use GSV instruction to get that time.

Thank you,
 
It is just RTO - not RTON.

It works exactly the same as a TON, except that it doesn't automatically reset when disabled. To reset it, use the RES instruction, with the timer tag name as the parameter.

It sounds like you don't ever want it to "time-out", because if it did it would just "freeze" with the .DN bit set, and will not accumulate any more time. Set the .PRE to 2,147,483,647 (maximum positive value of a DINT), which equates to 2,147,483 seconds, or just under 25 days of accumulated time.

The good thing about using RTO is that it will hold the accumulator value, not just when it is disabled, but also through power-cycles, and mode changes (RUN-PROG-RUN) of the controller, that is why it is called a "Retentive" timer.
 
Last edited:
It is just RTO - not RTON.

It works exactly the same as a TON, except that it doesn't automatically reset when disabled. To reset it, use the RES instruction, with the timer tag name as the parameter.

It sounds like you don't ever want it to "time-out", because if it did it would just "freeze" with the .DN bit set, and will not accumulate any more time. Set the .PRE to 2,147,483,647 (maximum positive value of a DINT), which equates to 2,147,483 seconds, or just under 25 days of accumulated time.

The good thing about using RTO is that it will hold the accumulator value, not just when it is disabled, but also through power-cycles, and mode changes (RUN-PROG-RUN) of the controller, that is why it is called a "Retentive" timer.

Thank you for the explanation! Much appreciated and I finished the logic and its working good so far :)

Thank you again for the help
 

Similar Topics

Hello every body: Recently, I am programming a filler machine for customer, But there is one expected from customer really give me a issue about...
Replies
0
Views
1,300
Hello everybody! Can you help me with this problem: I have hypothetically 9 Digital Inputs from the Transmitter: - 3 Indicates Healhy or Faulty(...
Replies
5
Views
4,203
Hi experts; I use GE 90-30 series CPU352. I want to do the following task and need to guidlines how i achive? I have a input data 0 to 11700. I...
Replies
11
Views
4,568
respected sir,i want ur help,, i got 4 floor model of an elevator,,,with 4 cabinet-call push buttons on each floor,,the problem i m facing is,,,i...
Replies
13
Views
5,221
Let's say I have an inverter fed three phase induction motor drive where in the braking phase (when the motor operates in a generator mode) the...
Replies
2
Views
123
Back
Top Bottom