TWIDO PLC... Retain Value

eyad267

Member
Join Date
Jun 2009
Location
amman
Posts
62
Hi All...
I am trying to set initial values to memory words inside a TWIDO PLC, and i had an answer from someone before that it could be done through simulation, but i am still not getting them when i simulate the program.. Could i have more details about that???
Also for Retaining values, in the help they are mentioning a system Bit to do it but i do not seem to be able to use it correctly?

May i have more details about both subjects.. (INITIAL and Retain) values??
Thanks
 
during ''debuging'', i found a place ''manage Animation table'' where you can write the initial value (write value from latch) this copie the value from the retained colunn to the plc data register

but the problem is that each time i download the plc, these value return to 0 and i need to manually execute this again...

i'm also looking for a better way to manage that

i need initial value that can be managed by the hmi later and if the battery goes out, to start again with the initial value instead of 0
 
Yes this is the problem, i am not sure that it will return back to its initial state...

There is a system bit that runs for the first scan only to put the initial values inside, but still the retain values is not working, i mean when the user change the value can the plc save this value or not?

There are also system bits %S95 and %S96, but i am not sure how can i use them to retain many values, lets say 4 or 5 values...

Please help
 
Yes this is the problem, i am not sure that it will return back to its initial state...

There is a system bit that runs for the first scan only to put the initial values inside, but still the retain values is not working, i mean when the user change the value can the plc save this value or not?

There are also system bits %S95 and %S96, but i am not sure how can i use them to retain many values, lets say 4 or 5 values...

Please help
Why don't you add a couple of lines of code that will move the desired hard coded values from the holding location (registers) to the working registers on "First scan" or initial unit power up.
During normal operation, move the contents of the 4-5 working registers to the holding location.
Haven't touched a twido but all PLCs pretty much support the first scan solution.
 
Last edited:
the only problem with the first scan is that the data are overwriten each time the plc is powered down and up again

with better plc, there is an automatic function to get some initial value forced just if plc lost is memory....

for a simple exemple in a start and stop pump function according to a water level, you can preset at factory start and stop level that work and that can also be changed at hmi during commissionning. If something bad happend like lost of power for a very long time to discharge plc battery, On the next power up, the sp return to the factory set ones instead of 0.....0 = nothing working at all and a call back from the customer that panel is broken and the need to give him the password or to come and put back the commissionned values....

Can i say again i don't like this CPU ....i feel better when i say it.:mad:

Also i got a 275ms scan time with the same program i usually use with 25 ms on other basic PLC
 
Twido "zeroes" variables at cold restart or when you download whole program to twido (online edits and warm restart don't return variable values to 0.)

You can hardcode initial values to constant words (%KWx) and move "initial values" when PLC is restarted and %MW variable is zero.
If there is lot of variables, you can use index addressing to this.

Disadvantage for this that when you use constant word to initial values, you can only change these initial values only at offline, and after that you have donload program to PLC.

How long time your plc is off, PLC's internal battery remains values at least one month? (Schneider's documentation)
 

Similar Topics

Hi, I created a program and compiled it with no errors, changed the program hardware configuration to match the plc. If I try to connect I...
Replies
2
Views
1,914
Hello Every one, This question came around in my place of work (MOAWP). It appears very simple on the surface, but I could not get right when I...
Replies
1
Views
1,900
Hello Every one, This question came around in my place of work (MOAWP). It appears very simple on the surface, but I could not get right when I...
Replies
12
Views
3,507
We're an industrial machinery merchant and it behooves us to try to get uploads from all the various control systems that pass through our doors...
Replies
5
Views
4,787
Hi I am twido PLC TWDLCAA24DRF and HMI HMIS5T . Confugured HMI as master and twido as slave on modbus RTU. Parity none,stop bit1,data bit 8...
Replies
0
Views
1,300
Back
Top Bottom