3/1/2012 11:09 PM | |
Joined: 11/20/2010 Last visit: 8/30/2023 Posts: 21 Rating: (0) |
It works on that way, but that isn't good solution. I don't want to manually messing up in DB and downloading it on PLC every time when I reboot PLC and need initial values! I want to my variables being initialized to values in Initial Value DB field. It works with REAL, S5TIME variables, but with INT, WORD variables it's not! I don't know why! |
3/2/2012 12:29 AM | |
Joined: 10/7/2005 Last visit: 11/11/2024 Posts: 3026 Rating: (1057)
|
Hello vojvoda82 try this: 1.) Open the DB 2.) Switch to "Data View" from the view menu (shortcut: CTRL + 4) 3.) Use "Initialize Data Block" from the Edit menu to makeInitial values the actual offline values (which are the ones that get downloaded to the PLC). 4.) Download the DB to the PLC I hope this helps and the FAQ below has more general info on this subject: What is the significance of the initial and actual values of a data block? |
Cheers |
|
This contribution was helpful to9 thankful Users |
2/2/2018 4:35 PM | |
Joined: 5/18/2015 Last visit: 11/9/2020 Posts: 67 Rating: (2) |
Hi! I have simmilar problem. Before I used blocks which values are irrelevant. Now I set DB with 8 bytes (4x INT) values 1 2 3 4 This DB is sent via FDL communication. To my suprise, bytes 2 3 and 4 were sent with initial values but DBW0 has been sent as 0. Why?! After DB initialization it was OK. I just dont understand why first byte was set to zero and the rest was OK. Also later, to see communication flow I load first byte to ACCU than "+I" and load it back again to DBW0.Again, without DB initialization it is started to count from 0, 1, 2 .... not from Initial value. DBW2, 4, 6 were sent as init values without Initializing DB. |
2/2/2018 4:55 PM | |
Posts: 2826 Rating: (686) |
Which PLC? - is it of the S7-300 / S7-400 generation? Is the retention of the DB and/or tag set as expected? |
Follow us on