HMS Anybus HMS-EN2MB-R User Manual Download Page 1

Linking Device

EtherNet/IP to Modbus-TCP

USER MANUAL

scm-1202–181 2.0 en-US ENGLISH

Summary of Contents for Anybus HMS-EN2MB-R

Page 1: ...Linking Device EtherNet IP to Modbus TCP USER MANUAL scm 1202 181 2 0 en US ENGLISH...

Page 2: ...ible 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...

Page 3: ...l View 9 3 2 Mounting the Linking Device 9 3 3 Power Connector 11 3 4 EtherNet IP Modbus TCP RJ45 Connectors 12 3 5 USB Connector 12 4 Configuration 13 4 1 Configuration Flow 13 4 2 Configuration Requ...

Page 4: ...2 Configuration 40 D 3 Tools 46 E CIP Objects 49 E 1 Identity Object 01h 49 E 2 Message Router 02h 51 E 3 Assembly Object 04h 52 E 4 Connection Manager 06h 54 E 5 DLR Object 47h 56 E 6 QoS Object 48h...

Page 5: ...Linking Device User Manual scm 1202 181 2 0 en US H Copyright Notices 67...

Page 6: ...This page intentionally left blank...

Page 7: ...mples Cross reference within this document Document Conventions p 5 External link URL www hms networks com WARNING Instruction that must be followed to avoid a risk of death or serious injury Caution...

Page 8: ...worked document This document replaces SCM 1202 008 1 5 Trademarks Anybus is a registered trademark and HMS EN2MB R is a trademark of HMS Networks AB All other trademarks mentioned in this document ar...

Page 9: ...ject when the configuration manager is closed and will be retrieved next time the configuration manager is opened The AOP is supported by RSLogix 5000 version 20 and later The linking device consists...

Page 10: ...Modbus TCP Network Data to the Modbus TCP Network Status Word Control Word 2 2 1 Process Data I O Buffer Both the incoming and outgoing buffers on the EtherNet IP side and the incoming and the outgoi...

Page 11: ...ration in the linking device and in Studio 5000 must match for operation See SD Card Functionality p 65 C USB Port This port adds the possibility to connect a PC to the linking device to perform firmw...

Page 12: ...ning mechanism in a fixed and open position This may eventually wear the fastening mechanism out so it cannot be used efficiently Be sure to push the DIN rail fastening mechanism back into the fixed a...

Page 13: ...stic protection from the other side of the velcro Turn the device around so that the plastic vibration dampers face downwards Fasten the metal frame to the device by pressing the frame firmly against...

Page 14: ...n Connector 1 TX 2 TX 3 RX 6 RX 4 5 7 8 Not connected Housing Shield 3 5 USB Connector Pin no Description Connector 1 5 V Input 2 USBDM USB communication signals 3 USBDP USB communication signals 4 Si...

Page 15: ...Configuration p 14 3 Based on the client configuration configure the tags that will be used in Studio 5000 The configuration and status is automatically sent to Studio 5000 when the tag editor is clo...

Page 16: ...you have saved data to the configuration but not yet applied it this will appear top of the configuration manager A changed configuration must be applied in order to take effect A maximum of 64 Modbu...

Page 17: ...le memory in the input and output IO areas as much as possible Changes made to the configuration will not be used by the linking device before they are applied and saved See also Modbus TCP Client Con...

Page 18: ...e number HMS EN2MB R and click Create 3 In the New Module window assign a name to the module The IP address should be set via the BOOTP DHCP server and entered in the IP address field 4 Click Change i...

Page 19: ...ion 17 70 5 In the Module Definition window launch the configuration manager for the HMS EN2MB R linking device by clicking the View and edit the network button Linking Device User Manual scm 1202 181...

Page 20: ...bus TCP Client to define the process data to be sent through the linking device The HMS EN2MB R uses a built in web interface in the actual linking device to configure the Modbus TCP Client Using the...

Page 21: ...guration 8 Click Add new server to add the configuration for a new Modbus TCP server Add a name My_Server in this example and click OK 9 The next step is to define which transactions should be execute...

Page 22: ...sed in this example c Select the Modbus command function that should be executed This example uses function code 23 Read Write multiple registers d Define the number of elements to be sent and receive...

Page 23: ...ion named MyTrans2 that uses function code 16 Write Multiple Registers and writes 20 elements 40 bytes 12 If you want to add another server that defines new transactions repeat the procedures in previ...

Page 24: ...on to download the configuration to the linking device The configuration will now be verified The process data will be placed in as many assemblies as required for the configuration while still fulfil...

Page 25: ...ame process data or that use new process data will generate new tags marked in magenta If there are tags already defined when the Modbus TCP Client configuration is changed the tag editor will identif...

Page 26: ...that the tag configuration in the PLC is a correct match with the configuration in the linking device The current project configuration files are stored in Studio 5000 and will be retrieved the next t...

Page 27: ...onfiguration manager has been edited and is closed The tags will be based on the Modbus TCP Client configuration and how the process data have been placed in the assemblies Tags that are new or edited...

Page 28: ...ass operations on all tags by right clicking on a Modbus TCP server or transaction in the tree structure to the left See Tag Editor Options p 38 for descriptions of the options 4 6 1 Tag Arrays You ca...

Page 29: ...nd mark them blue The tags are now uneditable The name of the first tag will be used as the name of the array tag Original names of the tags collected in the array will be remembered by the tag editor...

Page 30: ...he assembly of the process data The start address offset of the process tag must be divisible by 4 for data types DINT or REAL or tag arrays when dimension is above zero The memory address of the proc...

Page 31: ...erable error exception state or fatal 2 Network Status EtherNet IP Off Green Flashing green Red Flashing red Power off or no IP address Online one or more connections established CIP class 1 or 3 Onli...

Page 32: ...anything else download the configuration to the gateway 7 Close the configuration manager 6 3 SD Card The recommended procedure to back up a configuration is to use the backup function in Studio 5000...

Page 33: ...n a replacement device can be configured by moving the SD card to the new device A configuration on the linking device is saved automatically to the SD card in any of these two events A configuration...

Page 34: ...This page intentionally left blank...

Page 35: ...he control status word can also be I O mapped as cyclic process data as a configuration parameter in the user interface See add link to Ethernet IP Adapter Interface The control word is a 16 bit word...

Page 36: ...f transaction no 63 Status of transaction no 62 56 Status of transaction no 7 Status of transaction no 6 2 Status of transaction no 1 Status of transaction no 0 Bit set to 1 Transaction successful Bit...

Page 37: ...rver 12 Unconfigured transaction A 6 Exception Code List If a failure occurs during a transaction between the linking device and a Modbus TCP server the Modbus TCP server may respond with an exception...

Page 38: ...failed to respond The exception codes found in the exception code list are only relevant if the corresponding transaction status codes equals 3 Modbus exception If the exception code sent by the Modb...

Page 39: ...s TCP linking device supports the following Modbus TCP functions Modbus Function Function Code No of Bits Registers Direction Associated with Buffer Read Coils 1 1 2000 Modbus to linking device Input...

Page 40: ...e for documentation or error tracking Not required for function Factory Reset Resets the linking device to default values Reboot Sends reboot command to the linking device Restore Configuration Revert...

Page 41: ...me of the product 2 Navigation Section All functionality is easily accessed from the different links Every link and its corresponding functionality will be explained later in this chapter 3 Content Se...

Page 42: ...P network exchanges no data Data to the Modbus TCP network is in clear freeze safe value or stop state Idle The Modbus TCP network exchanges no data Data to the EtherNet IP network is in clear or free...

Page 43: ...ntication information There is no way to retrieve a lost username or password If the authentication information is lost the only way to restore the linking device is to download new firmware via the U...

Page 44: ...l shut down All LEDs will display red Restart The linking device will restart D 2 3 Modbus Servers Select Modbus Servers to configure servers on the Modbus TCP network The linking device can handle up...

Page 45: ...ctions Transactions represent the data that is read from written to the servers of the Modbus TCP network The global configuration limits box keeps track of the number of added transactions the curren...

Page 46: ...not required renaming the transaction makes the configuration easier to comprehend On the EtherNet IP side this name will also propagate to tag name for identification purposes Note that it is only po...

Page 47: ...below Stop no data will be transmitted to the Modbus server Data type Write read data either as two byte integers uint16 or four byte integers uint32 Registers The resulting amount of registers to wr...

Page 48: ...ly Changes Permanently store changes made to the configuration and reboot using the new configuration No changes made in the configuration will be permanently stored or used by the linking device unti...

Page 49: ...all applied transactions on the Modbus TCP network If needed it is possible to print the configuration to paper Click the printer symbol to the right on the mapping overview page to access a printer f...

