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 121/315<br />

6.1.5 <strong>PROFIBUS</strong>_FSPMM_CMD_GET_SLAVE_DIAG_REQ/CNF – Request a<br />

Slave Diagnostic<br />

This packet allows reading out the diagnostic structure of a slave. The desired address of the slave<br />

must be placed in ulRemAdd corresponding to the real address of the slave within the network.<br />

The parameter ulFlags has influence to the kind of execution of this command. The flag<br />

<strong>PROFIBUS</strong>_FSPMM_GET_DIAG_FLAG_QUERY decides if either the diagnostic data is taken from the internal<br />

buffer of the master without causing a network access to the slave (set flag to 0), or if the service is<br />

sent to the slave directly (set flag to 1) and data of the response is sent back in the answer message.<br />

Calling the command without network access is much faster in reaction time and the preferred method<br />

for getting the answer than the other mode. However, using this mode makes only sense for slaves<br />

that are handled by the master. Only for those slaves the master drives the buffer update mechanism<br />

on every received new diagnostic data. The corresponding bit of each master assigned slave within<br />

the Sl_Diag field in the global bus status field indicates, if a changed diagnostic information since the<br />

last request is available and should be requested and read out. The diag bit of a slave station will be<br />

cleared on each <strong>PROFIBUS</strong>_FSPMM_CMD_GET_SLAVE_DIAG_REQ that is performed. Sl_Diag-bits of<br />

slaves, which are not assigned to the master, are not influenced by this mechanism in general.<br />

The Sl_Diag field will be updated in relation to the executed main <strong>PROFIBUS</strong> master cycle time,<br />

which is needed to update all input and output data. If a slave station is permanently not available in<br />

the network for example, then the corresponding diag bit within this field could be set every 500 µsec<br />

repeatedly to indicate that the slave is not present.<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!