Siemens DP, S7-300F-2 PN manual Generating DB45 Open DB45 and insert UDT11 for each reader

Page 30

Industry Automation and Drive Technologies - SCE

DB45 Reader Parameter Block

Each MOBY channel (reader) needs its own parameters. These are predefined in a data structure as UDT 10 (with English comments), UDT 11 (with German comments) and UDT 14 (with Spanish comments). This UDT has to be called for each MOBY channel in a data block. In UDT 11, different variables are defined:

INPUT parameters: The user has to enter these variables once during configuration (exception: command_DB_number/command_DB_address). It is not necessary to change or poll these parameters during the entire execution time.

Please note that when an INPUT parameter is changed, an init_run has to be performed before the new setting takes effect (refer to chapter "Programming Restarts and Warm Restarts").

Control bits: With these Boolean variables, the user starts his commands.

Displays: The displays show the user the progress of his commands. Errors are easy to analyze.

Internal FB variables: These variables are of no significance to the user. They must not be changed by the application. Otherwise, malfunction and data corruptions would be the result.

Generating DB45

Open DB45 and insert UDT11 for each reader

In DB45, UDT11 is called for each reader

TIA Training Document

Page 30 of 65

Module E11

 

Status: 01/2010

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

RF180C

 

Image 30
Contents Module E11 Industry Automation and Drive Technologies SCEIndustry Automation and Drive Technologies SCE Preface Page S7’ ObjectivePrerequisites 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 Value range for the subnet screen form Industry Automation and Drive Technologies SCE MAC addressValue range for the IP address 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 Writing data to the transponder Data View of the UDT21 Command OverviewCommand Reading data from the transponderInitialize Transponder Command NextCommand END 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 Supplementing the symbol table TaskGenerating 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