Vous êtes sur la page 1sur 3

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

Page 1 of 3
show the entry list Message configuration for TD 200 using STEP 7-Micro/WIN V3.1 Display part number QUESTION: How do I configure messages for two TD 200s that are connected to one S7-200? ANSWER: Each TD200 needs its own data area in the S7-200 for parameter block, message information, function key assignment and release markers. You set this data area with STEP 7-Micro/WIN by proceeding as follows: 1. In the "Tools" menu of the STEP 7-Micro/WIN V3.1 software select the "TD 200 Wizard" command and set the configuration for the first TD200 and then close the configuration. 2. Then start the configuration tool for the TD200 ("Tools > TD 200 Wizard...") a second time. The following text is output: "Configuration blocks for the TD 200 already exist. Do you want to edit an existing configuration or create a new block?" At the same time the block that is being edited is displayed in the list field. Now select "New Block" and press the "Next" button. 3. In the window that opens you click the drop-down list box and select the language in which the TD 200 menus are displayed. The language selected has, however, nothing to do with the message text defined by the user. In addition in this window you can select the character font. Here, with the alternative character font, you can display bar charts on the TD 200. 4. Click on the "Next" button to open the window for setting the password protection, selecting the force options with the TD 200 and for activating the real-time clock menu. 5. Press "Next" again to open the window in which you assign the function keys to a flag byte in the CPU. These flag bits are then set in your user program when you press the corresponding function key. Here you must enter a different address for each TD 200 in order for the S7-200 program to be able to distinguish clearly which function key has been activated in which TD 200. 6. With the "Next" button you get to the window in which you can enter the size of the messages (40 or 20 characters per message) and the number of messages that you want to configure. 7. Select "Next" to get to the window where you set: - the start address of the parameter block - the start address of the release marker (i.e. message release bit) by which the messages are activated by the controller - the address as of which the message information (texts, data) is stored. The address area that you project here is always located in the variables memory (V). In any case make sure that the data entered for the second configuration is different to that for the configuration of the first TD 200. After the second parameter definition you are presented with the question "Assign block offset in VW0?". Answer with "No". Sample addresses for the two configurations are listed in the table. TD_1 Flag area for function key Initial byte for the parameter block of 10 bytes: (is simultaneously the address of the parameter block) Initial byte for enable flags Initial byte for message information 0 0 TD_2 1 100

12 32

112 132

The result of configuring several TD200 records is stored in DB1 whose structure is listed below. This is the result of two configuration records for two TD200s that are operated on one S7-200.

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

10.09.2010

Siemens - Industry Automation and Drive Technologies - Service& Support - Automation... Page 2 of 3
// BEGIN TD 200_BLOCK 0 // (Comments must not be changed or moved in this block) VB0 'TD' // ID of the TD 200 VB2 16#20 // Sets German as language, sets updating to As Soon As Possible VB3 16#30 // Sets display with 20 characters;Up key V3.2;down button V3.3 VB4 2 // Sets number of messages VB5 0 // Sets signal bits of the function keys to M0.0 - M0.7 VW6 32 // Sets initial address of the messages to VW32 VW8 12 // Sets initial address of the message release bit to VW12 // MESSAGE 1 // Message enable bit V12.7 VB32 'message 1 for td1 ' // MESSAGE 2 // Message enable bit V12.6 VB52 'message 2 for td1 ' // END TD200_BLOCK 0 // BEGIN TD200_BLOCK 100 // (Comments must not be changed or moved in this block) VB100 'TD' // ID of the TD 200 VB102 16#20 // Sets German as language, sets updating to As Soon As Possible VB103 16#30 // Sets display with 20 characters;Up key V103.2;down button V103.3 VB104 1 // Sets number of messages VB105 1 // Sets signal bits of the function keys to M0.0 - M0.7 VW106 132 // Sets initial address of the messages to VW132 VW108 112 // Sets initial address of the message release bit to VW112 // MESSAGE 1 // Message enable bit V112.7

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

10.09.2010

Siemens - Industry Automation and Drive Technologies - Service& Support - Automation... Page 3 of 3
VB132 'message 1 for td2 ' // END TD200_BLOCK 100 Now, in order to have the messages that you have configured for TD 200 No.1 displayed there, you must set the address for the correct parameter block to "0" in the configuration menu of the relevant TD 200. Set the address of the parameter block to "100" for our TD 200 No.2. The address of each TD 200 must be different too. Keywords: Message configuration Entry ID:299097 Date:2001-08-27 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/299097?func=ll&objId=299097&...

10.09.2010

Vous aimerez peut-être aussi