Table of Contents
1. Preface .................................................................................................................................. 1
1.1. About this Document ........................................................................................................ 1
1.2. Related Documents ........................................................................................................... 1
1.3. Document History ............................................................................................................ 1
1.4. Document Convenons ..................................................................................................... 2
2. Introducon ........................................................................................................................... 4
2.1. Overview ........................................................................................................................ 5
2.2. Preparaons .................................................................................................................... 6
3. Step One ................................................................................................................................ 7
3.1. System Adaptaon and Applicaon Development ................................................................... 7
3.2. System Set-up .................................................................................................................. 7
3.2.1. Big- or Lile Endian ................................................................................................... 7
3.2.2. 16-bit Char System .................................................................................................... 7
3.2.3. Extended Bus Endian Dierence .................................................................................. 7
3.2.4. Data Types ............................................................................................................... 8
3.3. Anybus CompactCom Set-up ............................................................................................... 8
3.3.1. Communicaon Interfaces and Operang Modes ............................................................ 8
3.3.2. Parallel Operang Mode Specics ................................................................................ 9
3.3.3. SPI Operang Mode Specics ..................................................................................... 10
3.3.4. Module ID and Module Detect Sengs ........................................................................ 10
3.3.5. Message and Process Data Sengs ............................................................................. 11
3.3.6. Interrupt Handling ................................................................................................... 11
3.3.7. Communicaon Watchdog Sengs ............................................................................. 11
3.3.8. ADI Sengs ............................................................................................................ 11
3.3.9. Debug Event Print Sengs ......................................................................................... 12
3.3.10. Startup Time ......................................................................................................... 12
3.3.11. Sync Sengs ......................................................................................................... 13
3.4. System Adaptaon Funcons ............................................................................................. 14
3.4.1. General Funcons .................................................................................................... 14
3.4.2. SPI Operang Mode ................................................................................................. 15
3.4.3. Parallel Operang Mode ........................................................................................... 16
3.4.4. Serial Operang Mode .............................................................................................. 17
3.5. Object Conguraon ........................................................................................................ 17
3.6. Example Applicaon ........................................................................................................ 18
3.6.1. ADI and Process Data Mapping ................................................................................... 18
3.6.2. Main Loop .............................................................................................................. 18
3.6.3. Compile and Run ..................................................................................................... 20
4. Step Two ............................................................................................................................... 21
4.1. Adaptaons and Customizaons ........................................................................................ 21
4.1.1. Anybus CompactCom Setup ....................................................................................... 21
4.1.2. System Adaptaon Funcons ..................................................................................... 24
4.1.3. Network Idencaon .............................................................................................. 25
4.1.4. Soware Plaorm Porng ......................................................................................... 27
4.1.5. Example Applicaon ................................................................................................. 30
Appendix A. Soware Overview ................................................................................................... 42
1. Folders ............................................................................................................................. 42
2. Root Files ......................................................................................................................... 42
3. CompactCom Driver Interface (Read Only) .............................................................................. 42
Anybus® CompactCom™ 40
HMSI-27-334 Version 1.8