Home
Manual
Contents
1. 01 lt 02 gt 02 lt 01 gt NN lt NN gt gt gt gt lt NN gt gt 02 lt 02 gt 03 lt O01 gt NN lt lt NN lt NN lt NN zNN lt NN lt NN gt gt gt 03 lt 02 gt 04 gt gt lt NN NN gt gt lt NN lt NN 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 Output memory being allocated is depended on the type of Modbus command read or write For 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 PROFI BUS master is going to access the Modbus requests we assigned in the previous examples 4 20 MGate 4101 MB PBS 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 Remove Edit Up bios PROFIBUS Slave
2. 201120 01127 MN 01280 01287 gt zD1440 01447 gt 201600 01607 MN eT 01 200008 00015 1041 200168 00175 MN 200328 00335 gt 200488 00495 gt 200648 00655 gt 200808 00815 gt 200968 009775 gt 01128 01135 gt 01288 01295 gt 01448 01455 gt 01608 01615 gt FE a i 17 4 24 200016 00023 gt 200176 00183 gt 1 200336 00343 gt 200496 00503 gt 200656 00663 gt 200816 00823 gt lt 00976 00983 gt 01136 01143 gt lt 01296 01303 gt 01456 01463 gt 01616 01623 gt ed o35 DRIRSIT 200016 00023051 200176 00183 gt 1 200336 00343 gt 200496 00503 gt lt 00656 00663 gt 00816 00823 gt lt 00976 00983 gt 01136 01143 gt 01296 01303 gt 01456 01463 gt 01616 01623 gt eT 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 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 Manager Address Firmware Version MG4101 56 MGate 4101 8 5 N A cCOMs58 Ver 1 3 Build 1403101
3. 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 MGate 4101 MB PBS Quick Configuration 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 Lu 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 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 uu reponse T To allo
4. 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 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 MGate 4101 MB PBS Hardware Adjustable Pull High Low Resistors for the Modbus Port P1 RS 485 Mode FTA LIC idis AH C it DH em P317 LIC TH Fr ON Hit Wy 4 C D S di 4 Vy Ex Pull uA Pull Low s e Ie 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 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 ar
5. ID Function Address Length Internal Address Poll Interval Swap z l Cyclic 1 3 0 2 0 1000 Mone lt 02 gt Cyclic 1 3 4 4 1000 lt 03 gt Cyclic 1 6 10 1 1000 Mone PROFIBUS Slave InputiOutput O 0 bytes ID Module Configuration ID Internal Address Frain Quick Link IO 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 to record this IO module PROFIBUS IO Module E3 Data 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 Ouput 2 0 bytes ID Module Configuration ID Internal Address 01 Input 1 word 0x50 0 F Faging Follow the above steps you can map all of Modbus requests you need into 10 module In this way MGate 4101 MB PBS can communicate between PROFIBUS protocol and Modbus protocol 4 15 MGate 4101 MB PBS Configuration NOTE Each I D 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 Mo
6. Input Ouput 0 0 bytes Configuration ID Internal Add The first command is to read Modbus device s command with function code 03 and the acquired data 15 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 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 1 0 Module with Output I O type with 2 Word byte types PROFIBUS I O Mapping Modbus Read Write 4 4 bytes ID Enable Slave Functi Addr Length Internal Add Poll Inte Swap x l 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 YO Module Configuration ID Internal Add 01 Input 2 word 0 51 0 02 Ouput 2 word 0 61 40000 Remove Edit Up Down Paging The 1 0 Map shows as follows See signs 4 21 MGate 4101 MB PBS Input Pagel w Internal Add Internal Add 40000 40020 40040 40060 40080 40100 40120 40140 40160 40180 4 00 01 lt 01 gt 01 TIS 01 lt 02 gt 102 02 lt 01 gt 01 02 lt 02 g
7. MGate 4101 MB PBS 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 0 20 40 60 at 100 120 140 160 150 200 00 00000 00007 011 00150 00167 gt 200320 00327 gt lt 00480 00487 gt 200640 00647 gt 200800 00807 gt 00960 00967 gt 201120 01127 MN zD1280 01287 gt zD1440 01447 gt 201600 01607 gt 70 lt The Modbus ID The ID of I O module OS Write single coil hal 01 200008 00015 1021 200168 00175 gt 200328 00335 gt 200488 00495 gt 200648 00655 gt 200808 00815 gt 200968 009775 gt 201128 01135 gt 201288 01295 MN 201448 01455 gt 201608 01615 gt 17 Read cails Internal Address 40000 40020 40040 40060 40080 40100 40120 40140 40180 40190 40200 Ann 00 200000 00007 1031 200160 00167 gt 200320 00327 gt 200480 00487 gt 200640 00647 gt 200800 00807 gt 00960 00967 gt
8. Src amp Dst Port1 lt Porti gt 1 lt Porti gt Porti lt Porti gt Porti lt Porti gt 1 lt Porti gt Porti lt Port1 gt Porti lt Porti gt 1 lt Porti gt Porti lt Porti gt 1 lt Porti gt 1 lt Porti gt 1 lt Porti gt 1 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 i jb j pi ee jd ee jd jd jd jd jd jd jd jd Data 01 01 01 00 00 01 FD 01 01 01 0051 88 01 01 01 00 00 01 FD 01 01 01 00 51 88 01 01 01 00 00 01 FD C 0101010051 88 01 01 01 00 00 01 FD 01 01 01 0051 88 01 01 01 00 00 01 FD 01 01 01 0051 88 01 01 01 00 00 01 FD C 0101010051 88 01 01 01 00 00 01 FD 01 01 01 0051 88 01 01 01 00 00 01 FD 01 01 01 0051 88 01 01 01 00 00 01 FD 01 01 01 00 51 88 01 01 01 00 00 01 FD 01 01 01 0051 88 01 01 01 00 00 01 FD 01 01 01 00 51 88 01 01 01 00 00 01 FD C 01 01 01 00 51 88 01 01 01 00 00 01 FD
9. 01 01 01 0051 88 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 4 26 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 7 Manager No Address IP COM Status Firmware Version trum MG4101 66 MGate 4101 8 5 INA comes Ver 1 3 Build 14031018 Device Identification Device Function 550 Management Off Line Configuration In the Traffic Monitor window click Start to begin live monitoring of the data passing through the selected MGate 4101 MB PBS unit Traffic Monitor Src amp Dst Type Slave ID Function Code Comment 4 27 MGate 4101 MB PBS To stop capturing the log press the Stop button Traffic Monitor No J C Cn amp 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 5 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 lt Porti gt Port1 lt Porti gt Porti lt Porti gt Porti lt Porti gt Porti lt Porti g
10. 8 Device Identification Device Function Load Default Upgrade Firmware 550 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 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 4 25 MGate 4101 MB PBS Monitoring Modbus Activity 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 aon C Cl R CO
11. Configuration Search Click Search to begin searching the serial console for the MGate 4101 MB PBS units MGate Ma nager Address IP COM Status Firmware version Device Identification Device Function search Configuration Load Monitor Lag ProloM Mapping Import Locate Load Default Diagnose Upgrade Firmware Export 550 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 CO Broadcast Search O specty IP serach Connect through COM Port pl 4 8 MGate 4101 MB PBS Configuration T Model MAC Address Firmware Version 4101 66 Misate 4101 MEB 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 window 7 Address IP COM Status Firmware Version i01 MG4101 66 _ MGate 4101 MB BS N A _ O J Ver 1 3 Build 14031018 Device Identification Device Function 5D Management Off Line Configuration 4 9 MGate 4101 MB PBS Configuration Configure Device In first page you can change device name and select a Password to protect the
12. DIN rail 24 VDC power supply with 88 to 132 VAC 176 to 264 VAC input by switch 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 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 model only e PROFIBUS connector to connect the gateway to the field bus Power off warning by relay output Software selectable RS 232 422 485 communication The following topics are covered this chapter 0 0 Connecting Power Connecting PROFIBUS Devices Connecting Modbus Serial Devices Connecting to a Host via Serial Console Cable 2 Getting Started 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 the back of the unit 2 Plug the power adapter into an electrical outlet Follow these instructions to connect a power source to the terminal block 1 Loosen or remove the screws 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 bl
13. FD 01 01 01 00 51 88 01 01 01 00 00 01 FD 01 01 01 00 51 88 01 01 01 00 00 01 FD 01 01 01 00 51 88 01 01 01 00 00 01 FD 01 01 01 00 51 88 01 01 01 00 00 01 FD 01 01 01 00 51 88 01 01 01 00 00 01 FD 01 01 01 00 51 88 01 01 01 00 00 01 FD 01 01 01 00 51 88 01 01 01 00 00 01 FD 01 01 01 00 51 88 01 01 01 00 00 01 FD 01 01 01 00 51 88 01 01 01 00 00 01 FD CA 01 01 01 00 51 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 MGate 4101 MB PBS Configuration Diagnose Diagnose is a powerful function to identify communications problems and assist in troubleshooting when setting up a PROFIBUS and Modbus environment Select the desired unit from the list in MGate Manager and click Diagnose to check the communication status Address IP COM Status Firmware Version MG4101 66 4101 8 5 N A comsa Ver 1 3 Build 14031018 Device Identification Device Function 550 Management Off Line Configuration The dialog box will show the detailed of communication status of both Modbus and PROFIBUS in addition it contains serial p
14. Gate 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 IO settings Far Modbus and PROFIBUS Modbus Read Write 1 0 bytes ID Enable Slave ID Function Address Length Internal Address Pall Interval Swap lt O1 gt Cyclic 1 1 1 0 1000 Mone PROFIBUS Slave Input Output 170 bybes Paging Disable ID Module Configuration ID Internal Address 01 Input 1 byte 010 0 4 17 MGate 4101 MB PBS Configuration 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 internal 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 I O module In troubleshooting understanding the relationships between the I O modules and memory is good way to exclude wrong IO configura
15. MGate 4101 MB PBS Modbus Serial to PROFI BUS Slave Gateway User s Manual Third Edition J uly 2014 www moxa com product MOXA 2014 Moxa Inc All rights reserved 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 errors and these changes are in
16. S 485 3 6 eee ee ee ee ee eee er ere 3 7 3 7 5 5 4 1 TNE Go eee E a 4 2 Starting MGate Wana Cl Atenas tats 4 5 Connecting 4 7 MOCIFY ING ThE COMM GUFATION dated eda TTE 4 9 CORE sU Eu 4 10 Configure MOGDUS 4 11 Setup PROFIBUS Of 4 12 POM rele ell ale S eM 4 13 tee eee as eRe eas 4 16 hog on P EEUU 4 18 SE IN EE 4 25 MORIFOFING MOCDUS ACTIV IDLY EEUU 4 26 e In OS meet 4 29 Uogradino ae ER 4 31 M MM M mE 4 32 Suis To pese RT M 4 34 A Quick Configurati h OR A 1 EY DiCall AD PICHON S t DET A 2 Quick COMMOUPALION 5 A 3 PROEIBUS OVELVIOW a a a ain aie ea Aon Arr t A 3 MOODUS OC EO eee eas ese eee ee ced Lu ed cee ete ans uiti xU A 4 Diagnose ACI uelut A 6 1 Introduction Welcome to the MGate 4101 MB PBS line of Modbus to PROFIBUS gateways All models feature easy protocol conversion from Modbus to PROFIBUS and RS 232 422 485 port for Modbus com
17. arameters Modbus PROFIBUS Category Item value Modbus State Running Type RTLI Slave Slave ID 1 Valid Requests 2096 Exception 0 Time out CRCILRC Error Invalid Requests Serial Pork Pork Number 1 Interface Settings 115200 8 1 TA 12576 16268 Break 0 Frame Error 0 Parity Error 0 Overrun Error 0 4 29 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 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 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 Value PROFIBUS etate Data Exchange Baudrate 1500000 bps Address 0 bytes Input 1 bytes Tegal Config 0 Restart Data Exchange 0 4 30 MGate 4101 MB PBS Configuration Upgrading Firmware Firmware updates for the MGate 4101 MB PBS are located
18. 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 7 Manager Model MAC Address IP COM Status Firmware Version MG4101 66 MGate 4101 2 85 er 1 3 Build 14031018 Device Identification Device Function Load Default Upgrade Firmware 550 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 PBS 41011 MB PBS 1 B PBSiFirmwarelng4101 Verl i Build 11112119 ron 2 As the firmware is written to the unit progress is displayed in the window 4 31 MGate 4101 MB PBS Configuration Upzrade Progress Mode Address Status 4101 5 MIA CONI 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 expor
19. ate 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 Whites P AP Set Program Bootes and Def adit 4h Windoers Catalog d indoors Uite AB Explorer HEN mA Ciok Express p Remobe B Windoers Medus Plryer Cy Masao Haier Rf Google Chrome i Hae Manso Pomm Ute Verl iB Uninstall aste Manager lug Pine n bt 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 lIn English Ing French Ing German Japanese Ing Korean Ing Polish When you click OK MGate Manager will immediately reflect your chosen language MGate Seles Address IP COM Status Firmware Version Device Identification Device Function Locate Load Default 550 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 sh
20. ates For instance if the diagnose packet is 03 01 03 that means the problem data is located on the third PROFI BUS module in page one Using this information you can check if the location of the internal memory is correct
21. corporated 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 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 Table of Contents De PER OAUGCUION 1 1 1 2 Package CHeCKISE 1 2 Product DII 1 2 2 Gening Started 2 1 Connecting Merten rie eae EE M et EU MM MD rer rrr ta 2 2 Connecting PROFIBUS DEVICES aaa a a a Petra tto Aya Adr 2 2 DEVICES 2 2 Connecting to a Host via Serial Console Cable nna nnn ann 2 2 3 HardWare csi r ERRTETITS 3 1 Power Input and Relay OucpUC PIMOU US 3 2 D ids 3 2 ERE 3 2 PNASSIINMENTS a aod E RR NI 3 3 IVT CNG FE 3 3 3 4 Adjustable Pull High Low Resistors for the Modbus Port P1 R
22. ctly 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 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 response to a master s request Master ob Master Serial HE Slave BE Slave Slaves are Identified by ID 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 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
23. d 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 C CQ amp CO Src amp Dst Porti lt Porti gt Port1 lt Porti gt Porti lt Porti gt Porti lt Porti gt 1 lt Porti gt 1 lt Porti gt 1 lt Porti gt 1 lt Porti gt 1 lt Porti gt 1 lt Porti gt 1 lt Porti gt Port1 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 j j ji ji ji ji ji ji ji ji ji ji ji ji ji j jd ji ji jd j ji Data 01 01 01 00 00 01 FD 01 01 01 00 51 88 01 01 01 00 00 01 FD 01 01 01 00 51 88 01 01 01 00 00 01 FD 01 01 01 00 51 88 01 01 01 00 00 01
24. dbus 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 12 Mapping Modbus Read Write bytes Slave ID Function Address Length Internal Address Poll Interval Swap PROFIBUS Slave 0 0 bytes ID Module Configuration ID Internal Address Paging Quick Link IO 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 MGate 4101 MB PBS Configuration Quick Link After connect Make to Modbus cable click Start and then Stop to learn Ehe Modbus requests Time 00 00 10 Item Value Status Learning Learned Requests 0 Found Invalid Reque Requests Overflow 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 M
25. e 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 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 This parameter specifies the location of the trigger byte in internal memory The range 15 from 0 to 243 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 0x0A OxOB OxOC OxOD becomes OxOD OxOC OxOB Word OxOB OxOC OxOD becomes OxOC OxOD OxOB ByteWord Ox0A OxOB OxOC OxOD becomes OxOD OxOC OxOB There are two phases in changing ByteWord 1 OxOA OxOB OxOC OxOD becomes OxOB OxOD 2 OxOB OxOD OxOC becomes OxOD OxOC OxOB 4 14 MGate 4101 MB PBS Configuration After all Modbus requests finish all the data collected from Modbus should be mapped to PROFIBUS 1 0 modules for the PROFIBUS Master to use Click Add to create each PROFIBUS 1 0 module in the lower table Device Modbus PROFIBUS IO Mapping Modbus Read Write 12 2 bytes ID Enable Slave
26. e 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 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 The following topics are covered this chapter O Installing the Software O Starting MGate Manager O Connecting to the Unit Modifying the Configuration Configure Device Configure Modbus Settings Set up PROFIBUS Mapping Setup QuickLink Map Load Default VON ON ON ON ON ON WV Monitoring Modbus Activity Diagnose Upgrading Firmware I mport Export Off Line Configuration 4 Configuration MGate 4101 MB PBS Configuration Installing the Software The follow
27. e serial port Modbus ASCII slave s will be connected to the serial port Dwasts 4 11 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 the 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 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 rota
28. g 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 I P 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 I P Address if you know the IP address of the unit and wish to connect to it directly ATTENTI ON If Search by IP Address fails to locate the MGate MB3000 or MGate EI P3000 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 EI P3000 series After your PC and the MGate MB3000 or MGate EI P3000 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 MGate 4101 MB PBS
29. he Modbus related information is marked in lt gt signs while PROFIBUS related information is marked signs The 1 0 Map will show as below figure Input Pagel Internal Add 00 40000 40020 40040 40060 40080 40100 40120 40140 40160 40180 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 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 1 1000 Remove Edit up Down PROFIBUS Slave Input Ouput 0 0 bytes Configuration ID Internal Add The I O Map shows as below figure 4 19 MGate 4101 MB PBS Internal Add 0 20 40 80 100 Ouput Pagel Internal Add 40000 40020 40040 40060 40080 40100 40120 40140 40160 40180 4 00 01 gt NN zNN zNN zNN NN lt NN zNN lt NN lt NN lt NN 00 lt 02 gt 01 01 gt NN gt gt gt gt gt gt gt gt NN
30. he upper table Click Add to create each Modbus request Device Modbus PROFIBUS IO Mapping Modbus Read Write 0 0 bytes ID Enable Slave ID Function Address Length Internal Address Poll Interval Swap Remove Edit Up Down PROFIBUS Slave bytes ID Module Configuration ID Internal Address Remove Edit Up Down F Faging Quick Link IO 4 13 MGate 4101 MB PBS Configuration Each Modbus request includes Enable Modbus slave 10 Function Code Address Length Internal Address Poll Interval Swap Please r Modbus Request Enable Slave ID Address a Slave ID Function Code enon Internal Address Poll Interval ms efer to datasheets or manuals of Modbus slave devices to fill out these fields Length Internal Address Function Code O03 Read holding registers Poll Interval 1000 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 Poll Interval A transaction 1 issued when a change in data is detected The Modbus slave id that this slave module will accept 0 Broadcasting 1 255 Device specific 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 th
31. ing 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 Setup Verx x x Build Xxxxxxxx exe 2 You will be greeted by the Welcome window Click Next to continue a Setup MGate Manager 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 Wext to continue or Cancel to exit Setup Cancel 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 e Setup MGate Manager Select Destination Location Where should MGate Manager be installed Setup will install Make Manager into the Following Folder To continue click IF you would like to select different Folder click Browse E Program Manager least 0 9 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 wo
32. munication This chapter is an introduction to the MGate 4101 MB PBS and includes the following sections Overview Package Checklist Product Features 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 PROFI BUS Slave Gateway Documentation amp Software CD Quick Installation Guide e Product warranty statement e 45 to 9 cable for console use Optional Accessories e DR 4524 45W 2A DIN rail 24 VDC power 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
33. nicated with each other 2 2 3 Hardware The following topics are covered in this chapter o 0 0 0 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 Rotary Switch MGate 4101 MB PBS Hardware Power Input and Relay Output Pinouts Shielded Ground Common 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 1 Serial device is receiving data Modbus Serial No data is flowing to from the serial port Dress Steady Gateway is waiting for data exchanging Blinking Data is exchanging P2 Status PROFI BUS Orange Steady Error in Configuration Blinking Error in Parameter data PROFIBUS offline or Slave ID wrong Dimensions unit mm inch BJ ug fo ri 149 25 5 88 eeocoa apea Rotary switches PROFIBUS port 4 3 0 17 Modbus serial port 105 04 4 14 Reset to default button Serial console 113 84 4 48 Dual power inputs and relay output LED indicators DIN rail 3 2 MGate 4101 MB PBS Hardware Pin Assignments M
34. ock 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 PROFI BUS Devices The unit s PROFI BUS port s are located on the front panel Use a PROFIBUS cable to directly connect the unit to a PROFI BUS PLC or other PROFI BUS master For the PROFI BUS 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 CBL RJ45 F9 150 RJ 45 to DBO9 cable For normal operation use a standard straight through RS 232 serial cable to connect the unit to your COM port You connect the unit 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 commu
35. odbus P1 Pin Assignment The MGate 4101 MB PBS series use 9 male serial port to connect to Modbus devices RS 422 RS 485 2W RS 485 a _1 e 3 TXD RxD B DTR PROFIBUS P2 Pin Assignment The MGate 4101 MB PBS series use 9 female serial port to connect to PROFIBUS devices PIN Signal Name s 7 NC Ls momwso 07 Console RS 232 Pin Assignment The MGate 4101 MB PBS series use RJ45 serial port to connect to PC to configure device Mounting the Unit The unit can be mounted the wall or mounted on a DI N Rail The MGate 4101 MB PBS 41011 MB PBS series is designed to be attached to a DIN Rail or mounted on a wall For DI N Rail mounting push down the spring and properly attach it to the DI N 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 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 otep 2 Click onto DIN rail 8 pin terminal block GND 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 Connec
36. on Save Load 1 E Documents and test Please be patient and wait as MGate Manager configures the target device Process Progress Setting devicels configurations If you import the configuration file successfully a confirmation message will pop up MGateManager E m h 1 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 Manager Name Model MAC Address IP COM Firmware Version MG4101 66 MGate 4101 MB PBS N A COM58 Ver 1 3 Build 14031018 Device Identification Device Function Load Monitor Log ProCOM Mapping GSD Management Off Line Configuration 4 34 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 Confiruration Select Model Series MGate400 w MGate MB3000 MGate EIP3000 Users can choose Create new configuration or Load existing configuration to create or modify configurations Mate 4101 MB PBS Load e
37. own in traditional Chinese However no matter what language you choose it won t change the label on the language button 4 6 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 PC port Search by IP attempts to connect to a specific unit by 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 usin
38. quests 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 EEE OH Se PROFIBUS Side Modbus Side Modbus Master Master 222222222222222222222222222222222222222222222458 7 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 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 is Modbus Master MGate 4101 is Modbus Slave PROFIBUS Overview 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 dire
39. ry 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 EE Slave address less than 99 could only be set by the rotary switch Slave Address Before communication you must assign a slave 10 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 MGate 4101 MB PBS Configuration Mapping Setup this page you should define all commands that Modbus uses and all 1 modules PROFIBUS slave provides Configuration Modbus Read Write 0 0 bytes ID Enable Slave 10 Function Address Length Internal Address Poll Interval Swap Down PROFIBUS Slave Input Output 0 bytes Module Configuration ID Internal Address Down Paging Quick Link IO If you choose MGate 4101 MB PBS as Modbus Master you should designate all Modbus Read Write requests in t
40. t 1 lt Porti gt 1 lt Porti gt 1 lt Porti gt Porti lt Porti gt Port1 lt Porti gt Port1 lt Porti gt Port1 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 ee ji jd ji jd jd ji ji jd jd jd j jd Data 010101 00 00 01 FD 0101 01 0051 88 01 01 01 00 00 01 FD 01 01 01 0051 88 01 01 01 00 00 01 FD 01 01 01 0051 88 01 01 01 00 00 01 FD 01 01 01 0051 88 01 01 01 00 00 01 FD 01 01 01 0051 88 01 01 01 00 00 01 FD 01 01 01 00 51 88 01 01 01 00 00 01 FD 01 01 01 00 51 88 01 01 01 00 00 01 FD 01 01 01 0051 88 01 01 01 00 00 01 FD 01 01 01 00 51 88 01 01 01 00 00 01 FD 01 01 01 0051 88 01 01 01 00 00 01 FD 01 01 01 0051 88 01 01 01 00 00 01 FD 01 01 01 00 51 88 01 01 01 00 00 01 FD 01 01 01 00 51 88 Configuration Comment Read coils Read coils Read coils Read coils Read coils Read coils Read coils Rea
41. t 02 4 22 Configuration 03 lt 01 gt 1011 TIS 03 lt 02 gt 02 MGate 4101 MB PBS Configuration Configuration E Device Modbus PROFIBUS 10 Mapping lave ID Function Address Length Inbernal Address Pollinterval Swap PROFIBUS Slave Input Ouput 2 6 bytes Module Configuration ID Input 1 byte Ox 10 Ouput 1 byte 20 Quput 1 byte Gx Quput 2 word 061 In addition you can select the Paging checkbox to enable the page function so the utility will insert two 1 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 1 module which is called P1 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 1 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 4 8 bytes ID Module Configuration ID Internal Address P1 1 word Ox60 40000 2 Input i ward 0x50 0 03 Input i byte 0x10 2 04 1 byte 0x10 3 Quick Link IO 4 23
42. t 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 MGate 4101 MB PBS Quick Configuration Integrate Modbus Serial and Ethernet with Gateways HMI Vo PLC Modbus on PLC 032 422 aL ar Modbus on RS 232 422 Device RS 485 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 into 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 loc
43. t 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 No MAC Address Firmware Version BS Ver 1 3 Build 14031018 _ Device Identification Device Function 550 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 MGate 4101 MB PBS Configuration Save Load 1 E Documents and Settings moxalDesktopitest Browse 2 If you export the configuration file successfully a confirmation message will pop up MGateManager E gt 1 Export OK OK After that the configuration file will be saved as an ini file Once the file is saved it can be imported into your target unit to duplicate the same settings Select the target unit first and click the Import button to import Address Firmware Version 01 1 6410166 MGate PBS INA 58 1 3 Build 140310 01 MG4D01 MGate 4101 MB PBS Build 14031018 Device Identification Device Functian 550 Management Off Line Configuration Select the file you want to import then click the OK button 4 33 MGate 4101 MB PBS Configurati
44. tion issues The IO Map function provides way to check the internal memory address You can open the IO map dialog with the IO 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 memory 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 Enable Slave Functi Addr Length Internal Add Poll Inte Swap lt 01 gt Cyclic 1 3 0 2 0 1000 4 18 MGate 4101 MB PBS Configuration The I O Map function shows the basic I O mapping relation between Modbus and PROFIBUS Note that t
45. tor 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 I nterface Protocol 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 9 male 15 kV protection for all signals 2 kV protection MGate 41011 5 only ADDC automatic data direction control 1 150 switchable 120 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 Rx Rx GND Data Data GND PROFIBUS DP VO Slave 3 4 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 I nterface 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 IP30 protection Dimensions 36 x 105 x 140 mm 1 42 x 4 13 x 5 51 in Environmental Limits Operating Temperature Standard Temp Models to 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
46. uld like a shortcut to MGate Manager on your desktop ie Setup MGate Manager mI m Select Additional Tasks Which additional tasks should be performed Select the additional tasks vou would like Setup to perform while installing MGate Manager then click Next Additional icons MGate 4101 MB PBS Configuration 5 Click Next to start copying the software files fe Setup MGate Manager Ready to Install Setup is now ready to begin installing MGate Manager on your computer Click Install to continue with the installation ar click Back iF you want bo review ar change any settings Destination location C Program Files MoxalMGate Manager Additional icons Create desktop icon ie Setup MGate Manager Installing Please wait while Setup installs MGate Manager your computer Extracting Files CUWINDOWSIsvsEema3zWdriversWngdrv svs Cancel MGate 4101 MB PBS Configuration 7 message will indicate that MGate Manager is successfully installed You may choose to run it immediately by selecting Launch MGate Manager ie Setup MGalte Manager Completing the MGate Manager Setup Wizard Setup has Finished installing MGate Manager on your computer The application may be launched by selecting the installed icans 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 MG
47. unit from unauthorized access Configuration Cancel IO Mapping Mame MG4101 3 Confirm Password o Parameter Value Notes 0 0 0 0 00 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 ATTENTI ON 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 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 Device Modbus PROFIBUS IO Mapping Mode Serial Port Protocol CO RTU Slave Mode Baudrate Slave ID Master Parity ae Time out 1000 CO ASCII Slave Mode Data bits Max Retry O ASCII Master Mode Stop bit Flow Conkral FIFO InterFace Mode JDesripion Modbus RTU slave s will be connected to th
48. w 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 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 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 tha
49. xist 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 HiT L Temp v Q t eg aoe fr BAUD TUE 95 TRSAT 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 The following topics are covered in this appendix Typical Applications Quick Configuration Steps PROFIBUS Overview Modbus Overview Diagnose Packet Format A Quick Configuration MGate 4101 MB PBS Quick Configuration Typical Applications 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 mm am mm mmm mmm mmm gg a a Modbus Slave Aa 4 Master ki a Master P a After some time MGate 4101 MB PBS will fully learn the re
Download Pdf Manuals
Related Search
Manual manual manualslib manual car manuale digitale manually meaning manual timesheet manual transmission manual wheelchair manual arts high school manually update your device drivers windows manual definition manual for courts martial manual labor manual lawn mower manual muscle testing manually register devices with autopilot manual muscle testing grades manual transfer switch manualidades manual blood pressure cuff manual handling manual transmission cars for sale manual digital manual pdf manual autopilot enrollment
Related Contents
Samsung DVD-V5600 Uporabniški priročnik Get pureRNA Kit Allegro Control Panel User Manual 31-317型 31-318型 取扱説明書 保証書付 ガス風呂単能釜〈連絡水管 Phonix NL625GWB mobile phone case Lightolier 372X User's Manual Descargar ficha técnica Copyright © All rights reserved.
Failed to retrieve file