PROFIBUS DP-Master
PROFIBUS DP-Master
PROFIBUS DP-Master
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
4/315<br />
Table of Contents<br />
1 Introduction..................................................................................................................................12<br />
1.1 Abstract .................................................................................................................................... 12<br />
1.2 Functional Overview................................................................................................................. 12<br />
1.3 System Requirements .............................................................................................................. 12<br />
1.4 Intended Audience ................................................................................................................... 12<br />
1.5 Specifications ........................................................................................................................... 13<br />
1.5.1 Technical Data ............................................................................................................................... 13<br />
1.6 Terms, Abbreviations and Definitions ...................................................................................... 15<br />
1.7 References ............................................................................................................................... 15<br />
1.8 Legal Notes .............................................................................................................................. 16<br />
1.8.1 Copyright........................................................................................................................................ 16<br />
1.8.2 Important Notes.............................................................................................................................. 16<br />
1.8.3 Exclusion of Liability....................................................................................................................... 17<br />
1.8.4 Export............................................................................................................................................. 17<br />
2 Fundamentals ..............................................................................................................................18<br />
2.1 General Access Mechanisms on netX Systems ...................................................................... 18<br />
2.2 Accessing the Protocol Stack by Programming the AP Task’s Queue.................................... 19<br />
2.2.1 Getting the Receiver Task Handle of the Process Queue.............................................................. 19<br />
2.2.2 Meaning of Source- and Destination-related Parameters .............................................................. 19<br />
2.3 Accessing the Protocol Stack via the Dual Port Memory Interface.......................................... 20<br />
2.3.1 Communication via Mailboxes ....................................................................................................... 20<br />
2.3.2 Using Source and Destination Variables correctly ......................................................................... 21<br />
2.3.3 Obtaining useful Information about the Communication Channel .................................................. 24<br />
2.4 Client/Server Mechanism ......................................................................................................... 26<br />
2.4.1 Application as Client....................................................................................................................... 26<br />
2.4.2 Application as Server ..................................................................................................................... 27<br />
3 Dual-Port-Memory........................................................................................................................28<br />
3.1 Cyclic Data (Input/Output Data) ............................................................................................... 28<br />
3.1.1 Input Data Image............................................................................................................................ 29<br />
3.1.2 Process Data Output...................................................................................................................... 29<br />
3.2 Acyclic Data (Mailboxes).......................................................................................................... 30<br />
3.2.1 General Structure of Messages or Packets for Non-Cyclic Data Exchange................................... 31<br />
3.2.2 Status & Error Codes ..................................................................................................................... 33<br />
3.2.3 Differences between System and Channel Mailboxes ................................................................... 33<br />
3.2.4 Send Mailbox ................................................................................................................................. 33<br />
3.2.5 Receive Mailbox............................................................................................................................. 34<br />
3.2.6 Channel Mailboxes (Details of Send and Receive Mailboxes) ....................................................... 34<br />
3.3 Status ....................................................................................................................................... 35<br />
3.3.1 Common Status ............................................................................................................................. 35<br />
3.3.2 Extended Status............................................................................................................................. 43<br />
3.4 Control Block ............................................................................................................................ 53<br />
4 Getting started / Configuration ..................................................................................................54<br />
4.1 Overview about Essential Functionality ................................................................................... 54<br />
4.2 Configuration of Bus and Slave Parameters............................................................................ 55<br />
4.2.1 Write Access to the Dual-Port Memory .......................................................................................... 55<br />
4.2.2 Using the configuration tool SYCON.net ........................................................................................ 55<br />
4.2.3 Detailed Description of Bus and <strong>Master</strong> Parameters...................................................................... 56<br />
4.2.4 Detailed Description of Slave Parameters...................................................................................... 62<br />
4.3 Task Structure of the <strong>PROFIBUS</strong> <strong>DP</strong>-<strong>Master</strong> Stack ................................................................ 69<br />
4.3.1 Obtaining Diagnostic Information from connected Slaves by sending an<br />
RCX_GET_SLAVE_CONN_INFO_REQ Packet .............................................................................................. 71<br />
5 Overview.......................................................................................................................................73<br />
5.1 Profibus <strong>DP</strong> and the OSI/ISO Layer Model.............................................................................. 73<br />
5.2 Profibus <strong>DP</strong> Operation Modes (States).................................................................................... 74<br />
5.3 Functionality of the FSPMM-Task (Layer 7)............................................................................. 75<br />
5.3.1 Cyclic Data Transfer....................................................................................................................... 75<br />
5.3.2 Acyclic Data Transfer ..................................................................................................................... 77<br />
<strong>PROFIBUS</strong> <strong>DP</strong>-<strong>Master</strong> |<br />
DOC061001API12EN | Revision 12 | English | 2010-12 | Released | Public © Hilscher, 2006-2010