Siemens S7-300F-2 PN, DP manual

Page 47

Industry Automation and Drive Technologies - SCE

Control bits from Bit0 to Bit7

Variable

Description

 

 

cancel

True =interruption of a current command or a command string. FB45 then sets the

 

variable ready.

 

MOBY U/D or RF300: the variable ‘cancel’ is not available. A command has to be

 

canceled with the variable init_run.

command_start

True = start of a command or a command string

repeat_ command

True = command repetition: The command or command chain stored last in the IM is

 

reprocessed with the next MDS. However, command processing for the MDS is

 

started only after the MDS that was processed has exited the transmission window

 

(ANZ_MDS_present= 0) and a new MDS has entered the transmission window of the

 

reader (ANZ_MDS_present: 0 1).

 

False = no command repetition, or command repetition is stopped after the command

 

that was started with the repeat command is processed. Please note that the user

 

has to reset this bit in order to stop command repetition. The result of the command

 

repetition is fetched by the use setting command_start.

 

Repeat_command is not reset automatically by FB45 after the command is

 

processed.

 

The commands init_run and cancel reset the variable repeat_command. This also

 

interrupts a command repetition in the IM. repeat_command can be set again by the

 

application with the next command_start. Handling of command repetition is described

 

in the chapter "Command Repetition“.

Init_run

True = IM restart. In this case, FB45 is also reset and the IM re-parameterized. All

 

data and commands in the IM are lost. This bit has to be set in the restart OB (OB100)

 

for each MOBY channel or IM.

 

After a MOBY-IM fault, the error error_MOBY=0F is indicated to the user. The user

 

then has to perform an init_run.

 

Please note:

 

When loading a parameter data block from the programming device to the

 

SIMATIC, bit init_run is pre-assigned TRUE. The result is the automatic

 

execution of an IM restart.

 

The time to execute init_run is normally in the millisecond range. If there is

 

an error, this time may extend to 15s.

IM_failure

True = the IM failed. The user sets this bit in OB122 (refer to chapter "Programming

 

Module Failure“). FB45 then signals an error to the user (error_FB = 09) and

 

interrupts the current command. If the user does not program OB122, the PLC enters

 

the STOP mode if the IM fails.

FB45_active

FB45 is just processing a command. This variable is set when the command is started

 

(command_start=True) and remains active until

 

FB45 has received the last acknowledgement from the IM

 

The init_run bit was set

 

The cancel bit was set

 

The IM signaled an error

ANZ_next

This bit is set if the command executed last was a NEXT command

ANZ_reset

This bit indicates that the command executed last was a RESET. The user started the

 

RESET command with "init_run“.

Notes

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

__________________________________________________________________________

TIA Training Document

Page 47 of 65

Module E11

 

Status: 01/2010

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

RF180C

 

Image 47
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 address of the gateway router Industry Automation and Drive Technologies SCE MAC addressValue range for the IP address Value range for the subnet screen formIndustry 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 Reading data from the transponder Data View of the UDT21 Command OverviewCommand Writing data to the transponderRead out Reader status Command NextCommand END Initialize TransponderTransponder 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