Содержание Anybus Communicator ABC3028

Страница 1: ...Anybus Communicator Modbus TCP to Modbus RTU Serial USER MANUAL SCM 1202 162 1 1 en US ENGLISH...

Страница 2: ...le 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 ba...

Страница 3: ...plications 8 4 About Anybus Communicator 9 4 1 Serial Protocol Communication 9 4 2 How the Communication Works 13 4 3 How the Data Exchange Works 15 4 4 Data Integrity 15 5 Installation 16 5 1 Externa...

Страница 4: ...g Configuration 82 8 PLC Configuration 83 8 1 Export I O Data Map 83 8 2 Addressing and Register Mapping 84 9 Verify Operation 85 9 1 Communicator Status Monitor 85 9 2 Communicator LED Indicators 87...

Страница 5: ...02 162 1 1 en US A Reference Guides 121 A 1 About Input Registers and Holding Registers 121 A 2 Modbus Data Model 121 A 3 Modbus Transactions 121 A 4 Modus Exception Codes 122 A 5 ASCII Table 122 A 6...

Страница 6: ...This page intentionally left blank...

Страница 7: ...ttons etc are indicated with bold text Program code and script examples Cross reference within this document Document Conventions p 5 External link URL www hms networks com WARNING Instruction that mu...

Страница 8: ...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 disc...

Страница 9: ...an be accessed from the following standard web browsers Google Chrome Microsoft Edge Mozilla Firefox 3 3 Tools Have the following tools available Flat head screwdriver size 5 5 mm Needed when removing...

Страница 10: ...built in web interface 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 interfa...

Страница 11: ...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...

Страница 12: ...ons 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 paramete...

Страница 13: ...emplates are available when either the Custom Request Response or Custom Produce Consume serial protocol is enabled A transaction represents a complete serial telegram and consists of a number of fram...

Страница 14: ...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...

Страница 15: ...client device connected to a high level network 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 mai...

Страница 16: ...make the process data available on the server interface and for the high level network client device Transfer process data Transfer process data from the high level network client device and make it...

Страница 17: ...e Communicator internal memory buffer is divided into two areas Input data and Output data Input Data This Input data area is read by the high level network The Communicator can handle up to 1500 byte...

Страница 18: ...Status LEDs D Configuration port E 7 pin connector F Modbus TCP port x 2 G Cable tie mount H Laser engraved connectors designation I Security switch J Factory reset button K Laser engraved label with...

Страница 19: ...nce Make sure that the equipment is correctly mounted on the rail and that the rail is properly grounded To attach the Communicator on the DIN rail 1 Insert the upper end of the DIN rail clip into the...

Страница 20: ...r to your Modbus TCP network Modbus TCP Connector Pin Description 1 TD 2 TD 3 RD 4 5 6 RD 7 8 To Do Next Connect the Communicator to the serial subnetwork and to power Check LED status refer to Commun...

Страница 21: ...r Pin Signal 1 5 V OUT 2 RS485 A 3 RS485 B 4 Signal GND 5 Functional Earth FE 6 RS232 Tx Output 7 RS232 Rx Input 2 Connect the 7 pin connector to the Communicator 3 Connect the Communicator to your se...

Страница 22: ...sert the cable wires to the terminal block and tighten the wire clamp screws Power port Pin Description 1 Functional Earth FE 2 Ground GND 3 12 30 VDC Power Connector 2 Connect the terminal block to t...

Страница 23: ...Network specific parameters configured via the PLC is still available To Lock and Unlock the Security Switch Use a pointed object such as a ballpoint pen To lock the security switch push the toggle to...

Страница 24: ...Installation 22 124 5 7 Locking the Cables To strain relieve the cables place a cable tie in the holder and lock the cables Anybus Communicator User Manual SCM 1202 162 1 1 en US...

Страница 25: ...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 r...

Страница 26: ...6 1 Prepare Configuration 1 Connecting to the high level network Connect the Communicator to the Modbus TCP high level network 2 Connecting the Communicator to the subnetwork Connect the Communicator...

Страница 27: ...ation 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...

Страница 28: ...saction Templates This step applies when the serial protocol Custom Request Response or Custom Produce Consume is selected On the Transaction templates page Add a transaction template for each way inf...

Страница 29: ...se to set them manually b Enable DHCP server or choose to set a specific IP address c Apply the IP settings 5 I O Data Mapping The transactions you added to the nodes are automatically mapped to the C...

Страница 30: ...ta 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 transactions match On the I O data map page You can...

Страница 31: ...29 124 In the PLC program 2 Configure the communication Configure the PLC to communicate with the Communicator according to the I O data map created in the Communicator Anybus Communicator User Manua...

Страница 32: ...s On the Home page Monitor the Communicator network and node status You can also view the Communicator LED indications remotely 3 Verify and monitor communication In Diagnostics use the Serial RS 232...

Страница 33: ...ef overview of the configuration steps please refer to Configuration Quick Guide p 24 7 1 Connecting the Communicator Procedure 1 Connect the Communicator to the high level network 2 Connect the Commu...

Страница 34: ...the Communicator built in web interface from HMS IPconfig ensure that port Port 3250 UDP is open in your PC Windows Firewall Make sure the security switch is unlocked HMS IPconfig cannot configure the...

Страница 35: ...uration 33 124 5 To open the Communicator built in web interface click Open web page Result You are redirected to the Communicator built in web interface Home page Anybus Communicator User Manual SCM...

Страница 36: ...etween the web browser and the gateway 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...

Страница 37: ...tes Configure communication and add nodes and transactions Modbus TCP High Level Network with Client Configure I O Size and IP settings I O data map View the added transactions mapped to the Communica...

Страница 38: ...on specification or fully customized Custom Produce Consume Create your own custom produce consume transactions When changing the serial protocol all settings are reset to default and all added nodes...

Страница 39: ...ard RS 232 Default standard Use RS 232 when one single node is connected to the subnetwork RS 485 Use RS 485 when multiple nodes are connected to the subnetwork Baud rate Specify the baud rate the ser...

Страница 40: ...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 numb...

Страница 41: ...ween each message The silent period is used to find out where one message ends and the next begins You can use Custom settings to set the desired Inter telegram timeout and Inter telegram delay The fo...

Страница 42: ...6 1 Transaction Template Example Custom Request Response Request Response transaction template example The transaction named Read parameter 0x01 consists of a number of frame fields In the Request fi...

Страница 43: ...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...

Страница 44: ...ate 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 For the produce consume tran...

Страница 45: ...hen 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 Example new tran...

Страница 46: ...f 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 Transac...

Страница 47: ...um 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 Anybus Communi...

Страница 48: ...ial protocol refer to Communication Serial Protocol p 36 7 7 1 Add Transaction Template Procedure Add a transaction template 1 In the web interface left sidebar menu click Transaction templates 2 To s...

Страница 49: ...47 124 To add a new empty template without any frame fields select Empty template Example a new empty request response template is added to the transaction template list Anybus Communicator User Manu...

Страница 50: ...ed on a standard Modbus transaction select Modbus templates and then the desired Modbus transaction Example a new request response template based on Read Coils 1 is added to the transaction template l...

Страница 51: ...saction type after the transaction template is added Example 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...

Страница 52: ...ame fields to 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 To duplicate a frame field On the...

Страница 53: ...me field On the frame field that you want to delete click the three dots icon Click Delete and then Yes to confirm 3 To apply the settings click Apply in the web interface header and follow the instru...

Страница 54: ...tual 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...

Страница 55: ...d 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 pa...

Страница 56: ...how the checksum is represented Select Binary Default or ASCII 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...

Страница 57: ...ommunicator 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 B...

Страница 58: ...cter with 4 bytes of data End pattern The package consists of a data section followed by an end character to indicate where the data section ends None The package contains only the data section By mea...

Страница 59: ...n the Transaction templates page The transaction templates are available for use on the Nodes transaction page when you add transactions to a node For information on how to add the transaction templat...

Страница 60: ...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 Broadcast node You can add one single Br...

Страница 61: ...t can be added is 31 Procedure 1 In the web interface left sidebar menu click Nodes transactions 2 Click Add node 3 Select Add broadcast node or Add node A new node brodcats node is added to the nodes...

Страница 62: ...n 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 1 In the nodes list select a nod...

Страница 63: ...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 Reconnection time Min 10...

Страница 64: ...de is 150 1 In the nodes list select a node to configure 2 In the transactions list click Add 3 Choose one of the following alternative When using the Modbus RTU Serial Protocol Click Add and select a...

Страница 65: ...dded to the Transaction templates list You need to build the transactions before you can use the template refer to Build Transaction Templates p 46 If you already have created Transaction templates cl...

Страница 66: ...Protocol 1 In the nodes list select a node to configure 2 In the transactions list select a transaction to configure The transaction sidebar opens on the right side of the screen 3 Enter a transaction...

Страница 67: ...emote 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...

Страница 68: ...transaction select the transaction and click Duplicate Multiple transactions select the checkbox in front of each transaction you want to duplicate and click Duplicate The duplicated transaction are...

Страница 69: ...ta Size to Modbus TCP and the output data Data Size from Modbus TCP is determined by the subnetwork configuration In the Communicator built in web interface the Use Automatic I O Sizes checkbox is sel...

Страница 70: ...tor comes with the following factory default IP settings Setting Default value Web configuration IP address 0 0 0 0 Subnet mask 255 255 255 0 Gateway address There is no default Gateway address Primar...

Страница 71: ...y available set the Gateway address to 0 0 0 0 Primary DNS The Modbus TCP network Primary DNS in IPv4 dot decimal notation Secondary DNS The Modbus TCP network Secondary DNS in IPv4 dot decimal notati...

Страница 72: ...econds Process data active timeout Specify the maximum allowed time between two incoming messages in steps of 10 ms If this time is exceeded the high level network is considered to be offline The data...

Страница 73: ...d 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 pr...

Страница 74: ...ptimize 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 If you optimize the I O data map the current...

Страница 75: ...the order of the transactions in a map area drag and drop the desired transaction to a new location Transactions can not share the same I O are If multiple transactions are placed in the same I O area...

Страница 76: ...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...

Страница 77: ...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 t...

Страница 78: ...endian you must reverse the byte order 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...

Страница 79: ...de 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 t...

Страница 80: ...ve list The Live list holds 32 bits Each bit in the Live list can hold the status for a total of 32 nodes connected to the Communicator The bit is 0 when the bit does not correspond to the configured...

Страница 81: ...a 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 config...

Страница 82: ...an apply the configuration ensure that there is no active communication on the Modbus TCP network where the Communicator is connected Procedure To make the settings take effect download the configurat...

Страница 83: ...Configuration 81 124 If you have made changes to the IP settings you are prompted to apply these settings 3 To apply the IP settings click Apply IP settings Anybus Communicator User Manual SCM 1202 1...

Страница 84: ...on 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 win...

Страница 85: ...pecification to ensure that the transactions match In the Communicator built in web interface On the I O data map page you can exported the I O data map in an Excel XLS file where all the nodes and tr...

Страница 86: ...Data From Serial Subnet to Modbus TCP Network Process data offset Discrete input address Input register Holding register 0x0000 0x001 0x0000 0x000F 0x0000 0x0800 0x0002 0x0003 0x0010 0x001F 0x0001 0x...

Страница 87: ...Home page you can get a quick overview of the network and the Communicator operating status Gateway status Overview the Communicator LED indications remotely Refer to Communicator LED Indicators p 87...

Страница 88: ...curred 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 de...

Страница 89: ...locked Exception Fatal error Green flashing Startup phase Modbus TCP online no messages received Running one or more nodes are offline N A Green Operational Modbus TCP online at least one message rece...

Страница 90: ...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 use...

Страница 91: ...ommunication in the Communicator The Temperature Regulator is connected to the serial subnetwork via a custom RS 232 protocol The PLC is connected to an Modbus TCP network high level network 10 1 2 Be...

Страница 92: ...e select Modbus RTU 10 1 4 Set Up Serial Communication Set up the communication between the Communicator and the Temperature Regulator In the Serial RS232 485 page configure the Communication settings...

Страница 93: ...it 2 In Node settings configure the node with the following settings Node settings Value Slave address 240 Name Temp Regulator Timeout time 1000 ms Reconnection time 1000 ms Retries 1 Address format...

Страница 94: ...configure 4 In the transaction sidebar on the right side of the screen Enter values for the transaction settings Setpoint temperature transaction settings Setting Value Description Transaction name Te...

Страница 95: ...gs Setting Value Description Transactio name Actual Temp Give the transaction a name Modbus transaction Read Holding Registers 3 This register read the actual temperature from the temperature regulato...

Страница 96: ...are mapped as follows in the I O data map page Address Data to Modbus TCP 0 1 Setpoint temperature from Modbus TCP to the Temperature Regulator Address Data from Modbus TCP 0 1 Actual temperature spee...

Страница 97: ...tocol The PLC is connected to an Modbus TCP network high level network We use the Custom Request Response serial protocol and create customized transaction templates to map up Status word and actual s...

Страница 98: ...t Custom Request Response 10 2 4 Set Up Serial Communication Set up the communication between the Communicator and My Drive In the Serial RS232 485 page configure the Communication settings Used the f...

Страница 99: ...red from to the My Drive node on to the PLC 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 fields with the following se...

Страница 100: ...ype Checksum type Endianess Fixed field Value 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 Su...

Страница 101: ...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 4 In the...

Страница 102: ...e 1000 ms default Reconnecting time 10000 ms default Retries 0 default 3 Add four transactions to the My Drive node and configure them with the following settings My Drive contains the following param...

Страница 103: ...Drive to Modbus TCP are mapped as follows in the I O data map page Control word and speed from Modbus TCP to My Drive Address Data to Modbus TCP 0 1 Control Word 2 3 Speed Status word and actual speed...

Страница 104: ...Scanner is connected to the serial subnetwork via a custom RS 232 protocol The PLC is connected to an Modbus TCP network high level network We use the Custom Produce Consume serial protocol and creat...

Страница 105: ...lect Custom Produce Consume 10 3 4 Set Up Serial Communication Set up the communication between the Communicator and the Barcode Scanner In the Serial RS232 485 page configure the Communication settin...

Страница 106: ...tor 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...

Страница 107: ...ds Frame fields Name Type Value Fixed field Maximum payload length Process data delimiter Subnet delimiter End pattern Variable data Barcode Data N A N A Yes set here 31 bytes None None 0 Constant Car...

Страница 108: ...ions to the Barcode Scanner node and configure it with the following settings The Barcode Scanner contains the following parameters Transaction name Transaction template Read Barcode Data Read Barcode...

Страница 109: ...t the current configuration in order to import and use the same settings to configure additional Communicators To export a configuration file 1 In Files firmware click Export The configuration setting...

Страница 110: ...lick 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 configu...

Страница 111: ...e header and follow the instructions You can revert all changes done to the settings in the current configuration To Revert the configuration 1 On the Files firmware page click Revert 2 In the Confirm...

Страница 112: ...nt configuration is still compatible after upgrading the firmware Compatibility after firmware downgrade Compatibility after a firmware downgrade can not be guaranteed The current configuration may us...

Страница 113: ...rence 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 To u...

Страница 114: ...e 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...

Страница 115: ...d For description of the symbols refer to Communicator Status Monitor p 85 Source 0 Communicator 1 High level network Modbus TCP 2 Subnetwork Serial RS 232 485 Sub source The nodes connected to the su...

Страница 116: ...2 1 3 LED Status On the Home page you can remotely monitor the Communicator LED status For information about the LED indication refer to Communicator LED Indicators p 87 Anybus Communicator User Manua...

Страница 117: ...e 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 Disc...

Страница 118: ...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 configur...

Страница 119: ...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 To complete the interrupted firmware update 1 Dis...

Страница 120: ...ateway status led indicator flashes red and green until the firmware upgrade is completed Result The Communicator recover and return to normal operation To check LED status refer to Communicator LED I...

Страница 121: ...port Package Content The information in the support package are available to open and read the files are not locked or encrypted Generate Support Package 1 On the Support page click Generate A zip fil...

Страница 122: ...A 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 data...

Страница 123: ...atus of coils in a remote device 2 Read Discrete Inputs Discrete inputs 0x02 Read from 1 to 2000 contiguous status of discrete inputs in a remote device 3 Read Holding Registers Holding registers 0x03...

Страница 124: ...ata 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 Appl...

Страница 125: ...Appendix A Reference Guides 123 124 A 6 RS485 RS232 Electrical Connection A 6 1 RS485 Typical Connection A 6 2 RS232 Typical Connection Anybus Communicator User Manual SCM 1202 162 1 1 en US...

Страница 126: ...last page 2021 HMS Industrial Networks Box 4126 300 04 Halmstad Sweden info hms se SCM 1202 162 1 1 en US 2021 07 05 22950...

Отзывы: