Home
PROFIBUS Application for the MGate 4101-MB-PBS
Contents
1. 4 Select MGate PROFIBUS Slave and drag it to the right window An icon will be generated to represent the MGate slave gateway We will assume that the bus address for the PROFIBUS master is 1 and the bus address for the MGate device is 0 5 Click the MGate device icon first then drag the output 1 Byte module into the right table Anybus NetTool for PROFIBUS Demo Version PROFIBUS bus configuration 1 ee Project View PROFIBUS Online Option Tools Windows Help Dc E 64 4nybus NetT ool for Profibus GSD lt lt Input 51 Words A Input 52 Words A Input 53 Words A Input 54 Words A Input 55 Words Input 56 Words A Input 57 Words A Input 58 Words A Input 59 Words A Input 60 Words A Input 61 Words 2 A Input 62 Words ree 63 Words M P A Sein d Bites A Output 4 Bytes ia Output 5 Bytes A Output 6 Bytes Slave 0 MGate Profibus Slave Device path PROFIBUS DP Gateway Moxa Inc MGate Profibus Slave Al Output 7 Bytes A Output 8 Bytes CFG data Order number designation ae ut address A Output 9 Bytes p 0x10 Input 1 Byte Output 10 Bytes R Dutput 11 Bytes A Output 12 Bytes 3 Output 13 Bytes A Output 14 Bytes a S n E a E Peat Tec d 4 Laba LT n 2 74 CD Cn A 6 Click the download icon to download configurations to the Master board amp Anybus NetTool for PROFIBUS Demo Version PROFIBUS bus co
2. Poll Definition Slave ID Function 01 Read Cols Address L Cancel Lengh 8 Appl Scan Rate 1000 ra Iw Auto Read Enable Copyright 2011 Moxa Inc Page 13 of 22 Moxa Tech Note PROFIBUS Application for MGate 4101 MB PBS b Then click the QuickLink button to begin PROFIBUS Slave rInputOuput 0 bytes ID O Module Configure c Now click the Start button to initiate QuickLink The QuickLink process will take a moment to learn the request parameters sent from the Modbus Master Modbus Polling After we see that the MGate 4101 has learned the request for this demonstration there is only one poll request you can stop the QuickLink procedure and click Next After connect MGate to Modbus cable click Start and then Stop to learn the Modbus requests n Time 00 00 14 Item Status Learned Requests 1 Found Invalid Requests No Requests Overflow No Cancel d The final step is to check the learned request s of the MGate 4101 If everything looks fine click the Finish button you can still modify requests manually if needed Recommanded IO settings for Modbus and PROFIBUS Modbus Read Write 1 0 bytes ID Enable Slave ID Function Address Length Intemal Addvess PollInterval Swap 0 01 Cyclic 1 None PROFIBUS Slave Input Ouput 1 0 bytes Paging Dissble ID I O Module Configuration ID Internal Address D1 Inputl byte 0x10 0 Copyright 2011
3. Moxa Inc Page 14 of 22 Moxa Tech Note PROFIBUS Application for MGate 4101 MB PBS e Click the OK button to save and apply your new configuration settings to the MGate Configuration FIBUS Peter PLC f Connect your devices according to the topology below ea ee Gateway MGate 4101 MB PBS MGate 4101 MB PBS PROFIBUS Master Modbus Slave COM 1 MODBUS Master PROFIBUS Slave g Now the PROFIBUS and Modbus segments are ready to communicate Communications verification will be demonstrated in the following section 7 Communication Status Verification Up to this point if configuration steps have been done correctly the MGate device should work properly as a PROFIBUS Modbus gateway However it is a good idea to check to make sure that the MGate device is work properly Please refer to the following steps to verify communication Copyright 2011 Moxa Inc Page 15 of 22 Moxa Tech Note PROFIBUS Application for MGate 4101 MB PBS 1 On the Anybus NetTool for PROFIBUS utility make sure the icon of the MGate device is outlined in green That s indicates that data transmission on the PROFIBUS side is working properly please refer the following figure 2 In order to confirm communication we can change the data value from the PROFIBUS master to the Modbus slave Double click the output module outlined in red Slave 0 MG ate Profibus Slave Device path PROFIBUS DPG Slt CFG data
4. Order number designation 1 Lx TU Input 1 Bute 3 4 5 2 b 3 Note that the value is 0x00 before the change Input Position 1 O00 4 Before we change the value note that in the Modbus slave utility the initial value is O as well EP Mbslav1 Li Li Li Li Li Li Li Li Copyright 2011 Moxa Inc Page 16 of 22 Moxa Tech Note PROFIBUS Application for MGate 4101 MB PBS 5 Change the value to Ox1C EP Mbslav1 m c m m Ln Il OoorRFrFrFO Oo 6 Now we see that the value has changed to Ox1C on NetTool Input Position 01C 7 The MGate 4101 will poll Modbus slave regularly 8 Troubleshooting A Troubleshooting for MGate 4101 MB PBS device Anybus NetTool for PROFIBUS developed by HMS and Modbus Slave can be used to diagnose communication status If you encounter a problem here are some suggestions for troubleshooting The diagnose function on the MGate Manager can help you determine whether the problem is on the PROFIBUS side or on the Modbus side For details please refer to the user manual Device Identification Device Function Load Default Upgrade Firmware Copyright 2011 Moxa Inc Page 17 of 22 Moxa Tech Note PROFIBUS Application for MGate 4101 MB PBS If PROFIBUS side is OK you will see the following information State Data Exchange Illegal I O Config 0 Restart Data Exchange 0 Modbus PROFIBUS Ca
5. d deu qe dq After installing the master board on your PC we have to configure HMS Anybus M PROFIBUS DV V1 to enable this card to work In the next section you can follow the step by step instructions for setup If you are an expert with configuring the master board please jump to the next section A Install NetTool 1 First double click the icon to install NetTool Anybus PCI resource CD 1 17 Config Tools Library files Hardware Drivers www anybus com EDSIGSD files 3 Navigate to Config Tools NetTool PB Profibus and then click the icon to install NetTool nwbus NetTool for PROFIBUS Demo v 14 l Build U4 exe Copyright 2011 Moxa Inc Page 5 of 22 Moxa Tech Note PROFIBUS Application for MGate 4101 MB PBS 4 Please follow the installation steps to install utility InstallShield Wizard Preparing to Install Anybus NetTool for PROFIBUS Demo Version Setup is preparing the InstallShield Wizard which will quide you through the program setup process Please wait Configuring Windows Installer mw Cancel 5 Accept the license and click Next ie Anyhus HetIool for PROFIBUSZ Demo Version InstallShield Wizard E License Agreement amp Please read the Following license agreement carefully GO Anuybus HMS Industrial Networks SOFTWARE LICENSE AGREEMENT nyhus NetTool for Profibus This document is a legal Agreement between yo
6. Diagnose Upgrade Firmware Language Copyright 2011 Moxa Inc Page 12 of 22 Moxa Tech Note PROFIBUS Application for MGate 4101 MB PBS 3 Select the Modbus tab For this instance we will set the Modbus mode to RTU Master Mode Device PROFIBUS IO Mapping Made Serial Port Protocal ORTU Slave Made Baudrate 115200 Slave ID RTLI Master Made Parity Response Time out e ms 1000 ASCII Slave Mode Data bits ieee tears B O ASCII Master Mode Stop bit 1 v Flow Control Mane m EE aa FIFO Enable bal InterFace RS232 m 4 Then select the PROFIBUS tab By default the PROFIBUS slave address is set to O and since the rotary on the MGate is already set to 00 we don t need to change the PROFIBUS settings on MGate Manager Device Modbus PROFIBUS 10 Mapping Slave Address bo 5 To establish communications between the PROFIBUS and Modbus devices we need to perform IO mapping on the MGate device There are two ways to perform IO mapping manually and QuickLink This application will only demonstrate IO mapping through QuickLink If you wish to proceed with IO mapping manually please refer to the MGate user manual a The first step is to configure the Modbus poll utility to function as a Modbus master Since we need to poll data from the Modbus slave regularly we will assign a request for the Modbus master as shown in the following picture Set the data packet length to 8 click Apply first and then click OK
7. Moxa Tech Note PROFIBUS Application for MGate 4101 MB PBS Moxa Technical Support Team support moxa com Apply to MGate 4101 MB PBS Windows XP 32 bits This application note will cover the following topics 1 2 3 4 9 Application Summary Introduction to PROFIBUS System Architecture System Requirements Installing the PROFIBUS Master Board A Install NetTool B NetTool Configuration Configuring the MGate 4101 MB PBS Communication Status Verification 8 Troubleshooting A Troubleshooting the MGate 4101 MB PBS B Troubleshooting Communication Failures Communication Failure PROFIBUS Side ii Communication Failure Modbus Side 9 Reference Mo Copyright 2011 Moxa Inc Released on October 20 2011 About Moxa Moxa manufactures one of the world s leading brands of device networking solutions Products include serial boards USB to serial hubs media converters device servers embedded computers Ethernet I O servers terminal servers Modbus gateways industrial switches and Ethernet to fiber converters Our products are key components of many networking applications including industrial automation manufacturing POS and medical treatment facilities How to Contact Moxa Tel 886 2 8919 1230 Web www moxa com MOXA Fax 886 2 8919 1231 Email info moxa com Moxa Tech Note PROFIBUS Application for MGate 4101 MB PBS 1 Application Summary This application note describes how to establish com
8. a Fi nS Connecting Devices InstallShield Wizard Completed The InstallShield Wizard has successfully installed amp nvbus NetTool Far PROFIBUS Diemo Versian Click Finish to exit the wizard Copyright 2011 Moxa Inc Page 7 of 22 Moxa Tech Note PROFIBUS Application for MGate 4101 MB PBS B NetTool Configuration 1 After installing NetTool open the program and click the icon shown below to begin a new configuration 2 Anybus NetTool for PROFIBUS Demo Version Untitled bus configuration 1 Bb Project Wew PROFIBUS Crne Option Took windows Hein ii wE dein dh s Anpbus Hei Tool lor Profibus va DI e x A PROFIBUS DP i BN PROFIBUS Master QE ABM DPv AB PCIHDPVTM CB CD i Oe b m 03 ms in _ lel bh e C h mh ak P Cni dm 2 Import the GSD files of the PROFIBUS master and slaves which are provided by the manufacturers The GSD file for the MGate 4101 MB PBS is included with the device 3 Select ABM DPV and drag it to the right window An icon will be generated to represent the PROFIBUS Master board Project View PROFIBUS Online Option Took Windows Help Cel gA amp M nypbus HerTeo for Profibue sis SD Lr 48 PROFIBUS DP 2 8 PROFIBUS Master GE ABM DPV 7 AB PCHOPVT M 1 blaster ABM DPV AB PCI DPV HMS lindustial Networks 3 Copyright 2011 Moxa Inc Page 8 of 22 Moxa Tech Note PROFIBUS Application for MGate 4101 MB PBS
9. fic we found MGate doesn t get response from Modbus Master Mo Time Src amp Dst Type Slave ID Function Cade Data 1 0 000 Portl ATU Request 1 1 01 01 00000001 FD CA 2 1 010 Porti RTU Request 1 1 01 01 00000001 FD CA 3 2 030 Portl gt ATU Request 1 1 0101 00000001 FO cA 4 3 040 Portl ATU Request 1 1 01 01 00000001 FD CA 5 4 050 Portl ATU Request 1 1 01 01 00000001 FD CA So first we check the Modbus master connection and realize that the baudrate of the master does not correspond with the baudrate of the slave Adjust the baudrate settings and communications should be back to normal 9 Reference MGate 4101 MB PBS user manual MOXA MTSC material for MGate 4101 MB PBS MOXA MTSC material for MGate 3000 HMS Anybus S Fieldbus Board user manual http en wikipedia org wiki Profibus UE CE a Copyright 2011 Moxa Inc Page 22 of 22
10. incorrect information on diagnose Illegal I O Config O State Wait Parameterization Copyright 2011 Moxa Inc Page 20 of 22 Moxa Tech Note PROFIBUS Application for MGate 4101 MB PBS Modbus PROFIBUS Category Item PROFIBUS etate Wait Parameterization Baudrate LS00000 bps Address j Ouput bytes Input D bytes Illegal IO Config 1585 Restart Data Exchange 0 We can assume that the problem is on the PROFIBUS side so we check the IO map On the IO map we see that only one IO module was mapped but two should have been mapped Input Internal Address 00 O1 Oz 03 04 Q5 T z i MM NM gt NN MM NM MM gt NN NN gt NN M nl MMAM cMRMCMBI cMMCCIMMI cMMTCIMMI ONIN cM After correction the communication is ok ii Communication failure Modbus side The baud rate of the Modbus master utility is 9600 but the baudrate is at 115200 for the MGate 4101 Solution We use the diagnose function to determine the location of the problem We can immediately see a problem with these fields Valid Requests 0 Time out 0 Copyright 2011 Moxa Inc Page 21 of 22 Moxa Tech Note PROFIBUS Application for MGate 4101 MB PBS Modbus PROFIBUS Invalid Request aerial Port Port Number R3232 115200 None 8 1 1296 Frame Error Parity Error Over Eror We can assume that the problem is on the Modbus side We can use the Monitor feature On monitor traf
11. munication between PROFIBUS and Modbus devices via the MGate 4101 MB PBS The MGate is both a PROFIBUS slave and a Modbus master when used for this type of application 2 Introduction to PROFIBUS PROFIBUS is a fieldbus communication standard for use in automation systems PROFIBUS or Process Field Bus was proposed by BMBF German department of education and research in 1989 PROFIBUS is an entirely different protocol from PROFINET which is an Ethernet based protocol The diagram below shows a PROFIBUS gateway application for factory automation The workstation needs to gather temperature readings from Modbus devices at different locations In order for the workstation to poll the Modbus devices for temperature data a PROFIBUS to Modbus gateway will need to be installed for the transfer of data between these two protocols A Temperature Monitor System Solution Work Station Gateway Copyright 2011 Moxa Inc Page 2 of 22 Moxa Tech Note PROFIBUS Application for MGate 4101 MB PBS A Temperature Monitor System Solution Modbus S 7 MGate 4101 MB PBS fy Work Station Modbus M i PROFIBUS M ri Modbus S 3 System Architecture To simulate the environment specified above the Mgate 4101 will perform gateway functions between a PROFIBUS master and a Modbus slave Please refer to the illustration below Application Hardware Software Work Station PROFIBUS Master HMS Anybus S Fieldb
12. nfiguration 1 6e Project view PROFIBUS Online Option Tools Windows Help E PROFIBUS DP General gg Gateway ICP DAS Co Ltd Moxa Inc cdi MGate Profibus Slave Mag Isl Input 1 Byte B l fd Input 2 Bytes A Input 3 Bytes A Input 4 Bytes A Input 5 Bytes A Input 6 Bytes A Input 7 Bytes A Input 8 Bytes A Input 9 Bytes A Input 10 Bytes A Input 11 Bytes A Input 12 Bytes A Input 13 Bytes 2 as i xin Slave 0 MGate Profibus Slave Device path PROFIBUS DP Gateway Moxa Inc MGate Profibus Slave nput yles A Input 16 Bytes CFG data Order number designation Input address Output address A Input 17 Bytes 0x10 Input 1 Byte 0 Input 18 Bytes fd Input 19 Bytes A Input 20 Bytes A Input 21 Bytes Cen Cn e ohm Copyright 2011 Moxa Inc Page 9 of 22 Moxa Tech Note PROFIBUS Application for MGate 4101 MB PBS Note on the Parallel tab select Anybus PCI Transport Provider then click OK 3E Anybus NetIoolfor PROFIBUS Demo Yersion Untitled DEW SRS AAnybus NetT ool For Profibussi SD e bus configuration 1 PROFIBUS DP General 0H ABM DPY Drives C Gateway Moxa lnc F E Moxa Wy Parallel Serial BI Ine Path ID Inr Transport Paths 3 a My new transport path Anybus PCI Transport Provider peaa L RM Ing Hi Inp H Inp E M Ing ae 5 DPAG Bn fa oa H ng I j z Hi Inpu
13. put 1 byte 0x20 40001 v F Paging Input internal memory Input JE Write single coil a Internal Addreg mte z T 1 0 lt 00000 00007 u01 lt 00008 00015 gt 07 lt 00016 00023 MN FIN Mow HUI TT ATT Un a z ni76 001832 MM Output internal memory Copyright 2011 Moxa Inc Page 19 of 22 Moxa Tech Note PROFIBUS Application for MGate 4101 MB PBS iupuL D1 R ead coils ha If the problem is on the Modbus segment the Monitor function on the MGate Manager can help you to check the communication flow For details please refer to user manual Device Identification Device Function Search Configuration Monitor Import Diagnose Upgrade Firmware Export Load Default Language Exit B Troubleshooting Communication Failures Overview The most common issue encountered by users is communication failure However the cause of the problem is usually unknown In the following section we will learn how to locate the source of the problem Here are two troubleshooting examples of communication failure One for PROFIBUS side the other is for Modbus side I Communication Failure PROFIBUS side The IO module of the master card is bigger than the IO module of the MGate 4101 In this case the MGate 4101 will go into diagnose mode and communications are not normal Solution First we used diagnose function to check which side the issue happened We found some
14. t 11 Bytes 2 ka LSLE WA d 4 amp m i 7 Click the monitor modify connect icon to start communication on the PROFIBUS However before you start communicating on the PROFIBUS You have to configure the MGate device first In the following section we will configure the MGate device S Anybus NetTool for PROFIBUS Demo Version PROFIBUS bus configuration 1 e Project View PROFIBUS Online Option Tools Windows Help PROFIBUS DP J General _ Gateway ICP DAS Co Ltd m ug Moxa Inc Fld MGate Profibus Slave oo Al Input 1 Byte E E MI Input 2 Bytes m H Input 3 Bytes Input 4 Bytes ool Input 5 Bytes ool Input 6 Bytes Input Bytes Al Input 8 Bytes col Input 9 Bytes oof Input 10 Bytes RI Input 11 Bytes Al Input 12 Bytes MI Input 13 Bytes x dn E es Device path PROFIBUS DPGateway Moxa Inc MGate Profibus Slave npult ytes S MM Al Input 16 Bytes Output address E Di rt RI Input 17 Bytes n Ox10 Input 1 Byte D RI Input 18 Bytes 2 ool Input 19 Bytes H Input 20 Bytes n Al Input 21 Bytes B Copyright 2011 Moxa Inc Page 10 of 22 Moxa Tech Note PROFIBUS Application for MGate 4101 MB PBS 6 Configuring the MGate 4101 MB PBS First you will need to connect the COM port of PC to the MGate 4101 MB PBS for configuration through the MGate Manager utility MGate Manager supports MGate 4101 MB PBS from ver1 3 Now you can configure
15. tegory tem Value PROFIBUS Data Exc 1500000 bps O bytes 1 bytes Tlle gal 1O Config Restart Data Exchange O On the Modbus segment there are two sections being displayed Modbus settings and serial parameters Under normal operating conditions you will see the following State Running Valid requests is increasing Exception O Time out O CRC LRC Error O Invalid Requests 0 For serial port parameters you can expect to see the following when everything is working properly Break 0 Frame Error O Parity Error O Overrun Error O Copyright 2011 Moxa Inc Page 18 of 22 Moxa Tech Note PROFIBUS Application for MGate 4101 MB PBS Modbus PROFIBUS Category Item Mod bus etate Type slave ID Valid Request Exception Time out CRC LEC Error Invalid Request serial Port Fort Number i Interface ES232 115200 N one 8 1 T20 960 0 Frame Eror 0 Parity Error 0 Cyerrmun Error U When the problem is on the PROFIBUS segment the IO map function on the MGate Manager can help you check if the IO modules match the Modbus requests For details please refer to the user manual The key point is that you need to make sure the IO module corresponds with the settings of PROFIBUS master PROFIBUS Slave Input Ouput 2 6 bytes ID TO Module Configuration ID Internal Address 4 D1 Input i byte Ox10 02 Input 1 byte 0x10 1 03 Ouput 1 byte 0x20 40000 E 04 Ou
16. the MGate device from the PC via the serial connection Hardware Software Description MGate 4101 MB PBS RJ45 Serial Cable CBL RJ45 M9 150 RJ45 to DB9 cable Modbus Modbus Poll QuickLink PC COM1 MGate Manager Software runs on PC Configure MGate 4101 MGate 4101 MB PBS Basic Settings i Modbus ii PROFIBUS CBL RJ45 M9 150 E Pg A S IO Mapping QuickLink Communication In the diagram below the flow chart shows the software installation steps to configure the MGate which consists of 4 steps QuickLink is used to map Modbus request and create IO modules Serial Console Conti gure MGate 4101 Basic Settings 1 Modbus ii PROFIBUS 10 Mapping QuickLink Communication Copyright 2011 Moxa Inc Page 11 of 22 Moxa Tech Note PROFIBUS Application for MGate 4101 MB PBS Configuration 1 Start MGate Manager and detect the target device with the search function It will search for device s on the serial connection MGate Manager MAC Address Firmware Version Broadcast Search Specify IP Search 1 Device Identification B 2 Select the target device and click the configuration button to configure the MGate device HGate Manager No Name Model MAC Address IP COM Status Firmware Version 0i MG 4101 19 MGate 4101 MB PBS Nj COMI SSM 1 0 Build 11072817 Device Identification Device Function Search Configuration Monitor Load Default
17. u the licensee and HMS Industrial Networks i HMS Please read this Agreement carefully before you install the software By installing or otherwise using the software you accept the terms of this Agreement re elhe e men 4 41 258 h erie m ove an He ls m a bul CO Ido not accept the terms in the license agreement InstallShield 6 Select installation path and permissions im Anybus NetTool for PROFIBUS Demo ersion InstallShield Wizard x Destination Folder amp Click Next to install to this Folder or click Change to Anybus install to a different Folder Install 4nyvbus WetTool For PROFIBUS Demo Version bo CiProgram Files HMS 4nybus WetTool For PROFIBUS Install this application For 9 Anyone who uses this computer fall users CO Only For me MOXA InstallShield i Cancel Copyright 2011 Moxa Inc Page 6 of 22 Moxa Tech Note PROFIBUS Application for MGate 4101 MB PBS 7 Click Install to start the installation process i Anybus NetIonl for FEOFIBUS Demo ersion InstallShield Wizard Ea Ready to Install the Program oP amp The wizard is ready to begin installation Ge Anybus Click Install to begin the installation IF you want to review or change any of your installation settings click Back Click Cancel to exit the wizard 8 Click Finish to exit the installation process ig Anybus NetTool for PROFIBUS Demo Version InstallShield Wizard E
18. us Board PROFIBUS Master Tool NetTool Gateway PROFIBUS Slave MGate 4101 MB PBS MODBUS Master Meter MODBUS Slave COM 1 Modbus Slave Software runs on PC MGate 4101 MB PBS PROFIBUS Master Modbus Slave COM 1 MODBUS Master PROFIBUS Slave Copyright 2011 Moxa Inc Page 3 of 22 Moxa Tech Note PROFIBUS Application for MGate 4101 MB PBS We will define the parameters of the IO module and the Modbus data request for the MGate device Modbus request Modbus Request Enable Cyclic Length Slave ID Internal Address os Function Code 01 Read coils PallInterval ms 1020 Address Swap Cancel IO module Tio Type Data Type Data Length 4 System Requirements We need to verify that we have all the necessary components to simulate the PROFIBUS Modbus environment The following are the system requirements for this exercise Hardware Requirements MGate 4101 MB PBS PROFIBUS to Modbus gateway HMS Anybus S Fieldbus board PROFIBUS master board PROFIBUS cable RS232 null modem cable RJ45 to DB9 female for MGate 4101 MB PBS configuration ee Copyright 2011 Moxa Inc Page 4 of 22 Moxa Tech Note PROFIBUS Application for MGate 4101 MB PBS Software Requirements Windows XP 32 bit MGate Manager utility Modbus slave utility Modbus poll utility NetTool HMS driver for HMS Anybus s Fieldbus board 5 Installing the PROFIBUS Master Board pe
Download Pdf Manuals
Related Search
Related Contents
SATPOS20D Manual KOHLER K-2200-0 Installation Guide Electrolux 2020 D Ventilation Hood User Manual Owner`s Manual Manual - Sure-Safe HVS-AUXRK インストレーションガイド[PDF:768.7KB] 試薬管理システム Copyright © All rights reserved.
Failed to retrieve file