7/25/2016 7:48 PM | |
Joined: 9/27/2006 Last visit: 2/14/2025 Posts: 12336 Rating:
|
Hello GacsBal; First f all, simply commenting the DB as a long-term storage area does nothing to retain the values of the DB. I would recommend you take a few minutes to study the following FAQ, specially the document treating on Data storage mechanisms in the S7-300: How do you save the setpoint values (actual values) of the SIMATIC S7-300 which are changed online during commissioning? https://support.industry.siemens.com/cs/fr/en/view/109478260 If you decide to use the SFC82-84 techinique for DBs in Load memory, I would encourage you to look at the definitions of these functions in the following sections of this manual: System Software for S7-300/400 System and Standard Function Blocks https://support.industry.siemens.com/cs/fr/en/view/44240604 3.9 Generating Data Blocks in Load Memory with SFC 82 "CREA_DBL" 3.10 Reading from a Data Block In Load Memory with SFC 83 "READ_DBL" 3.11 Writing a Data Block in Load Memory with SFC 84 "WRIT_DBL" And our friend IBN-Service has shared some code sample for SFC83 (others are available on his website). https://support.industry.siemens.com/tf/ww/en/posts/42988/ Hope this helps, Daniel Chartier |
Last edited by: dchartier at: 7/25/2016 8:01:50 PMLast edited by: dchartier at: 7/25/2016 8:02:19 PM |
|
Follow us on