Manual Gateway Anybus

Download as pdf or txt
Download as pdf or txt
You are on page 1of 145

ENGLISH

Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial


USER MANUAL

SCM-1202-152
Version 1.13
Publication date 2023-06-30
Important User Information

Disclaimer
The information in this document is for informational purposes only. Please inform HMS Networks of any
inaccuracies or omissions found in this document. HMS Networks disclaims any responsibility or liability for any
errors that may appear in this document.

HMS 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 Networks and is subject to change without notice. HMS 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 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 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.

Copyright © 2023 HMS Networks

Contact Information
Postal address:
Box 4126
300 04 Halmstad, Sweden

E-Mail: [email protected]
Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

Table of Contents
1. Preface .................................................................................................................................. 1
1.1. About This Document ........................................................................................................ 1
1.2. Document Conventions ..................................................................................................... 1
1.3. Trademarks ..................................................................................................................... 2

2. Safety .................................................................................................................................... 3
2.1. Intended Use ................................................................................................................... 3
2.2. General Safety ................................................................................................................. 3

3. Preparation ............................................................................................................................ 4
3.1. Cabling ........................................................................................................................... 4
3.2. System Requirements ........................................................................................................ 4
3.2.1. Supported Operating Systems ..................................................................................... 4
3.2.2. Supported Web Browsers ........................................................................................... 4
3.3. Mechanical Tools and Equipment ........................................................................................ 4
3.4. Support and Resources ...................................................................................................... 4
3.5. HMS Software Applications ................................................................................................ 5
3.6. Third-Party Software Applications ........................................................................................ 5
3.7. Software License Information ............................................................................................. 5

4. About Anybus Communicator .................................................................................................... 6


4.1. Serial Protocol Communication ........................................................................................... 6
4.1.1. Serial Protocol Types ................................................................................................. 6
4.1.2. Serial Protocol Building Blocks ..................................................................................... 7
4.2. How the Communication Works ......................................................................................... 10
4.3. How the Data Exchange Works ........................................................................................... 12
4.4. Data Integrity ................................................................................................................. 12

5. Installation ............................................................................................................................ 13
5.1. External Parts ................................................................................................................. 13
5.2. DIN Rail Mounting ........................................................................................................... 14
5.3. Connect to EtherNet/IP Network ........................................................................................ 15
5.4. Connect to Serial RS232/RS485 Subnetwork ......................................................................... 16
5.5. Connect to Power ............................................................................................................ 18
5.6. Security Switch ............................................................................................................... 19
5.7. Lock the Cables ............................................................................................................... 21
5.8. DIN Rail Demount ............................................................................................................ 22

6. Configuration Quick Guide ....................................................................................................... 24


6.1. Prepare Configuration ...................................................................................................... 24
6.2. Setup New Configuration .................................................................................................. 27
6.3. PLC Configuration ............................................................................................................ 30
6.4. Verify Operation .............................................................................................................. 32

7. Communicator Configuration ................................................................................................... 34


7.1. Connect the Communicator ............................................................................................... 34
7.2. Access the Built-In Web Interface From HMS IPconfig ............................................................. 35
7.3. Access the Built-In Web Interface From a Web Browser .......................................................... 37
7.4. Communicator Built-In Web Interface Overview .................................................................... 38
7.5. General Subnetwork Settings ............................................................................................. 39
7.5.1. Communication Serial Protocol ................................................................................... 39
7.5.2. Communication Basic Settings .................................................................................... 40

SCM-1202-152 Version 1.13


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

7.5.3. Communication Advanced Settings ............................................................................. 42


7.6. About Transaction Templates ............................................................................................. 48
7.6.1. Transaction Template Example ................................................................................... 48
7.6.2. Transaction Template Types ....................................................................................... 49
7.6.3. Frame Field Types .................................................................................................... 51
7.7. Build Transaction Template ................................................................................................ 53
7.7.1. Add Transaction Template ......................................................................................... 53
7.7.2. Add Frame Fields ..................................................................................................... 57
7.7.3. Configure Frame Field Settings ................................................................................... 59
7.7.4. Data Delimiter and Subnet Delimiter Options ................................................................ 62
7.7.5. Store Transaction Templates ...................................................................................... 65
7.8. Nodes and Transactions .................................................................................................... 66
7.8.1. Node and Broadcast Node ......................................................................................... 66
7.8.2. Add Node ............................................................................................................... 67
7.8.3. Node Settings .......................................................................................................... 68
7.8.4. Add Transactions ..................................................................................................... 69
7.8.5. Transaction Settings ................................................................................................. 72
7.8.6. Activate/Deactivate Transaction .................................................................................. 74
7.8.7. Duplicate Transaction ............................................................................................... 74
7.8.8. Delete Transaction ................................................................................................... 75
7.9. High Level Network Settings .............................................................................................. 76
7.9.1. To Use Automatic I/O Sizes ........................................................................................ 76
7.9.2. To Configure I/O Sizes Manually .................................................................................. 76
7.9.3. To Use DHCP Server .................................................................................................. 77
7.9.4. To Configure IP Settings Manually ............................................................................... 78
7.9.5. Naming the Host ...................................................................................................... 79
7.9.6. Connection Settings .................................................................................................. 79
7.10. I/O Data Map ................................................................................................................ 80
7.10.1. Optimize the I/O Data Map ...................................................................................... 81
7.10.2. Map Area Transactions Order ................................................................................... 82
7.10.3. Map Area ............................................................................................................. 83
7.10.4. Trigger Byte ........................................................................................................... 83
7.10.5. Endian Swap .......................................................................................................... 84
7.10.6. Offline Option ........................................................................................................ 86
7.10.7. Live List ................................................................................................................ 87
7.10.8. Data Exchange Control ............................................................................................ 88
7.11. Configuration Notes ....................................................................................................... 89
7.11.1. Add Configuration Note ........................................................................................... 89
7.11.2. View and Edit Configuration Notes ............................................................................ 91
7.12. Apply Configuration ....................................................................................................... 92
7.13. To Use an Existing Configuration ....................................................................................... 93
7.14. To Use an Communicator Classic Configuration .................................................................... 94

8. PLC Configuration ................................................................................................................... 96


8.1. Export I/O Data Map ........................................................................................................ 96
8.2. Export Product EDS File .................................................................................................... 96
8.3. CIP Objects ..................................................................................................................... 97

9. Verify Operation ..................................................................................................................... 98


9.1. Communicator Status Monitor ........................................................................................... 98
9.2. Communicator LED Indicators .......................................................................................... 100
9.3. Ethernet LED Indicators .................................................................................................. 101

10. Use Cases .......................................................................................................................... 102


10.1. Temperature Regulator - Modbus RTU Use Case ................................................................ 102

SCM-1202-152 Version 1.13


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

10.1.1. About the Use Case .............................................................................................. 102


10.1.2. Before You Begin .................................................................................................. 102
10.1.3. Choose Serial Protocol Type ................................................................................... 103
10.1.4. Setup Serial Communication .................................................................................. 103
10.1.5. Setup the Node .................................................................................................... 104
10.1.6. Setup the Transactions .......................................................................................... 105
10.1.7. Check the I/O Data Map ........................................................................................ 107
10.2. AC Motor Drive - Custom Request/Response Use Case ........................................................ 108
10.2.1. About the Use Case .............................................................................................. 108
10.2.2. Before You Begin .................................................................................................. 108
10.2.3. Choose Serial Protocol Type ................................................................................... 109
10.2.4. Setup Serial Communication .................................................................................. 109
10.2.5. Create Transaction Templates ................................................................................. 110
10.2.6. Setup Node and Transactions ................................................................................. 114
10.2.7. Check the I/O Data Map ........................................................................................ 115
10.3. Barcode Scanner - Custom Produce/Consume Use Case ...................................................... 116
10.3.1. About the Use Case .............................................................................................. 116
10.3.2. Before You Begin .................................................................................................. 116
10.3.3. Choose Serial Protocol Type ................................................................................... 117
10.3.4. Setup Serial Communication .................................................................................. 117
10.3.5. Create Transaction Templates ................................................................................. 118
10.3.6. Setup Node and Transactions ................................................................................. 120
10.3.7. Check the I/O Data Map ........................................................................................ 121

11. Maintenance ..................................................................................................................... 122


11.1. Configuration File Handling ............................................................................................ 122
11.1.1. Export Configuration ............................................................................................. 122
11.1.2. Import Configuration ............................................................................................ 123
11.2. Clear and Revert Configuration ....................................................................................... 124
11.3. Firmware Management ................................................................................................. 125
11.3.1. View the Firmware Version .................................................................................... 125
11.3.2. Firmware and Configuration Compatibility ................................................................ 125
11.3.3. Firmware File Validation ........................................................................................ 125
11.3.4. Update Firmware ................................................................................................. 126

12. Troubleshooting ................................................................................................................. 127


12.1. Diagnostics ................................................................................................................. 127
12.1.1. Serial RS-232/485 Data Monitor .............................................................................. 127
12.1.2. I/O Data ............................................................................................................. 128
12.1.3. Event Log ............................................................................................................ 129
12.1.4. LED Status ........................................................................................................... 130
12.2. Reset to Factory Settings ............................................................................................... 131
12.3. Firmware Upgrade Error Management ............................................................................. 133
12.4. Support ..................................................................................................................... 135
12.4.1. Support Package .................................................................................................. 135

13. Technical Data .................................................................................................................... 136


13.1. Technical Specifications ................................................................................................. 136

14. Reference Guides ................................................................................................................ 137


14.1. About Input Registers and Holding Registers ..................................................................... 137
14.2. Modbus Data Model .................................................................................................... 137
14.3. Modbus Transactions ................................................................................................... 137
14.4. Modus Exception Codes ................................................................................................ 138
14.5. ASCII Table ................................................................................................................. 138

SCM-1202-152 Version 1.13


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

14.6. RS232/RS485 Electrical Connection ................................................................................. 139


14.6.1. RS485 Typical Connection ...................................................................................... 139
14.6.2. RS232 Typical Connection ...................................................................................... 139

SCM-1202-152 Version 1.13


Preface Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

1. Preface

1.1. About This Document


This document describes how to install and configure Anybus® Communicator™.

For additional documentation and software downloads, FAQs, troubleshooting guides and technical support,
please visit www.anybus.com/support.

1.2. Document Conventions


Lists
Numbered lists indicate tasks that should be carried out in sequence:

1. First do this
2. Then do this

Bulleted lists are used for:

• Tasks that can be carried out in any order


• Itemized information

User Interaction Elements


User interaction elements (buttons etc.) are indicated with bold text.

Program Code and Scripts

Program code and script examples

Cross-References and Links


Cross-reference within this document: Document Conventions (page 1)

External link (URL): www.anybus.com

Safety Symbols

DANGER
Instructions that must be followed to avoid an imminently hazardous situation which, if not avoided,
will result in death or serious injury.

WARNING
Instructions that must be followed to avoid a potential hazardous situation that, if not avoided, could
result in death or serious injury.

CAUTION
Instruction that must be followed to avoid a potential hazardous situation that, if not avoided, could
result in minor or moderate injury.

IMPORTANT
Instruction that must be followed to avoid a risk of reduced functionality and/or damage to the
equipment, or to avoid a network security risk.

SCM-1202-152 Version 1.13 Page 1 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Trademarks

Information Symbols

NOTE
Additional information which may facilitate installation and/or operation.

TIP
Helpful advice and suggestions.

1.3. Trademarks
Anybus® is a registered trademark of HMS Networks.

All other trademarks are the property of their respective holders.

Page 2 of 139 SCM-1202-152 Version 1.13


Safety Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

2. Safety

2.1. Intended Use


The intended use of this equipment is as a communication interface and gateway.

The equipment receives and transmits data on various physical layers and connection types.

If this equipment is used in a manner not specified by the manufacturer, the protection provided by the
equipment may be impaired.

2.2. General Safety


CAUTION
Ensure that the power supply is turned off before connecting it to the equipment.

CAUTION
This equipment contains parts that can be damaged by electrostatic discharge (ESD). Use ESD
prevention measures to avoid damage.

CAUTION
To avoid system damage, the equipment should be connected to ground.

IMPORTANT
Using the wrong type of power supply can damage the equipment. Ensure that the power supply is
connected properly and of the recommended type.

SCM-1202-152 Version 1.13 Page 3 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Preparation

3. Preparation

3.1. Cabling
Have the following cables available:

• Ethernet cable for configuration


• Ethernet cable for connecting to the high level network
• Power cable

3.2. System Requirements


3.2.1. Supported Operating Systems
Operating System Description
Windows 7 SP1, 32-bit Windows 7 32-bit with Service Pack 1
Windows 7 SP1, 64-bit Windows 7 64-bit with Service Pack 1
Windows 10 64-bit Windows 10 64-bit
Windows 11 64-bit Windows 11 64-bit

3.2.2. Supported Web Browsers


The Communicator built-in web interface can be accessed from the following standard web browsers.

• Google Chrome
• Microsoft Edge
• Mozilla Firefox

3.3. Mechanical Tools and Equipment


Have the following tools available:

• Flat-head screwdriver, size 5.5 mm


Needed when removing the Communicator from DIN-rail.
• Flat-head screwdriver, size 3 mm
Needed when connecting the cables to the 7-pin connector.

3.4. Support and Resources


For additional documentation and software downloads, FAQs, troubleshooting guides and technical support,
please visit www.anybus.com/support.

TIP
Have the product article number available, to search for the product specific support web page. You
find the product article number on the product cover.

