11.01.2014 Views

PROFIBUS DP-Master

PROFIBUS DP-Master

PROFIBUS DP-Master

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The Application Interface 170/315<br />

6.2.2 <strong>PROFIBUS</strong>_FSPMM2_CMD_INITIATE_REQ/CNF– Initiate <strong>DP</strong>V1C2<br />

Connection<br />

The FSPMM2-Task is managing one instance of the “MSAC2M State machine” for each acyclic <strong>DP</strong>V1<br />

Class2 connection to a slave. This state machine is responsible for performing and supervising the<br />

acyclic data transfer between the <strong>DP</strong>-Class2 <strong>Master</strong> and a <strong>DP</strong>-Class2 Slave. The FSPMM2-Task has<br />

to be requested first with the <strong>PROFIBUS</strong>_FSPMM2_CMD_INITIATE_REQ” command to establish a<br />

connection before any following acyclic communication can be performed to a <strong>DP</strong>-Class2 Slave.<br />

• <strong>PROFIBUS</strong>_FSPMM2_CMD_READ_REQ/CNF - V1 Class 2 Read Request<br />

• <strong>PROFIBUS</strong>_FSPMM2_CMD_WRITE_REQ/CNF - V1 Class 2 Write Request<br />

• <strong>PROFIBUS</strong>_FSPMM2_CMD_DATA_TRANSPORT_REQ/CNF – Combined V1 Class 2<br />

Read and Write Request<br />

The parameter ulRem_Add is used for storing the station address in order to provide access<br />

protection.<br />

The time-out usSend_Timeout specifies the control time interval for the supervision of the <strong>DP</strong>V1<br />

class 2 connection (MSAC_C2 connection) which the <strong>DP</strong> V1 <strong>Master</strong> Class 2 requests from the slave.<br />

The supervision based on this period is performed as long as the <strong>DP</strong>V1 class 2 connection is active.<br />

The time out values are specified in units of 10 milliseconds.<br />

According to the Profibus specification, Profibus <strong>DP</strong> V1 <strong>Master</strong> Class 2 and Profibus <strong>DP</strong> V1 Slave<br />

inform each other about their supported service functionality using the variables<br />

bFeaturesSupported1 and bFeaturesSupported2. This process gives both the slave and the<br />

AP-Task the opportunity to adjust its functionality to the current requirements or to reject the request if<br />

it cannot fulfill them.<br />

This process works as follows:<br />

The 'Initiate' service sends the parameter directly to the slave which immediately checks this<br />

parameter. If a slave does not support a requested service or a defined profile, it will deny the 'Initiate'<br />

request. The connection state will change into the 'Closed' state then. If the initiate request is<br />

confirmed positively then the connection state go to 'Opened' and the master will now request Idle<br />

telegrams to the slave cyclically to supervise it, until the connection is aborted or interrupted<br />

physically. In the last case the master will automatically abort and close the connection. In a Class2<br />

relationship only one open connection can exist at the same time, parallelly established connections<br />

are forbidden. The device will deny further 'Initiate' requests as long as a Class2 connection to a slave<br />

is in 'Opened' state.<br />

To initialize a connection to another slave device this already established connection must be aborted<br />

before with the <strong>PROFIBUS</strong>_FSPMM2_CMD_ABORT_REQ request. A connection is in 'Opened' state as<br />

long as the device has not send an <strong>PROFIBUS</strong>_FSPMM2_CMD_CLOSED_IND indication message to the<br />

host. That means between this <strong>PROFIBUS</strong>_FSPMM2_CMD_INITIATE_REQ request message and the<br />

<strong>PROFIBUS</strong>_FSPMM2_CMD_CLOSED_IND indication message all messages like the<br />

<strong>PROFIBUS</strong>_FSPMM2_CMD_ABORT_IND indication or <strong>PROFIBUS</strong>_FSPMM2_CMD_XXX_CNF_NEG<br />

messages have to be collected by the host program too. Only when the<br />

<strong>PROFIBUS</strong>_FSPMM2_CMD_CLOSED_IND messages was received, no further messages must be<br />

awaited by the host for this previously established Class2 connection.<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!