background image

About the Anybus CompactCom B40 Modbus Serial

6 (48)

2.2

Features

Simple implementation and great connectivity flexibility

Serial Communications Interface (UART), that can be connected to almost any standard
microcontroller

Standard Modbus RTU serial protocol

Galvanic isolation integrated

Low power consumption

Control pins for status indications according to each network standard

Separate network connector board available

Precompliance tested for network conformance (where applicable).

Precompliance tested for CE & UL. Contact HMS Industrial Networks for further information.

All Anybus CompactCom 40 Modbus Serial will be precertified for network conformance.
This is done to ensure that the final product can be certified, but it does not necessarily
mean that the final product does not require recertification. Contact HMS Industrial
Networks for further information.

2.3

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.

Host processor

with application

Anybus 

CompactCom

Modbus

Serial

Process Data

Data

Indus

trial Ne

tw

ork

Modbus RTU

Fig. 1

2.4

How to Use this Manual

This manual includes the following:

1.

The implemented Modbus RTU application interface and how to use it (host application).

2.

Instructions on how to indesign the Anybus CompactCom in your product (hardware design).

Network specific configuration, performed from the network, is described in the Anybus
CompactCom 40 Modbus Serial Network Guides.

Anybus

®

CompactCom

B40 Modbus Serial User Manual

SCM-1202-130 1.1 en-US

Содержание Anybus CompactCom B40 Modbus Serial

Страница 1: ...Anybus CompactCom B40 Modbus Serial USER MANUAL SCM 1202 130 1 1 en US ENGLISH ...

Страница 2: ...of possible applications of the product and because of the many variables and requirements associated with any particular implementation HMS Industrial Networks cannot assume responsibility or liability for actual use based on the data examples or illustrations included in this document nor for any damages incurred during installation of the product Those responsible for the use of the product mus...

Страница 3: ... To Set Up and Initialize the Modbus Communication 8 3 2 Supported Modbus Commands 10 3 3 Modbus Register Map 11 4 Hardware Design 13 4 1 Host Application Interface 13 4 2 Network Connector 21 4 3 Network Configuration Switches 28 4 4 IO Expansion Mechanism 29 A Technical Specification 31 A 1 Environmental 31 A 2 Shock and Vibration 31 A 3 Electrical Characteristics 31 A 4 Regulatory Compliance 32...

Страница 4: ...are Upgrade 39 C 1 Using Firmware Manager II 40 C 2 Using FTP 41 D The Anybus State Machine 42 D 1 General Information 42 D 2 State Dependent Actions 43 E Implementation Guidelines 44 E 1 General 44 E 2 Example 44 E 3 Power Supply Considerations 45 F Network Interface Examples 47 ...

Страница 5: ...ument History Version Date Description 1 0 2019 04 30 First release 1 1 2019 05 16 Updated for PROFINET release 1 3 Document Conventions Ordered lists are used for instructions that must be carried out in sequence 1 First do this 2 Then do this Unordered bulleted lists are used for Itemized information Instructions that can be carried out in any order and for action result type instructions This a...

Страница 6: ...stated Signals which are pulled to GND are connected to GND via a resistor Signals which are pulled to 3V3 are connected to 3V3 via a resistor Signals which are tied to GND are directly connected to GND Signals which are tied to 3V3 are directly connected to 3V3 1 4 1 Pin Types The pin types of the connectors are defined in the table below The pin type may be different depending on which mode is u...

Страница 7: ...ent of fieldbus or network The host application connector provides an interface between the host application Modbus RTU and the Anybus CompactCom while the network connector provides access to the chosen network The Anybus CompactCom acts as a Modbus RTU slave on the host application side The Anybus CompactCom 40 family offers a wide range of functionality For advanced products and applications we...

Страница 8: ...it does not necessarily mean that the final product does not require recertification Contact HMS Industrial Networks for further information 2 3 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 Host processor with applicati...

Страница 9: ...face p 8 2 4 2 Hardware Design When creating your hardware design refer to Hardware Design p 13 for descriptions of connectors etc Please note that some inputs should be strapped to ensure correct behavior Dimensions and other mechanical information is presented in Mechanical Specification p 33 Technical specifications like temperature limits and electrical specifications are given in Technical Sp...

Страница 10: ...e switch settings to register 0x5200 0x5201 Application switch 1 and Application switch 2 Optional for networks that do not require these settings Example Using the Modbus function Write Single Holding Register to set the Node Address for a network using a node address for identification NOTE Node address 7 will be used on the Industrial Network e g PROFIBUS Address Function Code Data CRC Register...

Страница 11: ...mpactCom and start the initialization sequence from step 1 See RESET Reset Input p 18 Example The Modbus function Read Write Multiple Registers allows you to both read and write registers with one command In this example the status registers and the read process data registers are read at the same time as the write process data registers are written Command Address Function Code Data CRC Read Star...

Страница 12: ...content depends on which network is connected to the Anybus CompactCom The data field part of the telegram is composed by concatenating the content for each configuration option to include Note that the total amount of configuration options to set is limited to 244 bytes of data Please refer to the applicable network appendix for more information The content of the telegram will be stored and used...

Страница 13: ...up 1 NW_INIT 2 WAIT_PROCESS 3 IDLE 4 PROCESS_ACTIVE 5 ERROR 6 reserved 7 EXCEPTION 3 SUP 0 Module is not supervised 1 Module is supervised by another network device The SUP bit indicates the overall status of the network communication For example on CIP this bit indicates that the master has a connection towards the module Exactly how this functionality should be handled the offered level of secur...

Страница 14: ...ault R W in SETUP state Read only in other states 0x5102 Number of Write Parameters Read Write Number of parameters mapped to Write process data If the value written is bigger than module can handle the value will automatically be adjusted to max possible value according to network after the SETUP state R W in SETUP state Read only in other states 0x5103 Number of Read Parameters Read Write Number...

Страница 15: ...p 33 For electrical characteristics and other technical specifications see Technical Specification p 31 The optional connector board is described in Network Connector Boards Optional p 35 How to mount the Anybus CompactCom on the host application PCB is described in Assembly p 37 A typical example of how to design the network interface is offered in Network Interface Examples p 47 4 1 Host Applica...

Страница 16: ...NPUT1_7 12 11 INPUT1_6 GND 14 13 16 15 GND 18 17 20 19 INPUT2_6 22 21 INPUT2_7 GND 24 23 INPUT2_5 INPUT2_3 26 25 INPUT2_4 GND 28 27 INPUT2_2 MD0 30 29 INPUT2_1 OM0 32 31 INPUT2_0 GND 34 33 OM1 36 35 OM2 DE 38 37 GND 40 39 42 41 GND 44 43 46 45 48 47 GND 50 49 TX OM3 52 51 RX MI0 54 53 MI1 GND 56 55 3V3 Fig 4 See Pin Overview p 15 for information on how each pin is used Anybus CompactCom B40 Modbus...

Страница 17: ...chanism p 29 5 INPUT1_1 I 6 INPUT1_2 I 7 INPUT1_3 I 9 INPUT1_4 I 10 INPUT1_5 I 11 INPUT1_6 I 12 INPUT1_7 I 13 not used I Connect directly to GND 15 I 16 O I 17 not used I Connect directly to 3V3 19 I 20 not used O Leave unconnected 31 INPUT2_0 I These inputs are used to set baud rate stop bits and parity of the Anybus CompactCom See Communication Settings p 19 The signals can also be used to conne...

Страница 18: ... shall have a value between 1 kΩand 2 2 kΩ 32 OM0 I Set OM2 OM1 OM0 to 0 1 1 For more information see Settings p 17 33 OM1 I 35 OM2 I 54 MI0 O Low at power up and before reset release See Settings p 17 Please not that this pin can be used as SYNC pin PROFINET Used at conformance testing 53 MI1 O Tied to 3V See Settings p 17 30 MD0 O Tied to GND See Settings p 17 3 RESET I See RESET Reset Input p 1...

Страница 19: ... to GND on the Anybus CompactCom RX TX I O 51 52 Serial Communications Signals used for Modbus Communication TX is used as OM3 during setup Module Detection This signal is internally connected to GND and can be used by the host application to detect whether a module is present or not When connecting an external pull up resistor a low signal indicates that a module is present If not used leave this...

Страница 20: ...V Power On Power Stable tB tA VIL VIH t t Fig 5 Powerup time limits are given in the table below Symbol Min Max Definition tA Time until the power supply is stable after power on the duration depends on the power supply design of the host application and is thus beyond the scope of this document tB 1 ms Safety margin Restart The reset pulse duration must be at least 10 µs in order for the Anybus C...

Страница 21: ...XCEPTION 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 INPUT2 bits 1 0 value Stop bits Parity 0 1 Even 1 1 Odd 2 2 None 3 1 None INPUT2 bits 7 2 value Baud rate 0 2 reserved 3 9600 4 19200 5 38400 6 57600 7 reserved 8 115200 9 625000 10 64 reserved Anybus CompactCom B40 Modbus Serial User...

Страница 22: ...o configure 1 stop bit even parity and baud rate 19200 3V3 3V3 INPUT1_2 INPUT1_5 INPUT1_1 INPUT1_0 INPUT1_3 INPUT1_4 INPUT1_7 INPUT1_6 INPUT2_2 INPUT2_5 INPUT2_1 INPUT2_0 INPUT2_3 INPUT2_4 INPUT2_7 INPUT2_6 Modbus address setting 1 Modbus baud rate setting 4 19200 Modbus stop bit setting 0 1 stop bit even Fig 7 Anybus CompactCom B40 Modbus Serial User Manual SCM 1202 130 1 1 en US ...

Страница 23: ... identical or similar to the ones on the corresponding Anybus CompactCom M40 module Examples on how to design the network access circuitry when not using the connector board are shown in Network Interface Examples p 47 The brick has a standard 1 27 mm 52 pin header surface mounted to the bottom side of the board as network interface 1 2 52 51 Top view Fig 9 The pictures shows the pinning of the co...

Страница 24: ... SDN A_3CEN 38 37 A_3P TXEN GND 40 39 A_3N TXDIS A_4CEN BUSP 42 41 A_4P TXP GND 44 43 A_4N TXN C_RX 46 45 C_TX C_BUSP 48 47 C_TXEN GATE2 50 49 GATE1 GND 52 51 3V3 Fig 10 4 2 1 Overview Depending on network the pins have different names and different functionalities Presented below is an overview of all pins except GND and 3V3 More detailed descriptions of the signals are described for each availab...

Страница 25: ...A NW_LED1A NW_LED1A NW_LED1A NW_LED1A 29 A_1P A_RXP 30 A_1CEN A_SDA 31 A_1N A_RXN 33 A_2P A_SDP 34 A_2CEN A_SCL 35 A_2N A_SDN 37 A_3P A_TXEN 38 A_3CEN 39 A_3N A_TXDIS 41 A_4P A_TXP 42 A_4CEN 43 A_4N A_TXN 45 C_TX C_TX C_TX 46 C_RX C_RX C_RX 47 C_TXEN C_TXEN 48 C_BUSP_N 49 GATE1 GATE1 GATE1 50 GATE2 GATE2 GATE2 At the moment the following copper wired Ethernet protocols are available EtherNet IP an...

Страница 26: ...he 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 1 2 3 and 4 Fig 11 Unused fibre optic connector pins should be connected as follows 100R between TXP and TXN 820R between SDN and 3V3 resulting in 2 V on SDN 1k5 between SDP and 3V3 resulting in 1 5 V on SDP Indicates that no si...

Страница 27: ... O 17 Forth pair negative signal Used for Gigabit Ethernet A A_1P I O 29 First pair positive signal A_1CEN Power 30 Center tap voltage for first pair A_1N I O 31 First pair negative signal A_2P I O 33 Second pair positive signal A_2CEN Power 34 Center tap voltage for second pair A_2N I O 35 Second pair negative signal A_3P I O 37 Third pair positive signal Used for Gigabit Ethernet A_3CEN Power 38...

Страница 28: ...signal The differential signals Rx and Tx should be routed as differential pairs with a characteristic impedance of 100 Ω differentially Rx Channel Design Requirements The Rx channel is designed for an optical transceiver output that has an AC coupled 100 Ω differential signal with 100 1000 mV amplitude e g LVPECL low voltage positive emitter coupled logic Each line is terminated with 50 Ω to a co...

Страница 29: ... interference collected by the transmission line common mode characteristics and it can thus be ignored by the differential input instead of becoming a differential mode interference that would corrupt the signal Below is a figure describing three different ways to connect a transceiver output to an SD channel of the brick Brick Trans ceiver Trans ceiver Trans ceiver Brick Brick a Differential LVP...

Страница 30: ... network interface G Y 220 Ω 220 Ω NW_LED4A NW_LED4B Fig 14 4 3 Network Configuration Switches Modbus registers 0x5200 Application switch 1 and 0x5201 Application switch 2 can be used for network configuration Application switch 1 is generally used to configure the node address and application switch 2 to configure the network baud rate It is recommended to provide means for the end user to set th...

Страница 31: ...es The Anybus CompactCom will sample the INPUT1 and INPUT2 pins to determine the Modbus communication settings before Modbus communication is performed When the first Modbus telegram has been exchanged the DE signal can be used to alter the INPUT1 and INPUT2 signals to sample the physical switches The application processor can then read the INPUT1 and INPUT2 pins in Modbus register 0x0FFD Anybus s...

Страница 32: ...UT2_3 INPUT2_4 INPUT2_7 INPUT2_6 Modbus baud rate setting 4 19200 Modbus stop bit setting 0 1 stop bit even 3V3 3V3 3V3 3V3 SW DIP 8 SW DIP 8 Network address Network baud rate stop bits and parity DE nReset CLK CLR PRE D Q Q 74LVC74 Modbus address setting 1 Fig 15 Anybus CompactCom B40 Modbus Serial User Manual SCM 1202 130 1 1 en US ...

Страница 33: ...e tested for 30 g A 2 2 Sinusoidal Vibration The Anybus CompactCom B40 Modbus Serial is tested according to IEC 68 2 6 Frequency range 10 500 Hz Amplitude 10 49 Hz 0 35 mm Acceleration 50 500 Hz 5 g Sweep rate 1 oct min 10 double sweep in each of the three mutually perpendicular directions A 3 Electrical Characteristics Failure to follow the requirements may lead to permanent hardware damage It is...

Страница 34: ...E Since the Anybus CompactCom is considered a component for embedded applications it cannot be CE marked as an end product However the Anybus CompactCom 40 family is pre compliance tested in a typical installation providing that all modules are conforming to the EMC directive in this installation The EMC pre testing has been conducted according to the following standards Emission EN61000 6 4 EN550...

Страница 35: ...rge ESD Use ESD prevention measures to avoid damage All dimensions are in millimeters tolerance 0 10 mm unless otherwise stated B 1 Anybus CompactCom B40 Modbus Serial The dimensions for the Anybus CompactCom B40 Modbus Serial are given in the picture below 36 36 33 13 2 x 3 2 1 5 0 25 2 3 0 25 27 0 20 4 5 0 20 1 27 0 05 1 27 2x26p 2x28p 8 max module height Pin 1 Application interface Pin 1 Networ...

Страница 36: ...he picture below 33 2xM3 27 8 5 Pin 1 Application interface Pin 1 Network interface Outline of brick Top view Fig 17 B 3 Height Restrictions All dimensions are in millimeters 1 5 2 3 27 4 5 8 max module height Fig 18 The maximum height occupied by onboard components of the Anybus module is 8 mm To ensure isolation it is recommended to add an additional 2 5 mm on top of these dimensions Anybus Comp...

Страница 37: ...opper based Ethernet network interfaces carries two RJ45 connectors 1 5 0 25 2 3 0 25 3 5 0 20 2 9 12 7 37 8 15 6 40 20 18 32 35 3 2 Fig 19 B 5 Connector Board for Fiber Optic Ethernet The connector board for the Fiber Optic Ethernet network interface carries two fibre optic transceivers Anybus CompactCom B40 Modbus Serial User Manual SCM 1202 130 1 1 en US ...

Страница 38: ...Appendix B Mechanical Specification 36 48 1 5 0 25 2 3 0 25 3 5 0 20 2 9 13 2 40 3 16 8 20 40 18 32 44 5 3 2 Fig 20 Anybus CompactCom B40 Modbus Serial User Manual SCM 1202 130 1 1 en US ...

Страница 39: ...information The Anybus CompactCom B40 Modbus Serial can either be connected to the application board using headers or soldered directly to the host application PCB Fig 21 Suggested components Header Application interface Samtec CLP 128 02 L D 56 pin Network interface Samtec CLP 126 02 L D 52 pin Stand off M3 Pemnet SMTSO M3 4 ET The screw standoffs are typically 4 mm tall If the Anybus CompactCom ...

Страница 40: ...cation interface Pin 1 Network interface Pin 1 Network interface PCB layout Standoffs typ 4 mm FE Outline of brick Outline of connector board M3 Standoff with internal thread size M3 Top view Top view Fig 22 Anybus CompactCom B40 Modbus Serial User Manual SCM 1202 130 1 1 en US ...

Страница 41: ...graded Ethernet versions with FTP enabled Use the Firmware Manager II tool or download the firmware to the designated folder in the file system Ethernet versions with FTP disabled Fieldbus versions Unplug the Anybus CompactCom from the host application pcb and use the Anybus CompactCom 40 Starter Kit to perform the firmware upgrade See the starter kit documentation for further information Anybus C...

Страница 42: ...g the firmware folder into the window to add the new firmware to the repository Close the Firmware Repository window 5 In the scan window under the Available Networks tab select the appropriate firmware for the module Click the Change Network button A confirmation window will appear Click Yes to start the download of the new firmware Please make sure that download is completely finished before con...

Страница 43: ...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 After the firmware is installed the firmware file is deleted from the firmware directory Anybus CompactCom B40 Modbus Serial User Manual SCM 1202 130 1 1 en US ...

Страница 44: ... 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 SETUP 00h WAIT_PROCESS 02h PROCESS_ACTIVE 04h IDLE 03h EXCEPTION 07h Power up From all states ERROR 05h NW_INIT 01h Fig 24 Anybus CompactCom B40 Modbus Serial User Manual SCM 1202 130 1 1 en US ...

Страница 45: ...ed or static unchanged unless offline action is set to clear in which case the Read Process Data is cleared in this state The host application may act upon the Read Process Data or go to an idle state PROCESS_ACTIVE Normal data handling is possible Perform normal data handling ERROR There is at least one serious network error EXCEPTION The module has ceased all network participation due to a host ...

Страница 46: ...t is important to fully understand the interface to take correct design decisions in order to obtain a stable and reliable design E 2 Example The example in the figure below shows an implementation with Modbus Serial communication Host Application CPU 3 3V 3V3 3V3 3V3 OM0 OM1 OM2 Tx OM3 Rx IRQ RESET MI0 SYNC MI1 MD Rx Tx GPIO5 GPIO6 GPIO7 GPIO8 GPIO10 INPUT2_0 INPUT2_1 INPUT2_2 INPUT2_3 INPUT2_4 I...

Страница 47: ...0 mA Class B up to 500 mA Class C up to 1000 mA Please note that the power supply classifications take into account that the power budget is shared with a full fieldbus circuitry e g the appropriate connector board and NW_LEDs with maximized consumption 20 mA each The following table lists the currently supported networking systems and their corresponding class Network Class A Class B Class C Devi...

Страница 48: ...C1 3 3 V GND Fig 26 E 3 3 3 3 V Regulation The following example uses the LT1767 from Linear Technology to provide a stable 3 3 V power source for the module Note that all capacitors in this example are of ceramic type 5V SS14 BAV70 22uF 6 3V 4k7 LT1767 10uH 100nF 16V 100nF 16V 1 5nF 50V 10uF 6 3V Vin FB Vsw GND Vc SHDN SYNC BOOST VDD 3 3V GND C1 C2 Fig 27 For detailed information regarding this e...

Страница 49: ...F Network Interface Examples 47 48 F Network Interface Examples This section offers a typical example of how to design the network interface Anybus CompactCom B40 Modbus Serial User Manual SCM 1202 130 1 1 en US ...

Страница 50: ...P TXEN B_1CEN SDA B_1N RXN B_2P SDP A_1CEN SDA A_1N RXN A_2P SDP A_3CEN RX TDB RDB RDB TDB TDB TDB RDB SHIELDB RDB RDA SHIELDA RDA TDA TDA TDA TDA RDA RDA 3V3 3V3 3V3 FE FE FE FE J4 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 C1 1nF 2kV R10 75R C4 1nF 2kV R1 1M C6 100nF 16V TR1 Ethernet Trafo TR2 Ethernet Trafo R8 75R J5 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 R4 75R C3 100nF 16V C7 100nF 16V R3 7...

Страница 51: ...D 5 RD 6 TxVCC 7 TxGND 8 TxDIS 9 TD 10 TD 11 SCL 12 GND 13 13 GND 14 14 R8 150R C8 4u7F 6V3 C4 4u7F 6V3 C7 100nF 16V C16 100nF 16V C10 4u7F 6V3 C9 100nF 16V R5 820R R1 0R J1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 C6 100nF 16V B_SDPA A_SDPA A_SDN A_RXPA A_RXNA B_RXPA B_RXNA A_2CEN SCL B_2P SD...

Страница 52: ...B_N NW_LED2A_N NW_LED2B_N NW_LED3A_N NW_LED3B_N NW_LED4A_N NW_LED4B_N B_4N TXN TX_N B_4CEN CD BUSP_N B_4P TXP TX B_3N TXDIS B_3CEN RX B_3P TXEN B_1CEN SDA B_1N RXN B_2P SDP A_1CEN SDA A_1N RXN A_2P SDP A_3CEN RX FE FE FE FE 3V3 3V3 3V3 R1 1M C6 100nF 16V TR1 Ethernet Trafo TR2 Ethernet Trafo C4 1nF 2kV C3 100nF 16V C7 100nF 16V C1 1nF 2kV J5 Female D coded M12 connector 1 2 3 4 6 J6 B40 1 connecto...

Страница 53: ...last page 2019 HMS Industrial Networks Box 4126 300 04 Halmstad Sweden info hms se SCM 1202 130 1 1 en US 2019 05 16 13284 ...

Отзывы: