Siemens S7-300F-2 PN, DP manual Control bits from Bit8 to Bit15, Variable Description

Page 49

 

 

 

 

 

 

 

 

 

 

 

 

Industry Automation and Drive Technologies - SCE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Control bits from Bit8 to Bit15

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Variable

Description

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ANZ_MDS_present

Indicates the presence of an MDS in the transmission window of the Read/Write MDS.

 

 

 

 

 

 

 

 

 

 

 

 

 

ANZ_MDS_present is indicated only if the user set the INPUT parameter

 

 

 

 

 

 

 

 

 

 

 

 

 

MDS_control.

 

 

 

 

 

 

 

 

 

 

 

 

 

Please note that when init_run is executed, the ANZ_MDS_present indication briefly

 

 

 

 

 

 

 

 

 

 

 

 

 

disappears even if an MDS stays permanently in the transmission window.

 

 

 

 

 

 

 

 

ANZ_cancel

The command executed last was a command interruption (cancel).The bit is set if the

 

 

 

 

 

 

 

 

 

 

 

 

 

IM displays a cancel acknowledgement by means of the cyclical word (refer to chapter

 

 

 

 

 

 

 

 

 

 

 

 

 

"Cyclical Control Word between Master and MOBY IM“. Reset is automatic by starting

 

 

 

 

 

 

 

 

 

 

 

 

 

a new command.

 

 

 

 

 

 

 

 

ANZ_ECC

Only MOBY I:

 

 

 

 

 

 

 

 

 

 

 

 

 

If the ECC driver is switched on (INPUT parameter "ECC mode“ = TRUE), the bit

 

 

 

 

 

 

 

 

 

 

 

 

 

indicates that the data read by the MDS was corrected. ANZ_ECC is not an error

 

 

 

 

 

 

 

 

 

 

 

 

 

indication since the data is OK. ANZ_ECC indicates that in the near future the MDS

 

 

 

 

 

 

 

 

 

 

 

 

 

memory that was just processed may completely fail.

 

 

 

 

 

 

 

 

reserved

Presently not assigned

 

 

 

 

 

 

 

 

LR_bat

This bit is of significance only if at MOBY I processing takes place with the MDS507.

 

 

 

 

 

 

 

 

 

 

 

 

 

It indicates an empty MDS507 dialog battery. For all other MDSs, this bit can take on

 

 

 

 

 

 

 

 

 

 

 

 

 

any state.

 

 

 

 

 

 

 

 

battery_low

Only for MOBY I/V with RAM MDS

 

 

 

 

 

 

 

 

 

 

 

 

 

The back-up battery of the RAM MDS is below the threshold. Although it is still

 

 

 

 

 

 

 

 

 

 

 

 

 

possible to process several months at room temperature with the remaining capacity,

 

 

 

 

 

 

 

 

 

 

 

 

 

it is recommended to immediately change the battery or to replace the MDS if the

 

 

 

 

 

 

 

 

 

 

 

 

 

battery can’t be changed.

 

 

 

 

 

 

 

 

error

FB45 sets this bit if a command is concluded faulty. The error bit is the sum error bit

 

 

 

 

 

 

 

 

 

 

 

 

 

for all occurring errors. The exact cause for the error is located in the variable

 

 

 

 

 

 

 

 

 

 

 

 

 

error_MOBY, error_FB or error_BUS (refer also to chapter "Additional Indications“ or

 

 

 

 

 

 

 

 

 

 

 

 

 

chapter "Error Indications and Error Search“). Restarting the command resets the

 

 

 

 

 

 

 

 

 

 

 

 

 

error bit.

 

 

 

 

 

 

 

 

ready

Ready indication: after ready = TRUE was indicated, the error bit = FALSE has to be

 

 

 

 

 

 

 

 

 

 

 

 

 

polled. This ensures that the command was processed without error.

 

 

 

 

 

 

 

 

 

 

 

 

 

Please note:

 

 

 

 

 

 

 

 

 

 

 

 

 

The ready bit does not have to be set for starting init_run or cancel.

 

Notes

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

TIA Training Document

Page 49 of 65

Module E11

 

Status: 01/2010

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

RF180C

 

Image 49
Contents Industry Automation and Drive Technologies SCE Module E11Industry Automation and Drive Technologies SCE Preface Page Objective S7’Prerequisites 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 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