You are on page 1of 2

Siemens - Industry Automation and Drive Technologies - Service& Support - Automation...

Page 1 of 2
show the entry list Data 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". The size of the variable memory that can be used for the DB1 depends on the CPU: CPU 221 Number Area 2KB CPU 222 Number Area VB0 2KB to VB2047 CPU 224 Number Area VB0 5KB to VB2047 CPU 226 Number Area VB0 5 KB to VB5119 CPU 226XM Number Area VB 0 to VB10239 VB0 10KB to VB5119

If you want to create a data block in your program, then enter the addresses of the data and the values 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: VB0 VW2 VD4 VB8 VW10 VD14 VW20 -2 -4 -8 VB45 VW90 255 256 700.59 -35 16#0A 146879 2 4 8 16 32 64 -16 -32 -64 'Up' 65535 //Byte value, start at VB0 //Word value, start at VW2 //Double-word real number, start at VD4 //Byte value, start at VB8 //Word value, HEX, start at VW10 //Double-word value, start at VW20 //Table with word values, start at VW20. //The values go over several lines. //The first column is reserved for addresses //in the memory. //ASCII character string with two bytes, start at VB45 //Word value, start at VW90

Keywords: Memory types, Memory area, System properties Entry ID:8804145 Date:2001-10-15 I regard this article.... Copy link
Print

as helpful

as not helpful Send to a friend

Suggestion for the entry

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

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

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

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

You might also like