Home > Samples > ID 0047 > Detail
 
  Strings with external eprom
 
 
  Step7-MicroWin: [V4.0.3.08 (V4.0+SP3)]
  CPU:   [all CPU22x]
  Operating system:    --
  Other:    --
Author:     Damir Krdzalic Homepage:    http://www.damir.com
Created:   02.05.2006 License:   Freeware
Update:   Price:  
Views:   63 Downloads:   23
 
This sample shows how (large) string messages could be outsourced into the external eprom. This would reduce the required cpu internal V-Memory space, which is left for other program parts or made a smaller CPU size available.

Conditions
  • The SMS string messages should be outsorced to the external eprom


  • Each message should have a fixed lenght of 50 character, regardless how much are    actually used

  •    (Otherwise offset calculation would become difficult, a future sample will show this)

  • The complete function should not take more then 100 bytes from the V-Memory space



  • Write messages
    To store the string messages into the external eprom a dummy project is required.
    The project must contain the string messages at DataBlock and the "Write_ext_Eprom" routine. After excution the string messages are stored persistent on the external program.

    The dummy project is only required to add or modify string messages on ext. eprom.




    Data block





    Read messages
    The second project shows how the user program could look like. The "Read_ext_Eprom" routine, offset calculation and user own application functions (send SMS) are placed into a own subroutine. The subroutine could be called easily form any program location with the associated SMS message number.




     Notice:
    The different messages would be visible if you monitor VB300 (as string) with status chart.




    Download (18 KB)
    The author makes no warranty, expressed or implied, with regard to this informations and/or software. All implied warranties, including the warranties of merchantability and fitness for a particular use, are hereby excluded. Under no circumstances shall the author of this product or the author(s) of S7-200.net, be liable for any incidental or consequential damages, nor for any damages. Attachments could contain viruses, the user is repsonsible to check the downloaded files before using. The user has no claims, especialy not for error correction or support.
    Rate this entry
       
        
    1 votes
     Last Forum topics regarding this entry:
      show all topics
     Similar entries wich could interrest:
      ID 0044 Library Linear access to external eeprom
      ID 0045 Sample External eprom sample
     
    optimized for MS Internet Explorer and 1024 x 768 resoltution
       
      © Copyright 2003-2006 S7-200.NET - all rights reserved.
    S7-200.NET and his author(s) are not liable for any incidental or consequential damages, nor for any damages caused by informations or software published on this page. Simatic, Step7-MicroWin and
    S7-200 are registered trademarks of Siemens AG in Germany and other countries. Further designated trademarks and brands are the property of their respective owners.
     
     S7-200.NET ©2003-2006
    External eprom
    linear read & write access
    + linear access
    + variables >32Bit (string)
    + backup whole V-Memory
    More...
    Yearly timer
    events by date & time
    + up top 3 configurations
    + min. Resolution = 1 min
    + unlimitted blocks
    More...
    Random event
    counter generated events
    + quality assurance
    + security applications
    + unique characteristic
    More...
    Weekly Timer
    Switch devices by clock
    + up top 3 configurations
    + overlapping configurations
    + unlimitted blocks
    More...