Data Block Processing With the S7-22x Www.otomasyonegitimi.com

Embed Size (px)

Citation preview

  • 8/2/2019 Data Block Processing With the S7-22x Www.otomasyonegitimi.com

    1/2

    show the entry listData block processing with the S7-22x

    QUESTION:Which data blocks does the S7-22x system recognize?

    ANSWER:The S7 22x only knows the "DB1" data block. But the "DB1" data block is not located in a program

    part as with STEP 5 and STEP 7, but it occupies the start area of the variables memory "V". Thesize of the variable memory that can be used for the DB1 depends on the CPU:

    If you want to create a data block in your program, then enter the addresses of the data and thevalues in the data block editor. The data block editor is a text editor with a free choice of format, i.e.there are no specific fields designated for specific information. Nevertheless there are a number of

    rules that you must observe to ensure that the data can be compiled correctly.

    Guidelines

    1. In the first column of each line enter the size of the data and the start address of the value.Micro/WIN defines the address based on the first entry of a line.

    2. To separate the addresses, data values and comments, which start with a double-slash (//),use spaces or the TAB key.

    3. End each line with a carriage return.4. Always specify a Memory Area and an Address. Examples: VB12 or VW100 etc.

    Sample data block:

    Keywords:Memory types, Memory area, System properties

    CPU 221 CPU 222 CPU 224 CPU 226 CPU 226XM

    NumberArea NumberArea NumberArea NumberArea NumberArea

    2KB VB0toVB2047

    2KB VB0toVB2047

    5KB VB0toVB5119

    5 KB VB0toVB5119

    10KB VB 0toVB10239

    VB0 255 //Byte value, start at VB0VW2 256 //Word value, start at VW2

    VD4 700.59 //Double-word real number, start at VD4

    VB8 -35 //Byte value, start at VB8

    VW10 16#0A //Word value, HEX, start at VW10

    VD14 146879 //Double-word value, start at VW20

    VW20 2 4 8 16 32 64 //Table with word values, start at VW20.//The values go over several lines.

    -2 -4 -8 -16 -32 -64 //The first column is reserved for addresses//in the memory.

    VB45 'Up' //ASCII character string with two bytes, start at VB45

    VW90 65535 //Word value, start at VW90

    Entry ID:8804145 Date:2001-10-15

    I regard this article.... as helpful as not helpful

    Copy link Suggestion for the entry Send to a friend

    Print

    Page 1 of 2Siemens - Industry Automation and Drive Technologies - Service& Support - Automation...

    10.09.2010http://support.automation.siemens.com/WW/llisapi.dll/8804145?func=ll&objId=8804145 ...

    http://support.automation.siemens.com/WW/llisapi.dll/8804145?func=ll&objId=8804145http://support.automation.siemens.com/WW/llisapi.dll/8804145?func=ll&objId=8804145
  • 8/2/2019 Data Block Processing With the S7-22x Www.otomasyonegitimi.com

    2/2

    Siemens AG 2010 - Corporate Information - Privacy Policy - Terms of Use

    Page 2 of 2Siemens - Industry Automation and Drive Technologies - Service& Support - Automation...

    10.09.2010http://support.automation.siemens.com/WW/llisapi.dll/8804145?func=ll&objId=8804145 ...

    http://support.automation.siemens.com/WW/llisapi.dll/8804145?func=ll&objId=8804145http://support.automation.siemens.com/WW/llisapi.dll/8804145?func=ll&objId=8804145