11.01.2014 Views

PROFIBUS DP-Master

PROFIBUS DP-Master

PROFIBUS DP-Master

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Overview 74/315<br />

5.2 Profibus <strong>DP</strong> Operation Modes (States)<br />

A Profibus <strong>DP</strong> master can be in one of four different states, which are called the operation modes and<br />

have a different degree of allowed functionality. These states and their symbolic names are:<br />

• OFFLINE (USIF_OFFLINE)<br />

• STOP (USIF_STOP)<br />

• CLEAR (USIF_CLEAR)<br />

• OPERATE (USIF_OPERATE)<br />

These states differ in the degree of allowed functionality as follows:<br />

• In OFFLINE state, there is no communication (data transfer) permitted at all. This is the state<br />

after initialization. This means, the master is waiting for a signal to start and does not participate<br />

in the token ring of the Profibus access control mechanism.<br />

• In STOP state, there is no data transfer permitted between master and slaves. Data transfer to<br />

other masters in multi-master system is allowed, however. The bus parameter set has been<br />

loaded successfully in order to get into STOP state.<br />

• In CLEAR state, the master is able to read the input data from the <strong>DP</strong> slaves. The master forces<br />

the outputs to the slaves to be in a safe state (i.e. they contain only the value 0). For instance,<br />

incorrect data transfer of a slave can cause the Profibus <strong>DP</strong> master to fall back from OPERATE<br />

state to CLEAR state. Parameterization and configuration checks are possible in this state.<br />

• In OPERATE state, unrestricted data transfer is possible. This data transfer is cyclic, i.e.<br />

periodically, the input values are read from the slaves and the output data are written to the<br />

slaves.<br />

Changes of the operation mode are supervised by an internal state machine within the Profibus <strong>DP</strong><br />

master.<br />

The system behaviour on the failure of a slave can be parameterized in the <strong>DP</strong> master, so that it<br />

switches over automatically from OPERATE condition to the STOP condition. This also interrupts user<br />

data transfer to all slaves and the module outputs are switched to the secure zero condition.<br />

A change of the mode is indicated to the AP-task by the indication<br />

“<strong>PROFIBUS</strong>_FSPMM_CMD_MODE_CHANGE_IND – Mode changed Indication”, see section 0.<br />

If the AP-task wants to change the mode, it can accomplish this by sending the<br />

“<strong>PROFIBUS</strong>_FSPMM_CMD_SET_MODE_REQ/CNF – Set a new Operation Mode” packet, which is<br />

described, in section 6.1.3 of this document.<br />

<strong>PROFIBUS</strong> <strong>DP</strong>-<strong>Master</strong> |<br />

DOC061001API12EN | Revision 12 | English | 2010-12 | Released | Public © Hilscher, 2006-2010

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!