Page 4 of 139 SCM-1202-152 Version 1.13


HMS Software Applications Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

3.5. HMS Software Applications


Download the software installation files and user documentation from www.anybus.com/support.

HMS IPconfig
Use the software application HMS IPconfig and scan your network to discover and change the Communicator IP
address and to access the Communicator built-in web interface.

NOTE
As an alternative, you can set a static IP address within the same IP address range as the
Communicator IP address on the computer accessing the Communicator built-in web interface.

NOTE
HMS IPconfig is only available for Windows.

3.6. Third-Party Software Applications


Microsoft Excel
Microsoft Excel, or equivalent software application that supports the Office Open XML Workbook (xlsx) file
format. Needed to open and read the I/O data map file and the Event log file.

3.7. Software License Information


For license agreements regarding the third-party software used in the Communicator, refer to the
LICENSE.txt file(s) included in the Communicator firmware update package zip file.

To download the Communicator firmware update package zip file, please visit www.anybus.com/support.

TIP
Have the product article number available, to search for the product specific support web page. You
find the product article number on the product cover.

SCM-1202-152 Version 1.13 Page 5 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial About Anybus Communicator

4. About Anybus Communicator

4.1. Serial Protocol Communication


4.1.1. Serial Protocol Types
The gateway features three distinct modes of operation for the subnetwork communication, called Modbus RTU,
Custom Request/Response and Custom Produce/Consume.

Figure 1. Communication, Serial protocol

Modbus RTU
By default the Communicator uses the Modbus RTU serial protocol.

The Communicator uses Modbus transactions defined by the Modbus standard.

The Communicator acts as a client on the subnetwork, and the serial communication takes place in a request/
response fashion.

The nodes on the network are not permitted to issue messages unless they have been addressed by the
Communicator first.

Custom Request/Response
In this mode, you can define your own serial transactions to handle a wide range of custom serial protocols.

The Communicator acts as a generic serial client on the subnetwork.

The serial communication takes place in a request/response fashion.

Custom Produce/Consume
In this mode, you can define your own serial transactions to handle a wide range of custom serial protocols.

The Communicator may consume and/or produce messages on the subnetwork.

There is no client-server relationship between the nodes on the network, messages are spontaneously produced
or consumed when data is available.

Page 6 of 139 SCM-1202-152 Version 1.13


Serial Protocol Communication Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

4.1.2. Serial Protocol Building Blocks


The following building blocks are used to describe the subnetwork communication.

Node

Figure 2. Nodes on a subnetwork

A node represents a single device on the subnetwork.

Each node can be associated with a number of transactions.

Nodes and Transactions

Figure 3. Node with Transactions

Transactions are based on standard Modbus RTU transactions (Modbus RTU serial protocol) or transactions
templates (Custom Request/Response or Produce/Consume serial protocol) and define the data to be sent or
received.

Each transaction has a number of parameters that need to be configured to define how data is to be sent /
received.

SCM-1202-152 Version 1.13 Page 7 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Serial Protocol Communication

Frame Fields
The Frame editor is used to design custom transaction templates.

The Frame editor with Frame fields is available when either the Custom Request/Response or Custom Produce/
Consume serial protocol is enabled.

Figure 4. Frame editor

Frame fields are low level entities used to compose transactions.

A frame object can represent a:

• fixed value, a constant


• range of values, limit objects
• block of data or a calculated checksum

Page 8 of 139 SCM-1202-152 Version 1.13


Serial Protocol Communication Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

Transaction Templates
The Transaction templates are available when either the Custom Request/Response or Custom Produce/
Consume serial protocol is enabled.

Figure 5. Frame editor, Request and Response

A transaction represents a complete serial telegram, and consists of a number of frame fields.

Each frame field is associated with a set of parameters controlling what is transmitted on the subnetwork.

The transaction templates are stored in the Communicator and can be reused multiple times.

Example 1. Common Read Transaction


If you have a common read transaction. Then you can create one single transaction template for the read
transaction and reuse it multiple times times on your node(s).

If you have a function code in your protocol similar to a standard Modbus RTU transaction. Then you can create
a transaction template based on the Modbus RTU transaction for the read operation. When you reuse the
template on your node(s), you only have to change the function code each time it is used.

SCM-1202-152 Version 1.13 Page 9 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial How the Communication Works

4.2. How the Communication Works


The Communicator enables communication, data exchange, between one or more server devices connected to a
serial subnetwork and a client device connected to a high level network.

Figure 6. Process data traffic overview

For example:

• The client device can be a PLC controller or a PC.


• A server devices can be a sensor, scanner, industrial robot or sniffer.

The Communicator main task is to cyclically send the transactions that the server(s) are configured to execute, in
order to request and transfer process data.

Request Process Data

Figure 7. Process data traffic from nodes to client

Request process data from the serial subnetwork nodes, specified in the Communicator configuration, and make
the process data available on the server interface and for the high level network client device.

Page 10 of 139 SCM-1202-152 Version 1.13


How the Communication Works Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

Transfer Process Data

Figure 8. Process data traffic from client to nodes

Transfer process data from the high level network client device and make it available on the server interface and
for the serial subnetwork nodes included in the configuration.

SCM-1202-152 Version 1.13 Page 11 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial How the Data Exchange Works

4.3. How the Data Exchange Works

Figure 9. The Communicator internal memory areas

The data exchanged between the Communicator and the serial subnetwork and the high level network resides in
the Communicator internal memory buffer.

To exchange data with the serial subnetwork, the high level network reads and writes data to the Communicator
internal memory buffer.

The same memory locations are exchanged on the serial subnetwork.

The memory locations are specified when configuring the Communicator using the Communicator built-in web
interface.

Input Data
The Input data area is read by the high level network.

Output Data
The Output data area is read/written by the high level network.

4.4. Data Integrity


A snapshot of the process data buffer between the Client and the server interface is used during the operation of
executing all the transactions within one cycle.

When the cycle is completed, the process data available on the server interface is updated and a new snapshot is
created for the next cycle.

Page 12 of 139 SCM-1202-152 Version 1.13


Installation Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

5. Installation

5.1. External Parts

Figure 10. External parts

A. Power connector E. 7-pin connector I. Security switch


B. Label with LED designation F. EtherNet/IP port x 2 J. Factory reset button
C. Status LEDs G. Cable tie mount K. Laser engraved label with product information
D. Configuration port H. Laser engraved connectors designation L. DIN rail locking mechanism

SCM-1202-152 Version 1.13 Page 13 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial DIN Rail Mounting

5.2. DIN Rail Mounting


IMPORTANT
The equipment must be electrically grounded through the DIN rail for EMC compliance. Make sure
that the equipment is correctly mounted on the rail and that the rail is properly grounded.

Figure 11. Attach the Communicator on the DIN rail

To attach the Communicator on the DIN rail:

1. Insert the upper end of the DIN rail clip into the DIN rail.
2. Push the bottom of the DIN rail clip into the DIN rail.

Page 14 of 139 SCM-1202-152 Version 1.13


Connect to EtherNet/IP Network Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

5.3. Connect to EtherNet/IP Network

Figure 12. Connect to EtherNet/IP network

1. Connect the Communicator to your EtherNet/IP network.

RJ45 Connector Pin Description


1 TD+
2 TD-
3 RD+
4 Not used
5 Not used
6 RD-
7 Not used
8 Not used

To Do Next
Connect the Communicator to the serial subnetwork and to power.

Check LED status, refer to Communicator LED Indicators (page 100).

SCM-1202-152 Version 1.13 Page 15 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Connect to Serial RS232/RS485 Subnetwork

5.4. Connect to Serial RS232/RS485 Subnetwork


NOTE
Use minimum 90 oC copper (Cu) wire only.

Figure 13. Connect to serial RS232/RS485 subnetwork

1. Insert the cable wires into the 7-pin connector and tighten the wire clamp screws.

Page 16 of 139 SCM-1202-152 Version 1.13


Connect to Serial RS232/RS485 Subnetwork Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

7-pin connector Pin Signal


1 +5 V OUT
2 RS485+ A
3 RS485- B
4 Signal GND
5 Functional Earth (FE)
6 RS232 Tx Transmit Data
7 RS232 Rx Receive Data

2. Connect the 7-pin connector to the Communicator.


3. Connect the Communicator to your serial subnetwork.

To Do Next
Connect the Communicator to the EtherNet/IP network and to power.

Check LED status, refer to Communicator LED Indicators (page 100).

SCM-1202-152 Version 1.13 Page 17 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Connect to Power

5.5. Connect to Power

CAUTION
Ensure that the power supply is turned off before connecting it to the equipment.

IMPORTANT
Using the wrong type of power supply can damage the equipment. Ensure that the power supply is
connected properly and of the recommended type.

Figure 14. Connect to power

1. Insert the cable wires to the terminal block and tighten the wire clamp screws.

Power port Pin Description


1 12-30 VDC Power Connector
2 Ground (GND)
3 Functional Earth (FE)

2. Connect the terminal block to the Communicator.


3. Connect the Communicator to a power supply.
4. Turn on the power supply.

To Do Next
Connect the Communicator to the EtherNet/IP and Serial RS-232/485 network.

Check LED status, refer to Communicator LED Indicators (page 100).

Page 18 of 139 SCM-1202-152 Version 1.13


Security Switch Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

5.6. Security Switch


IMPORTANT
After completing the configuration of the Communicator, lock the security switch to prevent
unauthorized access to the Communicator built-in web interface.

When the security switch is in its locked position, the Communicator built-in web interface can not be accessed
and the Communicator can not be configured using the built-in web interface. Network specific parameters,
configured via the PLC is still available.

To Lock and Unlock the Security Switch

Figure 15. Security switch in locked and unlocked position

Use a pointed object, such as a ballpoint pen.

• To lock the security switch, push the toggle towards the Communicator front.
• To unlock the security switch, push the toggle towards the Communicator back.

SCM-1202-152 Version 1.13 Page 19 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Security Switch

Security Switch Status LED

Figure 16. Security switch locked status LED

When the security switch is in its:

• locked position, the security switch status LED turn solid green.
• unlocked position, the security switch status LED is turned off.

Page 20 of 139 SCM-1202-152 Version 1.13


Lock the Cables Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

5.7. Lock the Cables

Figure 17. Lock the cables

To strain relieve the cables, place a cable tie in the holder and lock the cables.

SCM-1202-152 Version 1.13 Page 21 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial DIN Rail Demount

5.8. DIN Rail Demount


Before You Begin

IMPORTANT
Be careful when removing the Communicator from the DIN-rail. If not removed properly, the DIN rail
locking mechanism and the product cover can break.

Have a flat-blade screwdriver, size 5.5 mm, available.

Procedure
Remove the Communicator from the DIN Rail:

1. Insert the screwdriver into the Communicator DIN rail locking mechanism.
2. To unlock the Communicator DIN rail locking mechanism, turn the screwdriver clockwise.

Figure 18. Unlock the Communicator

Page 22 of 139 SCM-1202-152 Version 1.13


DIN Rail Demount Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

3. Hold the screwdriver in the DIN rail locking mechanism while you unhook the Communicator from the DIN
rail.

Figure 19. Unhook the Communicator

SCM-1202-152 Version 1.13 Page 23 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Configuration Quick Guide

6. Configuration Quick Guide

This section is intended to give you a short overview of the tasks you need to perform to configure the
Communicator.

For detailed information, please refer to Communicator Configuration (page 34) .

6.1. Prepare Configuration


1. Connect Communicator to the EtherNet/IP network.

2. Connect the Communicator to the serial RS232/RS485 subnetwork

Page 24 of 139 SCM-1202-152 Version 1.13


Prepare Configuration Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

3. Connect to PC and power

a. Connect an Ethernet cable between the Communicator configuration port and your PC.
b. Connect the Communicator to a power supply.

SCM-1202-152 Version 1.13 Page 25 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Prepare Configuration

4. Find the Communicator on your PC


The Communicator default IP address is 192.168.0.10.

Option 1 Option 2

On the PC accessing the Communicator built-in web interface,


set a static IP address within the same IP address range as the
Communicator IP address.

Change the IP address on the Communicator configuration port to


one within the same IP address range as your PC.
Use the software application HMS IPconfig to find the
Communicator default IP address on your PC.
Download the installation files and user documentation from
www.anybus.com/support.

5. Access the Communicator built-in web interface

Open the Communicator built-in web interface in HMS IPconfig or enter the Communicator IP address in
your web browser.

The Communicator built-in web interface overview page opens in your browser.

Page 26 of 139 SCM-1202-152 Version 1.13


Setup New Configuration Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

6.2. Setup New Configuration


Follow these steps to setup a new Communicator configuration.

1. Subnetwork configuration

On the Communication page:

a. Select a serial protocol: Modbus RTU (default), Custom Request/Response or Custom Produce/
Consume.
For information about the serial protocol types, see Serial Protocol Types (page 6).
b. Configure the basic settings Physical standard:, Baud rate, Data bits, Parity and Stop bits.
2. Create Transaction Templates

This step applies when the serial protocol Custom request/response is selected.

On the Transaction templates page: Add a transaction template and configure the template settings.

Repeat until you have added and configured all your transaction templates.

SCM-1202-152 Version 1.13 Page 27 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Setup New Configuration

3. Add Nodes and Transactions

On the Nodes & transactions page:

a. Add a node and configure the node settings.


b. Add commands to the node and configure the command settings.
c. Repeat until you have added and configured all your nodes.
4. High level network configuration

On the EtherNet/IP page:

1. Use Automatic I/O sizes provided by the subnetwork or choose to set them manually.
2. Enable DHCP server or choose to set a specific IP address.

Page 28 of 139 SCM-1202-152 Version 1.13


Setup New Configuration Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

5. I/O Data Mapping

The commands you added to the nodes are automatically mapped to the Communicator internal memory
area.
View the added nodes and commands on the I/O data map page.

SCM-1202-152 Version 1.13 Page 29 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial PLC Configuration

6.3. PLC Configuration


In the Communicator built-in web interface:
1. Export I/O data map

When you configure the communication between the Communicator and the PLC, you can use the I/O data
map as a specification to ensure that the commands match.

On the I/O data map page: You can download the I/O data mapping in a spreadsheet to your PC.

2. Download EDS File

Option if the PLC program requires a EDS (Electronic Data Sheet) file.

On the EtherNet/IP page: Download the EDS file to your PC.

Page 30 of 139 SCM-1202-152 Version 1.13


PLC Configuration Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

In the PLC program:


1. Import product file
Option if the PLC program requires a EDS (Electronic Data Sheet) file.
Import the EDS file into your PLC project.
2. Configure the communication

Configure the PLC to communicate with the Communicator according to the I/O data map created in the
Communicator.

SCM-1202-152 Version 1.13 Page 31 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Verify Operation

6.4. Verify Operation


1. Apply the configuration

When you have completed and verified the configuration, click Apply for the settings to take effect.
2. Verify status and LED indications

On the Home page:


Monitor the Communicator, network and node status.
You can also view the Communicator LED indications remotely.

Page 32 of 139 SCM-1202-152 Version 1.13


Verify Operation Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

3. Verify and monitor communication

In Diagnostics, use the:

• Serial RS-232/485 page to verify that the serial commands are sent and received by the Communicator.
• I/O data page to monitor how the data flow between the Serial RS-232/485 side and the EtherNet/IP
side, including any configured endian conversions.
• Event log page to detect failures and unexpected behavior over time.

SCM-1202-152 Version 1.13 Page 33 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Communicator Configuration

7. Communicator Configuration

This section is intended to give you detailed information about the tasks you need to perform to setup a new
Communicator configure.

For a more brief overview of the configuration steps, please refer to the Configuration Quick Guide (page 24).

7.1. Connect the Communicator


Procedure
Connect to Serial RS-232/485 network and EtherNet/IP network

Connect to PC and Power

1. Connect an Ethernet cable between the Communicator and your PC.


2. Connect the Communicator to a power supply.

Page 34 of 139 SCM-1202-152 Version 1.13


Access the Built-In Web Interface From HMS IPconfig Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

7.2. Access the Built-In Web Interface From HMS IPconfig


Before You Begin
Download the software application HMS IPconfig installation files and user documentation from
www.anybus.com/support.

NOTE
The Communicator default IP address is 192.168.0.10.

NOTE
To access the Communicator built-in web interface, ensure that Port 80 TCP is open in your Firewall.
This applies to any Firewall between the web browser and the gateway.

NOTE
To access the Communicator built-in web interface from HMS IPconfig, ensure that Port 3250 UDP is
open in your PC Windows Firewall.

NOTE
Ensure that the security switch is unlocked. HMS IPconfig cannot configure the Communicator if the
security switch is locked.

Procedure
1. Install HMS IPconfig on your PC.
2. Open HMS IPconfig.

• HMS IPconfig automatically starts scanning for compatible and active HMS devices.
• Found HMS devices are added to the device list.
3. To open the settings pane, click on the Communicator in the device list.
4. Change the Communicator configuration port IP address to one within the same IP address range as your
PC.

SCM-1202-152 Version 1.13 Page 35 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Access the Built-In Web Interface From HMS IPconfig

5. To open the Open web page built-in web interface, click Communicator.

Result
You are redirected to the Communicator built-in web interface Home page.

Page 36 of 139 SCM-1202-152 Version 1.13


Access the Built-In Web Interface From a Web Browser Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

7.3. Access the Built-In Web Interface From a Web Browser


Before You Begin

NOTE
The Communicator configuration port default IP address is 192.168.0.10.

NOTE
To access the Communicator built-in web interface, ensure that Port 80 TCP is open in your Firewall.
This applies to any Firewall between the web browser and the gateway.

NOTE
When you change to a static IP address on your computer, internet access may be lost.

Procedure
1. On the PC accessing the Communicator built-in web interface, set a static IP address within the same IP
address range as the Communicator IP address.

2. Open a web browser.


3. Click to select the Address bar and enter the Communicator IP address.

4. To open the built-in web interface Home page, press Enter.

SCM-1202-152 Version 1.13 Page 37 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Communicator Built-In Web Interface Overview

7.4. Communicator Built-In Web Interface Overview


Use the Communicator built-in web interface to configure, maintain and troubleshoot the Communicator.

Figure 20. The Communicator built-in web interface Home page

Menu item Description


Home View the Communicator, network and node status.
Apply After configuration changes are made and verified, press Apply to make the settings take effect.
Serial RS-232/485 Serial Subnetwork with Nodes.
Select a Serial protocol, use Modbus RTU standard transactions or create your own transaction templates.
Configure communication and add nodes and commands.
EtherNet/IP High Level Network with Client. Configure I/O Size and IP settings.
I/O data map View the added commands mapped to the Communicator internal memory area.
Files & firmware Save settings in a configuration files, upload configuration files and upgrade firmware.
Diagnostics Monitor and troubleshoot the Communicator.
Support Contains Communicator product information, Anybus contact information, link to Anybus support website, and
product file for download.
Here you can generate a support package with product information, to send to your Anybus support technician.

Page 38 of 139 SCM-1202-152 Version 1.13


General Subnetwork Settings Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

7.5. General Subnetwork Settings


7.5.1. Communication Serial Protocol

Before You Begin


Before starting the configuration, select the Serial protocol you want to use:

• Modbus RTU, Default setting: Use for serial devices that conform to the Modbus communication specification.
• Custom Request/Response: Create your own custom request/response transactions.
The transactions can be based on the Modbus communication specification or fully customized.
• Custom Produce/Consume: Create your own custom produce/consume transactions.

IMPORTANT
When changing the serial protocol, all settings are reset to default and all added nodes, transactions,
and transaction templates are deleted.

Procedure
On the Communication page:

1. To choose a Serial protocol, select Modbus RTU, Custom Request/Response or Custom Produce/Consume.

Figure 21. Communication, Serial protocol

2. To confirm the selected protocol, click Change serial protocol.

Figure 22. Confirm change of serial protocol

Apply Configuration
To apply the settings, click Apply in the built-in web interface header and follow the instructions.

SCM-1202-152 Version 1.13 Page 39 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial General Subnetwork Settings

7.5.2. Communication Basic Settings

Figure 23. Communication, Basic settings

Physical standard
Specify the physical interface type for the device connected to the Communicator.

• Select a physical standard from the Physical standard drop-down menu.

Setting Value Description


Physical standard RS-232, Default Use RS-232 when one single node is connected to the subnetwork.
standard

RS-485 Use RS-485 when multiple nodes are connected to the subnetwork.

Baud rate
Specify the baud rate; the serial transfer speed, maximum bits per second.

Page 40 of 139 SCM-1202-152 Version 1.13


General Subnetwork Settings Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

Select a baud rate value from the Baud rate drop-down menu.

Data bits
Data bits is the number of bits used in the data representation of characters in the telegrams.

The rate for Modbus RTU is 7 data bits or 8 data bits. The default setting is 8 data bits.

Setting Value
Baud rate 1200 baud
1800 baud
2400 baud
4800 baud
9600 baud, Default value
19200 baud
35700 baud
38400 baud
57600 baud
115200 baud
128000 baud

Parity
Specify if parity should be used to detect errors in the data.

Select parity value from the Parity drop-down menu.

Setting Value Description


Parity None, Default value No parity checking Parity bit is not transmitted
Odd Odd parity checking
Even Even parity checking

Stop bits
Specify the number of stop bits used to indicate the end of data transmission.

Select a stop bits value from the Stop bits drop-down menu.

Setting Value
Stop bits 1 stop bit, Default value
2 stop bit

Apply Configuration
To apply the settings, click Apply in the built-in web interface header and follow the instructions.

SCM-1202-152 Version 1.13 Page 41 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial General Subnetwork Settings

7.5.3. Communication Advanced Settings


Inter-Telegram Timeout Mode Settings

Figure 24. Advansed settings, Default (3.5 characters)

By default, Inter-telegram timeout mode Default (3.5 characters) is used.

This is according the Modbus RTU standard, which advocates the use of a silent period equivalent to 3.5
characters between each message. The silent period is used to find out where one message ends and the next
begins.

Figure 25. Custom settings, Inter-telegram timeout and Inter-telegram delay

You can use Custom settings to set the desired Inter-telegram timeout and Inter-telegram delay.

The following must be applied on all nodes:

• The time between two adjacent characters in the same telegram must be less than Intertelegram timeout.
• The time between two characters in two different telegrams the same or more than Intertelegram delay.

Page 42 of 139 SCM-1202-152 Version 1.13


General Subnetwork Settings Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

About Inter-Telegram Start and End Character


This topic describes scenarios for using Start character and End character.

Example 2. Both Start Character and End Character Disabled


Default setting, no Start character or End character is used.

Figure 26. Start character and End character are Disabled

The size of the telegram is defined between two inter-telegram delays.

Standard Inter-telegram delay: 3.5 characters

Inter-telegram delay is set in the Advanced settings, see Inter-Telegram Timeout Mode Settings (page 42).

Figure 27. Data stream without Start and End characters

SCM-1202-152 Version 1.13 Page 43 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial General Subnetwork Settings

Example 3. Start Character Enabled and End Character Disabled


Start character is used.

Figure 28. Example: Start character Enabled, Hex value 0x01

First, a start character is identified in the data stream, then the inter-telegram follows. The inter-telegram ends
when an inter-telegram delay is identified in the data stream.

Figure 29. Data stream with Start character

Page 44 of 139 SCM-1202-152 Version 1.13


General Subnetwork Settings Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

Example 4. Start Character Disabled and End Character Enabled


End character is used.

Figure 30. Example: End character Enabled, Hex value 0x04

First, an inter-telegram delay is identified in the data stream, then the inter-telegram follows. The inter-telegram
ends when an end character is identified in the data stream.

Figure 31. Data stream with End character

SCM-1202-152 Version 1.13 Page 45 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial General Subnetwork Settings

Example 5. Bothe Start Character and End Character Enabled


Both Start character and End character is used.

Figure 32. Example: Start character Enabled, Hex value 0x01 and End character Enabled, Hex value 0x04

First, a start character is identified in the data stream, then the inter-telegram follows. The inter-telegram ends
when an end character is identified in the data stream.

Figure 33. Data stream with Start character and End character

Page 46 of 139 SCM-1202-152 Version 1.13


General Subnetwork Settings Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

Inter-Telegram Start and End Character


Start character and End character is only valid for the Custom Produce/Consume Serial protocol mode; Produce
or Consume transactions, see Communication Serial Protocol (page 39).

NOTE
Inter-telegram timeout mode Custom settings for Inter-character timeout and Inter-telegram delay
still apply if Start character and/or End character is enabled.

NOTE
If a inter-telegram exceeds the maximum allowed transaction frame size of 1500 bytes, the telegram
is invalid and discarded.

Start and End character Use Case Example


In serial channel data stream, there is a Consume transaction for which you want to obtain the content between
two defined characters as an Inter-telegram.

Procedure

Figure 34. Start and End character settings

1. Navigate to the Serial RS-232/485 Communication page.


2. Select the Custom Produce/Consume Serial protocol mode.
3. To enable Start character and/or End character, select the checkbox(es).
4. Enter the decried character hexadecimal value(s) for the Inter-telegram.

Result
For Produce transactions, a start and/or end character is added to the inter-telegram when it is sent.

SCM-1202-152 Version 1.13 Page 47 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial About Transaction Templates

7.6. About Transaction Templates


This section applies when the Custom Request/Response or Custom Produce/Consume serial protocol is applied,
refer to Communication Serial Protocol (page 39).

7.6.1. Transaction Template Example


Custom Request/Response

Figure 35. Request/Response transaction template example

The transaction named Read parameter (0x01) consists of a number of frame fields.

In the Request field there are three Constants, a Node address and a Checksum field.

In the Response field there are three Constants, a Node address, a Data field and a Checksum field.

Page 48 of 139 SCM-1202-152 Version 1.13


About Transaction Templates Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

Custom Produce/Consume

Figure 36. Produce transaction template example

The transaction named Read Barcode Data Template consists of a number of frame fields.

The Transaction type can be Produce or Consume. In this example the Transaction type Consume is selected.

In the frame field we have added one Variable data field and two Constant fields.

7.6.2. Transaction Template Types


There are two types of transaction templates, Empty template and Modbus template.

Empty Template
When using the Empty template, you start with an empty transaction and build a desired structure by adding
and arranging frame fields.

Figure 37. Transaction template, Empty template

SCM-1202-152 Version 1.13 Page 49 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial About Transaction Templates

For the produce/consume transactions you select; Empty produce template or Empty consume template.

Figure 38. Transaction template, Empty Produce and Consume templates

Modbus Templates
Modbus templates are available for Custom Request/Response and Modbus RTU transactions.

When using the Modbus template, you first select the Modbus template from which you want to start.

You can then restructure the transaction by rearranging, adding or removing frame fields.

Figure 39. Transaction template, Modbus template

Page 50 of 139 SCM-1202-152 Version 1.13


About Transaction Templates Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

Example 6. New transaction template based on the Modbus template Read Discrete Inputs

7.6.3. Frame Field Types


Each transaction consists of frame fields which makes up the serial telegram frame.

Each frame field specifies how the Communicator shall interpret or generate a particular part of the telegram.

Figure 40. The following frame objects are available

Node address
Frame field representing the Node address of the Node.

A constant byte that holds a copy of the nodes address when the transaction is used by a node.

Constant
Constant frame fields are handled differently depending on the direction of the transaction.

• Produce/Request Transactions: The Communicator sends the value as it is without processing it.
• Consume/Response Transactions: The Communicator checks if the received byte/word/dword matches the
specified value. If the message does not fit, it is discarded.

Limit

NOTE
Limit is not available for the Transaction Type Produce.

SCM-1202-152 Version 1.13 Page 51 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial About Transaction Templates

• Consume/Response Transactions: The Communicator checks if the received byte/word/dword fits inside the
specified boundaries. If the message does not fit, it is discarded.

Data
Data frame fields are used to represent raw data as follows.

• Produce/Request Transactions: The specified data block is forwarded from the higher level network to the
subnetwork.
• Consume/Response Transactions: The specified data block is forwarded from the sub-network to the high level
network.

Variable data
Produce/Request Transactions:

• The specified data block will be forwarded from the higher level network to the sub-network.
• The control system must supply an End or Length character in order for the Communicator to know the size of
the data block.
• The End- or Length-character itself may either be forwarded to the sub-network or discarded.

Consume/Response Transactions:

• The specified data block is forwarded from the sub-network to the higher level network.
• The End- or Length-character will be generated by the Communicator automatically (if applicable).
• The End- or Length-character itself may either be forwarded to the higher level network or discarded.

Checksum
Most serial protocols features some way of verifying that the data has not been corrupted during transfer.

The checksum frame field calculates and includes a checksum in a transaction.

Page 52 of 139 SCM-1202-152 Version 1.13


Build Transaction Template Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

7.7. Build Transaction Template


Before You Begin
Ensure that you have applied the Custom Request/Response or Custom Produce/Consume serial protocol, refer
to Communication Serial Protocol (page 39).

7.7.1. Add Transaction Template


Procedure
Add a transaction template:

1. In the web-interface left sidebar menu, click Transaction templates.

2. To select the template you want to use, click the Add drop-down button.

Options for the Custom Request/Response Protocol


• To add a new empty template without any frame fields, select Empty template.

SCM-1202-152 Version 1.13 Page 53 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Build Transaction Template

Example 7. A new empty request/response template is added to the transaction template list

Page 54 of 139 SCM-1202-152 Version 1.13


Build Transaction Template Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

• To add a new template based on a standard Modbus transaction, select Modbus templates and then the
desired Modbus transaction.

Example 8. A new request/response template based on “Read Coils (1)” is added to the transaction template
list

SCM-1202-152 Version 1.13 Page 55 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Build Transaction Template

Option for the Custom Produce/Consume Protocol


• Select Empty produce templates or Empty consume templates.
You can change the Transaction type after the transaction template is added.

Example 9. A new produce template is added to the transaction template list

3. To apply the settings, click Apply in the web-interface header, and follow the instructions.

To Do Next
• Add frame fields to the transaction template, refer to Add Frame Fields (page 57).

Page 56 of 139 SCM-1202-152 Version 1.13


Build Transaction Template Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

7.7.2. Add Frame Fields


Procedure
1. In the transaction template list, select a transaction template to add frame fields to.

Figure 41. Select transaction template

2. Build the transactions.

• To add frame fields: In the Frame editor frame fields menu, drag and drop the desired frame fields into the
drag and drop fields.

Figure 42. Add frame fields

• To duplicate a frame field: On the frame field that you want to duplicate, click the three dots icon and then
click Duplicate.

Figure 43. Duplicate frame fields

SCM-1202-152 Version 1.13 Page 57 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Build Transaction Template

• To change the order of the frame fields: Drag and drop the frame fields in the list to change the order.

Figure 44. Change frame fields order

• To delete a frame field: On the frame field that you want to delete, click the three dots icon.
Click Delete and then Yes to confirm.

Figure 45. Delete frame field

3. To apply the settings, click Apply in the web-interface header, and follow the instructions.

To Do Next
• Configure the frame field settings, see Configure Frame Field Settings (page 59).

Page 58 of 139 SCM-1202-152 Version 1.13


Build Transaction Template Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

7.7.3. Configure Frame Field Settings


Procedure

Figure 46. Frame Fields Settings

1. In the Transaction templates list, select a transaction template to configure.


2. In the Transaction template settings select a Field to configure.
The Field sidebar opens, on the right side of the screen.
3. Configure the Field settings.

Node address
• Frame field representing the Node address of the node. A constant byte that holds a copy of the nodes
address when the transaction is used by a node.
• When the transaction template is used by a node, the Node address field will automatically be replaced with
the actual node address of the node.

Constant
• Name: You can name the Frame Field to make it easier to identify.
• Type: Specify the number of bytes in the frame.
Select Byte (1 byte) (Default), Word (2 bytes), Double word (4 bytes), Array of bytes or String.
• Endianess: Select Big-endian (Default) or Little-endian.
• Fixed field*: Select Yes, set here (Default) or No, set when used.
• Length: Valid for Array of bytes. Enter a byte offset value between 0 and 32 byte.
Default value is 1 byte.
Enter a Value for each Byte (0–31).
• Value: The value of the Constant in the frame.
Enter a value between 0 (Default) and 255.
• Min value: Specify the minimum value that can be set when the template is used.
• Max value: Specify the maximum value that can be set when the template is used.
• Default value: Default value set when the template is used.

SCM-1202-152 Version 1.13 Page 59 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Build Transaction Template

Limit

NOTE
Limit can only be added as a Response frame field.

• Name: You can name the Frame Field to make it easier to identify.
• Type: Specify the number of bytes in the frame. Select Byte (1 byte) (Default), Word (2 bytes), Double word (4
bytes).
• Endianess: Select Big-endian (Default) or Little-endian.
• Min value: The lowest value of the limit range.
• Max value: The highest value of the limit range.
• Base number system: Select Decimal Dec (Default) or Hexadecimal Hex.

Data
• Name: You can name the Frame Field to make it easier to identify.
• Fixed field*: Select Yes, set here (Default) or No, set when used.
• Length: Enter a value between 1 (Default) and 512 bytes.
• Min length: Specify the minimum length that can be set when the template is used.
• Max length: Specify the maximum length that can be set when the template is used.
• Default length: Specify the default length that can be set when the template is used.

Variable data
• Name: You can name the Frame Field to make it easier to identify.
• Fixed field*: Select Yes, set here (Default) or No, set when used.
• Minimum payload length: Specify the minimum payload length that can be set when the template is used.
• Maximum payload length: Specify the maximum payload length that can be set when the template is used.
• Default max payload length: Specify the default payload length that can be set when the template is used.
• Data delimiter: Specify how to detect/define the length of the variable data of the high level network. Select
Byte counter, End pattern or None (Default).
For information about End- and Length character, see Data Delimiter and Subnet Delimiter Options (page 62).
• Subnet delimiter: Specify how to detect/define the length of the variable data of the serial subnetwork. Select
Byte counter, End pattern or None (Default).
For information about End- and Length character, see Data Delimiter and Subnet Delimiter Options (page 62).
• End pattern: When a Data delimiter or Subnet delimiter is set to End pattern, specify the value defining the
end of the payload.
• Fill padding: Fill up unused data mapped to the high level network or the general area with a field padding
value.
To deactivate/activate Fill padding, click the slide toggle. When Fill padding is activated, enter a Fill padding
value between 0 and 255.
• Base number system: Select Decimal Dec (Default) or Hexadecimal Hex.

Checksum
• Name: You can name the Frame Field to make it easier to identify.
• Checksum type: Specify the algorithm used to calculate the checksum. Select CRC (CRC-16-IBM) (Default), LRC
(ISO 1155:1978), XOR or ADD.
• Start offset: Specify the offset from where to start the checksum calculation. Enter a value between 0 (Default)
and 511.

Page 60 of 139 SCM-1202-152 Version 1.13


Build Transaction Template Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

• Error check type: Specify how the checksum is converted. Select None (Default), One’s complement or Select
None, Two’s complement.
• Destination Representation:
Each byte represents two ASCII characters.
Allowed characters: Digits 0-9 and Letters a-f
The first two characters represent the 4 most significant bits of the byte. The second character represents the
4 least significant bits.
Specify how the destination checksum is represented:

– Binary (Default): Data is transmitted and received as-is, no pre- or post-processing is performed.
– ASCII (Lower case): Received telegrams are case insensitive and sent telegrams are lowercase.
– ASCII (Upper case): Received telegrams are case insensitive and sent telegrams are uppercase.

About Fixed field*


• Yes, set here: The Value set here is fixed and cannot be changed when the transaction is used on a node.
The value must be updated in the transaction template.
• No, set when used: The Default value set here can be edited when the transaction is used on a node.
The allowed range is the min/max values.

Total size including delimiters:


• High Level Network: 1 byte(s)
• Subnetwork: 1 byte(s).

4. Repeat step 1 to 3 until you have configured all the desired frame objects.

Apply Configuration
To apply the settings, click Apply in the built-in web interface header and follow the instructions.

SCM-1202-152 Version 1.13 Page 61 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Build Transaction Template

7.7.4. Data Delimiter and Subnet Delimiter Options


In a variable data object, the length of the data field may vary depending on the type of data being read in a
specific case.

In order to present the variable data correctly on the corresponding network, the length of the data field must be
identified.

In a Variable data object, there are three ways to identify the data length; by length character, end character or
length of message.

Data delimiter - Data is forwarded From the Communicator to the PLC


The Communicator can be configured to forward data as process data.

Different Data delimiter options can be used for data sent from the subnetwork to the Communicator and for
data forwarded from the Communicator to the high level network, to fit the requirements in the PLC.

In most cases, when a stream of data is sent from the Communicator to the PLC the Byte counter (length
character) or End pattern (end character) format is used.

Subnet delimiter - Incoming Data From a Serial Node to the Communicator


The Communicator can be configured to expect data from one of the three Subnet delimiter options; Byte
counter, End pattern or None.

If the incoming data match the Subnet delimiter format the data is captured and the data section is forwarded to
the high level network.

If the incoming data do not match the Subnet delimiter format, the data is ignored and will be matched with the
next consume transaction.

Transaction Template Variable Data Settings

Figure 47. Transaction template variable data settings

1. Select a desired Variable data object.


2. In the Data delimiter and/or Subnet delimiter drop down menu, select one of the following options.

Page 62 of 139 SCM-1202-152 Version 1.13


Build Transaction Template Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

Data delimiter and/or Subnet delimiter options


• Byte counter
The data packet consists of a length character, indicating the length of the data section, followed by the
variable data object itself. In order to copy the exact data size from the transaction message, the length of the
variable data object is first identified.

• End pattern
The package consists of a data section followed by an end character to indicate where the data section ends.
End pattern is used to define whether the delimiter is an end character or an end pattern, which depends on
whether the message is forwarded from the subnetwork or sent as process data.

SCM-1202-152 Version 1.13 Page 63 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Build Transaction Template

• None (Default)
The package contains only the data section. By measuring the total length of the message, the length of the
data section can be calculated.

3. When a delimiter is set to End pattern: In the End pattern field, enter the value that will define the end of
the payload.
End pattern is used to define whether the delimiter is an end character or an end pattern, which depends on
whether the message is forwarded from the subnetwork or sent as process data.

Page 64 of 139 SCM-1202-152 Version 1.13


Build Transaction Template Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

7.7.5. Store Transaction Templates


The transaction templates are stored on the Transaction templates page.

Figure 48. Transaction templates page

The transaction templates are available for use on the Nodes & transaction page, when you add transactions to a
node.

Figure 49. Nodes & transaction page

For information on how to add the transaction templates to the nodes, refer to Transaction Settings (page 72).

SCM-1202-152 Version 1.13 Page 65 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Nodes and Transactions

7.8. Nodes and Transactions


A node represents a single device on the serial subnetwork.

Add nodes and set up the communication between the nodes and the client.

Before You Begin


Obtain user documentation, from the manufacturers of the devices to communicate with, describing available
registers and how to address them.

7.8.1. Node and Broadcast Node


You can add two types of nodes, Node and Broadcast Node.

Figure 50. Add Node or Broadcast Node

Broadcast node
• You can add one single Broadcast node.
• The Broadcast node can only hold produce transactions.

Node
• You can add up to 31 Nodes.
• The type of transactions a node can hold depends on the serial protocol used, refer to About Transaction
Templates (page 48).

Page 66 of 139 SCM-1202-152 Version 1.13


Nodes and Transactions Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

7.8.2. Add Node

NOTE
You can add one single Broadcast node.

The maximum number of Nodes that can be added is 31.

1. In the web-interface left sidebar menu, click Nodes & transactions.


2. Click Add node.
3. Select Add broadcast node or Add node.

Figure 51. Add node

A new node/brodcats node is added to the nodes list.

Figure 52. A new node is added to the node list

To Do Next
Configure the Node Settings, Node Settings (page 68).

SCM-1202-152 Version 1.13 Page 67 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Nodes and Transactions

7.8.3. Node Settings


Before You Begin
Ensure that the Communicator Basic settings, on the Communication page, match the Node settings.

There are no Node settings for the Broadcast node, except Name.

Procedure

Figure 53. Nodes page, Node settings

1. In the node list, select a node to configure.


2. Configure the Node settings.

Setting Value Description


Node address 1 to 247 Node ID, also called node address, is the node’s identity on the subnetwork. The
node id is a number between 1 and 247. By default, the node is assigned the next
available number. The same node id cannot be used on multiple nodes.
Name N/A By default, the node is assigned the name New node and the corresponding Server
address. The node name can be changed.
Timeout time 10 ms to 10 000 ms If a transaction in a transaction fulfills the specified timeout time value for all
specified retries, the remaining transactions defined for the node will be skipped in
Enabled by default
the current cycle.
Default 1000 ms
The maximum addition to the cycle length is only one instance of the timout
setting.
If enabled, specify how long the Communicator should wait before sending the
message again, when no response is received from the node.
If the timeout time is exceeded, the Communicator continues to send the message
until the maximum number of retries has been reached.
If disabled, the Communicator immediately sends the message again, when no
response is received from the node
Reconnection Min 10 ms Specify for how long the Communicator should wait before attempting to
time reconnect, if the node is disconnected.
Max 60 0000 ms
The default value is 10 000 ms.
Default 1000 ms
Reconnect time (10 ms) is not applicable for the broadcast node, that hold
transactions destined to all nodes.
Retries 0 to 10 Specify the number of attempts the Communicator should make, when no
response is received from the node.
Default 0
Address format Default format: Available for the Modbus TCP serial protocol.
Address Register Specify the address format for the node.
Modicon Modicon extended Address: 0, 1, 2, ...
Register: 1, 2, 3, ...
Modicon: 00001/10001/30001/40001
Modicon extended: 000001/100001/...

Page 68 of 139 SCM-1202-152 Version 1.13


Nodes and Transactions Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

3. To apply the settings, click Apply in the web-interface header, and follow the instructions.

To Do Next
Add Transactions, Add Transactions (page 69).

7.8.4. Add Transactions

NOTE
The maximum number of transactions that can be added to a node is 150.

1. In the node list, select a node to configure.


2. In the transaction list, click Add.
3. Choose one of the following alternative:

When using the Modbus RTU Serial Protocol


• Click Add and select a transaction from the list of standard Modbus RTU transactions.

Figure 54. Add Modbus RTU transactions

SCM-1202-152 Version 1.13 Page 69 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Nodes and Transactions

When using the Request/Response or Produce/Consume Serial Protocol

Figure 55. Add new empty template

• Click Add and select Add from new transaction template.


You are redirected to the Transaction template page.
A new empty template is added to the Transaction templates list.

NOTE
You must build the transactions before you can use the template, refer to Build Transaction
Template (page 53).

Figure 56. Add new empty template

Page 70 of 139 SCM-1202-152 Version 1.13


Nodes and Transactions Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

• If you already have created Transaction templates, click Add and select the desired template from the list.
A new transaction is added to the transactions list.

Figure 57. Add new transaction

To Do Next
Configure the Transactions settings, Transaction Settings (page 72).

SCM-1202-152 Version 1.13 Page 71 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Nodes and Transactions

7.8.5. Transaction Settings


Before You Begin

NOTE
When a custom transaction is selected, the custom transaction template is locked for editing.

For Modbus transaction reference guide, refer to Modbus Transactions (page 137).

Procedure

Figure 58. Modbus TCP Protocol

Figure 59. Custom request/response Protocol

1. In the node list, select a node to configure.


2. In the transactions list, select a transaction to configure.
The transactions sidebar opens, on the right side of the screen.
3. Enter a transaction name.
By default, the node is assigned the name New transaction.
4. Select a transaction type from the Modbus transaction/Custom transaction drop-down menu.
The transaction type defines what the node should perform when the transaction is executed.

Page 72 of 139 SCM-1202-152 Version 1.13


Nodes and Transactions Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

5. Configure the Command settings.

Setting Value Description


Transaction name N/A You can name the transaction to make it easier to identify.
Read quantity 1 to 125 Specifies the number of registers to read to follow in the read
data field. Appear when Modbus transaction Read Write Multiple
Registers (23) is selected.
Address 0 to 65 535 Specify the start address for the read/write transaction.
The address acts as an address to the data position, where the data
is read from or written to.
Modbus holding register addresses starts at 0.
Modbus address 0 = Register 1
Write quantity Read Write Multiple Registers (23), 1 to 123 Specifies the quantity of registers to follow in the write data field.
Appear when Modbus transaction Read Write Multiple Registers
(23) is selected.
Quantity Read Holding Registers (3) The Quantity parameter appear when you select a Modbus
transaction that can address more than one data object.
Read Input Registers (4), 1 to 125
Example when Quantity is set: For the Modbus Transaction Read
Write Multiple Coils (15), 1 to 1968
Input Registers (4) you need to set the Quantity in order to define
Write Multiple Registers (16), 1 to 123 the array of data.
Read Coils (1) Example when no Quantity is set: For the Modbus Transaction Write
Read Discrete Inputs (2), 1 to 2000 Single Coil (5) you do not need to set the Quantity parameter
because there can not be an array of data. The transaction is used to
write a single output to either ON or OFF in a remote device.
For Write Single Coil (5), Write Single Register (6) and Mask Write
Register (22) Quantity cannot be set.
Constant 0 to 255 The value of the Constant in the frame.
Data 0 to 512 The length of the data field.
Variable data Byte counter: 0 to 255 The maximum payload length of the variable data field.
End pattern: 0 to 1499
None (Default): 0 to 1500
Update mode Cyclically Specify when a transaction shall be sent to the server. The
transaction is issued cyclically, at the interval specified in the Update
On data change Single shot
time parameter.
Change of state on trigger
Cyclically: The transaction is sent cyclically, at the interval specified
in the Update time parameter.
On data change: The transaction is sent when the data is changed.
Single shot: The transaction is issued once at start up.
Change of state on trigger: The transaction is triggered when the
content of a specified byte changes. In the I/O data map, the node
will be marked with a flash icon.In the I/O data map you can also
configure the area map and the trigger byte address. See Trigger
Byte (page 83).
Update time 3 ms to 60 000 ms Update mode parameter must be set to Cyclically. The Update time
parameter appear when Cyclically is select.
Specify how often, in steps of 10 ms, the transaction are going to be
issued.
Positive ack N/A When Positive Acknowledgement is enabled, the positive ack data
byte in the I/O data map is incremented each time this transaction
succeeds.
Negative ack N/A When Negative Acknowledgement is enabled, the negative ack data
byte in the I/O data map is incremented each time this transaction
fails.

6. To apply the settings, click Apply in the web-interface header, and follow the instructions.

SCM-1202-152 Version 1.13 Page 73 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Nodes and Transactions

7.8.6. Activate/Deactivate Transaction

Figure 60. Activate/Deactivate Transaction

The transaction default status is Active.

To deactivate/activate a transaction, select the transaction and click the slide toggle.

7.8.7. Duplicate Transaction


When you duplicate a transaction, all settings are preserved.

Figure 61. Duplicate transaction

To duplicate:

• One transaction, select the command and click Duplicate.


• Multiple transactions, select the checkbox in front of each transaction you want to duplicate and click
Duplicate.
The duplicated transaction is added at the bottom of the transactions list.

Page 74 of 139 SCM-1202-152 Version 1.13


Nodes and Transactions Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

7.8.8. Delete Transaction

Figure 62. Delete transaction

1. To delete:
• One transaction, select the transaction and click Delete.
• Multiple transactions, select the checkbox in front of each transaction and click Delete.
2. To confirm, click Yes.

SCM-1202-152 Version 1.13 Page 75 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial High Level Network Settings

7.9. High Level Network Settings


Configure the EtherNet/IP network settings.

7.9.1. To Use Automatic I/O Sizes

Figure 63. EtherNet/IP, I/O sizes

By default, the Communicator is set to use automatic I/O sizes.

The size of the input data, Data Size to EtherNet/IP, and the output data, Data Size from EtherNet/IP, is
determined by the subnetwork configuration.

In the Communicator built-in web interface, the Use Automatic I/O Sizes checkbox is selected.

7.9.2. To Configure I/O Sizes Manually

NOTE
The maximum data size in each direction is 1448 bytes bytes.

Figure 64. EtherNet/IP, I/O sizes

1. Deselect the Use Automatic I/O Sizes checkbox.


2. Enter a value for Data Size to EtherNet/IP and a value for Data Size from EtherNet/IP.

Page 76 of 139 SCM-1202-152 Version 1.13


High Level Network Settings Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

7.9.3. To Use DHCP Server

Figure 65. IP Settings, DHCP enabled

By default, the IP settings are provided by the high level network DHCP server. The DHCP enabled checkbox is
selected.

Default Communicator IP Settings


The Communicator comes with the following factory default IP settings:

Setting Default value


DHCP Enabled
IP address 192.168.0.10
Subnet mask 255.255.255.0
Gateway address There is no default Gateway address.
Primary DNS server There is no default Primary DNS server.
Secondary DNS server There is no default Secondary DNS server.
Hostname You can label the Communicator. Maximum length is 64 characters. No symbol characters,
punctuation characters, or whitespace are permitted. Write the Hostname as one single word.

SCM-1202-152 Version 1.13 Page 77 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial High Level Network Settings

7.9.4. To Configure IP Settings Manually

Figure 66. IP Settings, DCHP disabled

1. Deselect the DHCP enabled checkbox.


2. Configure the IP settings.

Setting Description
IP address The EtherNet/IP network IP address in IPv4 dot-decimal notation
Subnet mask The EtherNet/IP network Subnet mask in IPv4 dot-decimal notation.
Gateway address The EtherNet/IP network Gateway address in IPv4 dot-decimal notation.
If there is no gateway available, set the Gateway address to: 0.0.0.0
Primary DNS The EtherNet/IP network Primary DNS in IPv4 dot-decimal notation.
Secondary DNS The EtherNet/IP network Secondary DNS in IPv4 dot-decimal notation.

Page 78 of 139 SCM-1202-152 Version 1.13


High Level Network Settings Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

7.9.5. Naming the Host

Figure 67. EtherNet/IP page, IP Settings Hostname

You can label the Communicator.

• The maximum allowed length of the Hostname is 64 characters.


• No symbol characters, punctuation characters, or whitespace are permitted.
• Write the Hostname as one single word.

7.9.6. Connection Settings

Figure 68. EtherNet/IP page, Connection settings

When the EtherNet/IP Client (PLC) opens a connection to the Communicator, it specifies an I/O data size.

By default the Communicator is set to Accept Only Matching I/O Sizes.

The connections must match the I/O size configured on the EtherNet/IP page, refer to To Use Automatic I/O Sizes
(page 76) and To Configure I/O Sizes Manually (page 76).

You can change to Accept All Connections.

The Communicator will accept all connections with an I/O size that is equal to or smaller than the configured I/O
size in the Communicator.

SCM-1202-152 Version 1.13 Page 79 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial I/O Data Map

7.10. I/O Data Map

Figure 69. I/O data map page

On the I/O data map page the data communication between the subnetwork (Node) and the high level network
(PLC) is mapped.

The allocated I/O area is auto-generated based on how the settings on the Serial communication page and the
Nodes and transactions page are configured.

It is possible to set the I/O area manually, if you want to pro-actively allocate more I/O for future expansions
without re-configuring the PLC. See To Configure I/O Sizes Manually (page 76).

There are three areas: Data from EtherNet/IP, Data to EtherNet/IP and General area. See Map Area (page 83).

Page 80 of 139 SCM-1202-152 Version 1.13


I/O Data Map Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

7.10.1. Optimize the I/O Data Map


The optimize function is used to automatically remove gaps between the mapping.

IMPORTANT
Optimize remove gaps between the data objects in the map and should be used with care on already
commissioned systems. Expected mapping in the PLC may change.

NOTE
If you optimize the I/O data map, the current I/O data map will be overwritten.

Figure 70. I/O data map page, Optimize

To optimize the map:

1. Click Optimize.
2. To confirm, click OK.

SCM-1202-152 Version 1.13 Page 81 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial I/O Data Map

7.10.2. Map Area Transactions Order


To change the order of the transactions in a map area, drag and drop the desired transaction to a new location.

Figure 71. I/O data map, change the order of transactions

Transactions can not share the same I/O are.

If multiple transactions are placed in the same I/O area, the area is highlighted.

Figure 72. Highlighted I/O area

Page 82 of 139 SCM-1202-152 Version 1.13


I/O Data Map Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

7.10.3. Map Area

Figure 73. I/O data map page, Map area options

Map area options


You must specify the map area to use for each transaction in the I/O data map.

Select one of the following Map area options:

• Input/Output: The transaction data is sent/recieved to/from the high level network.
• General: This area is used for transferring transaction data between individual nodes on the subnetwork.
When General is selected, the transaction data cannot be accessed from the high level network.
• Unmapped: The transaction data is not used.

Start address
For Input/Output and General, you can enter a start address for the transaction data.

7.10.4. Trigger Byte


Trigger byte is used to enable/disable the trigger functionality for the response.

When Trigger byte is enabled, the Communicator increases the trigger byte by one when the Communicator
receives new data from the subnetwork.

The Trigger byte is stored in the Data from EtherNet/IP area or the General area.

The location of the trigger byte is specified by the address.

Figure 74. I/O data map

SCM-1202-152 Version 1.13 Page 83 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial I/O Data Map

How to Enable Trigger Byte on a Node


Procedure
1. Navigate to the Nodes & transactions page.
2. Select the decried node and transaction.
3. In the transaction sidebar Update mode menu, select Change of state on trigger.
4. Navigate to the I/O data map page.
5. The transaction with the trigger byte enabled is marked with a flash icon.
To open the Map Area sidebar, click on the flash icon.
6. In the Map Area sidebar, specify the map area to use and the trigger byte address:
Map area options
• From EtherNet/IP: The trigger byte is stored in the I/O data map Data from EtherNet/IP area.
• General: The trigger byte is stored in the I/O data map General area.
• Unmapped: The transaction data is not used.
Address
• Enter an Address, the location in the specified Map area (From EtherNet/IP or General) where the trigger
byte will be saved.
Value: 0 (default) to 1499

7.10.5. Endian Swap


By default EtherNet/IP uses the little-endian format.

Big-endian
The big-endian format places the most significant byte of the data at the byte with the lowest memory address.

Little-endian
The little-endian format places the least significant byte of the data at the byte with the lowest memory address.

Page 84 of 139 SCM-1202-152 Version 1.13


I/O Data Map Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

Convert Between Big-Endian and Little-Endian


To convert between big-endian and little-endian you must reverse the byte order.

Figure 75. I/O data map, Endian swap

To reverse the byte order:

1. In the web-interface left sidebar menu, click I/O data map.


2. In the data map, select the transaction for which you want to do swap the byte order.
3. Select the endian swap type from the Endian swap drop-down menu.

Setting Description
No swapping Default setting
No swapping is performed on the data.
Bytes Swap 2 bytes
A B C D becomes B A D C
Words Swap 4 bytes
A B C D becomes C D A B
Bytes and words A B C D becomes D C B A

4. To apply the settings, click Apply in the web-interface header, and follow the instructions.

SCM-1202-152 Version 1.13 Page 85 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial I/O Data Map

7.10.6. Offline Option

Figure 76. I/O data map page, Offline options

Offline mode is used to define what data to send if the network connection or connection with a specific node is
lost.

You must specify the offline mode to use for each transaction on the I/O data map.

Select one of the following Offline options:

• Clear (Default): The data is cleared and the value 0 is sent.


• Freeze: The Communicator holds the value until the connection is restored.
• No scanning: Stop sending this transaction on the sub-network. This option is only valid for produce and
request transactions.

Page 86 of 139 SCM-1202-152 Version 1.13


I/O Data Map Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

7.10.7. Live List

Figure 77. I/O data map page, Live list enabled

By default Live list is disabled.

When Live list is enabled, the first four bytes of process data on the EtherNet/IP network contain the live list.

Each bit in the Live list can hold the status for one node.

The Live list holds 32 bits, a total of 32 nodes connected to the Communicator.

The bit is 0 when the bit does not correspond to the configured node. For example, this occurs when the number
of configured nodes is less than 32.

Each bit is 1 when the corresponding node is online.

SCM-1202-152 Version 1.13 Page 87 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial I/O Data Map

7.10.8. Data Exchange Control

Figure 78. I/O data map, Data exchange control enabled

By default Data exchange control is disabled.

When Data exchange control is enabled, the first four bytes of process data on the EtherNet/IP network contain
the data exchange control.

The Data exchange control holds 32 bits.

Each bit in the Data exchange control can be used to enable/disable data exchange for individual nodes on the
subnetwork.

If control bit does not correspond to a configured node, the control bit is ignored. For example, this occurs when
the number of configured nodes is less than 32.

The node order in the Data exchange control 32 bit array always matches the Live List.

When the data exchange is enabled for the corresponding node, the control bit is 1.

Page 88 of 139 SCM-1202-152 Version 1.13


Configuration Notes Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

7.11. Configuration Notes


You can add notes to describe the Communicator configuration.

7.11.1. Add Configuration Note


Procedure

1. To open the Configuration Notes window, click on the comments icon .

Figure 79. Configuration note, comment icon

2. To add a new configuration note, click Add.

Figure 80. Add new configuration note

SCM-1202-152 Version 1.13 Page 89 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Configuration Notes

3. Write your configuration note and click accept .

Figure 81. Write a configuration note

The configuration note is added to the list.

4. To close the window, click close .


5. To save the configuration note, click Apply in the web-interface header, and follow the instructions.

Page 90 of 139 SCM-1202-152 Version 1.13


Configuration Notes Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

7.11.2. View and Edit Configuration Notes


To view and/or edit a note, click on the comments icon .

Figure 82. Example: The comment icon indicates that there are three added notes

The configuration notes are listed in the Configuration Note window.

Figure 83. Example: The Configuration Notes window with added notes

SCM-1202-152 Version 1.13 Page 91 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Apply Configuration

7.12. Apply Configuration


Before You Begin

NOTE
When you apply the configuration, any existing configuration is overwritten.

Figure 84. Disconnect the Communicator from the EtherNet/IP network

Before you can apply the configuration, ensure that there is no active communication on the EtherNet/IP
network where the Communicator is connected.

Procedure
To make the settings take effect, download the configuration to the Communicator:

1. In the web-interface header, click Apply

2. To confirm download, click Apply.


The configured settings are downloaded and applied to the system.

Page 92 of 139 SCM-1202-152 Version 1.13


To Use an Existing Configuration Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

7.13. To Use an Existing Configuration


When you have configured a Communicator and want to use the same settings to configure additional
Communicator, do the following.

Procedure

Figure 85. Files & firmware page

In the built-in web-interface of the Communicator with the configuration you want to use:

1. On the Files & firmware page, click Export


The configuration is saved in an conf file and downloaded to your PC.

In the built-in web-interface of the new Communicator to be configured:

2. On the Files & firmware page, click Import


3. In the Import configuration window, click Select file (.conf).
4. In the Open dialog box, browse to and select the configuration file and click Open.
5. To import the configuration file, click Import.

Result
All the configuration settings are imported.

To apply the settings, click Apply in the web-interface header, and follow the instructions.

SCM-1202-152 Version 1.13 Page 93 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial To Use an Communicator Classic Configuration

7.14. To Use an Communicator Classic Configuration


Before You Begin

NOTE
Only the Communicator Classic serial configuration settings can be imported.

The I/O data map and high-level network settings are not supported and must be set manually in the
Communicator built-in web interface.

Communicator Classic Classic configuration intended use


The intended use of the Communicator Classic configuration import is to:

• convert custom protocols.


• get a new Communicator unit up and running quickly and then complete the configuration in the
Communicator built-in web interface.

Configuration files containing standard Modbus RTU commands


• It is not recommended to import Communicator Classic configuration files containing standard Modbus RTU
commands if you need to be able to easily make change to the imported configuration.
• When standard Modbus RTU commands are imported, they are converted to Custom Request/Response
transactions. See Communication Serial Protocol (page 39).
• The behavior of the imported standard Modbus RTU commands is preserved, but adding or changing Modbus
RTU commands in Custom Request/Response mode is more difficult than in Modbus RTU mode.

Procedure

Figure 86. Files & firmware page

1. On the Files & firmware page, click Import Anybus Communicator Classic configuration
2. In the Import Anybus Communicator Classic configuration window, click Select file (.cfg).

Page 94 of 139 SCM-1202-152 Version 1.13


To Use an Communicator Classic Configuration Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

3. In the Open dialog box, browse to and select the configuration .cfg file and click Open.
4. If you want to import a name file, click Select name file (.cfx).
5. In the Open dialog box, browse to and select the configuration .cfx file and click Open.
6. To import the configuration, click Import.

Figure 87. Example, selected .cfg and .cfx files

Result
The Communicator Classic serial configuration settings are imported.

A window with messages about the imported configuration appear.

In the list you can view the settings that are fully supported or adjusted to work with Communicator and which
settings that are not supported and must be set manually in the built-in Communicator interface.

To export the messages in an Excel XLS file, click Export Messages.

To apply the settings, click Apply in the web-interface header, and follow the instructions.

Figure 88. Example, list with messages about the import

SCM-1202-152 Version 1.13 Page 95 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial PLC Configuration

8. PLC Configuration

8.1. Export I/O Data Map


When configuring the communication between the PLC and the nodes on the subnetwork, use the I/O data map
as a specification to ensure that the transactions match.

Figure 89. I/O data map page

On the I/O data map page you can export the I/O data map in an Excel XLS file, where all the nodes and
transactions are listed.

To export the I/O data map:

1. Click Export.
An Excel XLS file with the mapping is downloaded to your PC.

8.2. Export Product EDS File


Option if the PLC program requires a product file, EDS (Electronic Data Sheet) file, describing how the
Communicator can be used on the high level network.

Figure 90. Export Product EDS File

You find the EtherNet/IP™ EDS file on the Communicator built-in web interface EtherNet/IP™ page, Files &
firmware page and on the Support page.

To export the EDS file:

1. Click EDS file.


The EDS file is downloaded to your PC.

Page 96 of 139 SCM-1202-152 Version 1.13


CIP Objects Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

8.3. CIP Objects


Supported Common Industrial Protocol (CIP) objects.

Object name Class Description


Identity object 0x01 The identification object
Message router object 0x02 Message router
Assembly object 0x04 Assembly object
Connection manager object 0x06 Connection manager object
DLR object 0x47 Device level ring object
QoS object 0x48 Quality service object
TCP/IP Interface object 0xF5 Handles TCP/IP configuration
EtherNet/IP Link object 0xF6 Handles EtherNet/IP configuration

SCM-1202-152 Version 1.13 Page 97 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Verify Operation

9. Verify Operation

Before You Begin


Ensure that the Communicator is connected to your PC, to a power supply and to the OT network.

See Installation (page 13).

9.1. Communicator Status Monitor


On the Home page, you can get a quick overview of the network and the Communicator operating status.

Figure 91. Home page

Gateway Status
Overview the Communicator LED indications remotely.

Refer to Communicator LED Indicators (page 100).

Node Status
Overview the status for each node added to the subnetwork.

Network Status and Settings


Overview communication status and the current networks settings.

Page 98 of 139 SCM-1202-152 Version 1.13


Communicator Status Monitor Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

Status Symbols
Symbol Description
Internal error has occurred and operation cannot be guaranteed.

Out of Specification.

Check Function:
• Initial state where non network components are started and configured.
• Network startup in progress.
• Invalid configuration detected.

Normal operation.

SCM-1202-152 Version 1.13 Page 99 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Communicator LED Indicators

9.2. Communicator LED Indicators

NOTE
Before you can verify operation you must configure the Communicator.

Figure 92. Communicator status (A), High level Network/Client (B), Subnetwork 2 (C) and (D) Security Switch

LED A LED B LED C LED D


Operation status Gateway status EtherNet/IP - Adapter Subnetwork Security switch
Off No power No power/No IP address No power/Subnetwork not No power/Security switch is
running/Node is switched unlocked
off via a control word
Green, flashing Startup phase EtherNet/IP online, no Running, one or more N/A
connections established nodes are offline
Green, solid Operational EtherNet/IP online, one Running Security switch is locked
or more connections
established
Red, solid N/A Duplicated EtherNet IP N/A N/A
address/Fatal error
Red, flashing Invalid configuration One or more connections All nodes are offline N/A
timed out
Green/Red, flashing Power up self-test/ N/A N/A N/A
Firmware update/Firmware
recovery

Fatal Error and Exception Error


Fatal error: A fatal error causes the Communicator firmware application to crash in an uncontrolled manner.

Exception error: An exception error causes the Communicator to enter a controlled error state. The
Communicator firmware application is still running.

LED Fatal error Exception error


A Red, solid Red, solid
B Red, solid Off
C Red, solid Off
D Off Off

Page 100 of 139 SCM-1202-152 Version 1.13


Ethernet LED Indicators Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

9.3. Ethernet LED Indicators

Figure 93. LED A. Activity LED B. Not used

LED A Function
Off No link (or no power)
Green Link (100 Mbit/s) established
Green, flashing Activity (100 Mbit/s)
Yellow Link (10 Mbit/s) established
Yellow, flashing Activity (10 Mbit/s)

LED B Function
Off Not used

SCM-1202-152 Version 1.13 Page 101 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Use Cases

10. Use Cases

10.1. Temperature Regulator - Modbus RTU Use Case


10.1.1. About the Use Case
The purpose of this use case is to explain how to use the Modbus RTU serial protocol.

Figure 94. Temperature Regulator - Modbus RTU Use Case

In this use case we use the Communicator to enable data exchange between an Temperature Regulator and a
PLC.

The use case describes how to map the communication in the Communicator.

The Temperature Regulator is connected to the serial subnetwork via a custom RS-232 protocol.

The PLC is connected to an EtherNet/IP network (high level network).

10.1.2. Before You Begin


• Connect the Communicator configuration port to your computer.
• Power on the Communicator.
• Ensure that your computer can find the Communicator IP address.
• Enter the Communicator built-in web interface of the.

For more information refer to Communicator Configuration (page 34).

Page 102 of 139 SCM-1202-152 Version 1.13


Temperature Regulator - Modbus RTU Use Case Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

10.1.3. Choose Serial Protocol Type


The Temperature Regulator is using a request/response protocol to access parameters addressed with index and
sub index.

Figure 95. Communication page, Modbus RTU

On the Serial RS232/485 page, select Modbus RTU.

10.1.4. Setup Serial Communication


Set up the communication between the Communicator and the Temperature Regulator.

In the Serial RS232/485 page, configure the Communication settings.

Figure 96. Serial RS232/485, Basic settings

Table 1. Used the following settings:


Frame objects Value
Physical standard RS-232
Baud rate 19200 baud
Data bits 8 bits
Parity None
Stop bits 2 stop bit

SCM-1202-152 Version 1.13 Page 103 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Temperature Regulator - Modbus RTU Use Case

10.1.5. Setup the Node

Figure 97. Add the Temperature Regulator node

1. Add a node and select it.


2. In Node settings, configure the node with the following settings:

Node settings Value


SubDevice address 240
Name Temp Regulator
Timeout time 1000 ms
Reconnection time 1000 ms
Retries 1
Address format Register

Page 104 of 139 SCM-1202-152 Version 1.13


Temperature Regulator - Modbus RTU Use Case Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

10.1.6. Setup the Transactions


Set up the communication between the node and the master.

In this example, the communication between the Temperature Regulator and the PLC.

The Temperature Regulator has two Modbus transactions:

• One registers holding the setpoint temperature.


• One registers holding the actual temperature.

Configure the temperature setpoint transaction

Figure 98. Temperature setpoint transaction

1. Select the Temp Regulator node.


2. To add a transaction, click Add.
3. Select the transaction to configure.
4. In the transaction sidebar, on the right side of the screen.
Enter values for the transaction settings.

Table 2. Setpoint temperature transaction settings


Setting Value Description
Transaction name Temp Setpoint Give the transaction a name.
Modbus transaction Write Multiple Registers The PLC writes a block of contiguous registers to the temperature regulator.
(16)
Address/ Register Address: 0 Address 0 is Register 1.
Register: 1
Quantity 1 The transaction will address one data object.
Update mode Cyclically The temperature regulator sends a new message cyclically, every 1000 ms.
Update time 1000 ms The update cycle is 1000 ms.

SCM-1202-152 Version 1.13 Page 105 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Temperature Regulator - Modbus RTU Use Case

Configure the actual temperature transaction

Figure 99. Actual temperature transaction

1. To add a second transaction, click Add.


2. Select the transaction to configure.
3. In the transaction sidebar, on the right side of the screen.
Enter values for the transaction settings.

Table 3. Actual temperature transaction settings:


Setting Value Description
Transactio name Actual Temp Give the transaction a name.
Modbus transaction Read Holding Registers This register read the actual temperature from the temperature regulator to the
(3) PLC.
Address Address: 0 Address 0 is Register 1.
Register: 1
Quantity 1 The transaction will address one data object.
Update mode Cyclically Default value, can not be changed.
Update time 1000 ms The update cycle is 1000 ms.

Page 106 of 139 SCM-1202-152 Version 1.13


Temperature Regulator - Modbus RTU Use Case Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

10.1.7. Check the I/O Data Map


The transactions to and from the Temperature Regulator are mapped as follows in the I/O data map page.

Figure 100. I/O data map

Address Data to EtherNet/IP


0-1 Setpoint temperature from EtherNet/IP to the Temperature Regulator.

Address Data from EtherNet/IP


0-1 Actual temperature from the Temperature Regulator to EtherNet/IP.

SCM-1202-152 Version 1.13 Page 107 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial AC Motor Drive - Custom Request/Response Use Case

10.2. AC Motor Drive - Custom Request/Response Use Case


10.2.1. About the Use Case
The purpose of this use case is to explain how to use the Custom Request/Response serial protocol.

Figure 101. AC Motor Drive - Custom Request/Response Use Case

In this use case we use the Communicator to enable data exchange between an AC motor, of the type My Drive,
and a PLC.

The use case describes how to map the communication in the Communicator.

My Drive is connected to the serial subnetwork via a custom RS-485 protocol.

The PLC is connected to an EtherNet/IP network (high level network).

We use the Custom Request/Response serial protocol and create customized transaction template to map up:

• Status word and actual speed from My Drive to the EtherNet/IP network.
• Control word and speed from the EtherNet/IP network to My Drive.

10.2.2. Before You Begin


• Connect the Communicator configuration port to your computer.
• Power on the Communicator.
• Ensure that your computer can find the Communicator IP address.
• Enter the Communicator built-in web interface of the.

For more information refer to Communicator Configuration (page 34).

Page 108 of 139 SCM-1202-152 Version 1.13


AC Motor Drive - Custom Request/Response Use Case Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

10.2.3. Choose Serial Protocol Type


My Drive is using a request/response protocol to access parameters addressed with index and sub index.

Figure 102. Communication page, Custom Request/Response

On the Serial RS232/485 page, select Custom Request/Response.

10.2.4. Setup Serial Communication


Set up the communication between the Communicator and My Drive.

In the Serial RS232/485 page, configure the Communication settings.

Figure 103. Serial RS232/485, Basic settings

Table 4. Used the following settings:


Frame objects Value
Physical standard RS-485
Baud rate 57600 baud
Data bits 8 bits
Parity None
Stop bits 1 stop bit

SCM-1202-152 Version 1.13 Page 109 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial AC Motor Drive - Custom Request/Response Use Case

10.2.5. Create Transaction Templates


All frames are verified using a CRC-16-IBM checksum.

My Drive is using a request/response protocol to access parameters addressed with index and sub index.

Map up control word, speed from EtherNet/IP to My Drive and status word and actual speed from the drive to
EtherNet/IP.

Create Read Parameter (0x01)


The Communicator reads values delivered from to the My Drive node on to the PLC.

Figure 104. Read Parameter (0x01)

1. Add an Empty template and select it.


2. Name the template Read parameter (0x01).
3. In the Frame editor Request area, add five frame objects with the following settings:

Table 5. Request frame objects


Frame objects Name Bytes/Length Type/Checksum Endianess Fixed field Value
type
Constant Function code 1 Byte N/A Yes N/A
Node address Node ID 1 Byte N/A N/A N/A
Constant Index 2 Word (two bytes) Big-endian No Min 0
Max 1000
Constant Sub index 1 Byte N/A No Min 0
Max 255
Checksum Checksum 2 CRC N/A N/A N/A

Page 110 of 139 SCM-1202-152 Version 1.13


AC Motor Drive - Custom Request/Response Use Case Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

4. In the Frame editor Response area, add six frame objects with the following settings:

Table 6. Response frame objects


Frame object Name Bytes/Length Type/Checksum Endianess Fixed field Value
type
Constant Function code 1 Byte N/A Yes N/A
Node address Node ID 1 Byte N/A N/A N/A
Constant Index 2 Word (two Big-endian No Min 0
bytes) Max 1000
Constant Sub index 1 Byte N/A No Min 0
Max 255
Data Data 2 Byte N/A Yes N/A
Checksum Checksum 2 CRC N/A N/A N/A

SCM-1202-152 Version 1.13 Page 111 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial AC Motor Drive - Custom Request/Response Use Case

Create Write Parameter (0x02)


The Communicator writes values delivered from the PLC to the My Drive node.

Figure 105. Write Parameter (0x02)

1. Add an Empty template and select it.


2. Name the template Write parameter (0x02).
3. In the Frame editor Request area, add six frame objects with the following settings:

Table 7. Request frame objects


Frame object Name Bytes/Length Type/Checksum Endianess Fixed field Value (Hex)
type
Constant Function code 1 Byte N/A Yes N/A
Node address Node ID 1 Byte N/A N/A N/A
Constant Index 2 Word (two bytes) Big-endian No Min 0
Max 1000
Constant Sub index 1 Byte N/A No Min 0
Max 255
Data Data 2 Byte N/A Yes N/A
Checksum Checksum 2 CRC N/A N/A N/A

Page 112 of 139 SCM-1202-152 Version 1.13


AC Motor Drive - Custom Request/Response Use Case Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

4. In the Frame editor Response area, add five frame objects with the following settings:

Table 8. Response frame objects


Frame objects Name Bytes Type/Checksum Endianess Fixed field Value (Hex)
type
Constant Function code 1 Byte N/A Yes N/A
Node address Node ID 1 Byte N/A N/A N/A
Constant Index 2 Word (two bytes) N/A No Min 0
Max 1000
Constant Sub index 1 Byte N/A No Min 0
Max 255
Checksum Checksum 2 CRC N/A N/A N/A

SCM-1202-152 Version 1.13 Page 113 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial AC Motor Drive - Custom Request/Response Use Case

10.2.6. Setup Node and Transactions

Figure 106. My Drive node with transactions

1. Add a node and select it.


2. In Node settings configure the node with the following settings:

Node settings Value


Node address 1
My Drive is set up as a node with Node address 1.
Name My Drive
Timeout time 1000 ms (default)
Reconnecting time 1000 ms (default)
Retries 0 (default)

3. Add four transactions to the My Drive node and configure them with the following settings:

Table 9. My Drive contains the following parameters


Transaction name Transaction template Index Sub index
Control Word Write Parameter (0x02) 1 1
Speed Write Parameter (0x02) 1 2
Status Word Read Parameter (0x01) 2 1
Actual Speed Read Parameter (0x01) 2 2

Page 114 of 139 SCM-1202-152 Version 1.13


AC Motor Drive - Custom Request/Response Use Case Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

10.2.7. Check the I/O Data Map


The control word, speed from EtherNet/IP to My Drive and status word and actual speed from My Drive to
EtherNet/IP are mapped as follows in the I/O data map page.

Figure 107. I/O data map

Table 10. Control word and speed from EtherNet/IP to My Drive


Address Drive Parameter
0-1 Control Word
2-3 Speed

Table 11. Status word and actual speed from My Drive to EtherNet/IP
Address Drive Parameter
0-1 Control Word
2-3 Speed

SCM-1202-152 Version 1.13 Page 115 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Barcode Scanner - Custom Produce/Consume Use Case

10.3. Barcode Scanner - Custom Produce/Consume Use Case


10.3.1. About the Use Case
The purpose of this use case is to explain how to use the Custom Produce/Consume serial protocol.

Figure 108. Barcode Scanner - Custom Produce/Consume Use Case

In this use case we use the Communicator to enable data exchange between an Barcode Scanner and a PLC.

The use case describes how to map the communication in the Communicator.

The Barcode Scanner is connected to the serial subnetwork via a custom RS-232 protocol.

The PLC is connected to an EtherNet/IP network (high level network).

We use the Custom Produce/Consume serial protocol and create a customized transaction template.

10.3.2. Before You Begin


• Connect the Communicator configuration port to your computer.
• Power on the Communicator.
• Ensure that your computer can find the Communicator IP address.
• Enter the Communicator built-in web interface of the.

For more information refer to Communicator Configuration (page 34).

Page 116 of 139 SCM-1202-152 Version 1.13


Barcode Scanner - Custom Produce/Consume Use Case Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

10.3.3. Choose Serial Protocol Type


The purpose of this use case is to explain how to use the Custom Produce/Consume serial protocol.

Figure 109. Communication page, Custom Produce/Consume

On the Serial RS232/485 page, select Custom Produce/Consume.

10.3.4. Setup Serial Communication


Set up the communication between the Communicator and Barcode Scanner.

In the Serial RS232/485 page, configure the Communication settings.

Figure 110. Serial RS232/485, Basic settings

Table 12. Used the following settings:


Frame objects Value
Physical standard RS-232
Baud rate 9600 baud
Data bits 8 bits
Parity None
Stop bits 1 stop bit

SCM-1202-152 Version 1.13 Page 117 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Barcode Scanner - Custom Produce/Consume Use Case

10.3.5. Create Transaction Templates


Create Read Barcode Data Parameter

Before You Begin


The Communicator reads values delivered from to the Barcode Scanner node on to the PLC.

The Barcode Scanner sends data whenever it is available, without any request or handshake from the
Communicator.

Figure 111. Barcode Variable data, CR and LF

In this example we have added three frame fields for the barcode data transaction:

• One Variable data frame for the length of the barcode.


We use a fixed value.
The maximum payload length is 31 (ASCII).
• The Barcode Scanner is configured to append:
– One Carriage Return character (CR) to the barcode.
So we create one Constant frame with the Value 13 (ASCII).
– One Line Feed character (LF) to the barcode.
So we create one Constant frame with the Value 10 (ASCII).

Page 118 of 139 SCM-1202-152 Version 1.13


Barcode Scanner - Custom Produce/Consume Use Case Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

Procedure

Figure 112. Read Barcode Data Parameter

1. Add an Empty consume template and select it.


2. Name the template Read Barcode Data.
3. In the Frame editor, add four frame field with the following settings:

Table 13. Consume frame fields


Frame fields Name Type Value Fixed field Maximum Process data Subnet End
payload delimiter delimiter pattern
length
Variable data Barcode Data N/A N/A Yes, set 31 bytes None None 0
here
Constant Carriage Byte (1 13 Yes, set N/A N/A N/A N/A
Return byte) here
character
(CR)
Constant Line Feed Byte (1 10 Yes, set N/A N/A N/A N/A
character (LF) byte) here

SCM-1202-152 Version 1.13 Page 119 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Barcode Scanner - Custom Produce/Consume Use Case

10.3.6. Setup Node and Transactions

Figure 113. Node settings

1. Add a node and select it.


2. In Node settings configure the node with the following settings:

Node settings Value


Node address The Barcode Scanner is set up as a node with Node address 1.
Name Barcode Scanner
Timeout time 1000 ms (default)
Reconnecting time 1000 ms (default)
Retries 0 (default)

3. Add one transactions to the Barcode Scanner node and configure it with the following settings:

Table 14. The Barcode Scanner contains the following parameters


Transaction name Transaction template
Read Barcode Data Read Barcode Data Template

Page 120 of 139 SCM-1202-152 Version 1.13