Page 50: ...ains the following transaction information Server name and transaction name The type of Modbus function chosen for the transaction The size of the data read from or written to the Modbus TCP network T...

Page 51: ...Specific Objects ADI Object A2h p 57 E 1 Identity Object 01h Category Extended Object Description The Identity Object provides identification of and general information about the module Supported Ser...

Page 52: ...ion 5 Status Get WORD See Device Status table below 6 Serial Number Get UDINT Unique serial number assigned by HMS 7 Product Name Get SHORT_STRING EtherNet IP to Modbus TCP Linking Device 11 Active la...

Page 53: ...for major unrecoverable faults 12 15 reserved Service Details Reset There are two types of network reset requests on EtherNet IP Type 0 Power Cycling Reset This service power cycles the module Type 1...

Page 54: ..._Attribute_Single Instance Get_Attribute_Single Set_Attribute_Single Class Attributes Name Access Type Value 1 Revision Get UINT 0002h Object revision 2 Max instance Get UINT Maximum instance number I...

Page 55: ...ribute 3 Instance C7h Attributes Heartbeat Listen Only This instance is used as heartbeat for listen only connections and does not carry any attributes Name Access Type Value Description 3 Data Set N...

Page 56: ...ject Each Class 1 connection will establish two data transports one consuming and one producing The heartbeat instances can be used for connections that shall only access inputs Class 1 connections us...

Page 57: ...tion times out it does not affect the state of the application Max no of Input Only connections Up to 4 Connection point O T Assembly Object instance 05h Default Connection point T O Assembly Object i...

Page 58: ...DLR Object 47h Category Extended Object Description Supported Services Class Get_Attribute_Single Get_Attributes_All Instance Get_Attribute_Single Set_Attribute_Single Class Attributes Name Access Typ...

Page 59: ...1 Revision Get UINT 0001h Object revision Instance Attributes Name Access Type Value Description 1 802 1Q Tag Enable Set USINT Enables or disables sending 802 1Q frames Bit 0 1 Contents Disabled Defau...

Page 60: ...type 4 Descriptor Get USINT Bit field describing the access rights for this instance Bit 0 1 Meaning Get access Set access 5 Value Get Set Determined by attribute 2 Instance value 6 Max value Get The...

Page 61: ...nce reflects the properties associated with the Ethernet interface Name Access Type Value 1 Port Type Get UINT 0h default 2 Port Number Get UINT 2h 3 Link Object Get Struct of UINT Padded EPATH 2h 20...

Page 62: ...from non volatile memory 2 Configuration from DHCP 4 Physical Link Object Get Struct of UINT Path size 0002h Padded EPATH 20 F6 24 03h Path to Ethernet Link Object Instance 3 5 Interface Configuration...

Page 63: ...nk specific counters and status information for an IEEE 802 3 communications interface Exactly one instance for each communications interface on the module is supported Instances for internally access...

Page 64: ...Appendix E CIP Objects 62 70 Name Access Type Value Comments Linking Device User Manual scm 1202 181 2 0 en US...

Page 65: ...x 2 4 Negotiation Status Indicates the status of link auto negotiation Value Meaning 0 Auto negotiation in progress 1 Auto negotiation and speed detection failed using default values Recommended defau...

Page 66: ...r EMC behavior unless these FE requirements are fulfilled Make sure the DIN rail is properly connected to FE F 2 Power Supply Supply voltage The HMS EN2MB R linking device requires a regulated 24 V 20...

Page 67: ...ite protected 3 Turn the linking device off 4 Insert the SD card into the SD card slot in the linking device 5 Turn the linking device on 6 Create the configuration When finished press the apply butto...

Page 68: ...rotected The configuration file on the SD card is write protected The SD card memory is full The SD card file system is corrupt The SD cad is damaged If the SD card write process fails the reboot cycl...

Page 69: ...rived from this software without specific prior written permission THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS AS IS ANDANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE...

Page 70: ...Inc All rights reserved Redistribution and use in source and binary forms with or without modification are permitted provided that the following conditions are met Redistributions of source code must...

Page 71: ...This page intentionally left blank...

Page 72: ...last page 2021 HMS Industrial Networks Box 4126 300 04 Halmstad Sweden info hms se scm 1202 181 2 0 en US 2021 05 19 22485...

Reviews: