HMS Anybus CompactCom B40 Modbus Serial User manual

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

Important User Information
Disclaimer
The information in this document is for informational purposes only. Please inform HMS Industrial Networks of any
inaccuracies or omissions found in this document. HMS Industrial Networks disclaims any responsibility or liability
for any errors that may appear in this document.
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. HMS Industrial Networks makes no commitment
to update or keep current the information in this document.
The data, examples and illustrations found in this document are included for illustrative purposes and are only
intended to help improve understanding of the functionality and handling of the product. In view of the wide range
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 must acquire sufficient knowledge in order to ensure that the
product is used correctly in their specific application and that the application meets all performance and safety
requirements including any applicable laws, regulations, codes and standards. Further, HMS Industrial Networks will
under no circumstances assume liability or responsibility for any problems that may arise as a result from the use of
undocumented features or functional side effects found outside the documented scope of the product. The effects
caused by any direct or indirect use of such aspects of the product are undefined and may include e.g. compatibility
issues and stability issues.
Anybus®CompactCom™B40 Modbus Serial User Manual SCM-1202-130 1.1 en-US

Anybus®CompactCom™B40 Modbus Serial User Manual SCM-1202-130 1.1 en-US
Table of Contents Page
1 Preface ................................................................................................................................. 3
1.1 About this Document........................................................................................................3
1.2 Document History ............................................................................................................3
1.3 Document Conventions.....................................................................................................3
1.4 Document Specific Conventions..........................................................................................4
1.5 Trademark Information.....................................................................................................4
2 About the Anybus CompactCom B40 Modbus Serial........................................................ 5
2.1 General Information .........................................................................................................5
2.2 Features.........................................................................................................................6
2.3 Overview........................................................................................................................6
2.4 How to Use this Manual....................................................................................................6
3 Modbus Application Interface ............................................................................................ 8
3.1 How 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
B Mechanical Specification .................................................................................................. 33
B.1 Anybus CompactCom B40 Modbus Serial ........................................................................... 33
B.2 Footprint...................................................................................................................... 34
B.3 Height Restrictions ......................................................................................................... 34
B.4 Network Connector Boards (Optional) ............................................................................... 35
B.5 Connector Board for Fiber Optic Ethernet .......................................................................... 35
B.6 Assembly...................................................................................................................... 37

Anybus®CompactCom™B40 Modbus Serial User Manual SCM-1202-130 1.1 en-US
C Firmware 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

Preface 3 (48)
1 Preface
1.1 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. However if advanced network specific functionality is to be
used, in-depth knowledge of network networking internals and/or information from the official
network specifications may be required. In such cases, the persons responsible for the
implementation of this product should either obtain the network specification to gain sufficient
knowledge or limit their implementation in such a way that this is not necessary.
For additional information, please visit the support website at www.anybus.com/support.
1.2 Document 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 action...
→ leads to this result
Bold typeface indicates interactive parts such as connectors and switches on the hardware, or
menus and buttons in a graphical user interface.
Monospaced text is used to indicate program code and other
kinds of data input/output such as configuration scripts.
This is a cross-reference within this document: Document Conventions, p. 3
This is an external link (URL): www.hms-networks.com
This is additional information which may facilitate installation and/or operation.
This instruction must be followed to avoid a risk of reduced functionality and/or damage
to the equipment, or to avoid a network security risk.
Anybus®CompactCom™B40 Modbus Serial User Manual SCM-1202-130 1.1 en-US

Preface 4 (48)
Caution
This instruction must be followed to avoid a risk of personal injury.
WARNING
This instruction must be followed to avoid a risk of death or serious injury.
1.4 Document Specific Conventions
• The terms “Anybus” or “module” refers to the Anybus CompactCom module.
• The terms “host” or “host application” refer to the device that hosts the Anybus.
• Hexadecimal values are written in the format NNNNh or 0xNNNN, where NNNN is the
hexadecimal value.
• A byte always consists of 8 bits.
• All dimensions in this document have a tolerance of ±0.10 mm unless otherwise stated.
• Outputs are TTL compliant unless otherwise 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 used.
Pin type Definition
I Input
O Output
I/O Input/Output (bidirectional)
OD Open Drain
Power Pin connected directly to module power supply, GND or 3V3
1.5 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.
Anybus®CompactCom™B40 Modbus Serial User Manual SCM-1202-130 1.1 en-US

About the Anybus CompactCom B40 Modbus Serial 5 (48)
2 About the Anybus CompactCom B40 Modbus Serial
2.1 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. Typical applications are basic level I/O blocks, temperature controllers, measuring
devices, and sensors.
The Anybus CompactCom B40 Modbus Serial software interface is designed to be network
protocol independent, making it possible to support several networking systems using the same
application software code/driver.
The Anybus CompactCom B40 Modbus Serial share footprint and electrical interface with the
other members of the product family, independent 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 recommend the standard Anybus CompactCom 40.
For general information about other products using the Anybus CompactCom 40 platform,
consult www.anybus.com/support.
This a class A product. In a domestic environment, this product may cause radio
interference in which case the user may be required to take adequate measures.
This product contains ESD (Electrostatic Discharge) sensitive parts that may be damaged if
ESD control procedures are not followed. Static control precautions are required when
handling the product. Failure to observe this may cause damage to the product.
Anybus®CompactCom™B40 Modbus Serial User Manual SCM-1202-130 1.1 en-US

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 applicaon
Anybus
CompactCom
Modbus
Serial
Process DataData
Industrial Network
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

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. 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 Specification, p. 31.
Anybus®CompactCom™B40 Modbus Serial User Manual SCM-1202-130 1.1 en-US

Modbus Application Interface 8 (48)
3 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.
3.1 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. Steps 2 - 6 includes examples of what the Modbus messages can look like.
1. Set Modbus address, baud rate, stop bits, and parity according to Communication Settings,
p. 19.
See Hardware Design, p. 13 for information on how to connect the corresponding pins.
2. Write initial values to the Write Process Data area (registers 0x0000-). (Optional)
Example – Using the Modbus function Write Multiple Holding Registers to set
initial values for 10 Write Process Data registers (20 bytes) to CompactCom with address 5.
Address Function Code Data CRC
Starting
Address
Quantity of
Registers
Byte Count Register
Values
0x05 16 0x0000 10 20 20 bytes of
data
CRC-16-ANSI
3. Write 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 Address Register Value
0x05 6 0x5200 7 CRC-16-ANSI
4. Set Offline Action for Read Process Data in register 0x5101 (Clear or No action). (Oprtional)
Example – Using the Modbus function Write Single Holding Register to configure
Clear as the Offline Action for Read Process Data (all data will be 0 if the network is
offline).
Address Function Code Data CRC
Register Address Register Value
0x05 6 0x5101 0 CRC-16-ANSI
5. Set the size of the Write Process Data area to register 0x5102. Data type (byte or word) is
configured with register 0x5100.
Example – Using the Modbus function Write Single Holding Register to configure
Write Process Data size 20 bytes. Assuming default value of register 0x5100, i.e. data type is
UINT8.
Address Function Code Data CRC
Register Address Register Value
0x05 6 0x5102 20 CRC-16-ANSI
Anybus®CompactCom™B40 Modbus Serial User Manual SCM-1202-130 1.1 en-US

Modbus Application Interface 9 (48)
6. 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.
Address Function Code Data CRC
Register Address Register Value
0x05 6 0x5103 18 CRC-16-ANSI
7. The CompactCom is now ready to start communicating with the network master with the
configured settings. Start cyclical read/write of process data to register 0x0000- and 0x1000-.
Also consider to cyclically monitor the values of register 0x0FFD (Anybus Switch Status),
0x0FFE (LED status), and 0x0FFF (Anybus Status).
If a reset request is indicated in the Anybus Status register, the host application must reset
the CompactCom, 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
Starting
Address
Quantity
to Read
Write
Starting
Address
Quantity
to Write
Write
Byte
Count
Write
Reg
Values
0x05 23 0x0FFD 12 0x0000 10 20 20 bytes
of data
CRC-16-ANSI
Response:
Address Function Code Data CRC
Read Byte Count Read Reg Values
0x05 23 24 24 bytes of data CRC-16-ANSI
The Anybus CompactCom will stay in state SETUP until values have been written to 0x5102 and
0x5103 (items no. 5 and 6 in the list above). The Anybus CompactCom will then change states to
WAIT_PROCESS, and the registers 0x5100-0x5103 will be read-only.
See also ..
•The Anybus State Machine, p. 42
Anybus®CompactCom™B40 Modbus Serial User Manual SCM-1202-130 1.1 en-US

Modbus Application Interface 10 (48)
3.2 Supported Modbus Commands
# Name Description
3Read multiple registers All mapped to the same register space.
4Read input registers
6Write single register
16 Write multiple registers
23 Read/Write registers
70 Anybus command Custom Modbus command, see below
3.2.1 Error Handling
• Modbus reads, addressing undefined registers, return zeroes.
• Modbus writes, addressing undefined registers, do not return any error.
• Modbus writes containing invalid data to registers do not return any error.
• Modbus writes, addressing read-only registers, do not return any error.
3.2.2 Endianess
• If 8-bit data types are mapped to Modbus registers, the first byte is mapped to LSB and the
second byte is mapped to MSB of the Modbus register.
3.2.3 Anybus Command (Modbus Function Code 70)
This command can be used to send an Anybus CompactCom message. Allowed 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 at the next startup. It is not necessary to
send this telegram at each startup. Instead it is recommended to send it once to customize the
Anybus CompactCom behavior.
Request format:
0 1 2
3 4 5 6 7 8 9 10–n
(n+1)-
(n+2)
Address Function Size Data Field CRC
(Address) 70 66 1 1 0 1 7 0 Size of
Data
Field
00-244 bytes of
data,
configuring the
Anybus
CompactCom
behavior
(CRC)
The content of the data field depends on which network is connected. Please refer to the applicable
network appendix for details.
Response format
0 1 2 3 4 5 6 7 8 9 10–11
Address Function Size CRC
(Address) 70 2 1 1 0 17 0 0 0 (CRC)
Anybus®CompactCom™B40 Modbus Serial User Manual SCM-1202-130 1.1 en-US

Modbus Application Interface 11 (48)
3.3 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/
Write
When the last byte of mapped process data is written, data is sent
to the network for consistency reasons.
0x0FFD Anybus Switch status Read only Value of INPUT1 and INPUT2 pins.
INPUT1:
INPUT2:
LSB
MSB
0x0FFE LED status Read only Bit field holding the current state of the network status LEDs as
follows:
Bit:
b0:
b1:
b2:
b3:
b4:
b5:
b6:
b7:
b8 - b15
Contents:
LED1A status (0=OFF, 1=ON)
LED1B status (0=OFF, 1=ON)
LED2A status (0=OFF, 1=ON)
LED2B status (0=OFF, 1=ON)
LED3A status (0=OFF, 1=ON)
LED3B status (0=OFF, 1=ON)
LED4A status (0=OFF, 1=ON)
LED4B status (0=OFF, 1=ON)
(reserved)
0x0FFF Anybus status Read/
Write
Anybus status register with two additional bits, Reset and Set
Default added.
Bit(s) Description
0 - 2 Anybus state (See The Anybus State Machine, p. 42)
0. Setup
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 security, and how to correctly activate
it is network specific and often depends on external
circumstances, e.g. configuration of the network as
well as other network devices. Whether use of the
SUP-bit is appropriate must therefore be decided for
each specific application and network.
4 -13 (reserved)
14 Set Default
0: No action
1: Application is requested to set “factory default” to
all parameters/settings. Application shall acknowledge
this by writing 1 to this bit to clear it.
15 Reset
0: No action
1: Application is requested to reset the Anybus
CompactCom
0x1000 - Read process data Read only Area is updated with new data from Network ONLY when address
0x1000 is read.
0x5003 Module type Read only Anybus CompactCom 40 (0x0403)
Anybus®CompactCom™B40 Modbus Serial User Manual SCM-1202-130 1.1 en-US

Modbus Application Interface 12 (48)
Register# Name Access Description
0x5004 Network type Read only 0x0089:
0x009B:
PROFINET IRT
EtherNet/IP
0x5005 Anybus Exception Code Read only 0x00:
0x01:
0x02:
0x03:
0x04.
0x05:
0x06:
0x07:
0x08:
0x09:
0x0A:
0x0B:
0x0C:
No exception
Application timeout
Invalid device address
Invalid communication settings
Major unrecoverable application event
Waiting for application reset
Invalid process data configuration
Invalid application response
NVS memory checksum error
Functional Safety Module error
Insufficient application implementation
Missing serial number
File system is corrupt
0x5100 Data type Read/
Write
Data type of the parameters that are mapped to Write and Read
process data.
UINT8:
UINT16:
0x0004 (Default)
0x0005
R/W in SETUP state.
Read only in other states.
0x5101 Offline action Read/
Write
Action taken when the Anybus CompactCom is not in PROCESS_
ACTIVE state.
0x0000:
0x0001:
Clear “Read Process data area”
No action (Default)
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 of parameters mapped to Read 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.
0x5200 Application switch 1 Read/
Write
This register can be used for the node address.
Value written to this register may be defined by DIP switches on
the application. See Network Configuration Switches, p. 28.
0x5201 Application switch 2 Read/
Write
This register can be used for defining stop bits and baud rate.
Value written to this register may be defined by DIP switches on
the application. See Network Configuration Switches, p. 28.
Anybus®CompactCom™B40 Modbus Serial User Manual SCM-1202-130 1.1 en-US

Hardware Design 13 (48)
4 Hardware Design
Information needed to design the hardware for a product embedding the Anybus CompactCom
B40 Modbus Serialis presented later in this section. This includes mechanical and electrical
specification, connector pinnings etc. An example on how to design a network interface is also
included. An optional connector board is available.
• For the host application and network interfaces, see Hardware Design, p. 13
• For further implementation guidelines see Implementation Guidelines, p. 44
• For brick dimensions, footprint dimensions and height restrictions, see Mechanical
Specification, 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 Application Interface
The host application connector provides an interface between the host application and the
Anybus CompactCom B40 Modbus Serial.
Pin 1
Application
interface
Pin 1
Network
interface
Outline of brick
Top view
Fig. 2
The connector is implemented by a standard 1.27 mm 56 pin header surface mounted to the
bottom side of the PCB.
Anybus®CompactCom™B40 Modbus Serial User Manual SCM-1202-130 1.1 en-US

Hardware Design 14 (48)
1
256
55
Top view
Fig. 3
The picture shows the pinning of the mating connector on the host application as seen from the
top.
GND2 13V3
INPUT1_04 3RESET
INPUT1_26 5INPUT1_1
GND8 7INPUT1_3
INPUT1_510 9INPUT1_4
INPUT1_712 11 INPUT1_6
GND14 13
16 15
GND18 17
20 19
INPUT2_622 21 INPUT2_7
GND24 23 INPUT2_5
INPUT2_326 25 INPUT2_4
GND28 27 INPUT2_2
MD0 30 29 INPUT2_1
OM032 31 INPUT2_0
GND34 33 OM1
36 35 OM2
DE 38 37
GND40 39
42 41
GND44 43
46 45
48 47
GND50 49
TX/OM352 51 RX
MI0 54 53 MI1
GND56 55 3V3
Fig. 4
See Pin Overview, p. 15 for information on how each pin is used.
Anybus®CompactCom™B40 Modbus Serial User Manual SCM-1202-130 1.1 en-US

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.
Pin Signal
Name
Type Notes
4 INPUT1_0 I These inputs are used to set the Modbus address of the Anybus CompactCom
See Communication Settings, p. 19
The signals can also be used to connect a DIP switch, see IO Expansion Mechanism, 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) IConnect directly to GND
15 I
16 O, I
17 (not used) IConnect directly to 3V3
19 I
20 (not used) OLeave 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 connect a DIP switch, see IO Expansion Mechanism, p.
29.
29 INPUT2_1 I
27 INPUT2_2 I
26 INPUT2_3 I
25 INPUT2_4 I
23 INPUT2_5 I
22 INPUT2_6 I
21 INPUT2_7 I
49 (not used) OLeave unconnected
48 O
47 O
46 O
45 O
43 O
42 O
41 O
37 (not used) IConnect directly to 3V3
39 I
36 I
38 DE O Active high Data Enable for RS485 transceiver
See DE (Data Enable), p. 17
Anybus®CompactCom™B40 Modbus Serial User Manual SCM-1202-130 1.1 en-US

Hardware Design 16 (48)
Pin Signal
Name
Type Notes
51 RX I Receive Input for Modbus communication
• Direction: Host application -> Anybus CompactCom
• Idle state = High
52 TX / OM3 I/O Transmit Output for Modbus communication
• Direction: Anybus CompactCom -> Host application
• Idle state = High
This pin doubles as OM3 strapping input on Anybus CompactCom. Connect a pull-
down resistor on the application for this pin in Modbus serial mode. The pull-down
resistor 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. 18
4.1.2 Power Supply Pins
Signal Type Pin Description
GND Power 2, 8, 14, 18, 24,
28, 34, 40, 44,
50, 56
Ground
Power and signal ground reference.
3V3 Power 1, 55 3.3 V power supply.
Anybus®CompactCom™B40 Modbus Serial User Manual SCM-1202-130 1.1 en-US

Hardware Design 17 (48)
4.1.3 Settings
Signal Name Type Pin Description
OM3
OM2
OM1
OM0
I
I
I
I
52
35
33
32
Set [OM3, OM2, OM1, OM0] to [0,0,1,1] for Modbus Serial
operation.
OM3 is used to set operation mode at startup, and requires a
pull-down resistor. It is used as TX output after startup. The pull-
down resistor shall have a value between 1 kΩand 2.2 kΩ.
MI0
MI1
O
O
54
53
[MI1, MI0] = [1,0] indicates that the Anybus CompactCom
connected comes from the Anybus CompactCom 40-series..
MD0 O 30 Module Detection
This signal can be used by the host application to determine that
an Anybus CompactCom is inserted into the slot, see Module
Detection, p. 17.
The signal is connected directly 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 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 Pin Description
DE O 38 Data Enable
Active high signal used for RS485 transceiver.
This signal must be pulled to GND on the host application side to prevent spurious transmissions
during startup.
Anybus®CompactCom™B40 Modbus Serial User Manual SCM-1202-130 1.1 en-US

Hardware Design 18 (48)
4.1.5 RESET (Reset Input)
Signal Name Pin Type Pin Description
RESET I 3 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.
Power Up
Power
/RESET
0V
3.3V
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.
tB1 ms -Safety margin.
Restart
The reset pulse duration must be at least 10 µs in order for the Anybus CompactCom to properly
recognize a reset.
RESET
tC
VIL
VIH
t
Fig. 6
Symbol Min. Max. Definition
tC10 µs -Reset pulse width.
Anybus®CompactCom™B40 Modbus Serial User Manual SCM-1202-130 1.1 en-US
Table of contents
Other HMS Cell Phone manuals