Siemens S7-300F-2 PN, DP manual Variable Description

Page 41

Industry Automation and Drive Technologies - SCE

Input Parameters of the UDT11

The user has to enter these variables 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 before the new setting takes effect, "init_run“ has to be performed after an INPUT parameter is changed (refer to chapter "Programming Restarts and Warm Restarts").

Variable

Description

 

IM Address

IM’s logic base address. This address has to match the IM "start address“ in HWConfig of the SIMATIC

 

Manager. Please note that this address has nothing to do with the PROFIBUS address that is set at the

 

IM or the ET200M.

 

IM Channel

Number of the MOBY channel that is to be used for processing:

 

 

ASM Type

Value Range

 

IM475, 452, 456,RF170C

1,2,

 

IM 454, 754, 854

1,2,3,4

 

ASM 473, 850

1

command_DB_

Number of data block where the MDS command is specified

These INPUT parameters can

number

 

be changed if ready = 1.

command_DB_

Address within the "command_DB“. The next MDS command starts

After a change of these

address

on this address. "command_DB_number“ and

parameters, init_run does not

 

"command_DB_address generate a data pointer to the next

have to be performed

 

command (refer to chapter "Configuration Scheme“).

 

 

Please note:

 

 

 

 

The input parameters command_DB_number and command_DB_address are to be changed only if

 

ready = 1. After changing these parameters, init_run does not have to be performed.

MDS Control

MDS_control switches the attendance check or the MDS control on or off on the IM (refer to chapter

 

"Attendance Check and MDS Control“).

 

 

Value

 

MDS Control

IM Type

 

0

 

Attendance check is switched

All

 

 

 

off. The variable

 

 

 

 

ANZ_MSD_present does not

 

 

 

 

indicate a valid value

 

 

1

 

Attendance check is switched

All

 

 

 

on. The MDS control is switched

 

 

 

 

off. The variable

 

 

 

 

ANZ_MDS_present indicates

 

 

 

 

an MDS in the transfer window

 

 

 

 

of a reader

 

 

2

 

Attendance check is switched

454

 

 

 

on. The MDS control is switched

 

 

 

 

on and happens by means of

 

 

 

 

the attendance check of the

 

 

 

 

MDS. The NEXT command has

 

 

 

 

to be sent to the IM after each

 

 

 

 

MDS processing.

 

ECC_mode

Switches on the ECC mode on

(true) or off (false). Take note that the ECC mode is permitted only for

 

MOBYI.

 

 

 

 

 

RESET_long

With the command init_run, all INPUT parameters are transmitted to the IM. For MOBY U/D or RF300

 

operation, this bit has to be set to true (MOBU_mode = 5)

 

Notes

Parameter “ASM_address“ value = 256 (refer to hardware configuration) _________________

Parameter “ASM_channel“ value = 1 for Reader1 _____________________________________

Parameter “ASM_channel“ value = 2 for Reader2 _____________________________________

Parameter “command_DB_number“ value = 47 for both readers _______________________

Parameter “command_DB_address“ value = 0 for Reader1 ____________________________

TIA Training Document

Page 41 of 65

Module E11

 

Status: 01/2010

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

RF180C

 

Image 41
Contents Industry Automation and Drive Technologies SCE Module E11Industry Automation and Drive Technologies SCE Preface Page Prerequisites S7’Objective Simatic RF180C ASM Industry Automation and Drive Technologies SCE CPU Rfid Fundamentals DB47 Data structure of the German language UDTs is as followsPage Industry Automation and Drive Technologies SCE Page Industry Automation and Drive Technologies SCE Industry Automation and Drive Technologies SCE Value range for the IP address Industry Automation and Drive Technologies SCE MAC 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 Save and close DB48 Generating DB48 Open DB48, set up 1024 bytesGenerating 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 DB45, UDT11 is called for each reader Generating DB45 Open DB45 and insert UDT11 for each readerData view of DB45 to byte DB47 request data block is referred to in DB45Save and close DB45 Page Generating Function FC11 Set up in variables Set up OUT variablesSave and close FC11 Command Data View of the UDT21 Command OverviewWriting data to the transponder Reading data from the transponderCommand END Command NextInitialize Transponder Read out Reader statusTransponder Status Switching the reader aerial on/offExample 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 Variable Description Control bits from Bit8 to Bit15Moby U/D or RF300 Generating FB10 Then, set up in variables Next, set up OUT variablesReader block Network 1 Command start Network 2 Reset Reader Industry Automation and Drive Technologies SCE Networks 4 to Page Generating FB1 Supplementing the symbol tableTask 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