HMS Industrial Networks reserves the right to modify its products in line with its policy of continuous product development. The information in this document shall therefore not be construed as a commitment on the part of HMS Industrial Networks and is subject to change without notice.
About this Document......................3 Document History ......................3 Document Conventions .....................3 Document Specific Conventions..................4 Trademark Information .....................4 About the Anybus CompactCom B40 Modbus Serial ............5 General Information ......................5 Features .........................6 Overview ........................6 How to Use this Manual ....................6 Modbus Application Interface .................... 8 How To Set Up and Initialize the Modbus Communication ............8...
Page 4
Firmware Upgrade ......................39 Using Firmware Manager II ....................40 Using FTP ........................41 D The Anybus State Machine ....................42 General Information ....................... 42 State Dependent Actions ....................43 Implementation Guidelines ....................44 General ........................44 Example ........................44 Power Supply Considerations ...................
About this Document This document is intended to provide a good understanding of the functionality offered by the Anybus CompactCom B40 Modbus Serial. The reader of this document is expected to be familiar with high level software design and communication systems in general. The information in this user manual should normally be sufficient to implement a design.
Pin connected directly to module power supply, GND or 3V3 Trademark Information Anybus ® is a registered trademark of HMS Industrial Networks. EtherNet/IP is a trademark of ODVA, Inc. All other trademarks are the property of their respective holders. SCM-1202-130 1.1 en-US Anybus ®...
About the Anybus CompactCom B40 Modbus Serial General Information The Anybus CompactCom B40 Modbus Serial is a communication solution for simple industrial field devices. The host application communicates with the product using the Modbus RTU protocol. The Anybus CompactCom B40 Modbus Serial then communicates the data to the network.
Contact HMS Industrial Networks for further information. Overview The picture below shows the data flow in the Anybus CompactCom B40 Modbus Serial. The application sets up the Modbus RTU communication, and the Anybus CompactCom maps the process data to the industrial network/fieldbus.
Page 9
About the Anybus CompactCom B40 Modbus Serial 7 (48) 2.4.1 Host Application The Modbus application interface is set up and configured in the same way, independent of which network the data will be sent to/read from. This process, including an example is described in Modbus Application Interface, p.
Modbus Application Interface 8 (48) Modbus Application Interface The host application interface of the product consists of a Modbus Serial interface, which implements a reduced set of registers and commands. The Anybus CompactCom acts as a Modbus RTU slave. How To Set Up and Initialize the Modbus Communication To set up and initialize the communication between the host application and the network, follow the steps below.
Page 11
Modbus Application Interface 9 (48) Set the size of the Read Process Data area to register 0x5103. Data type (byte or word) is configured with register 0x5100. Example – Using the Modbus function Write Single Holding Register to configure Read Process Data size 18 bytes. Assuming default value of register 0x5100, i.e. data type is UINT8.
Modbus Application Interface 11 (48) Modbus Register Map The Modbus register space is designed to allow easy and efficient communication using a single cyclic read/write Modbus command. Register# Name Access Description 0x0000 - Write process data Read/ When the last byte of mapped process data is written, data is sent to the network for consistency reasons.
Page 14
Modbus Application Interface 12 (48) Register# Name Access Description 0x5004 0x0089: PROFINET IRT Network type Read only 0x009B: EtherNet/IP 0x5005 Anybus Exception Code Read only 0x00: No exception 0x01: Application timeout 0x02: Invalid device address 0x03: Invalid communication settings 0x04. Major unrecoverable application event 0x05: Waiting for application reset...
A typical example of how to design the network interface is offered in Network Interface Examples, p. 47 Host Application Interface The host application connector provides an interface between the host application and the Anybus CompactCom B40 Modbus Serial. Outline of brick Pin 1 Network interface...
Hardware Design 14 (48) Top view Fig. 3 The picture shows the pinning of the mating connector on the host application as seen from the top. GND 2 1 3V3 INPUT1_0 4 3 RESET INPUT1_2 6 ...
Page 17
Hardware Design 15 (48) 4.1.1 Pin Overview Presented below is an overview of all pins except GND and 3V3. The pin types of the connector are defined in Pin Types, p. 4. The pin type may be different depending on which mode is used. The pin numbers of the Anybus CompactCom B40 (brick) host application connector are different from those of the Anybus CompactCom M40 (module) host application connector.
Page 18
Hardware Design 16 (48) Signal Type Notes Name Receive Input for Modbus communication • Direction: Host application -> Anybus CompactCom • Idle state = High Transmit Output for Modbus communication TX / OM3 • Direction: Anybus CompactCom -> Host application •...
Page 19
If not used, leave this signal unconnected. 4.1.4 DE (Data Enable) The Anybus CompactCom B40 Modbus Serial supports RS485. This signal is then used as an active high data enable signal for RS485 transceivers. Signal Name Pin Type...
Page 20
Hardware Design 18 (48) 4.1.5 RESET (Reset Input) Signal Name Pin Type Description RESET Reset Used to reset the module. The Anybus CompactCom does not feature any internal reset regulation. To establish a reliable interface, the host application is solely responsible for resetting the Anybus CompactCom when the supply voltage is out of the specified range.
Hardware Design 19 (48) 4.1.6 Communication Settings The communication settings are configured by the INPUT1 and INPUT2 input pins in the application interface. Invalid settings results in the Anybus CompactCom entering the state EXCEPTION. The Modbus address is configured using INPUT1. Valid range is 1 - 247. Baud rate, stop bits, and parity are configured using INPUT2, as defined in the tables below.
Page 22
Hardware Design 20 (48) Example The figure shows INPUT1 and INPUT2 signals directly for Modbus communication. INPUT1 signals are strapped to Modbus address 0x01. INPUT2 signals are set to configure 1 stop bit, even parity and baud rate 19200. INPUT1_0 INPUT1_1 INPUT1_2 INPUT1_3...
Hardware Design 21 (48) Network Connector The network connector provides network access to the Anybus CompactCom B40 Modbus Serial. Outline of brick Pin 1 Network interface Pin 1 Application interface Top view Fig. 8 The signals from the network connector can be directly routed to the (optional) connector board, which carries a network connector(s) identical or similar to the ones on the corresponding Anybus CompactCom M40 module.
Page 26
4.2.3 How to Connect Unused Network Connector Pins For Ethernet versions of the Anybus CompactCom B40 Modbus Serial it is recommended to terminate Ethernet signals in the network interface if one of the Ethernet ports is unused. For the 10/100 Mb/s hardware version it is sufficient to terminate pair no. 1 and 2, for the port of concern, while for the 1 Gb/s hardware version this has to be done for pair no.
Page 27
Hardware Design 25 (48) 4.2.4 Ethernet Based Networks (Copper) The industrial networks, that use Ethernet for communication, share the same hardware design. However, the firmware downloaded to the brick is different depending on network. Physically they use the same set of pins in a similar way. At the moment Anybus CompactCom B40 Modbus Serial is available for the following Ethernet based networks: EtherNet/IP and PROFINET IRT.
Page 28
Hardware Design 26 (48) Signal Group Signal Name Type Description B_RXP Rx, LVPECL positive signal B_SDA SDA, I2C data B_RXN Rx, LVPECL negative signal B_SDP Signal Detect, LVPECL positive signal B_SCL SCL, I2C clock B_SDN Signal Detect, LVPECL negative signal B_TXEN Tx enable TXEN is implemented as the inverse to TXDIS...
Page 29
Hardware Design 27 (48) SD Channel Design Requirements The SD (signal detect) channel is designed for a transceiver output that has a DC coupled differential output with 100-1000 mV amplitude. If a transceiver with LVTTL/LVCMOS output is used, the signal needs to be conditioned using a few resistors, to obtain desired signal levels for the brick.
If the application processor does not have sufficient input pins to connect physical switches, there is a mechanism for I/O expansion that can be used. The switches are then connected to the Anybus CompactCom B40 Modbus Serial instead. For more information see IO Expansion Mechanism, p.
Hardware Design 29 (48) IO Expansion Mechanism If the application is to implement physical switches for network configuration, but does not have sufficient I/O pins, the switches can be connected to the Anybus CompactCom instead using the IO Expansion Mechanism. The INPUT1 and INPUT2 pins can then be used both to strap the Modbus communication settings and to connect the physical switches.
Failure to follow the requirements may lead to permanent hardware damage It is recommended for Anybus CompactCom B40 Modbus Serial users to make sure that each signal controlling the Anybus CompactCom B40 Modbus Serial has a drive strength enough to fulfill level and timing constraints even if the signal is loaded with 20 pF in parallel with 2.2 kΩ...
EN61000-4-5 Surge immunity EN61000-4-6 Conducted immunity Since all Anybus CompactCom B40 Modbus Serial modules have been evaluated according to the EMC directive through above standards, this serves as a base for our customers when certifying Anybus CompactCom B40 Modbus Serial based products.
ESD prevention measures to avoid damage. All dimensions are in millimeters, tolerance ±0.10 mm, unless otherwise stated. Anybus CompactCom B40 Modbus Serial The dimensions for the Anybus CompactCom B40 Modbus Serial are given in the picture below. Pin 1 Application...
Appendix B: Mechanical Specification 34 (48) Footprint The Anybus CompactCom is connected to the host application board through the host application interface connector and a network interface connector. The footprint for the Anybus CompactCom is shown in the picture below. Outline of brick Pin 1 Network...
Appendix B: Mechanical Specification 35 (48) Network Connector Boards (Optional) B.4.1 Connector Board for Copper Based Ethernet The connector board for the copper based Ethernet network interfaces carries two RJ45 connectors. 37,8 15,6 3,5 ± 0,20 Fig. 19 Connector Board for Fiber Optic Ethernet The connector board for the Fiber Optic Ethernet network interface carries two fibre optic transceivers.
FE (functional earth) on the connector board to FE on the host application board. The screw holes of the Anybus CompactCom B40 Modbus Serial are not connected to FE, but to GND. If suggested components are used, the Anybus CompactCom B40 Modbus Serial can be mounted without screws in a low vibration environment, see Shock and Vibration, p.
Page 40
Appendix B: Mechanical Specification 38 (48) PCB layout Outline of connector board Pin 1 Network interface Top view Outline of brick Pin 1 Network interface Pin 1 Application interface Top view M3: Standoff with internal thread, size M3 Fig. 22 SCM-1202-130 1.1 en-US Anybus ®...
Appendix C: Firmware Upgrade 39 (48) Firmware Upgrade Download and upgrade of network communication firmware for a specific fieldbus or industrial network can be performed in different ways, depending on which Anybus CompactCom B40 Modbus Serial that is to be upgraded. Ethernet versions with FTP Use the Firmware Manager II tool or download the firmware to the designated folder in enabled...
Appendix C: Firmware Upgrade 40 (48) Using Firmware Manager II This tool is available without cost from www.anybus.com and can be downloaded from the product pages. It can be used to download new firmware for any Ethernet Anybus CompactCom B40 Modbus Serial. Please note that FTP has to be enabled. Fig.
Appendix C: Firmware Upgrade 41 (48) Using FTP If the module supports FTP, this can be used to access the file system and upload the new firmware directly to the /firmware directory. The next time the module is started the firmware will be upgraded.
The Anybus State Machine General Information A fundamental part of the Anybus CompactCom B40 Modbus Serial is the Anybus State Machine. The state machine shall be regarded as a Moore machine; i.e. the host application is not required to keep track of all state transitions, however it is expected to perform certain tasks in each state...
Appendix D: The Anybus State Machine 43 (48) State Dependent Actions The expected actions for each state are listed below. Description Expected Actions State SETUP Anybus CompactCom Setup in progress. NW_INIT The Anybus CompactCom module is currently performing network-related initialization tasks. WAIT_PROCESS The network Process Data channel is temporarily inactive.
Appendix E: Implementation Guidelines 44 (48) Implementation Guidelines General This appendix provides an example of a possible implementation for the Anybus CompactCom B40 Modbus Serial. There are many different processors with different functionality available on the market today. The implementation in this appendix is to be regarded as an example that is designed for one single type of processor.
Appendix E: Implementation Guidelines 45 (48) Power Supply Considerations E.3.1 General The Anybus CompactCom 40 platform in itself is designed to be extremely power efficient. The exact power requirements for a particular networking system will however vary a lot depending on the components used in the actual bus circuitry.
Page 48
Appendix E: Implementation Guidelines 46 (48) E.3.2 Bypass Capacitance The power supply inputs must have adequate bypass capacitance for high-frequency noise suppression. It is therefore recommended to add extra bulk capacitors near preferably all the power supply inputs (or at least two): Value (Ceramic) Reference 10 µF / 6.3 V...
Appendix F: Network Interface Examples 47 (48) Network Interface Examples This section offers a typical example of how to design the network interface. SCM-1202-130 1.1 en-US Anybus ® CompactCom ™ B40 Modbus Serial User Manual...
Need help?
Do you have a question about the Anybus CompactCom B40 Modbus Serial and is the answer not in the manual?
Questions and answers