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

 

Page 47
Image 47
Siemens S7-300F-2 PN, DP manual