Advertisement

Quick Links

Anybus
®
CompactCom
B40 Modbus Serial
USER MANUAL
SCM-1202-130 1.1 en-US ENGLISH

Advertisement

Table of Contents
loading
Need help?

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

Subscribe to Our Youtube Channel

Summary of Contents for HMS Anybus CompactCom B40 Modbus Serial

  • Page 1 Anybus ® CompactCom ™ B40 Modbus Serial USER MANUAL SCM-1202-130 1.1 en-US ENGLISH...
  • Page 2: Important User Information

    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.
  • Page 3: Table Of Contents

    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 ...................
  • Page 5: Preface

    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.
  • Page 6: Document Specific Conventions

    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 ®...
  • Page 7: About The Anybus Compactcom B40 Modbus Serial

    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.
  • Page 8: Features

    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.
  • Page 10: Modbus Application Interface

    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.
  • Page 12: Supported Modbus Commands

    Modbus Application Interface 10 (48) Supported Modbus Commands Name Description Read multiple registers All mapped to the same register space. Read input registers Write single register Write multiple registers Read/Write registers Anybus command Custom Modbus command, see below 3.2.1 Error Handling •...
  • Page 13: Modbus Register Map

    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...
  • Page 15: Hardware Design

    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...
  • Page 16: Top View

    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.
  • Page 21: Communication Settings

    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...
  • Page 23: Network Connector

    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 24 Hardware Design 22 (48) GND 2 1 3V3   B_1CEN/SDA 4   3 B_1P/RXP GND 6   5 B_1N/RXN B_2CEN/SCL 8   7 B_2P/SDP GND 10   9 B_2N/SDN B_3CEN 12 11 B_3P/TXEN   GND 14 13 B_3N/TXDIS ...
  • Page 25 Hardware Design 23 (48) Signal Name PROFIBUS Ethernet based Ethernet based DeviceNet CC-Link networks, Copper networks, fiber optic B_1P B_RXP B_1CEN B_SDA B_1N B_RXN B_2P B_SDP B_2CEN B_SCL B_2N B_SDN B_3P B_TXEN B_3CEN B_3N B_XDIS B_4P B_TXP B_4CEN B_4N B_TXN NW_LED4B NW_LED4B NW_LED4B...
  • 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.
  • Page 30: Network Configuration Switches

    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.
  • Page 31: Io Expansion Mechanism

    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.
  • Page 32 Hardware Design 30 (48) SW DIP-8 INPUT1_0 INPUT1_1 INPUT1_2 INPUT1_3 INPUT1_4 INPUT1_5 INPUT1_6 INPUT1_7 Network address SW DIP-8 INPUT2_0 INPUT2_1 INPUT2_2 INPUT2_3 INPUT2_4 INPUT2_5 INPUT2_6 INPUT2_7 Network baud rate, stop bits and parity nReset 74LVC74 Fig. 15 SCM-1202-130 1.1 en-US Anybus ®...
  • Page 33: Technical Specification

    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Ω...
  • Page 34: Regulatory Compliance

    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.
  • Page 35: B Mechanical Specification

    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...
  • Page 36: Footprint

    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...
  • Page 37: Network Connector Boards (Optional)

    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.
  • Page 38 Appendix B: Mechanical Specification 36 (48) 40,3 16,8 3,5 ± 0,20 Fig. 20 SCM-1202-130 1.1 en-US Anybus ® CompactCom ™ B40 Modbus Serial User Manual...
  • Page 39: Assembly

    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 ®...
  • Page 41: C Firmware Upgrade

    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...
  • Page 42: Using Firmware Manager Ii

    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.
  • Page 43: Using Ftp

    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.
  • Page 44: D The Anybus State Machine

    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...
  • Page 45: State Dependent Actions

    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.
  • Page 46: E Implementation Guidelines

    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.
  • Page 47: Power Supply Considerations

    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...
  • Page 49: F Network Interface Examples

    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...
  • Page 50 Design Example 10 and 100 Mbit Ethernet Network Interface with RJ-45 connectors Ethernet Trafo 7490100111A (Würth Elektronik Gmbh) B_1P TDB+ TDB+ TDB- B_1P/RXP RDB+ B_1CEN/SDA B_1N TDB- B_1N/RXN B_1CEN RDB- B_2P/SDP B_2CEN/SCL B_2CEN B_2N/SDN SHIELDB B_2P RDB+ RJ-45 connector B_3P/TXEN SS-60300-032 (Bel stewart) B_3CEN/RX B_2N...
  • Page 51 Design Example Ethernet Fibre Optics Network Interface J1, pin #1 10uF/10V 100nF/16V B_1P/RXP B_1CEN/SDA B_1N/RXN B_2P/SDP Port B B_2CEN/SCL B_2N/SDN 820R B_3P/TXEN B_3CEN/RX B_3N/TXDIS B_SDN 100nF/16V 100nF/16V B_SDP B_SDPA B_RXN B_RXNA B_4P/TXP/TX B_RXP B_RXPA B_4CEN/CD/BUSP_N B_TXP B_4N/TXN/TX_N B_TXN NW_LED4B_N 150R 150R NW_LED4A_N QFBR-5978Z...
  • Page 52 Design Example 10 and 100 Mbit Ethernet Network Interface with M12 connectors Ethernet Trafo 7490100111A (Würth Elektronik Gmbh) RDB+ B_1P TDB+ TDB+ B_1P/RXP RDB- B_1CEN/SDA B_1N TDB- TDB- B_1N/RXN SHIELDB B_1CEN Female D-coded M12 connector B_2P/SDP B_2CEN/SCL B_2CEN B_2N/SDN B_2P RDB+ B_3P/TXEN B_3CEN/RX...
  • Page 53 © 2019 HMS Industrial Networks Box 4126 300 04 Halmstad, Sweden info@hms.se SCM-1202-130 1.1 en-US / 2019-05-16 / 13284...

Table of Contents