Вы находитесь на странице: 1из 2

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

Page 1 of 2
show the entry list Data block processing in the S7-21x Display part number QUESTION: Which "data blocks" does the S7-21x system know? ANSWER: The S7200 recognizes only data block "DB1". The DB1 however is not located in a program section as with STEP5 and STEP7, but in the start area of the variable memory "V". The size of the variable memory that can be used for the DB1 depends on the CPU: CPU210 Number Area CPU212 Number Area CPU214 Number Area VB 0 4 KB to VB1023 CPU215 Number Area VB 0 to VB 5119 VB 0 5 KB to VB4095 CPU216 Number Area 5 KB VB 0 to VB 5119

Not Not 1 KB possible possible

If you want to create a data block in your program, then enter the addresses of the data and their values in the file with the extension .db. The data block editor is a text editor with which you can select the format, i.e. there are no predefined fields for specific data. Nevertheless, there are a number of rules you must follow for the data to be correctly compiled. Rules 1. In the first column of each line enter the size of the data and the initial address of the value. Micro/WIN sets the address based on the first entry of a line. 2. Separate addresses, data values and comments that begin with double slashes (//) with blanks or use the TAB key. 3. End each line with a line space. 4. Always specify a memory area and an address. Examples: VB12 or VW100 etc. Example for a 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, begin at VB0 //Word value, begin at VW2 //Double word, real number, begin at VD4 //Byte value, begin at VB8 //Word value, HEX, begin at VW10 //Double word value, begin at VW20 //Table with word values, begin at VW20. The values //go over //several lines. The first column is reserved for addresses //in the memory. //ASCII character string with two bytes, begin at VB45 //Word value, begin at VW90

Keywords: Memory types, Memory area, System properties Entry ID:291669 Date:2001-10-01

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

10.09.2010

Siemens - Industry Automation and Drive Technologies - Service& Support - Automation... Page 2 of 2
I regard this article.... Copy link
Print Siemens AG 2010 - Corporate Information - Privacy Policy - Terms of Use

as helpful

as not helpful Send to a friend

Suggestion for the entry

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

10.09.2010

Вам также может понравиться