Home

MGate-4101-MB-PBS Modbus Serial-to

image

Contents

1. MGate Ma nager aja x MAC Address IPI Status Firmware version Device Identification Device Function Search Configuration Locate Load Default 650 Management Off Line Configuration After changing to a different language you will find that all strings on MGate Manager are replaced in your chosen language For example the above picture is shown in traditional Chinese However no matter what language you choose it won t change the label on the language button 4 6 www ipc2u ru www moxa pro MGate 4101 MB PBS Configuration ATTENTION Set your MGate Manager to Default Language before contacting Moxa Technical Support With support for multiple languages MGate Manager is more user friendly and accessible However if you need assistance from Moxa Technical Support please change the language to Default Language This will prevent any misunderstandings or confusion about MGate Manager menu items and commands as our engineers assist you The default language is English and will only be active for the current MGate Manager session When you open MGate Manager again the language will revert to your original setting Connecting to the Unit Prior to configuration MGate Manager must be connected to its unit There are three methods to establish connection Broadcast Search locates the MGate series on the LAN and each MGate 4101 MB PBS connected to a PC COM port Search by IP attempts to connect to a specific
2. Completing the MGate Manager Setup Wizard Setup has Finished installing MGate Manager on your computer The application may be launched by selecting the installed icons Click Finish to exit Setup Starting MGate Manager MGate Manager is a Windows based utility that is used to configure the MGate 4101 MB PBS Before running MGate Manager make sure that the MGate 4101 MB PBS is connected to your PC Please refer to Chapter 2 for more details You may open MGate Manager from the Windows Start menu by clicking Start gt Programs gt MGate Manager gt MGate Manager The MGate Manager window should appear as shown below Set Program Bootes anal Cel suis e Windows Catalog Te windows Update dl interret Explorer i HEN Se Ciok Express po Remobe Mshanga vendo Meda Plryes a Tour Windies a GR Windoers Movie Maher F BE Googe Chrome ie Haate Manager A Pomm Ute Verl 5 j jE unirstal maate Manager Da Haia Manager version bid www ipc2u ru www moxa pro MGate 4101 MB PBS Configuration Change Language Setting If you wish to run MGate Manager in a different language you may click Language to change the language setting A dialog box showing the available languages should appear as shown below Chinese Traditional Ini English Ing French Ing German Ing Japanese Ing Korean Ing Polish Ina When you click OK MGate Manager will immediately reflect your chosen language
3. lt The Modbus ID gt The ID of I O module OS Write single coil e 01 lt 00008 00015 gt 02 lt 00168 00175 gt NN lt 00328 00335 gt NN lt 00438 00495 gt NK lt 00648 00655 gt NN lt 00808 00815 gt NN lt 00968 00975 gt NN 01128 01135 gt NN lt 01238 01295 gt NN lt 01448 01455 gt NN lt 01608 01615 gt NN Ad ed ae AA Read coils w Internal Address 40000 40020 40040 40060 40080 40100 40120 40140 40160 40180 40200 Anna DO lt 00000 00007 gt 03 lt 00160 00167 gt NN 200320 00327 NM lt 00480 00487 gt NN lt 00640 00647 NM lt 00800 00807 gt NN lt 00960 00967 NM 01120 01127 gt NN lt 01280 01287 gt NN 201440 01447 gt NN lt 01600 01607 gt NN ad ed eT O1 00008 00015 gt 04 lt 00168 00175 gt NKN lt 00328 00335 gt NN lt 00438 00495 gt NK lt 00648 00655 gt NN lt 00808 00815 gt NK lt 00968 00975 gt NN 01128 01135 gt NN lt 01208 01295 gt NN lt 01448 01455 gt NN lt 01608 01615 gt NN A er ere ee 4 24 Oe 200016 00023 gt NMN lt 00176 00183 gt NN 200033600343 gt NN lt 00496 00503 gt NK lt 00656 00663 gt MN lt 00816 00823 gt NN lt 00976 00983 gt MN 201136 01143 gt NN lt 001296 01303 gt MN 2001456 01463 gt NN lt 01616 01623 gt NN ad a ed eT Oz lt 00016 00023 gt 05 lt 00176 00183 gt NN lt 00336 00343 gt NN lt 00496 00503 gt
4. Cancel Modbus Read Write 0 0 bytes ID Enable Slave ID Function Address Length Internal Address Poll Interval Down PROFIBUS Slave Inpuk Oukput Of0 bytes TO Module Configuration ID Internal Address Down Paging Quick Link IO Map If you choose MGate 4101 MB PBS as Modbus Master you should designate all Modbus Read or Write requests in the upper table Click Add to create each Modbus request Device Modbus PROFIBUS 10 Mapping Modbus Read Write DID bytes ID Enable Slave ID Function Address Length Internal Address Poll Interval Swap Remove Edit Up Drown PROFIBUS Slave nputiOutput O 0 bytes ID TO Module Configuration ID Internal Address Remove Edit Up Down F Faging Quick Link IO Map 4 13 www ipc2u ru www moxa pro MGate 4101 MB PBS Configuration Each Modbus request includes Enable Modbus slave ID Function Code Address Length Internal Address Poll Interval Swap Please refer to datasheets or manuals of Modbus slave devices to fill out these fields Modbus Kequest Enable Cycli L Length Slave ID Internal Address Function Code 05 Read holding registers Poll Interval ms 1000 Address Swap Enable The Enable for the transaction Disable The transaction is never sent Cyclic The transaction is sent cyclically at the interval specified in the Poll Interval parameter Data change The data area is polled for changes at the time interval defined by P
5. MGate 4101 MB PBS Configuration Quick Link After connect Mate to Modbus cable click Start and then Stop to learn the Modbus requests Time 00 00 10 Item Value Status On Learning Learned Requests 0 Found Invalid Regue No Requests Overflow Na Cancel The interface of next dialog is divided into two sections The upper section is labeled Modbus and will display the details of the Modbus requests which have been learned by the MGate 4101 MB PBS The lower section is labeled PROFIBUS Slave and will display the I O module Moreover based on these learned requests the I O module blocks are allocated intelligently by MGate Manager To complete the process click the Finish button to make the settings work Quick Link Recommanded 10 settings For Modbus and PROFIBUS Modbus Read Write 1 0 bytes ID Enable Slave ID Function Address Length Internal Address Poll Interval Swap lt O1 gt Cyclic 1 1 1 j 1000 Plone PROFIBUS Slave InputiOutput 1 0 byeesi Paging Disable ID I O Module Configuration ID Internal Address 01 Input 1 byte 0x10 0 4 17 www ipc2u ru www moxa pro MGate 4101 MB PBS Configuration IO Map The IO Map is a mechanism which is applied when data from different networks are exchanged via the gateway s internal memory so you must define a memory map in the gateway before starting data exchange Moreover two networks access the same memory block in a gateway Therefore gateway interna
6. lt 01 gt Cyclic 1 3 2 0 1000 None lt 02 gt Cyclic 1 2 40000 1000 None Remove Edit Up Down PROFIBUS Slave Input Ouput 4 4 bytes ID YO Module Configuration ID Internal Add 01 Input 2 word 0x51 0 40000 02 Ouput 2 word 0x61 The I O Map shows as follows See signs Remove Edit Up Down E Paging 4 21 www moxa pro MGate 4101 MB PBS Configuration Input Pa gel Internal Add 00 01 02 03 lt 01 gt 01 lt 01 gt 01 lt 01 gt 01 nd Th nd Th COuput Pagel Internal Add 700 01 02 03 40000 lt 02 gt 02 lt 02 gt 02 lt 02 gt 02 40020 Th mm JS ri 40040 40060 40080 40100 40120 40140 40160 40180 q 4 22 www ipc2u ru www moxa pro MGate 4101 MB PBS Configuration Confiporation IEPS Device Modbus PROFIBUS 10 Mapping E lave lD Function Address Length Internal Address Pollinterval Swap PROFIBUS Slave InputfOuput 2 6 bytes IO Module Configuration ID Inout 1 byte 0 10 Ouput 1 byte 0520 Quput 1 byte Gx Quput 2 word 0 61 In addition you can select the Paging checkbox to enable the page function so the utility will insert two I O word modules into the starting location of the input output memory bank for separate page functionality Basically because one 1 0 module supports 244 bytes only the paging function can be used to break through this limit The output I O module which is called P1
7. 4 19 www ipc2u ru www moxa pro MGate 4101 MB PBS www ipc2u ru Internal Add 0 20 40 60 100 OQuput Pagel 7 Internal Add 40000 40020 40040 40060 40080 40100 40120 40140 40160 40180 dl 00 lt 01 gt NN lt NN gt lt NN gt lt NN gt NN lt NN lt NN gt lt NN gt lt NN gt lt NN MI 00 lt 02 gt NN 01 lt 01 gt NN lt NN lt NN gt lt NN gt lt NN lt NN lt NN gt lt NN gt lt NN gt NN 01 lt 02 gt NN 02 lt 01 gt NN NN lt NN lt NN gt lt NN gt lt NN lt NN gt lt NN gt lt NN gt lt NN 02 lt 02 gt NN 03 lt 01 gt NN lt NN lt NN lt NN gt lt NN gt lt NN gt lt NN gt lt NN gt lt NN gt lt NN gt lt NN 03 lt 02 gt NN 04 NN lt NN gt lt NN gt lt NN gt lt NN lt NN gt lt NN gt lt NN gt lt NN Configuration Since we set Modbus request with pack size 2 word byte and internal address start from 40000 hence the MGate will allocate the first 4 bytes from internal memory address 40000 40003 In summary the Input or Output memory being allocated is depended on the type of Modbus command read or write F
8. 4 25 www ipc2u ru www moxa pro MGate 4101 MB PBS Monitoring Modbus Activity www ipc2u ru Configuration For troubleshooting or management purposes you can monitor the data passing through any MGate 4101 MB PBS on the Modbus side Data events will be logged as they pass through the gateway Rather than simply echoing the data MGate Manager presents the data in an intelligent easily understood format with clearly designated fields including source type destination contents and more Events can be filtered in different ways and the complete log can be saved to a file for later analysis Traffic Monitor Src amp Dst Porti lt Porti gt Porti lt Porti gt Porti lt Port1 gt Porti lt Porti gt Porti lt Porti gt Porti lt Port1 gt Porti lt Porti gt Port1 lt Porti gt Porti lt Porti gt Porti lt Porti gt Porti lt Porti gt Porti lt Porti gt Porti lt Porti gt 0 y ooh UN e Type RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp Slave ID 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Function Code fo po po po pur pue ju pur
9. RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp Slave ID 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Function Code AA j ji pao pu pao AA AA AA pao pao pao pao AA pao j po po po po AA AA AA ji Data 01 01 01 00 00 01 FD C 01 01 01 0051 66 01 01 01 00 00 01 FDCA 01 01 01 0051 88 01 01 01 00 00 01 FD CA 01 01 01 0051 66 01 01 01 00 00 01 FD CA 01 01 01 0051 66 01 01 01 00 00 01 FDCA 01 01 01 0051 88 01 01 01 00 00 01 FDCA 01 01 01 0051 86 01 01 01 00 00 01 FD CA 01 01 01 0051 88 01 01 01 00 00 01 FDCA 01 01 01 0051 88 01 01 01 00 00 01 FD C 01 01 01 0051 88 01 01 01 00 00 01 FDCA 01 01 01 0051 66 01 01 01 00 00 01 FD C 01 01 01 0051 66 01 01 01 00 00 01 FD C 01 01 01 0051 88 01 01 01 00 00 01 FDCA 01 01 01 0051 88 Stop Comment Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Previous page 4 28 www moxa pro MGate 4101 MB PBS Configuration Diagnose Diagnose is a powerful function to identify communications problems and assist in troubleshooting when setting up a PROFIB
10. The MGate uses jumper settings or DIP switches to set the pull high low resistor values for each serial port To set the pull high low resistors to 150 KQ make sure that the two jumpers assigned to the serial port are not shorted by jumper caps This is the default setting To set the pull high low resistors to 1 KQ make sure that the two jumpers assigned to the serial port are shorted by jumper caps ATTENTION Do not use the 1 KQ setting on the MGate when using the RS 232 interface Doing so will degrade the RS 232 signals and shorten the maximum allowed communication distance 3 6 www ipc2u ru www moxa pro MGate 4101 MB PBS Hardware Reset Button Reset Button To reset the MGate to the factory default settings hold down the reset button for about 5 seconds The MGate will restart and be rest to factory default settings Rotary Switch Address x10 x1 Before communication you must assign a slave ID to the PROFIBUS slave If you would like to assign an address between 0 99 you need to change the rotary switch to the desired address If you would like to assign an address which is over 99 you must set it in the MGate utility 3 7 www ipc2u ru www moxa pro www ipc2u ru The following topics are covered in this chapter O Installing the Software O Starting MGate Manager O Connecting to the Unit O Modifying the Configuration Configure Device Configure Modbus Settings Set up PROFIBUS IO Ma
11. NK lt 00656 00663 gt NN lt 00816 00823 gt NN lt 00976 00983 gt MN 201136 01143 gt NN lt 01296 01303 gt NN lt 01456 01463 NN lt 01616 01623 gt NN A lt The start bit The end bit gt The ID of I O module lt The start word gt The ID of I O module www moxa pro MGate 4101 MB PBS Configuration Load Default If for some reason you would like to clear all the settings of the unit the load default button will reset the unit to its initial factory default values Y HGate HManarer No MAC Address Firmware Version MG4101 66 MGate4i01MBPEBS ma coma Wer 1 3 Build 14031018 Device Identification Device Functian Load Default Upgrade Firmware 65D Management Off Line Configuration Click Load Default and review the confirmation message If you are sure you would like to reset the configuration to the factory default click the OK button If not click Cancel This action Would reset configuration to Factory default Do you still want to continue Cancel After the MGate Manager resets completely MGate Manager will automatically execute a Broadcast Search for all MGate units on the LAN and the recording COM port Your MGate should reappear in the list of units ATTENTION Load Default will completely reset the configuration of the unit and all of the parameters you have saved will be discarded Do not use this function unless you are sure you want to completely reset your unit
12. V1 V1 Relay NO Common Relay NC V2 V2 screw Modbus Serial I nterface Protocol Number of Ports Serial Standards Data Bits Stop Bits Parity Flow Control Baudrate Connector Serial Line Protection ESD Isolation RS 485 Data Direction Control Pull High Low Resistor for RS 485 Terminal Resister Modbus Function Modbus Serial Signals RS 232 RS 422 RS 485 4w RS 485 2w PROFI BUS Interface Protocol www ipc2u ru Modbus ASCII RTU Master Slave 1 RS 232 422 485 software selectable 7 8 1 2 None Even Odd Space Mark RTS CTS XON XOFF 50 bps to 921 6 kbps DB9 male 15 kV protection for all signals 2 kV protection MGate 41011 MB PBS only ADDC automatic data direction control 1 kQ 150 KQ switchable 120 Q for RS 485 1 2 3 4 5 6 15 16 TxD RxD RTS CTS DTR DSR DCD GND TX Tx Rx Rx GND Tx Tx Rx Rx GND Data Data GND PROFIBUS DP VO Slave 3 4 www moxa pro MGate 4101 MB PBS Hardware Data rate 9600 bps 19 2 93 75 187 5 500 kbps 1 5 3 6 and 12 Mbps Connector DB9 female Isolation Built in 2 kV DIP Switch for Termination Rotary Switch PROFIBUS address 0 99 addresses 100 to 125 supported by SW Console Interface RJ45 to DB9 cable Utility Driver Support Windows 2000 XP 2003 Vista 2008 7 8 8 1 x86 x64 2012 2012 R2 Physical Characteristics Housing Metal 1P30 protection Dimensions 36 x 105 x 140 mm 1 42 x 4 13 x 5 51 in Envir
13. j po po AA fur jur pur po jd puto jd fr jd jur jd pur jd jd Data 01 01 01 00 00 01 FD CA 01 01 01 0051 88 01 01 01 00 00 01 FD CA 01 01 01 0051 88 01 01 01 00 00 01 FD CA 01 01 01 0051 86 01 01 01 00 00 01 FD CA 01 01 01 0051 88 01 01 01 00 00 01 FD CA 01 01 01 0051 88 01 01 01 00 00 01 FD CA 01 01 01 0051 86 01 01 01 00 00 01 FD CA 01 01 01 0051 88 01 01 01 00 00 01 FD CA 01 01 01 0051 88 01 01 01 00 00 01 FD CA 01 01 01 0051 86 01 01 01 00 00 01 FD CA 01 01 01 0051 68 01 01 01 00 00 01 FD CA 01 01 01 0051 88 01 01 01 00 00 01 FD CA 01 01 01 0051 85 01 01 01 00 00 01 FD CA 01 01 01 0051 68 Comment Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read cails Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read cails Read coils Read coils Read coils Read coils Read coils Read cails Read coils Read coils Read coils 4 26 www moxa pro MGate 4101 MB PBS Configuration Open Traffic Monitor Window Select the unit that you wish to monitor and click Monitor to open the Traffic Monitor window Y HGate Manarer Mo Name MAC Address IP COM Status Firmware Version 66 ate APES MN Wer 1 3 Bui 0310 MG4101 66 MGate 4101MBPBS N A comas Ver 1 3 Build 14031018 Device Identification Device Function 65D Management Off Line Configuration In the Traffic Monitor window click Start to begin live monitoring of
14. or MGate ElP3000 series are on the same subnet MGate Manager should be able to find the unit Connect through COM Port Connect through COM Port is used for MGate PROFI BUS Gateways such as the MGate 4101 MB PBS series which are discovered via RS 232 serial COM Port Click Connect through COM Port if you know the COM port number of the unit www ipc2u ru www moxa pro MGate 4101 MB PBS Configuration Search Click Search to begin searching the serial console for the MGate 4101 MB PBS units MGate Ma nager MAC Address IP ICO Status Firmware version Device Identification Device Function search Configuration Load Monitor Log Proctor Mapping Import Locate Load Default Diagnose Upgrade Firmware Export 650 Management Off Line Configuration A dialog box will appear Click Connect through COM Port and choose which COM port is used to connect to MGate 4101 MB PBS O Broadcast Search Ospecty serach P T P 2 Connect through COM Port Ee 4 8 www ipc2u ru www moxa pro MGate 4101 MB PBS Configuration gt HGate Manager Name Model MAC Address Firmware Version 1164101 66 MGate 4101 MB PBS N A Ver 1 3 Build 14031018 Device Identification Device Function 65D Management Off Line Configuration Modifying the Configuration Once your unit is displayed in MGate Manager select it by clicking on it The Configuration button will become available Click Configuration to open the configuration
15. unit by IP address which is useful if the unit is located outside the LAN or can only be accessed by going through a router Connect through COM port tries to connect to a separate unit via a RS 232 serial COM port Broadcast Search Broadcast Search is used for MGate Ethernet Gateways such as the MGate MB3000 and MGate EI P3000 series which are discovered via Ethernet by using broadcast IP In addition whenever you add an MGate 4101 MB PBS via serial console the MGate Manager will automatically record the COM port s for the broadcast to search as well Note that restarting the MGate Manager will erase the COM port s record Specify by IP Address Specify by IP Address is used for MGate Ethernet Gateways such as the MGate MB3000 and MGate EI P3000 series which are discovered via Ethernet by using a specific IP address Click Specify by IP Address if you know the IP address of the unit and wish to connect to it directly ATTENTION If Search by IP Address fails to locate the MGate MB3000 or MGate ElP3000 series the IP address that you entered might be incorrect Try doing the search again and re entering the IP address carefully Another possibility is that the MGate MB3000 or MGate EI P3000 series is located on the same LAN as your PC but on a different subnet In this case you can modify your PC s IP address and or netmask so that it is on the Same subnet as the MGate MB3000 or MGate EIP3000 series After your PC and the MGate MB3000
16. 51 66 01 01 01 00 00 01 FD CA 01 01 01 0051 88 01 01 01 00 00 01 FD CA 01 01 01 0051 66 01 01 01 00 00 01 FD CA 01 01 01 0051 66 01 01 01 00 00 01 FD CA 01 01 01 0051 68 01 01 01 00 00 01 FD CA 01 01 01 0051 68 01 01 01 000001 FDCA 01 01 01 0051 66 01 01 01 000001 FD CA 01 01 01 0051 66 01 01 01 0000 01 FD CA 01 01 01 0051 66 01 01 01 000001 FD CA 01 01 01 0051 66 01 01 01 00 00 01 FD CA 01 01 01 0051 66 01 01 01 00 00 01 FD CA 01 01 01 0051 66 Configuration Comment Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Read coils Save Log to File Previous page To save the data log to a file click Save You may retrieve a saved log by clicking Load Traffic Monitor 0 JH MAN Src amp Dst Porti lt Porti gt Porti lt Porti gt Porti lt Porti gt Porti lt Porti gt Porti lt Porti gt Porti lt Porti gt Porti lt Porti gt Porti lt Port1 gt Porti lt Porti gt Porti lt Porti gt Porti lt Porti gt Porti lt Porti gt Porti lt Porti gt Type RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp
17. MGate 4101 MB PBS Modbus Serial to PROFI BUS Slave Gateway User s Manual Third Edition J uly 2014 www moxa com product MOXA O 2014 Moxa Inc All rights reserved www ipc2u ru www moxa pro MGate 4101 MB PBS Modbus Serial to PROFI BUS Slave Gateway User s Manual The software described in this manual is furnished under a license agreement and may be used only in accordance with the terms of that agreement Copyright Notice Trademarks 2014 Moxa Inc All rights reserved The MOXA logo is a registered trademark of Moxa Inc All other trademarks or registered marks in this manual belong to their respective manufacturers Disclaimer Information in this document is subject to change without notice and does not represent a commitment on the part of Moxa Moxa provides this document as is without warranty of any kind either expressed or implied including but not limited to its particular purpose Moxa reserves the right to make improvements and or changes to this manual or to the products and or the programs described in this manual at any time Information provided in this manual is intended to be accurate and reliable However Moxa assumes no responsibility for its use or for any infringements on the rights of third parties that may result from its use This product might include unintentional technical or typographical errors Changes are periodically made to the information herein to correct such erro
18. OA Ox0D Ox0C becomes 0x0D Ox0C Ox0B OKOA 4 14 www ipc2u ru www moxa pro MGate 4101 MB PBS Configuration After all Modbus requests finish all the data collected from Modbus should be mapped to PROFIBUS I O modules for the PROFIBUS Master to use Click Add to create each PROFIBUS I O module in the lower table Device Modbus PROFIBUS 10 Mapping Modbus Read Write 1212 bytes ID Enable Slave ID Function Address Length Internal Address Poll Interral Swap lt 01 gt Cyclic 1 3 j Es j 1000 Plone lt 02 gt Cyclic 1 E 2 4 4 1000 Plone lt 03 gt Cyclic 1 6 10 1 1000 Plone PROFIBUS Slave Input Output 0 0 bytes ID 110 Module Configuration ID Internal Address Frain Quick Link IO Map Then a dialog which is used to set up the IO module will appear please adjust the parameters which correspond with the Modbus requests you set before Click OK to record this IO module PROFIBUS 10 Module Ea O Type Data Type Data Length I O Type Input Used to map into input memory Finally you can see the IO module you configure before is put into PROFIBUS Slave list PROFIBUS Slave Input Cuput 2 0 bytes ID Tio Module Configuration ID Internal Address 01 Input 1 word 0x50 o F Faging Follow the above steps you can map all of Modbus requests you need into IO module In this way MGate 4101 MB PBS can communicate between PROFIBUS protocol and Modbus protocol 4 15 www ipc2u ru www moxa pro MG
19. TCP are different from serial based Modbus ASCII and RTU The major difference between the Ethernet and serial Modbus protocols is the behavior of the communication model Modbus ASCII and RTU allow only one request on the network at a time Once a request is sent no other communication on the bus is allowed until the slave sends a response or until the request times out However Modbus TCP allows simultaneous requests on the network from multiple masters to multiple slaves TCP masters cannot send more than one request at a time to a slave but they can send requests to other slaves before a response is received The Modbus TCP standard recommends that slaves be able to queue up to 16 requests at a time The MGate MB3000 will queue up to 32 requests from each TCP master for up to 16 TCP masters www moxa pro MGate 4101 MB PBS Quick Configuration Integrate Modbus Serial and Ethernet with Gateways HMI yo PLC Modbus on TCP IP PLC Q IFAI on ee Modbus on RS 23 2422 Device Modbus on RS 484 Ordinarily Modbus TCP and Modbus ASCII RTU are unable to communicate with each other However with a Modbus gateway in between the Modbus serial network and the Modbus Ethernet network TCP masters are able to communicate with serial slaves and serial masters are able to communicate with TCP Slaves Diagnose Packet Format When the communication of MGate works well between PROFIBUS and Modbus protocols MGate won t go i
20. The number of frame errors Parity Error The number of parity errors Overrun Error The number of overrun errors The PROFIBUS tab has information about the PROFIBUS status Modbus PROFIBUS Category tem Value FROFIBUS State Data Exchange Bad rate 1500000 bps Address U Capit O bytes Input bytes Tegal MO Config O Restart Data Exchange O 4 30 www ipc2u ru www moxa pro MGate 4101 MB PBS Configuration Upgrading Firmware Firmware updates for the MGate 4101 MB PBS are located at www moxa com After you have downloaded the new firmware onto your PC you can use MGate Manager to write it onto your MGate 4101 MB PBS Select the desired unit from the list in MGate Manager and click Upgrade Firmware to begin the process Y HGate Manarer No Name Model MAC Address IPF COM Status Firmware Version MG4101 66 MGate 401MBPBS N A coma er 1 3 Build 14031018 Device Identification Device Function Load Default Upgrade Firmware G5D Management Off Line Configuration The dialog boxes will guide you through the process You will need to browse your PC for the firmware file Make sure that it matches your model Upgrade Firmware Firmware For 4101 MB PB5 41011 MB PB5 1 1B PBS Firmwarelmg4101_Yer1 1_Build_11112119 rord 2 As the firmware is written to the unit progress is displayed in the window 4 31 www ipc2u ru www moxa pro MGate 4101 MB PBS Configuration Upzrade Progress Model MAC Addre
21. US and Modbus environment Select the desired unit from the list in MGate Manager and click Diagnose to check the communication status gt HGate HManarer No Name MAC Address IP COM Status Firmware Version MG4101 66 MGate4i01MBPES ma comsa Ver 1 3 Build 14031018 Device Identification Device Functian 65D Management Off Line Configuration The dialog box will show the detailed of communication status of both Modbus and PROFIBUS in addition it contains serial parameters Modbus PROFIBUS Category Item Value Modbus State Running Type RTU Slave Slave ID 1 Valid Requests 2096 Exception T Time out CRCILRC Error Invalid Requests Serial Pork Pork Number 1 Interface R5232 Settings 115200 Mone 8 1 Ta 1256 Pas 16765 Break D Frame Error 0 Parity Error 0 Overrun Error E 4 29 www ipc2u ru www moxa pro MGate 4101 MB PBS Configuration There are two parts In Modbus tab the first part is the information regarding Modbus These details will help you to analyze the Modbus communication Modbus aa AAA The second part is the serial parameters It includes the serial communication about this serial port Port Number The serial port number The serial interface RS 232 RS 422 RS 485 2w RS 485 4w Settings The parameter includes baudrate parity start bit and stop bit for example 19200 None 8 1 TX The transmission count Rx The receive count The number of break signals Frame Error
22. apping GSD Management Off Line Configuration 4 34 www ipc2u ru www moxa pro MGate 4101 MB PBS Configuration A dialog box will appear Choose the correct model and series Click the OK button for the desired MGate device to proceed to the next step Off Line Configuration Select Model Series MGate 4000 w MGate MB3000 MGate EIP3000 Users can choose Create new configuration or Load existing configuration to create or modify configurations MGate 4101 HB PES A Load exist configuration By choosing create new configuration users can set each functions as on line setting Refer to the Modifying the Configuration section for detailed information When all configurations are finished click OK to update or store the configuration file It will pop out a diagram to store the configuration file as ini file REED Temp v GA emh A AF 182 00 ini Ware LAIA BABEL Configuration File ini The file for Load existing configuration can be generated from the Export function or loaded from the file stored when Create new configuration 4 35 www ipc2u ru www moxa pro www ipc2u ru The following topics are covered in this appendix O Typical Applications Quick Configuration Steps PROFIBUS Overview Modbus Overview n Diagnose Packet Format A Quick Configuration www moxa pro MGate 4101 MB PBS Quick Configuration Typical Applicatio
23. ate 4101 MB PBS Configuration NOTE Each ID of the commands must be mapped that is the commands in Modbus will correspond with the I O module in PROFIBUS QuickLink The QuickLink is an innovative function to let you configure more quickly and easily Typically most PROFIBUS users must spend a lot of time to set up Modbus commands in a PROFIBUS application By using the QuickLink function the MGate 4101 MB PBS will learn Modbus requests automatically to save time in deployment However the function is only enabled in Modbus master mode Please refer to the Typical Application in the Appendix for more details Start QuickLink by clicking the QuickLink button Device Modbus PROFIBUS IO Mapping Modbus Read Write DID bytes Slave ID Function Address Length Internal Address Poll Interval Swap PROFIBUS Slave Input Cutput OO bytes ID TO Module Configuration ID Internal Address Paging Quick Link IO Map It takes a period of time to learn the Modbus requests Begin by clicking the Start button which will change the Status to On Learning The number of Learned Requests will increase as the MGate 4101 MB PBS learns each request When you are Sure all requests have been learned by the MGate 4101 MB PBS click the Stop button then click the Next button to continue QuickLink NOTE QucikLink function will work correctly only when all serial parameters setting are set correctly 4 16 www ipc2u ru www moxa pro
24. e to the terminal block 1 Loosen or remove the screws on the terminal block 2 Connect the 12 48 VDC power line to the terminal block 3 Tighten the connections using the screws on the terminal block Note that the unit does not have an on off switch It automatically turns on when it receives power The PWR LED on the top panel will glow to indicate that the unit is receiving power For power terminal block pin assignments please refer to the hardware reference chapter for your model Connecting PROFIBUS Devices The unit s PROFIBUS port s are located on the front panel Use a PROFIBUS cable to directly connect the unit to a PROFIBUS PLC or other PROFIBUS master For the PROFIBUS port pin assignments please refer to Chapter 3 This information can then be used to construct your own PROFIBUS cable Connecting Modbus Serial Devices The unit s Modbus port s are located on the front panel Use a Modbus cable to directly connect the unit to a Modbus RTU ASCII device For the Modbus port pin assignments please refer to Chapter 3 This information can then be used to construct your own Modbus cable Connecting to a Host via Serial Console Cable A RS 232 serial console port is located on the unit s front panel This port is used for console configuration via a CBL RJ 45 F9 150 RJ 45 to DB9 cable For normal operation use a standard straight through RS 232 serial cable to connect the unit to your COM port You connect the uni
25. eee ee ee ee ee eee er ere 3 7 ROCA Goh WALE aa ee eee ee eer ne eT a rr Ter errr Teen Ree een eet eet Ree eee Chet een nen eee nen tr Chee ener 3 7 E ORV FUGUE CUO assole uaa unten nnn neem nce am eg Winn eine emis imme Rims Ka 4 1 ASHIKWA AI 4 2 Starting MGate MA AAA IIIA 4 5 Ae e ei AA AA 4 7 Mod ING the COMM GUFATION ssuiosaduan tancia dato nd datan lea eclesial do tt tt WAA WAWA KAA WAWA WAA eae 4 9 CORE CR DEVICE aerea acia dadas 4 10 Configure MODUS SENS a A ad 4 11 SE CUD PROFIBUS ki kaakaa kaika dll aid IE 4 12 A AE AAA iene eee amr meee ne en ree Tre TC AA HO rrr rer Ceo C rT e 4 13 Once ld eas 4 16 OM O O EE 4 18 e A RNE 4 25 MORIFOFING MOdbUs ACI da oeste ceda de Un OO NAO 4 26 PAU OS P A AAA WAA ATAKAA AA TANA AAA AA Awa aU ena eM wima wA AA 4 29 Uogradino Yaa aa AA AAA AA AA AA AA AAA ia ee eee 4 31 LODO Ur en E EEE EEEE nent nt ne nent ne AMANA KAMBI AWA Ka II Te naya nda Ne Ne manga mange manane TT MAI 4 32 SA o E O A 4 34 As QUICK CONTIQGUIFALION jens in seis vi sces EA BARA devon dese Uno Anna a cu ue ue cis wave sinus ween wie Ein A 1 EY DiCall AD PICHON Sierks ureri EEEE Ea E E aa EE BE dd A 2 Quick Configuration Ste Aaaa A 3 PROF USO VOI Wiscadisisdada oia dd india duda dade aili ld tallers A 3 MOODUS OC EO teats eee eas ese eee ee ced ae eee ed cee ete ans ee anos A 4 ED AGN OSS Packers ebb ete ae aa ANA NA MIA AA ei A 6 www ipc2u ru www moxa pro 1 Introduction Welcome to the MGate 4101 MB PBS line of M
26. he gateway will wait for a response from a Modbus ASCII or RTU slave Please refer to your device manufacturer s documentation to manually set the response time out Set up PROFIBUS www ipc2u ru Every PROFIBUS slave device should be assigned a unique address in the same field If the address you would assign is lower than 99 please use the rotary switches decimal on the top of device If the address you would assign is higher than 99 please set the rotary switches as 99 and Slave Address field will be enabled for setting the designated address Configuration Cancel Device Modbus PROFIBUS 16 Mapping Slave Address lo Slave address less than 99 could only be set by the rotary switch Slave Address Before communication you must assign a slave ID to the PROFIBUS slave If you would like to assign an address between 0 99 you need to change the rotary switch to the desired address If you would like to assign an address which is over 99 you must set it in the MGate utility If you would like to use a slave address which is over 99 set the rotary switch to 99 and then use MGate Manager to configure the desired address Refer to chapter 3 for instructions on how to set the slave address using a rotary switch 4 12 www moxa pro MGate 4101 MB PBS Configuration IO Mapping Setup In this page you should define all commands that Modbus uses and all 1 0 modules PROFIBUS slave provides Configuration
27. is used to change the page number to the specified one The first byte of module P1 attempts to switch input page number and the second byte attempts to change output page number In addition the input I O module which is called P2 is used to read the current page number The first byte of module P2 indicates input page number and the second one designates output page number You can t modify these two I O modules PROFIBUS Slave Input ouput HS bytes ID IO Module Configuration ID Internal Address P1 9 Supu word Ox60 40000 P2 Inpuk 1 word 0x50 O 03 Input i byte 0x10 z 04 Input 1 byte 0x10 3 Quick Link IO Map 4 23 www ipc2u ru www moxa pro MGate 4101 MB PBS www ipc2u ru Configuration The IO map interface shows input and output memory array The row unit is internal address and the column unit is byte number Each column has a length of 20 bytes Each cell is showed as the following table Modbus Mode The Format Meaning N A 05 Write single coil 01 Read coil 06 Write single register 03 Read holding register Slave Internal Address o O 40 60 a0 100 120 140 160 150 00 DO lt 00000 00007 gt 01 lt 00160 00167 gt NN lt 00320 00327 gt NN lt 00480 00487 gt NN lt 00640 00647 NM lt 00800 00807 NM lt 00960 00967 NM lt 01120 01127 gt NN lt 01260 01287 NM lt 01440 01447 NN lt 01600 01607 gt NN ad ed eT
28. l memory is divided into two blocks The input memory address starts from 0x00000 and the out memory starts from 0x40000 The following picture demonstrates the memory structure Each page contains 244 bytes Gateway Internal Memory PROFIBUS MODBUS Output Data Before data exchange you first need to map Modbus requests to the 1 0 module In troubleshooting understanding the relationships between the I O modules and memory is a good way to exclude wrong IO configuration issues The 1O Map function provides a way to check the internal memory address You can open the IO map dialog with the TO Map button Input refers to the data flow from the Modbus device to the PROFIBUS master More specifically it means the gateway will read the Modbus device s data and store in its input memory area And the PROFIBUS mater will read these Modbus data stored at gateway s input memory User can choose internal memory address between 0 224 Output refers to the data flow from the PROFIBUS master to the Modbus devices Those PROFIBUS data that are being written to the Modbus device will be stored at gateway s output memory area and then the Modubs device will be written those data stored at gateway s output memory area User can choose internal memory address between 40000 40242 The MGate will allocate different memory areas to input and output command accordingly If the Modbus function code 01 04 is being chose that is read command the memor
29. ns Here is a typical application to demonstrate how to use the Quick Link function and explain how QuickLink works First of all we are assuming there is a legacy Modbus master in the original application and the Modbus master is running After MGate 4101 MB PBS connects to Modbus master the MGate 4101 MB PBS acts as a Modbus Slave to learn Modbus requests from the master automatically A AAA WW AA EE A Modbus Slave 2 e d Master El a Master a rr a te oi After some time MGate 4101 MB PBS will fully learn the requests from the Modbus master Through this QuickLink process the MGate 4101 MB PBS can replace the legacy Modbus master Moreover the MGate 4101 MB PBS can respond to all of the Modbus slaves correctly SSCS TEES HERE EEE EE EET HEEE TEETH EEO H EEE OH Se PROFIBUS Side 7 Modbus Side Modbus Master Master T CR eee ee eee eee et NOTE QuickLink is enabled with the MGate 4101 MB PBS is in master mode only Please set the MGate 4101 MB PBS in master mode before you use the QuickLink function www ipc2u ru www moxa pro MGate 4101 MB PBS Quick Configuration Quick Configuration Steps MGate 4101 MB PBS provides an innovative function which can automatically and quickly finish the configuration Two typical architectures are illustrated below Confirm which architecture is used in your application and then follow the steps to finish the configuration MGate 4101 i
30. nto diagnostic mode However if there is an error in the Modbus connection for example a disconnection or no responses the MGate will continue to send polling requests until three requests are sent without response Then it will enter diagnostic mode In this mode the MGate will send diagnose packets periodically Upon receiving the correct response MGate will go back to normal operations Refer to the diagnose packet format table to help identify why the MGate entered diagnostic mode Byte Parameter noes O yO The length of diagnose packet The paging number which the problem data locates The PROFIBUS IO module number which the problem data locates For instance if the diagnose packet is 03 01 03 that means the problem data is located on the third PROFI BUS IO module in page one Using this information you can check if the location of the internal memory is correct www ipc2u ru www moxa pro
31. odbus to PROFIBUS gateways All models feature easy protocol conversion from Modbus to PROFIBUS and RS 232 422 485 port for Modbus communication This chapter is an introduction to the MGate 4101 MB PBS and includes the following sections O Overview O Package Checklist O Product Features www ipc2u ru www moxa pro MGate 4101 MB PBS Introduction Overview The MGate 4101 MB PBS is a line of protocol gateways that provides users with the following features Protocol conversion between Modbus and PROFIBUS MGate 4101 MB PBS series products can be used to connect Modbus devices and PROFIBUS devices to provide PLCs ex Siemens S400 S300 with remote maintenance capability Windows utilities for easy setup and traffic monitoring A Windows utility is provided to make configuration and operation of the MGate 4101 MB PBS as easy as possible The utility uses serial console port to connect MGate 4101 MB PBS unit Besides Wizard functions can help you finish configuration in only several minutes by automatic commands detection and automatic memory mapping Package Checklist All models of the MGate 4101 MB PBS series are shipped with the following items Standard Accessories e 1 MGate 4101 MB PBS Modbus Serial to PROFIBUS Slave Gateway e Documentation Software CD e Quick Installation Guide e Product warranty statement e RJ45 to DB9 cable for console use Optional Accessories e DR 4524 45W 2A DIN rail 24 VDC power
32. oll Interval A transaction is issued when a change in data is detected Slave ID The Modbus slave id that this slave module will accept 0 Broadcasting 1 255 Device specific Function Code When a message is sent from a Client to a Server device the function code field tells the server what kind of action to perform We support the following function code by far 01 Read coils 02 Read discrete inputs 03 Read holding registers 04 Read input register 05 Write single coil 06 Write single register 15 Write multiple coils 16 Write multiple registers Station Address The range is from 0 to 65535 Length The length field is a byte count of the following fields including the Unit Identifier and data fields The range is from 1 to 1953 Internal Address This parameter specifies the location of the trigger byte in internal memory The range is from O to 243 Poll Interval ms Polling interval in millisecond since the module sends all requests in turns the actual polling interval also depends on the number of requests in the queue and their parameters The range is from 10 to 1200000 Data Byte Swapping None Don t need to swap Byte OKOA 0x0B 0x0C Ox0D becomes Ox0D Ox0C Ox0B OKOA Word OKOA Ox0B Ox0C Ox0D becomes Ox0C Ox0D OKOA OxOB ByteWord OKOA Ox0B O0x0C Ox0D becomes 0x0D Ox0C Ox0B OKOA There are two phases in changing ByteWord 1 OKOA 0x0B O0x0C Ox0D becomes 0Ox0B OKOA Ox0D OxOC 2 OxOB OK
33. onmental Limits Operating Temperature Standard Temp Models 0to 60 C 32 to 140 F Wide Temp Models 40 to 75 C 40 to 167 F Operating Humidity 5 to 95 RH Storage Temperature 40 to 85 C 40 to 185 F Standards and Certifications Safety UL 60950 1 EN 60950 1 Hazardous Location UL cUL Class 1 Division 2 Groups A B C D ATEX Zone 2 ECEx EMC CE FCC EMI EN 55022 Class A FCC Part 15 Subpart B Class A EMS EN 55024 EN 61000 4 2 ESD Level 3 EN 61000 4 3 RS Level 2 EN 61000 4 4 EFT Level 3 EN 61000 4 5 Surge Level 3 EN 61000 4 6 CS Level 2 EN 61000 4 8 PFMF Level 1 Shock IEC 60068 2 27 Freefall IEC 60068 2 32 Vibration IEC 60068 2 6 Reliability Alert Tools Built in buzzer and RTC real time clock MTBF 513 139 hours Warranty 5 years 3 5 www ipc2u ru www moxa pro MGate 4101 MB PBS Hardware Adjustable Pull High Low Resistors for the Modbus Port P1 in RS 485 Mode km j FTA IC DHe AH j i a sx Y Pa amp it pia Y HSA KII gr RN Hit AY FA D 7 A 444 MOD lt gt 1 as y LN FE EE NY aa JE Sa Pull a Pull Low ee kana 1209 In some critical environments you may need to add termination resistors to prevent the reflection of serial signals When using termination resistors it is important to set the pull high low resistors correctly so that the electrical signal is not corrupted
34. or the PROFIBUS side 1 0 module since the PROFIBUS master are going to access the Modbus data we assigned through the memory areas in the gateway Hence the PROFIBUS I O Module setting is depended on the data it requires For example if the PROFIBUS master is going to access the Modbus requests we assigned in the previous examples 4 20 www moxa pro MGate 4101 MB PBS www ipc2u ru Configuration Modbus Read Write 4 4 bytes ID Enable Slave Functi Addr Length Internal Add Poll Inte lt 01 gt Cyclic 1 3 0 2 0 1000 lt 02 gt Cyclic 1 16 0 40000 1000 PROFIBUS Slave Input Ouput 0 0 bytes Remove Edit Up Down Configuration ID Internal Add The first command is to read Modbus device s command with function code 03 and the acquired data is to be read by the PROFIBUS master hence these data are being placed at Input memory area Therefore we set I O type as Input and with total 4 bytes data length You may use data length of 2 with word data type or use data length of 4 with Byte data type PROFIBUS IO Module YO Type Input Data Type Word Data Length For the second command in the Modbus side showed above the PROFIBUS master would write data to Modbus device through gateway Hence we set PROFIBUS I O Module with Output I O type with 2 Word byte types PROFIBUS YO Mapping Modbus Read Write 4 4 bytes ID Enable Slave Functi Addr Length Internal Add Poll Inte Swap
35. pping Setup QuickLink IO Map Load Default Y VV VV VV WV Monitoring Modbus Activity Diagnose O Upgrading Firmware a I mport Export O Off Line Configuration 4 Configuration www moxa pro MGate 4101 MB PBS Configuration Installing the Software The following instructions explain how to install MGate Manager a utility for configuring and monitoring MGate 4101 MB PBS units over the network 1 Insert the Documentation and software CD into the CD ROM drive and then locate and run the following setup program to begin the installation process MGM Setup Version Build _ DateTime exe The latest version could have the following format MGM Setup Verx x x_Build_ xxxxxxxx exe 2 You will be greeted by the Welcome window Click Next to continue ie Setup MGate Manazer Welcome to the MGate Manager Setup Wizard This will install MGate Manager 1 5 on your computer It is recommended that you close all other applications before continuing Click Mext to continue or Cancel to exit Setup Cancel www ipc2u ru www moxa pro MGate 4101 MB PBS Configuration 3 When the Select Destination Location window appears click Next to continue You may change the destination directory by first clicking on Browse 5 Setup MGate Manager ala E Select Destination Location Where should MGate Manager be installed na y Setup will install MGate Manager into the Following Folder To continue click Next IF
36. rs and these changes are incorporated into new editions of the publication Technical Support Contact Information Moxa Americas Toll free 1 888 669 2872 Tel 1 714 528 6777 Fax 1 714 528 6778 Moxa Europe Tel 49 89 3 70 03 99 0 Fax 49 89 3 70 03 99 99 www ipc2u ru www moxa com su ort Moxa China Shanghai office Toll free 800 820 5036 Tel 86 21 5258 9955 Fax 86 21 5258 5505 Moxa Asia Pacific Tel 886 2 8919 1230 Fax 886 2 8919 1231 www moxa pro Table of Contents De PER OAUGCUION aaa 1 1 UWA a ener oer Rea arene a ane eer E E E ROE REEDS ORE OTE EEE ERECT Oe RE CEE 1 2 Package Checa eo 1 2 Product FeatUrES ee 1 2 Zs Gening Started ss sawed can raamaaneanmas sensnamameneeneds AE 2 1 CON CIA N s a meme men etre em ere E oe te rere at Merten a rie eae ee et ere A E rrr errr 2 2 Connecting PROFIBUS aaa 2 2 COnMecting Modbts Serlal DEVICES up est SA 2 2 Connecting to a Host via Serial Console Cable ccc ccc cece cece cere eee e eee cnn rr rr 2 2 3 UW A o 3 1 Power Input and Relay OucpUC PAQUI ed e 3 2 Bie Bla ol eshte Coie Tne a hin en ne haere arn ene cer ce ret aa hu gia Turn r rec rN 3 2 DIMEN JONS AA ee cn ree ee AI er eee rene ee mer 3 2 PUT NS SCLIN ANANIA A AA o a a rabia lancia iones 3 3 MOURINO Ne UA en A rro 3 3 S PECAR ON A aia AA AA ia 3 4 Adjustable Pull High Low Resistors for the Modbus Port P1 in RS 485 MOode wwwamanaanwwwwnnanwuna 3 6 KA gi
37. s Modbus Master MGate 4101 is Modbus Slave PROFIBUS Overview www ipc2u ru Introduction PROFIBUS Process Field Bus is a standard for field bus communication in automation technology and was first promoted in 1989 by BMBF German department of education and research Topology PROFIBUS uses the bus topology In this topology a central line or bus is wired throughout the system Devices are attached to this central bus One bus eliminates the need for a full length line going from the central controller to each individual device In the past each PROFIBUS device had to connect directly to the central bus Technological advancements however have made it possible for a new two wire system In this way multiple PROFIBUS buses can connect to each other www moxa pro MGate 4101 MB PBS Quick Configuration MGate 4101 MB PBS PROFIBUS Master MODBUS Slave COM 1 PROFIBUS Slave Modbus Overview Introduction Modbus is one of the most popular automation protocols in the world It supports both serial and Ethernet devices Many industrial devices such as PLCs DCSs HMIs instruments meters motors and drivers use Modbus as their communication standard Devices are Either Masters or Slaves All Modbus devices are classified as either a master or a slave Masters initiate all communication with slaves and do not communicate to other masters Slaves are completely passive and communicate only by sending a re
38. slave no other communication may be initiated until after the slave responds The Modbus protocol specifies that masters use a response timeout function to identify when a slave is nonresponsive due to device or line failure This function allows a master to give up on a request if no response is received within a certain amount of time This is illustrated as follows Response Timeout The master sends a request The slave is unresponsive for the amount of time specified by the response timeout function The master gives up on the request and resumes operation allowing another request to be initiated cancelled afte m response S To allow for a wide range of devices baudrates and line conditions actual response timeout values are left open for manufacturers to determine This allows the Modbus protocol to accommodate a wide range of devices and systems However this also makes it difficult for system integrators to know what response timeout value to use during configuration specially with older or proprietary devices The MGate MB3000 provides a patent pending function that tests all attached devices and recommends a response timeout value This function saves considerable time and effort for system integrators and results in more accurate timeout settings Modbus Ethernet vs Modbus Serial Although Modbus is intended as an application layer messaging protocol the data format and communication rules for Ethernet based Modbus
39. sponse to a master s request Master ah Master Serial TCP Slave a Slave Slaves are Identified by I D Each Modbus slave in a system is assigned a unique ID between 1 and 247 Whenever a master makes a request the request must include the ID of the intended recipient Master devices themselves have no ID Broadcast address Slave individual address Communication is by Request and Response All Modbus communication is by request and response A master sends a request and a slave sends a response The master will wait for the slave s response before sending the next request For broadcast commands no response is expected This is illustrated by three scenarios as follows Normal The master sends a request to the slave The slave sends a response with the requested information www ipc2u ru www moxa pro MGate 4101 MB PBS Quick Configuration www ipc2u ru Exception The master sends a request to the slave The slave may not support the command or an error is detected so it sends an exception to the master Broadcast The master sends a broadcast command such as a reset command Every slave on the network complies with the command and no response is sent to the master Broadcast A Requests Need a Time Limit The original Modbus protocol was not designed for simultaneous requests or simultaneous masters so only one request on the network can be handled at a time When a master sends a request to a
40. ss IPITHM Status Misate 4101 MB PBS NA COM Transmit 40 Once the firmware has been successfully written onto the unit click Exit to close the Upgrade Firmware window MGate Manager will automatically execute a Broadcast Search for all MGate units on the LAN and the recording COM port Your MGate should reappear in the list of units I mport Export The Import Export configuration function is a convenient way to apply the same settings to units which are located in different sites You can export the configuration as a file and then import that configuration file onto other units at any time The export function saves all the configuration settings and parameters of the MGate 4101 MB PBS will be saved in an ini file To begin click the Export button T HGate Wanazer No MAC Address Firmware Version RA A Ver 13 Build 190310138 Device Identification Device Functian 65D Management Off Line Configuration Type in a file name and use the Browse button to set the save file to a specific path Then click the OK button 4 32 www ipc2u ru www moxa pro MGate 4101 MB PBS Configuration Save Load 1 E Documents and Settings moxalDesktopltest Browse 2 If you export the configuration file successfully a confirmation message will pop up MGateManager Eg o Export OF Ok After that the configuration file will be saved as an ini file Once the file is saved it can be imported into yo
41. supply with universal 85 to 264 VAC input e DR 75 24 75W 3 2A DIN rail 24 VDC power supply with universal 85 to 264 VAC input e DR 120 24 120W 5A DIN rail 24 VDC power supply with 88 to 132 VAC 176 to 264 VAC input by switch e WK 36 02 Wall mounting kit Mini DB9F to TB Adaptor DB9 female to terminal block adapter Note Notify your sales representative if any of the above items is missing or damaged Product Features e Automatic Windows configuration utility e Redundant dual DC power inputs e Enhanced surge protection for serial and power e 2 kV isolation for serial signals 1 model only e PROFIBUS connector to connect the gateway to the field bus e Power off warning by relay output e Software selectable RS 232 422 485 communication www ipc2u ru www moxa pro www ipc2u ru The following topics are covered in this chapter O O O O Connecting Power Connecting PROFIBUS Devices Connecting Modbus Serial Devices Connecting to a Host via Serial Console Cable 2 Getting Started www moxa pro MGate 4101 MB PBS Getting Started Connecting Power The unit can be powered using the AC adaptor or by connecting a power source to the terminal block depending on the model The following instructions are for the AC adaptor 1 Plug the connector of the power adapter into the DC IN jack on the back of the unit 2 Plug the power adapter into an electrical outlet Follow these instructions to connect a power sourc
42. t directly to a PC Besides use a serial cable to connect the unit to your PC s serial connector The Tx Rx LED of the console port will light up to indicate serial connection status when data is communicated with each other 2 2 www ipc2u ru www moxa pro 3 Hardware The following topics are covered in this chapter Power Input and Relay Output Pinouts LED Indicators Dimensions Pin Assignments Mounting the Unit Specifications Adjustable Pull High Low Resistors for the Modbus Port P1 in RS 485 Mode Reset Button 0 0 0000000 Rotary Switch www ipc2u ru www moxa pro MGate 4101 MB PBS Hardware Power Input and Relay Output Pinouts Shielded Common Ground PWR1 PWR2 Off Power is off Gateway is operational Ready Gateway has wrong settings Power is off or fault condition exists Serial device is transmitting data P1 Tx Rx Serial device is receiving data Modbus Serial l l No data is flowing to or from the serial port PEE Steady Gateway is waiting for data exchanging Blinking Data is exchanging P2 Status PROFIBUS Orange Steady Error in Configuration Blinking Error in Parameter data PROFIBUS offline or Slave ID wrong Dimensions unit mm inch TOocoo00o00 E FS J Pa 149 25 5 88 50000 0606655 da 0000 46696 Rotary switches a PROFIBUS port Modbus serial port 4 3 0 17 105 04 4 14 Reset to default bu
43. the data passing through the selected MGate 4101 MB PBS unit Traffic Monitor Src 8 Dst Type Function Code Comment 4 27 www ipc2u ru www moxa pro MGate 4101 MB PBS www ipc2u ru To stop capturing the log press the Stop button Traffic Monitor No 0 y MH M4 Oh Time 0 000 0 005 1 000 1 005 2 000 2 005 3 000 3 005 4 000 4 005 5 000 5 005 6 000 6 005 7 000 7 005 8 000 8 005 9 000 9 005 10 000 10 005 11 000 11 005 12 000 12 005 Src amp Dst Porti lt Porti gt Porti lt Porti gt Porti lt Porti gt Porti lt Porti gt Porti lt Porti gt Porti lt Porti gt Porti lt Port1 gt Porti lt Porti gt Porti lt Porti gt Port1 lt Porti gt Porti lt Porti gt Porti lt Porti gt Porti lt Porti gt Type RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp RTU Request RTU Resp Slave ID 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Function Code AA ji uo po pu j po pur pur AA j po pur pur pur ji AA j pur pur jd AA AA AA jd Data 01 01 01 0000 01 FDCA 01 01 01 0051 66 01 01 01 00 00 01 FD CA 01 01 01 00
44. tton Serial console 113 84 4 48 Dual power inputs and relay output LED indicators DIN rail 3 2 www ipc2u ru www moxa pro MGate 4101 MB PBS Hardware Pin Assignments Modbus P1 Pin Assignment The MGate 4101 MB PBS series use DB9 male serial port to connect to Modbus devices RS 422 RS 485 2W RS 485 a NES OH 3 TXD RxD B DTR RxD A PROFIBUS P2 Pin Assignment The MGate 4101 MB PBS series use DB9 female serial port to connect to PROFIBUS devices PIN Signal Name 77 ers ECHO CCT INEA CN e promus o Console RS 232 Pin Assignment The MGate 4101 MB PBS series use RJ 45 serial port to connect to PC to configure device Mounting the Unit www ipc2u ru The unit can be mounted on the wall or mounted on a DIN Rail The MGate 4101 MB PBS 4101 MB PBS series is designed to be attached to a DIN Rail or mounted on a wall For DIN Rail mounting push down the spring and properly attach it to the DIN Rail until it snaps into place For wall mounting install the wall mount kit optional first and then screw the device onto the wall The following figure illustrates the two mounting options 3 3 www moxa pro MGate 4101 MB PBS Wall Mount Installation DIN Rail Installation Step 1 Install wall mount kit Specifications Power Input Input Voltage Connector mounting 12 to 48 VDC Hardware Step 1 Push down the spring Step 2 Click onto DIN rail 8 pin terminal block GND
45. ur target unit to duplicate the same settings Select the target unit first and click the Import button to import gt HGate HManarer No Name MAC Address CO Firmware Version oi MG410166 MGate PBS INA COM53 r 1 3 Build 140310 01 MG4 101 MGate 4101 MBPBS Build 14031018 Device Identification Device Functian 65D Management Off Line Configuration Select the file you want to import then click the OK button 4 33 www ipc2u ru www moxa pro MGate 4101 MB PBS Configuration Save Load 1 E Documents and Settings moxalDesktopltbest Browse Please be patient and wait as MGate Manager configures the target device Process Progress Setting devices configurations If you import the configuration file successfully a confirmation message will pop up MGateManager E P A L Importo After closing the message dialog MGate Manager will automatically execute a Broadcast Search for all MGate units on the LAN and the recording COM port Your MGate should reappear in the list of units Off Line Configuration Users can create or modify the configuration file manually through the MGate Manager To use this function users can click on the Off Line Configuration button to load the configuration window Gate Manager Name Model MAC Address IP COM Firmware Version MG4101 65 MGate 4101 MB PBS N A COM58 Ver 1 3 Build 14031018 Device Identification Device Function Load Monitor Log ProCOM M
46. us PROFIBUS 10 Mapping Mode Serial Port Protocol CO RTU Slave Mode Baudrate Slave ID RTU Master Mode Parity ae Time out 1000 O ASCII Slave Mode Data bits Max Retry O ASCII Master Mode Stop bit Flow Control FIFO InterFace Mode Description AAA Modbus RTU slave s will be connected to the serial port Modbus ASCII slave s will be connected to the serial port pasts E 4 11 www ipc2u ru www moxa pro MGate 4101 MB PBS Configuration Slave ID Slave mode only Modbus slave identification number of the MGate 4101 MB PBS Response Time out Master mode only the time master will wait for a response after sending a request ms See detailed description below Max Retry Master mode only the number of times the master will retry the same request when response time out Response Time out According to the Modbus standard the time that it takes for a slave device to respond to a request is defined by the device manufacturer please refer to Appendix A of MGate MB3000 series User Manual for details Based on this response time a master can be configured to wait a certain amount of time for a slave s response If no response is received within the specified time the master will disregard the request and continue operation This allows the Modbus system to continue operation even if a slave device is disconnected or faulty On the MGate 4101 MB PBS the Response Time out field is used to configure how long t
47. window L HGate Manarer Mo Mame oi MG4101 66 Device Identification Device Function 65D Management Off Line Configuration 4 9 www ipc2u ru www moxa pro MGate 4101 MB PBS Configuration Configure Device In first page you can change device name and select a Password to protect the unit from unauthorized access Configuration Cancel Device Modbus PROFIBUS 10 Mapping Name MG4101_3 Confirm Password Parameter Value Notes AA Name an alphanumeric string You can enter a name to help you identify the unit such as the location function etc Password an alphanumeric string You can set a password to prevent unauthorized users from configuring the unit The password will be required when anyone attempts to configure the unit over the network Modbus operation is not affected by the password Confirm password an alphanumeric string Re type the password again for confirmation ATTENTION To erase an existing password leave both the New Password and Confirm Password text input boxes blank The password will be erased when you click OK in the bottom right corner 4 10 www ipc2u ru www moxa pro MGate 4101 MB PBS Configuration Configure Modbus Settings The Serial tab is where Modbus Serial port s communication parameters are configured You can configure Baud Rate Parity Stop Bit Flow Control FIFO and Interface Mode Configuration slave 4101 m Device Modb
48. y it used will be allocated in Input memory area For example if we adopts function code 03 with packet length 2 word byte starting from Internal Address 0 I O Mapping Modbus Read Write 4 0 bytes C Enable Slave Functi Addr Length Internal Add Poll Inte Swap lt 01 gt Cyclic 1 3 0 2 0 1000 None 4 18 www ipc2u ru www moxa pro MGate 4101 MB PBS Configuration The 1 0 Map function shows the basic 1 0 mapping relation between Modbus and PROFIBUS Note that the Modbus related information is marked in lt gt signs while PROFIBUS related information is marked in signs The I O Map will show as below figure Input Pagel Internal Add 00 40000 40020 40040 40060 40080 40100 40120 40140 40160 40180 4 Since we set Modbus request with packet length 2 word byte and internal address start from 0 hence the MGate will allocate the first 4 bytes from internal memory address 00 03 In other hands if the Modbus function code 05 06 15 and 16 is being chose that is write command the memory it used will be allocated in output memory area For example if we adopts function code 16 with packet length 2 word byte starting from Internal Address 40000 Enable Slave Functi Addr Length Internal Add Poll Inte Swap 1 1000 None Remove Edit Up Down PROFIBUS Slave Input Ouput 0 0 bytes Configuration ID Internal Add The 1 0 Map shows as below figure
49. you would like to select a different Folder click Browse CU Program FilesiMoxalMGate Manager At least 0 9 MB of Free disk space is required 4 When the Select Additional Tasks window appears click Next to continue You may select Create a desktop icon if you would like a shortcut to MGate Manager on your desktop ma Setup MGate Manager a Ed Select Additional Tasks Which additional tasks should be performed Select the additional tasks you would like Setup to perform while installing MGate Manager then click Next Additional icons www ipc2u ru www moxa pro MGate 4101 MB PBS Configuration 5 Click Next to start copying the software files fe Setup MGate Manager Ela lx Ready to Install Setup is now ready to begin installing MGate Manager on your computer Click Install to continue with the installation or click Back iF you want bo review or change any settings Destination location C Program Files MoxalMGate Manager Additional icons Create a desktop icon ie Setup MGate Manager Installing Please wait while Setup installs MGate Manager on your computer Extracting Files CAM INDO wW Sisvstems2 ldriversimgdry sys Cancel www ipc2u ru www moxa pro MGate 4101 MB PBS Configuration 7 A message will indicate that MGate Manager is successfully installed You may choose to run it immediately by selecting Launch MGate Manager ia Setup MGate Manager

Download Pdf Manuals

image

Related Search

Related Contents

PRO – 1250 SERIES User manual  Choisir au mieux ses objectifs  Samsung WD8702RJH Manual de Usuario  ERA GT - Era Replica Automobiles  Pioneer DVR-A03-J User's Manual  Service Manual, GSG Grinder  Actes Journées Santé Travail du CISME – Tome IV – 2014  

Copyright © All rights reserved.
Failed to retrieve file