Barcode Scanner - Custom Produce/Consume Use Case Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

10.3.7. Check the I/O Data Map


The transactions from the Barcode Scanner is mapped as follows in the I/O data map page.

Figure 114. I/O data map

Table 15. Status word and actual speed from My Drive to EtherNet/IP
Address Barcode Scanner Parameter
0-31 The variable data, 31 bytes, are forwarded from the Barcode Scanner to the PLC.

SCM-1202-152 Version 1.13 Page 121 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Maintenance

11. Maintenance

11.1. Configuration File Handling


11.1.1. Export Configuration
You can export the current configuration, in order to import and use the same settings to configure additional
Communicator.

Figure 115. Files & firmware page

To export a configuration file:

• In Files & firmware, click Export.


The configuration settings are stored in a .conf file and downloaded to your PC.

Page 122 of 139 SCM-1202-152 Version 1.13


Configuration File Handling Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

11.1.2. Import Configuration


To easily configure multiple Communicator with the same settings, you can import a configuration file.

Before You Begin

NOTE
Importing a configuration replaces the current applied configuration.

The supported file format is .conf.

Procedure

Figure 116. Files & firmware page

Import configuration file:

1. On the Files & firmware page, click Import.


2. In the Import configuration window, click Select file (.conf).
3. In the Open dialog box, browse to and select the configuration file and click Open.
4. In the Import configuration window, click Import.
5. In the Communicator address settings window:
• To import IP settings from the selected configuration file, click Imported settings.
All configuration settings are imported.
• To continue using the current IP settings, click Configured settings.
All configuration settings except the IP settings are imported.
6. The configuration file is parsed.
• If the configuration is compatible, the settings are imported.
• If any compatibility mismatches occurs, a message about the mismatch appears.
7. To apply the settings, click Apply in the web-interface header, and follow the instructions.

SCM-1202-152 Version 1.13 Page 123 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Clear and Revert Configuration

11.2. Clear and Revert Configuration


You can restore all settings in a configuration to the default settings.

Procedure

Figure 117. Files & firmware page

To Clear the Configuration


When you want to clear a configuration and return to the default settings.

1. On the Files & firmware page, click Clear.


2. In the Confirm clear window, click Clear.
3. To apply the change, click Apply in the web-interface header, and follow the instructions.

To Revert the Configuration


When you want to remove any configuration made in a current session and re-load the configuration from the
gateway.

1. On the Files & firmware page, click Revert.


2. In the Confirm revert window, click Revert.
3. To apply the change, click Apply in the web-interface header, and follow the instructions.

Page 124 of 139 SCM-1202-152 Version 1.13


Firmware Management Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

11.3. Firmware Management


11.3.1. View the Firmware Version
On the Support page, you can view the current applied firmware version.

Figure 118. Support page, Product information example

11.3.2. Firmware and Configuration Compatibility


Compatibility after firmware upgrade
Current configuration is still compatible after upgrading the firmware.

Compatibility after firmware downgrade

IMPORTANT
Compatibility after a firmware downgrade can not be guaranteed.

The current configuration may use features not available in the older firmware version.

11.3.3. Firmware File Validation


Before the firmware file is imported into the system, the firmware upgrade function perform a validation of the
file, to ensure that:

• the firmware is compatible with the Communicator hardware


• the firmware is suited for the product
• the officially HMS software signatures are valid
• that the firmware file is not corrupt or damaged

If the firmware file does not pass the validation, the firmware file is rejected and an error message appear.

SCM-1202-152 Version 1.13 Page 125 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Firmware Management

11.3.4. Update Firmware


Before You Begin

IMPORTANT
To eliminate the risk of interference with plant operation, firmware update is only available when the
Communicator is disconnected from the OT networks.

Ensure that the Communicator is disconnected from the OT networks.

Procedure

Figure 119. Files & firmware page

To update the firmware:

1. On the Files & firmware page, click Upload.


2. In the Upload Firmware window, click Select firmware (.hiff).
3. In the Open dialog box, browse to and select the firmware file and click Open.
4. To start the firmware upgrade, click Update firmware.
The firmware file is validated and transferred.

Result
• If the firmware file pass the validation: The firmware is upgraded and then the Communicator automatically
reboots, for the upgrade to take effect.
• If the firmware file is rejected: An error message appear.

Page 126 of 139 SCM-1202-152 Version 1.13


Troubleshooting Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

12. Troubleshooting

12.1. Diagnostics
12.1.1. Serial RS-232/485 Data Monitor
On the Serial RS-232/485 page you can monitor how the data flow between the nodes and the gateway changes
over time.

Figure 120. Serial RS-232/485 page

The table can contain at most 10000 messages. When the limit is reached, the oldest messages are discarded
when new messages are added.

Choose How Data is Displayed


To choose if the data should be displayed in Hexadecimal, Decimal or ASCII, click Hex, Dec or Ascii.

Start and Stop Data Flow


To start the data flow, click Start.

To end the data flow, click Stop.

Export Data Flow


To export the data flow, click Export.

An Excel file with the data flow is downloaded to your PC.

SCM-1202-152 Version 1.13 Page 127 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Diagnostics

12.1.2. I/O Data


On the Diagnostics, I/O data page you can monitor how the data flow between the Serial RS-232/485 side and
the EtherNet/IP side, including any configured endian conversions.

Figure 121. I/O data

The table can contain at most 10000 messages. When the limit is reached, the oldest messages are discarded
when new messages are added.

Switch between the OT networks


To switch between the networks, select Serial RS-232/485 or EtherNet/IP.

Select how data is displayed


To choose if the data should be displayed in Hexadecimal, Decimal or ASCII, click Hex, Dec or Ascii.

Start and Stop Data flow


• To start the data flow, click Start.
• To end the data flow, click Stop.

Page 128 of 139 SCM-1202-152 Version 1.13


Diagnostics Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

12.1.3. Event Log

Figure 122. Event log page example

How To Analyze the Information


The log follows the FIFO principle, first in and first out. The oldest (first) value is processed first.

Time (d:hh:mm:ss.ms) The date and time when the event occurred.
Message A brief description of the event.
Severity The severity of the event occurred.
For description of the symbols, see Communicator Status Monitor (page 98).
Source 0 Communicator
1 High level network, EtherNet/IP
2 Subnetwork, Serial RS-232/485
Sub-source The nodes connected to the subnetwork and the PLC connected to the high level network.
If there is a problem with a node the node name is displayed in the Sub-source column.

Example 10. Sub-source number

If the node name is 5, number 5 is displayed in the Sub-source column.

To clear the current log, click Clear log.

SCM-1202-152 Version 1.13 Page 129 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Diagnostics

12.1.4. LED Status


On the Home page, you can remotely monitor the Communicator LED status.

Figure 123. Home page

For information about the LED indication, see Communicator LED Indicators (page 100).

Page 130 of 139 SCM-1202-152 Version 1.13


Reset to Factory Settings Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

12.2. Reset to Factory Settings


Before You Begin
Factory reset will reset any on site made configuration changes and set the Communicator to the same state as
leaving HMS production.

If the Firmware has been updated, factory reset will revert the Communicator configuration to initial state after
the update.

Procedure
To reset the Communicator:

1. Disconnect the Communicator from power.

Figure 124. Disconnect power

2. Use a pointed object, such as a ballpoint pen to press and hold the Reset button.

Figure 125. Press and hold Reset button

SCM-1202-152 Version 1.13 Page 131 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Reset to Factory Settings

3. While holding the reset button, reconnect the Communicator to power.

Figure 126. Hold Reset button and reconnect power

4. Release the reset button.


The Communicator enters exception state.

5. Reboot the Communicator.

Result
When the Communicator has successfully rebooted, the Communicator configuration is reset to the factory
default configuration or the current configuration after firmware upgrade.

To Do Next
To ensure that the Communicator built-in web-interface is synchronized.

1. Open the the Communicator built-in web interface.


2. Navigate to the Files & firmware page and click Revert.

Figure 127. Files & firmware, Revert

Page 132 of 139 SCM-1202-152 Version 1.13


Firmware Upgrade Error Management Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

12.3. Firmware Upgrade Error Management


If the firmware update process is interrupted or if the power is lost during the update process, the
Communicator goes into fallback mode.

The last working firmware is still available on the flash, but it is not active.

Procedure
To complete the interrupted firmware update:

1. Disconnect the Communicator from power.

Figure 128. Disconnect power

2. Reconnect the Communicator to power.

Figure 129. Reconnect power

SCM-1202-152 Version 1.13 Page 133 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Firmware Upgrade Error Management

3. Leave the Communicator for 10 minutes.


The Gateway status led indicator flashes red and green until the firmware upgrade is completed.

Figure 130. Firmware upgrade LED indication

Result
The Communicator recover and return to normal operation.

Figure 131. Recover and return to normal operation

To Do Next
To check LED status, refer to Communicator LED Indicators (page 100).

Page 134 of 139 SCM-1202-152 Version 1.13


Support Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

12.4. Support
12.4.1. Support Package

Figure 132. Support page example

Before you create a ticket for technical support, generate a support package.

The support package contains information about what has occurred and will help the Anybus technical support
team resolve the support case as quickly and efficiently as possible.

Support Package Content


The information in the support package is available to open and read, the files are not locked or encrypted.

Generate Support Package


On the Support page, click Generate.

A zip file with the support files is downloaded to your PC.

Create a Support Ticket


1. On the Anybus Technical Support page, navigate to the Support Center page and click HMS Support Portal.
2. In the HMS Support Portal, create a support ticket and upload the support package.

SCM-1202-152 Version 1.13 Page 135 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Technical Data

13. Technical Data

For complete technical specifications and regulatory compliance information, please visit www.anybus.com.

13.1. Technical Specifications


Article identification ABC3007
Configuration connector RJ45
Communication connector RJ45 x 2
Serial connector 7-pin screw connector
Power connector 3-pin screw connector
Power supply 12-30 VDC, Reverse voltage protection and short circuit protection
Power consumption Typical: 160 mA @ 24 V Max: 400 mA @ 12 V
Storage temperature -40 to +85 °C
Operating temperature -25 to +70 °C
Humidity EN 600068-2-78: Damp heat, +40°C, 93% humidity for 4 days
EN 60068-2-30: Damp heat, +25°C – +55°C, 95% RH, 2 cycles
Vibration See datasheet
Housing material Plastic, See datasheet for details
Protection class IP20
Product weight 150 g
Dimensions 27 x 144 x 98 mm (W x H x D) with connectors included
Mounting DIN-rail

Page 136 of 139 SCM-1202-152 Version 1.13


Reference Guides Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

14. Reference Guides

14.1. About Input Registers and Holding Registers


Modbus data is most often read and written as registers which are 16-bit pieces of data.

Holding registers and Input registers are both 16-bit registers.

Input Registers
Input registers can only be read.

Holding Registers
Holding registers can be read or written.

These registers can be used for a variety of things such as inputs, outputs, configuration data, or other
requirement for holding data.

14.2. Modbus Data Model


Discretes Input Single bit Read-Only Data can be provided by the I/O system.
Coils Single bit Read-Write Data can be alterable by the application program.
Input Registers 16-bit word Read-Only Data can be provided by the I/O system
Holding Registers 16-bit word Read-Write Data can be alterable by the application program.

Reference: MODBUS Application Protocol Specification V1.1b3, April 26 2012

For more information refer to the Modbus organisation website.

14.3. Modbus Transactions


Nr Transaction Function Code Description
1 Read Coils 0x01 Read from 1 to 2000 contiguous status of coils in a remote device.
2 Read Discrete Inputs 0x02 Read from 1 to 2000 contiguous status of discrete inputs in a remote device.
3 Read Holding Registers 0x03 Read the contents of a contiguous block of holding registers in a remote device.
4 Read Input Registers 0x04 Read from 1 to 125 contiguous input registers in a remote device.
5 Write Single Coil 0x05 Write a single output to ON or OFF in a remote device.
6 Write Single Register 0x06 Write a single holding register in a remote device.
15 Write Multiple Coils 0x0F In a sequence of coils, force each coil to either ON or OFF in a remote device.
16 Write Multiple Registers 0x10 Write a block of contiguous registers in a remote device.
22 Mask Write Register 0x16 In a single transaction, modify the contents of a specified holding register using a
combination of an AND mask, an OR mask, and the register's current contents.
Can be used to set or clear individual bits in the register.
23 Read/Write Multiple 0x17 Performs a combination of one read operation and one write operation.
Registers The write operation is performed before the read.

Reference: MODBUS Application Protocol Specification V1.1b3, April 26 2012

For more information refer to the Modbus organisation website.

SCM-1202-152 Version 1.13 Page 137 of 139


Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial Modus Exception Codes

14.4. Modus Exception Codes


Exception Code Name Description
01 Illegal Function The server does not recognize or permit the function code.
02 Illegal Data Address The data address (register, discrete input or coil number) is not an permitted address for the
server.
If multiple registers were requested, at least one was not permitted.

Reference: MODBUS Application Protocol Specification V1.1b3, April 26 2012

For more information refer to the Modbus organisation website.

14.5. ASCII Table

Page 138 of 139 SCM-1202-152 Version 1.13


RS232/RS485 Electrical Connection Anybus® Communicator™ - EtherNet/IP™ to Modbus RTU/Serial

14.6. RS232/RS485 Electrical Connection


14.6.1. RS485 Typical Connection

Figure 133. RS485

14.6.2. RS232 Typical Connection

Figure 134. RS232

SCM-1202-152 Version 1.13 Page 139 of 139

You might also like