Siemens DP, S7-300F-2 PN manual Generate DB47 Open DB47 and add UDT21 for each request

Page 28

Industry Automation and Drive Technologies - SCE

DB47 Request Data Block

The DB47 is set by means of the UDT11 in DB45.

In DB47, a UDT21 is embedded for each reader.

The request commands are then entered in the respective UDT21.

The data of the read/write request is then stored in DB48.

The reference to DB48 is assigned in UDT21 of DB47.

Generate DB47

Open DB47 and add UDT21 for each request

Open DB47 and for Reader1, insert the UDT21 five times by means of ARRAY format. For Reader2, also insert UDT21 five times by means of ARRAY format.

Note

In our example, five request commands are possible for each reader or channel.

Thus, the UDT21 is embedded in DB47 10 times.

The commands or requests of the second reader start with address 50.

TIA Training Document

Page 28 of 65

Module E11

 

Status: 01/2010

Radio Frequency Identification (RFID) with SIMATIC S7-300F-2PN/DP and

RF180C

 

Image 28
Contents Module E11 Industry Automation and Drive Technologies SCEIndustry Automation and Drive Technologies SCE Preface Page Objective S7’Prerequisites Simatic RF180C ASM Industry Automation and Drive Technologies SCE CPU Rfid Fundamentals Data structure of the German language UDTs is as follows DB47Page Industry Automation and Drive Technologies SCE Page Industry Automation and Drive Technologies SCE Industry Automation and Drive Technologies SCE Industry Automation and Drive Technologies SCE MAC address Value range for the IP addressValue range for the subnet screen form Value range for the address of the gateway routerIndustry Automation and Drive Technologies SCE Industry Automation and Drive Technologies SCE Industry Automation and Drive Technologies SCE Page Page Page Generating DB48 Open DB48, set up 1024 bytes Save and close DB48Generating DB49 Open DB49 and insert UDT261 and UDT271 Page Generating DB50 Open DB50 and insert UDT111 and UDT281 Save and close DB50 Generate DB47 Open DB47 and add UDT21 for each request Save and close DB47 Generating DB45 Open DB45 and insert UDT11 for each reader DB45, UDT11 is called for each readerDB47 request data block is referred to in DB45 Data view of DB45 to byteSave and close DB45 Page Set up in variables Set up OUT variables Generating Function FC11Save and close FC11 Data View of the UDT21 Command Overview CommandWriting data to the transponder Reading data from the transponderCommand Next Command ENDInitialize Transponder Read out Reader statusSwitching the reader aerial on/off Transponder StatusExample of a command string in DB47 Data view of the UDT11 Variable Description Parameter commandDBaddress Value = 50 for Reader2 507 Industry Automation and Drive Technologies SCE ISO MDS Page Page Industry Automation and Drive Technologies SCE Control bits from Bit8 to Bit15 Variable DescriptionMoby U/D or RF300 Then, set up in variables Next, set up OUT variables Generating FB10Reader block Network 1 Command start Network 2 Reset Reader Industry Automation and Drive Technologies SCE Networks 4 to Page Task Supplementing the symbol tableGenerating FB1 Industry Automation and Drive Technologies SCE FB10 is inserted as a multi-instance block Industry Automation and Drive Technologies SCE Network Industry Automation and Drive Technologies SCE Network 4 to Page Open OB1 and call FB1 with DB1 Page Page Industry Automation and Drive Technologies SCE Symbol Table