Home
GW-7552 user manual-en
Contents
1. A menony mapping Byte i a Sale Value Setting Utility tool GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 25 GW 7552 data exchange master mode A es d O An XA i Selz gi i 4 F ts A Reset A vi D geg W aula tag Yes a 7 dk E m y Re Al w A m Mi Le L a ndex Parameterization Check Parameterization LIK ge a ee E ae PMR it CFG gt Confreurtation be a Sa j E Be ke Check Configuration OK is output command enable Note Module typer WDCO Cutput Relawvi ol module WAC COutput Register module EE RDLRDO Input RelayiCoil module Memory RALEAC Inpat Register module Copy Profibus OP data to Internal DO AAD memory EE ER GERS N i Send Query Send Query messages to all r d WDO A WAO modbus module Is module Index type EDI EDOG RAT EAO Send a Query message to modbus model Index and refresh Internal DI amp Al memory gn GA Bi e SAN check Are all module Na D s a check once SoS AD dell Copy Internal DI Sal E ro i bus AF i eege memory to Profibus LP data ndex Index Figure 27 GW 7552 master mode flowchart GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 26 When the GW 7552 acts as a Modbus slave device the data exchange runs continuously between Profibus master and the GW 7552 and the data exchange runs between Modbus master device and the GW 7552 when G
2. Item Wabe State 4 Modbus Type Master Module 3 Module 4 Modbus Format RTU ji 1 0 Value for Stop Mode Retain Last Value Module 5 D Modbus Device ID 5 1 4 Poll interval time ms M 4 Time out value ms M Module 6 Module 7 Module count Module 8 Module 9 q Module 10 v GW 7552 State Com Port State GW 7552 is connected Receive parameter finish Figure 56 The menu of space configuration 5 3 1 Space configuration in device The user can select check box of the module to show memory address configuration of DI DO AT AO in the GW 7552 as shown in figure 57 Space configuration in device pp Moda w Moduled fw Modulli Module11 fw Modulel2l Module vw Modulel4f Modulel5 jw Module16 W Modulet fw Module18 e Modulel9 fw ModulezO0lw Module21 fe Module22fw Module23f ie ddes bMadulez6f Modulezy Me Figure 57 Space configuration in device GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 57 5 3 2 Space configuration in profibus The user can select check box of the module to show memory address configuration of I O data area in the Profibus master station as shown in figure 58 apace configatation in profibus Select module w Module lw Moduelli Modulellf Module Ziw Modulel3i Modulel4lw Modulel5 w Module16 w Module w Modulel8f Module19 iw Module2 0h Module ti Module22 Module Modul Figure 58 Space con
3. again Then MBRTU can receive response message 01 02 02 FE DC FS 41 In this message the user can know the value of DIO amp DII have changed into OxFE amp OxDC in the GW 7552 as shown in figure 47 48 49 amp table 16 HERTU Y 1 00 7 COMI COM status Protocol Description Met ID Station number Line control FC MO1 3 Reference number Byte 4 5 Bit count er Close Folling mode no wait Statistics Clear Statistics Timeout Commande Responses Start 200 Curent Packet Size bytes a Ger Current Packet Size bytes 7 Total Packet bytes a Difference Total Packet bytes 7 Timer mode fixed period Packet Quantity sent 1 0 Packet Quantity received 1 Interval al ms Folling or Timer mode Date Time Folling Mode Timing ms Start Start time Time Start Max ono Average Stop time PO TimeStop tt Mm LU bar 01 02 00 00 00 10 Commands I with CAC Responses 01 0200000010 79 CE 01 02 02000069 B5 Clear Lists Exit Program Figure 47 Send Modbus command to read DI of the GW 7552 GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 48 Die ke Logical Network View Tag List IO watch O OutputdOl O bit unsigned integer byte O Ba Masteri D Output 02 bit vnsened integer byte Y REI Alacel Ri Gute RI Cutput module Ei Input module e 10 Watch Settings not saved yet Ser Oui made O Oupati
4. Modbus type to slave and the default setting is being used in the other parameters for this example Please refer to section 4 3 the Configuration of the common parameters The users can set parameters as shown in the below GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 41 ez SyCon EXE PTM TEZT pb Ki File Edit View Insert Online Settings Toole Window Help D ki MasterQ Stato adress LU DD Master TFS0 PE SlaveD SEDO acres l DP Save OW 7552 Double click icon For Help press FI PROFIBUS Contig Mode Figure 38 Double click the GW 7552 icon to open the Slave configuration window F SyCon EXE PTM_TEST pb 5 Daz a ki A Slave Configuration Creneral Device GW Ob station address l Description al Cancel Iw Activate device in actual configuration 7 5 w Enable watchdog control GED file IPDSOBOE GSD Max length of in foutputdata 255 Byte Length of in voutput data 6 E DEYI Settings M x length of input data 128 Byt Length of input data 2 B Assigned master 4 B Max length of output data 130 Byte Length of output data Station address 0 Max number of modules 32 Number of modules Master O FCIESO PE setting Baute Relay Coil l Byte Actual slave Relay Coil 2 Eyte station address 1 Pelay Coil 3 Byte slavell Relayv Coil 4 Byte 1 GW 7552 Bie eae patos eck ke ope anne aze PA System Moduled Output Modulez Remove Module Input Modules IE LI EE Fr
5. Modus Device address 1 el el mm es PA EAS Byte 0 Byte 1 te Modbus 3 15 internal LO data memory Response Figure 24 The GW 7552 receive data from Modbus master device GW 7352 Profibus Modbus Gateway Modbus Slave Mode Modbus Master Device e ka Response message SECTE V 005 a A 1 7 Madbus 8 15 Modbus Devigafadidress 1 Internal ua S Gm Query message read DI Figure 25 The GW 7552 output data to Modbus master device LO data GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 24 3 3 Communication protocol transfer In section 3 1 and 3 2 we can understand that data exchange is through DI gt DO gt AI gt AO memory space of the GW 7552 between Profibus master gt Modbus and the GW 7552 When the GW 7552 acts as a Modbus master device the data exchange runs continuously between Profibus master gt Modbus and the GW 7552 as shown in figure 26 gt 27 PROFIBUS GW 7552 MASTER Profibus Modbus Gateway Modbus Master Mode Modbus Device Input Data Max 128 Bytes Checry message Module Modbus Device ID r Ey he H Ba f y 3 e data L Modbus Start Ackit Response mesure Data Module 2 0 ps i Bete 127 exchinee Output Duta ia 150 17 Evie th L km A 3 i Module 42 Internal Bric 129 ETHIE Figure 26 GW 7552 master mode communication protocol transfers Read CW 7552 setting
6. 1 xtocol Description FC1 Read multiple coils status Oxxxx for DO d Net ID Station number FC 01 Byte 2 3 Reference number Byte 4 5 Bit count Statistics Clear Statistics Commands k t Responses Current foie Size bytes 8 es Current Packet Size bytes 7 Total Packet bytes 69 D Total Packet bytes 40 Timer mode fixed period Packet Quantity sent EE Quantity received Interval 50 ms Polling Sek EE Date Time Polling Mode Titing m E Start time Time Start Max op Average Z fia ee Time Stop Min SE 100 ER 000 Command Commands Iv with CRC Responses artists artists Exit o EmikProgram Figure A4 MBRTU Utility Send Command to write DO of the GW 7552 The user needs to input command 01 OF 00 00 00 10 02 FF FF here and click Send Command gt button to send Modbus command 01 OF 00 00 00 10 02 FF FF E3 90 and then MBRTU can receive response message 01 OF 00 00 00 10 54 07 The user can find byte O 1 of the input data area in the configuration program SyCon have changed into FF at this time as shown in the below GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 45 MBRIU FY 1 07 COMi COH status 7 pr Protocol Description PO Read multiple coils status Ose for DO vi Request Byte 0 Met ID Station number Byte 1 FC 01 Byte 2 3 Reference nu
7. Cancel Figure 50 install the utility Step 3 Click the Next button to continue If you want to change the installation destination click Browse button to set the installation path GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 52 GG PROFIBUS MODBUS GATEWAY UTILITY Select Installation Folder The installer will install PROFIBUS MODBUS GATEWAY UTILITY to the following folder To install in this folder click Mest To install to a different folder enter t below or click Browse Folder CAProgram FilesICPDASPROFIBUSG 4 TEWA Y Install PROFIBUS MODBUS GATEWAY UTILITY for yourself or for anyone who uses this Computer O Evervone 5 Just me Mwe Ca Figure 51 set the installation path Step 4 Click the Next button to confirm installation jx PROFIBUS MODBUS GATEWAY UTILITY Contirm Installation The installer is ready to install PROFIBUS MODBUS GATEWAY UTILITY on your computer Click Nest to start the installation Cir ee Te Figure 52 Confirm installation GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 53 Step 5 Click the Close button to finish and exit the installation program GG PROFIBUS MODBUS GATEWAY UTILITY Installation Complete PROFIBUS MODBUS GATEWAY UTILITY has been successtully installed Click Close to eut Cancel Figure 533 Ins
8. Sev Output module O up CAPro gram File Hilicher viconiProjectiPTHM TEST pb For Help press Fl OPCS not available Connected OPC Chents 00 Figure48 Set output data and trigger output data command in the output data area Table 16 Set output data and trigger output data command Module Byte Data type Representation Value System Output 0 Byte Hex 0x00 0x01 modus Output 1 Byte Hex 0x00 Output Output 2 Byte Hex 0x00 OxFE module Output 3 Byte Hex 0x00 OxDC GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 49 HERTU FY 1 0 7 COMI COM status Protocol Description comi IFC Read multiple coils status Ox for DO w i E Met ID Station number Line control FPE 01 Byte 2 3 Reference number Byte 4 5 Bit count Close Polling mode no wait Statistics Clear Statistics Timeout Commands Responses Start 00 Curent Packet Size bytes a A Current Packet Size bytes 7 Total Packet butes 16 Difference Total Packet bytes EE Timer mode fied period Packet Quantity sent 2 m Packet Quantity received 2 Interval AD ms Polling or Timer mode DateTime Polling Mode Timing mz aa Start ue Time Start da 000 Average Stop time Time Stop Mm 100 O00 Command Commands i with CAC Responses 01 0200000070 79 CE jon 02 02 FE DC Fs 41 E sit Program Figure 49 Send Modbus command to read DI of the
9. Slave Configuration window by confirming the setting by clicking the OK button Step 6 Now the setting done by the configuration tool has to be downloaded to the Profibus master Click on the master area in the graphic window then Online gt Download e SyCon EXE PTH TEST pb Ki File Edit View Insert As Settings Tools Window Help E E Hi q Download Ctrl D Start Debug Mode FMS Diagnostic Firmware Download Image Download 0 Firmware Reset CIF50 PB Extended Device Diagnostic Ctrl T Global State Field Live List JC Monitor i l Message Monitor FMS Monitor GW 7552 Automatic Network Scan Get Object dictionary Start Communication Stop Communication Device Info Activate Driver Read Project Information Activate Bootstraploader Downloads the configuration into the selected device PROFIBUS Config Mode Figure 43 Click Online gt Download to download the setting into PROFIBUS master GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 44 4 8 1 Receiving data from a Modbus master device Start the test utility MBRTU figure 44 on the PC This utility simulates a Modbus master device and is on the web site in the following directory 1 Set the COM port number of the PC 2 Set the Baud rate to 115200 3 Set the Line control to N 8 1 4 Open the connection MBRIU Y 1 0 7 COMI
10. 29 GW 7552 slave mode flowchart GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 28 4 Communication 4 1 Field of application A master station can be a PLC PC or any other smart device The system can be a mono master system Figure 30 or a multi master system Figure 31 The GW 7552 enables the integration of the Modbus devices into a PROFIBUS DP network Figure 30 Mono master system GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 29 PRO Ce ze mm EEN ire T PROFI 8455 PROFIBUS Figure 31 Multi master system 4 2 GSD file The characteristic ex baud rate message length number of input output data of each PROFIBUS DP device is described in the GSD file The GSD file of the GW 7552 is in the ICP DAS companion CD ROM PATH gt CD PROFIBUS GATEWA Y GW 7552 GSD The user can copy GSD file IPDSOB87 gsd and the Bitmap file ICP_7552 bmp 1 7552 bmp to the PROFIBUS configuration tool 4 2 1 The example of how to load GSD file In the following examples the CIF50 PB PROFIBUS master card from Hilscher is used The configuration and communication is done by the program SyCon provided by Hilscher Step 1 Copy the GSD file IPDSOB87 gsd and the Bitmap file ICP_7552 bmp 1 7552 bmp from CD of the GW 7552 module into the Profibus configuration tool GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAG
11. GSD Revision V1 00 For Help press FI PROFIBUS Config Mode Figure 34 set the address of the GW 7552 Step 5 The GW 7552 icon is shown in the window It adds the GW 7552 successfully in the software e SyCon EXE PTH TEST pb E File Edit View Insert Online Settings Tools Window Help Master Stabon adores 0 FWSDP Master CIF50 PB Slavel Sabon address l DP Slave OW 7552 For Help press Fl PROFIBUS Config Mode Figure 35 Finish adding the GW 7552 GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 32 4 3 The Configuration of the common parameters GW 7552 has ten common parameters The user can configure the common parameters to set the communication mode and data format by the PROFIBUS configuration tool The common parameters are described below COM Port baud rate 2400 4800 9600 19200 38400 57600 1 15200 COM Port parity None Even Odd COM Port data length 7 8 data bit COM Port stop bit 1 2 stop bit Modbus Type Master Slave Modbus Format RTU ASCII I O Safe Mode Retain last value Switch safe value Byte Order Little Endian Big Endian Modbus Device ID S 1 247 Polling Modbus Device Interval ms M 1 65535ms Query Message Timeout Value ms M 1 65535ms PS a When stop bit of Com Port is 2 data bit of Com Port must be 7 or else stop bit of Com Port will be set to 1 b I O Safe Mode When GW 7552 acts as a Modbus master Modbus Type Master i Data exchang
12. GW 7552 and receive data OxFE OxDC PS Modbus command Query message Hi Lo Hi Lo check ajaj fo foo fio fw Je Response message DA FC BC DATA ee check GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 50 DA Device Address Ox01 FC Function Code 0x02 read DI SA Hi Start Address Hi byte Ox00 SA Lo Start Address Lo byte 0x00 NO H No Of points Hi byte Ox00 NO Lo No Of points Lo byte Ox10 BC Byte Count 0x02 GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 51 5 Application of Utility 5 1 Install Utility Step l Download the Profibus Modbus gateway utility setup file from the CD ROM disk following the path of CD profibus gateway gw 7552 utilities Y or the web site fTtp ftp 1cpdas com tw pub cd fieldbus cd profibus gateway gw Step 2 Execute the Setup exe file to install the Profibus Modbus Gateway Utility ig PROFIBUS MODBUS GATEWAY UTILITY Welcome to the PROFIBUS MODBUS GATEWAY cd UTILITY Setup Wizard T The installer will guide pou through the steps required to install PARAOFIBUS MODBUS GATEWAY UTILITY on your computer WARNING This computer program i protected by copyright law and international treaties Unauthorized duplication or distribution of this program or ap portion of d may result in severe civil or criminal penalties and will be prosecuted to the masimun extent possible under the law
13. Parity Data bit Stop bit Item Wale State 52 Modbus Type Master Modbus Format RTU 5P 1 0 Value for Stop Mode Retain Last Value 54 Modbus Device ID 5 1 52 Poll interval time ms M SP Time out value ms M 4 Module count w GW 7552 State 6 Com Port State 6 Receive parameter finish Display connection state GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 63 6 Troubleshooting The troubleshooting list can help users to resolve the problems when using the GW 7552 If the problem still can t be solved please contact with technical staff of ICP DAS Table 17 Item Trouble state Errors and solutions Solution PWR LED indication of the GW 7552 is always turned off The power supply of GW 7552 has some problems Please check the wire connection of the power and the voltage 1s between 10 30VDC ERR LED indication of the That means the GW 7552 isn t connecting to the PROFIBUS master station Please check the wire connection and the hia twa ys TUNES PROFIBUS master station The configuration and address of GW 7552 in the PROFIBUS master station are not correct It means the GW 7552 is in setting mode and connects with 3 ERR LED indication of the Utility Please close Utility and set the GW 7552 to operation GW 7552 1s flashing fast mode please refer section 2 6 Normal Setting Dip Switch and section 4 6 2 Output data area and co
14. Power Management En HHD Free Serial Port Monitor al e pe Le ICPDAS TIE a O io O Dos e E E RI oe SH raiden laniLl Dl ENEE TO Windows XP Professional Figure 63 Open Utility GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 62 Step 5 Set Com Port communication setting of Utility please refer section 5 2 2 Com Port settings the same as Com Port setting of GW 7552 please refer section 4 3 The Configuration of the common parameters Step 6 Click Communication Connect button in menu Profibus Modbus Gateway Utility Safe value setting View Help Com Port isn t open Com Port Setting Port Comi vi Baudrate 115200 D Parity None D Data bit e databit D Stop bit fi stopbit D en Vue State 52 Modbus Type 4 Modbus Format 5P 1 0 Value for Stop Mode 4 Modbus Device ID 5 5P Poll interval time ms M 4 Time out value ms M 5 Module count GW 7552 State Com Port State Figure 64 Communication menu Step 7 GW 7552 state shows green in the Utility now it means the connection is complete Profibus Modbus Gateway Utility Communication Safe value setting View Help Module 1 Module 2 Module 3 Module 4 Module 5 Module 6 Module 7 Module 8 q q q Module 9 Module 10 GW 7552 is connected Figure 65 A Com Port Setting Port Baudrate
15. RS 232 COM port RS 232 device RS a RA PIHS Razz TA PIN i GROUND PINT Figure 4 RS 232 wiring diagram 2 3 2 RS 422 connection The RS 422 wiring connection is shown in figure 5 The GW 7552 gateway can be a Modbus master or Modbus slave in a local RS 422 network Depending on whether the gateway acts as a Modbus master or as a Modbus slave and on the number of devices connected to the RS 422 network device the four jumpers provided by the module has to be set according to table 5 The jumpers set the pull high and pull down resistors for the RS 422 port Figure 6 Figure 7 GW 7552 RS 422 port Rs42 TH PING He O RSHI RH RS 42 TX PINS Ho a ko RS di2 RY ban ba PING Do o Rod TH Rg 402 RX PIN RS 422 Tx Figure 5 RS 422 connection GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 9 Table 3 Jumper position for the RS 422 port kale The GW 7552 is the master in RS 422 bus or CO Co LU the number of devices connected to a erch 3 33 Sc Seea the RS 422 bus is less than 10 JH JP JH JP4 Disabled The GW 7552 is a slave in RS 422 000 bus or the number of devices connected to 321 321 321 321 the RS 422 bus exceeds 10 JP 4 JH JE JH A GW 7552 Rote TA PIN 4 RS e TA PINS RS RA PINE RS AZZ2 RA PIN Figure 6 Configuration of pull high low resistor for the RS 422 port GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar
16. RS 422 485 port 2500Vrms High Speed iCoupler Isolation Protection for PROFIBUS network 3000VDC Isolation Protection on the PROFIBUS side Provide LED indicators Built in Watchdog Mountable on DIN Rail 1 2 Modules Support Only the following Modbus commands are supported by the gateway Table 1 Modbus function codes Read the ON OFF status of discrete outputs in the slave Read the ON OFF status of discrete inputs in the slave Force Single Coil Write a single output to either ON or OFF in the slave 06 Preset Single Register Write an integer value into a single register in the slave Ss E Colle Write each coil in the sequence of coils to either ON or OFF in the slave Preset Multi Registers Write a block of contiguous registers in the slave 1 3 Specification COM Port specs e Serial port RS 232 RS 422 RS 485 e Serial port interface 14 pin screw terminal block GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 5 e Baud Rate 2400 4800 9600 19200 38400 57600 115200 bps e Data Format 7 8 data bits None Odd Even parity bit 1 2 stop bit PROFIBUS specs e PROFIBUS interface connector D sub 9 pin female e Baud Rate 9 6K 19 2K 45 45K 93 75 K 187 5K SOOK 1 5M 3M 6M 12Mbps e Address Setting 0 126 set by DIP switch or EEPROM Power requirement e Unregulated 10V 30V DC e Power reverse protection Over Voltage brown out protection e Power consumption 2 5W Module specs e
17. safe data transmission in a Profibus network decreases with increasing distance between master and slave Table 7 shows the transmission GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 12 rate and range for a cable with the following properties Impedance 135 165Q Capacity lower than 30 pF m Loop resistance lower than 110Q Km Wire diameter greater than 0 65mm Core cross section greater than 0 34mm IB WN ra Table 7 Transmission rate decreasing with increasing transmission distance Transmission Rate Kbps Transmission Distance per Segment meter 9 6 19 2 45 45 93 75 1200 187 5 1000 400 1500 3000 6000 12000 In order to minimize the reflection effect of signal transmission both ends first node and last node of a PROFIBUS segment needs to be equipped with an active terminal resistor as shown in figure 0 A standard PROFIBUS connector is usually already equipped with a terminal resistor The user therefore only has to switch on the resistor of the devices stationed at the ends of a segment as shown in figure l Device Device Device N Figure 10 PROFIBUS connection GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 13 Terminator ON Terminator OFF A X a en Sp Terminator Switch ae Figure 11 PROFIBUS connector The number of stations in a Profibus network 1s restricted to 126 According to the PROFIBUS specification up
18. to 32 stations are allowed per segment A repeater has to be used to link the bus segments 2 4 Setting the Profibus Address The station address of GW 7552 can be set by using either the dip switch or by writing it directly to the EEPROM The dip switch covers a range from 0 to 255 The valid address range of a Profibus station spans from 0 to 126 Table 8 shows three examples of setting the station address by using the dip switch The dip switches are accessed by opening the modules housing Figure 12 Table 9 explains which address will be used by the module after power on if the dip switch address setting differs from the address stored in the EEPROM Table 8 Dip switch setting example i DIP SWITCH SW1 Station address GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 14 Table 9 The Address setting of the GW 7552 1 The address setting of the EEPROM 1s ignored 0 125 2 The address can not be set by the PROFIBUS configuration tool MS 1 The address setting of the dip switch is ignored 2 If the address in the EEPROM is 126 the PROFIBUS 126 254 l i configuration tool can set a new address and save it to the EEPROM 1 Slave address in the EEPROM is set to 126 em S 7 l ma m d ail ala3 44 a5ab E Pa in de de JM zer A A a AN A 4 ij L Figure 12 DIP switch Each slave must have a unique valid address 1 to 125 in order
19. 2008 PAGE 10 JPI JP ENABLE JP DISABLE Fo oo ane Figure 7 The positions of pull high low resistors in GW 7552 module 2 3 3 RS 485 connection The RS 485 wiring diagram 1s shown in figure The GW 7552 gateway can be a Modbus master or Modbus slave in a local RS 485 network Depending on whether the gateway acts as a Modbus master or as a Modbus slave and on the number of devices connected to the RS 485 network device the four jumpers provided by the module has to be set according to Table 6 The jumpers set the pull high and pull down resistors for the RS 485 port Figure 9 GW 7552 RS 485 Port RS 45 O FIH 1 Rs 45 D FIN Ho Figure 8 RS 485 connection GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 11 Table 6 Jumper position for the RS 485 port Enabled default The GW 7552 is the master in RS 485 bus or Ca the number of devices connected to the RS 485 bus is less than 10 The GW 7552 is a slave in RS 485 bus or the number of devices connected to the RS 485 bus exceeds 10 GW 7552 GKO R5 485 D PIN 1 ES 485 D PIN 2 Figure 9 Configuration of pull high low resistor for the RS 485 port 2 3 4 PROFIBUS Connection The PROFIBUS interface of the GW 7552 is a DB9 female connector The connector uses the standard Profibus 9 pin assignment It is recommended to use a Standard PROFIBUS cable and connector DB9 male As with every serial bus the rate of
20. 6 103 PE CO E E E E D PO P P P P P PO PO PO DO D D P P P P P P PO PO PO DO D a P P P P P P PO PO PO D D D P P P P P P PO A PO D D a P P P P P P PO PO PO D D H H H H H H H H H H H H AN set ta H AN set ta L AN set ta E AN set ta O 5 Figure 61 Safe value setting 5 5 Establish connection with GW 7552 The connection of Utility and GW 7552 is shown in figure 62 Please follow the steps to establish connection Step 1 Wire Com Port of PC to RS 232 port of GW 7552 Step 2 Connect Profibus cable between Profibus master station and GW 7552 and enter data exchange mode please refer step 1 6 of section 4 8 GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 61 Profibus and Modbus data exchange demo for detail The RUN LED of GW 7552 is going to light at this time PROFIBUS DP MASTER INTERFACE CARD PROFIBUS DEVICE 0 MASTER PROFIBUS e GW 7552 PROFIBUS E DEVICE 1 SLAVE SOFTWARE syCon Utilit R5S 232 Figure 62 The connection of Utility and GW 7552 Step 3 Set bit 2 of byte 1 to High in output data area of the Profibus master station set the GW 7552 to setting mode please refer section 4 6 2 Output data area and communication command Open Utility exe on PC en DREI en 7188E en Microsoft Visual Studio 6 0 e E Drey HER JH Microsoft Visual Studio 2005 PERICO e avion System Configurator ER Microsoft Office E Gs
21. Device ID It is a Modbus slave device address c Start Address The GW 7552 and Modbus slave device exchange data from this starting address d NO of Relay Coil It is data size that the GW 7552 and Modbus slave device exchange e Module Type The user can select data type for data exchange by this setting Write DO WDO Write Digital Output Write AO WAO Write Analog Output Read DI RDI Read Digital Input Read DO RDO Read Digital Output Read AI RAI Read Analog Input Read AO RAO Read Analog Output f M means the parameter is effective when Modbus type of GW 7552 is master 4 5 Diagnostic messages The GW 7552 can show maximally 10 diagnostic messages at the same time If the number of the diagnostic messages 1s bigger than 10 the GW 7552 will not process other diagnostic message The diagnostic messages have four types They are Module Error System Setting Module Error EEPROM Error and Input Data Error The diagnostic messages are shown in table 12 GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 36 Table 12 diagnostic messages Please refer Modbus Exception Code Mahia PAR RA definition for detail TO RESPOND eRCURC Eno o Response Message Timeout wae a System setting module module Error System setting module position is not n A n correct It should be put in the first module EEPROM Error Read safe value from EEPROM Error Input Data Error Pr
22. Dimensions 119mm X 72mm X 33mm e Operating temperature 25 75 C e Storage temperature 30 85 C e Humidity 5 95 non condensing e LED Status Indicators Table 2 Table 2 LED status indicator Shows the power state PWR LED COM Port state transmit or receive data ERR LED RUN LED Show communication state of PROFIBUS GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 6 2 Hardware 2 1 Block Diagram of GW 7552 RS 485 e RS 485 2500 Vrms Isolation RS 422 MICRO PROFIBUS P dw PROFIBUS SIGNAL f PRECESSOR Controller Ly SIGNAL RS 232 RS232 d SIGNAL Mr DRIVER 3000V Er Isolation l a i I ANS SC A 10 30vDC DC C Figure 2 Block diagram of GW 7552 2 2 Pin Assignment i Lar S Leen W WS wi YA A 10 Bi H JO Saget PRONS NA Rare E Sege fek IL ag 3 TT fonn tkebrz kkas ia z PEAS bead tidi eed eee ll KE i a si m LL O OC ZS kr Ki d Age jarik LA A pa Chae COR ARE DEZA Lei E Venti bwad ro OM YO A DIS n Ji 44 dnt Spee d om gee booted ani Prum oe d C Leg su dh NW d d Ai h AY lenin MIS A Fo L l nannan F 0 a Z O p st pea lt un A A Da tite EE e 2 2 E en PIT PDB Power Input 10 304DOC Figure 3 Pin assignment of GW 7552 GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAG
23. E 30 File gt CopyGSD Directory gt CD PROFIBUS GATEWA Y GW 7552 GSD Step 2 Click insert slave button in the PROFIBUS configuration tool B SyCon EXE 1 75500C pb AE Ki File Edit Dei Insert Online Settings Toole Window Help EX MasterD Shton obres 0 PSDP easter CIFSO PE Inserte a new Slave PROFIBUS Config Mode Figure 32 insert PROFIBUS slave device Step 3 Select GW 7552 and click Add button to assign the GW 7552 PG SyCon EXE PTM_TEST pb Sele Master Staton address FMSDP Master Insert Slave Slave Filter Vendor ICP DAS Co Ltd Slave type jan w Available saves Selected slaves lt lt Remove All lt lt Remove ICP DAS Co Ltd Station address Ident number Ox0BOE Description PRS GSD file name IPDSOBOE GSD GSD Revision 1 00 PROFIBUS Config Mode Figure 353 assign the GW 7552 GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 31 Step 4 Set the address of the GW 7552 and click OK button B SyCon EXE PTM TEST pb Sele Master Senos adores 0 FMSDP Master CIF50 PB Insert Slave Slave Filter Vendor ICP DAS Co Ltd y Master 0 CIFS0 PB Slave type jan vi _ Cancel Available slaves Selected slaves i GW 7552 lt lt Remove All Remove ICP DAS Co Lid Station address II Ident number Ox0BOE Description Slavel GSD file name IPDSOBOE GSD
24. E 7 Table 3 14 pin screw terminal block a 5 Description Data of RS 485 Data of RS 485 N A Transmit Data of RS 422 Transmit Data of RS 422 Receive Data of RS 422 Receive Data of RS 422 N A Receive Data of RS 232 Transmit Data of RS 232 GND of RS 232 N A V of Power Supply 10 to 30VDC GND of Power Supply l 2 3 4 5 6 A 8 9 pa O n n pa NO pa LA kuch iN Table 4 PROFIBUS DB9 Female Connector Description N A N A Non inverting Bus Line Isolated DE output for use in PROFIBUS applications where the state of the isolated drive enable node needs to be monitored Power supply ground for the first node and the last node 5V Power Supply for the first node and the last node N A Inverting Bus Line N A GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 8 2 3 Wiring and Jumper Setting Instructions The GW 7552 module supports PROFIBUS to Serial Port communication It is recommended to use only one serial port RS232 RS485 or RS422 of the Gateway at the same time The following section describes the necessary steps to be taken to connect one of the three COM port types to a Modbus network 2 3 1 RS 232 connection The RS 232 port of the GW 7552 has got three pins The wiring of the RS 232 device with the RS232 port of the GW 7552 is shown in figure 4 GW 7552
25. GW 7552 PROFIBUS MODBUS GATEWAY User s Manual Geht F552 PROFIRUS MODELS GATEWAY fi ZP Ms P if at SI Mgr Fa ippo hha KTU ASCII fl Connon Midas Wager Slme l pF 5 band rad heal ae Asi ZZ kaalt dota legis LAVI ZE Byice E UNC Ka RST ees A yirib ba rak of COM e TOO pa d Fi d Migh Speed iCooplzr leelo Prevecice NNA UI kk ki TeV OC Isolation an PROFIBUS Mf nt p gl ps wal E E dE e e e GC D It ii High Quality Industrial Data Acquisition and Control Products GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 1 Warranty All products manufactured by ICP DAS are under warranty regarding defective materials for a period of one year from the date of delivery to the original purchaser Warning ICP DAS assumes no liability for damages resulting from the use of this product ICP DAS reserves the right to change this manual at any time without notice The information furnished by ICP DAS is believed to be accurate and reliable However no responsibility is assumed by ICP DAS for its use or for any infringements of patents or other right of third parties resulting from its use Copyright Copyright 2008 by ICP DAS All rights are reserved Trademark The names used for identification only may be registered trademarks of their respective companies List of Revision Date Author Version Revision 2008 03 27 Raiden 100 Release G
26. W 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 2 1 6 Ze Table of Contents Lutte kdk a a al elan kn a a a a ba date act Jodi e 5 1 2 Modules SUPPORT AR 5 15 SS PCCM M EE 5 Eltre iones nica 1 21 Block IDA Ta OL WTA Ea 7 2 NC AA AAA 7 2 3 Wiring and Jumper Setting Instructnong nor cece eeaaaes 9 Za See the ge Ee e 14 29 LED Status TACHCN ON EE 16 2 6 NormalSettimo Dip WI T EE 17 Communication protocol transfer theOYCM eeeecccccccccccccooooe 19 Sal regeert 19 32 MOUBUS Gata Ex Chane Gress so a AA AAA aw ion e A E 22 3 3 Communication protocol ransier ie eee ee tett eee eee tee e aaa aeetteeeeoaaeeseeeeeeoeeeeseeo 29 COMMUNICATION E GC DNR e Nee Te EE 29 a GS E 30 4 3 The Configuration of the common p rameterg l 0 cece eee ee eaeeeeeeoeeesseeeeeeoosese 33 44 The Contisuration Of he Modules ae kata add kaa d a a RE pa e e ke a ke 34 AD IDIaSnostic MESSI ege ay kaka an ae ky e e e n n ak e e aaa 36 40 VO data CXC MAN Geass een 38 Ad Establish connection with GW 55 Zrii pet de a l n a kk kk hees 39 Ae Wala CXHOMANCE Cx eet 41 Application of Utility isis A IE A boo babe k a kk ki a ke n va k a nt a a e a e l pata a bb ass 52 2 Wty In Tee EEN 99 5 3 Memory address configuration of the module eee ee e eee eeeeeeeoeeeseeeeeoooosoes 56 e EE AUIS SC EE 59 5 5 Establish connection E ee ee 61 Troubleshooting etale alien jak ala t a en a a fa ar aaa OF Kuere SYON S a
27. W 7552 receive query message from Modbus master device as shown in figure 28 gt 29 PROFIBUS GW 7552 MASTER Protibus Modbus Gateway Input Data Modbus Slave Mode Modbus Master Device Maxi 128 Bytes Module 1 Modbus Device IO Five di e E i Query message Y e chita Em Modbus Start Addr Response message Data Molule 2 Avie 127 exchange j Cutput Ekita Ans 130 A Fev te i i Output gt del Module 32 ena Byte 129 Internal memory Figure 28 GW 7552 slave mode communication protocol transfer Read GW 7552 setting e memory mapping Byte 8 safe vale Setting Bvte 127 Litilrty tool GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 27 GW 7552 data exchange slave mode ZEN d Power On Reset aa Sa de EA Parameterization yo CSC Check Parameterization OK q H e poun a lt M ait CFC G Configurtation Sa LA Check Configuration OK a Et BRIZ i No Ss OP on 2 ls output command enable a Le Note Module type WDO Output Relay Coil module ar Hays pie oneal cae WAO Output Register module CG y data to Copy Profibus OP data to RDI RDO Input Relay Coil module Memory Internal DI amp Al memory RALRAQ Input Register module No O Is any modbus request from com port Process modbus command and refresh Internal DO amp AO memory Ce opy KEEN Copy Internal DO amp AO Profibus memory to Profibus I P data Figure
28. a Max 130 Bytes Module E Byte 2 Byte 3 Internal memory Figure 19 the output data of Profibus master device send to the GW 7552 GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 21 PROFIBUS GW 7552 MASTER Profibus Modbus Gateway Modbus Slave Mode Input Data Max 128 Bytes Modetel Node Device TD Module Type RDI A Data Lengih 2 Bytes a LIME IFE Internal Memory Base Addr 0 L Byte li Byte Internal Memory Figure 20 the input data of Profibus master device receive from the GW 7552 3 2 Modbus data exchange Modbus protocol belongs to Master Slave communication and it uses query and response message to arrive at data exchange and device control as shown in figure 21 GW 7552 ProfibusModbus Gateway Modbus Device ED EL vl TON See Station Numbe ICPcon SS Function Code 1 700 f cr 134 ENB Station Number ti GWA F532 Flexible Function Code 8 M 7000 Data Bytes Flexible M 7000 SR EE Error Check amie LA Eui am l a di r Si W EE Quer Kaap pol DE AD cal amp Response message AN LO data Se _ 2 65535 i la en el Figure 21 Data exchange between the Modbus devices and the GW 7552 GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 22 When the GW 7552 acts as a Modbus master device it can get query message through
29. afe value settings c Byte order is an important factor related to the memory allocation Big endian byte order Motorola format allocates more significant byte in lower memory address On the other hand little endian byte order Intel format allocates more significant byte in higher memory address d Modbus device ID is a Modbus address of the GW 7552 when the GW 7552 acts as a Modbus slave device e M means the parameter is effective when Modbus type of GW 7552 is master S means the parameter is effective when Modbus type of GW 7552 is Slave 4 4 The Configuration of the modules The user can set the number and size of the I O modules in the PROFIBUS configuration tool The settings of the modules are described below e Max I O modules 32 modules e System setting module 2 byte out e Output module Output Relay Coil gt 1 32 Bytes Output Register gt 1 64 Words e Input module Input Relay Coil gt 1 32 Bytes Input Register gt 1 64 Words GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 34 e Max length of I O data 258 Bytes e Output length 0 130 Bytes e Input length 0 128 Bytes The modules have module parameters about the communication settings The module parameters are shown in the below A Output Relay Coil module parameters e Modbus Slave Device ID M 0 247 e Start Address M 0 65535 e NO of Relay Coil M 8 n 1 1 8 n Bits n Module size Byte B Outpu
30. aster In the other way Output data area of Profibus master device is mapped into DI AI memory of GW 7552 and input data area of Profibus master device is mapped into DO AO memory of GW 7552 when Modbus type is slave please refer section 3 1 Profibus data exchange 4 6 1 Input data area The maximum length of input data is 128 bytes Before arrange the input module the user must arrange and configure the system setting module The user can get data and control I O of Modbus slave device or get DI DO AI AO of the GW 7552 by read input module Table 13 Input data area Modil Byte Daa Sec Input 1 128 Data Receive data module 4 6 2 Output data area and communication command The maximum length of output data is 130 bytes Before arrange the output module the user must arrange and configure the system setting module The first two bytes belong to communication commands as shown in table 14 The user can change data and I O state of Modbus slave device or DI DO AI AO data of GW 7552 by modify data of output module Table 14 Output data area Bit Position BEER Description Data output commande GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 38 modules e Data output command byte 0 a When Modbus type is master When this byte is changed Profibus master device will send data of output module to DO AO data of GW 7552 and then GW 7552 will send query message to Modbus sl
31. ave device for change data or output state of Modbus slave device b When Modbus type is slave When this byte is changed Profibus master device will send data of output module to DO AO data of GW 7552 e Control bit byte 1 DC bit 0 When this bit is set DC 1 diagnostic messages send by the GW 7552 module will all be cleared SM bit 1 When this bit is set SM 1 the GW 7552 will enter setup mode The utility can communicate with the GW 7552 in this mode When this bit is 0 SM 0 the GW 7552 will enter normal operation mode The GW 7552 can communicate with Modbus device in this mode Bit 2 7 The remaining bits have to be set to zero 4 7 Establish connection with GW 7552 Before establishing a connection between the DP Master and the GW 7552 user should execute the following steps first GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 39 IFDSO BE 7 ged Wait Prim Load GSD into hac EA Master Check und Apphed Pm e ec ORK A KE Wait Ct senting Prin Data Check Cie OK WE Timeow Wat BATA EX RUN Establish Data Exchange di Connection among Master and W i GW 7552 SES emm a a sl Figure 36 Establish connection with GW 7552 First users must load the electronic device description file GSD file of the GW 7552 into the DP Master and then set the parameters Finally change your DP master from Offline state to Operate state Wh
32. dule w Module9 fw Modulel0 5 Modulelli Modulel2fw Modulel iw Module14 e Module15 Modul l6 w Modulel jw Module Modulel9 w ModulezDiw Modulezlfw Module22 4 Modulez3 Figure 59 Space configuration in modbus 5 4 Safe value setting There are 3 kinds of safe value setting They are 1 Open a new setting 2 Load from file 3 Load from device as shown in figure 60 GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 59 S Profibus Modbus Gateway Utility Communication RESE Ie iit New setting 4 Load from file Load from devi PR Port Baudrate Parity Module 1 Data bit Stop bit m Port Setting Module 2 Module 3 e 4 Modbus Type Master l Module 4 F Modbus Format RTU TO Value for Stop Mode Retain Last Yalue l Module 5 4 Modbus Device ID 5 1 W Poll interval time ms M 500 Module 6 We Af Time out value ms M 500 Module 7 Module count 23 Module 8 Module 9 Module 10 v GW 7552 State Com Port State GW 7552 is connected Receive parameter finish Figure 60 The menu of safe value setting The window of Safe Value Setting divided into 6 parts to explain as shown in figure 61 1 Select module The user can select check box of the module to know memory address configuration of the module for set safe value of the module 2 DI O table The user can double click left button of mouse at the value of DI DO t
33. e between Profibus master and GW 7552 is interrupted I O Safe Mode will be activated when the data exchange between Profibus master and GW 7552 is interrupted e g no physical connection Profibus master leaves the data exchange mode etc e I O safe mode Switch Safe Value The GW 7552 will set internal DIO and AIO data to safe value and send the safe values to the Modbus slave device e I O safe mode Retain Last Value Internal DIO and AIO data retain last value ii Connection between Modbus slave and the GW 7552 is interrupted e I O safe mode Switch Safe Value The GW 7552 will set the internal DI and AI data to safe value and send safe values to Profibus master device e I O safe mode Retain Last Value Internal DIO and AIO data retain last value GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 33 When GW 7552 acts as a Modbus slave Modbus Type Slave i Data exchange between Profibus master and GW 7552 is interrupted I O Sate Mode will be activated when the data exchange between Profibus master and GW 7552 is interrupted e I O safe mode Switch Safe Value The GW 7552 will set internal DIO and AIO data to safe value e I O safe mode Retain Last Value Internal DIO and AIO data retain last value ii Connection between Modbus master and the GW 7552 is interrupted Internal DIO and AIO data retain last value received Please refer section 5 4 about the s
34. e refer section 4 6 2 Output data area and communication command PAGE 64 7 Dimensions 29 50 04 5X4 35 30 2 SCREW M3 Back View Side View Top View Unit mm From View GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 65 GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 66
35. edefined Modules Symbolit Hames For Help press FI FROFIBUS Config Mode Figure 39 Click Parameter Data button to open the Parameter Data window GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 42 Fa SyCon EZE PTM_TEST pb Slave Configuration Device GW 7552 Station address m Desription Slavel ee Be Iw Activate device in actual configuration E Enable watchdog control GSD file IPDSOBOE GSD __Barameter Data Parameter Data Description Common Parameter Data Byte Description Male baud rate 115200 baud parity none data 8 data bit 3 stop bit stop bit d Modbus Format Modbus RTU 4 I O Safe Mode QetanLadVake G Modbus Device ID 5 1 6 Poling Modbus Device Interval ms M 500 B Query Message Timeout Value ms M 500 EE vi Symbolic Names For Hel Figure 40 The user needs to change Modbus type to slave for this example and click OK button Step 4 Set the GW 7552 modules as shown in figure 41 and 42 Select System setting module System setting module always has to be selected otherwise no communication can be established between the gateway and the Modbus network Select Output Relay Coil module In this example a Output Relay Coil 2 Byte module is selected Select Input Relay Coil module In this example a Input Relay Coil 2 Byte module is selected Fj SyCo
36. eters The GW 7552 and Profibus master device have different data type and data address the GW 7552 can transfer different data format to Profibus master device through module parameters When the GW 7552 acts as a Modbus master device it will send DI gt AI data to input data area of Profibus master device and it will save data that receives from Profibus master device to internal DO gt AO memory space as shown in figure 17 18 PROFIBUS GW 7552 MASTER Profibus Modbus Gateway Modbus Master Mode Output Data Max 130 Bytes Mm A DAN Module Type WD0 Data Length 2 Bytes Internal Memory Base Addr 0 afibus Data Base Addr 2 Byte 2 Byte 3 Byte fi Byte I Internal j Memory Figure 17 the output data of Profibus master device send to the GW 7552 GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 20 PROFIBUS GW 7552 MASTER Profibus Modbus Gateway Modbus Master Mode Input Data Max 125 Bytes al Module Goen Ge Byte D Data L teas By tes Byte Internal memory Figure 18 the input data of Profibus master device receive from the GW 7552 When the GW 7552 acts as a Modbus slave device it will send DO AO data to input data area of Profibus master device and it will save data that receives from Profibus master device to internal DI gt AI memory space as shown in figure 19 20 PROFIBUS GW 7552 MASTER Profibus Modbus Gateway Modbus Slave Mode Output Dat
37. figuration in profibus 5 3 3 Space configuration in modbus The window of Space Configuration in Modbus divided into 3 parts to explain as shown in figure 59 1 Select module The user can select check box of the module to show memory address configuration of DU DCH AU AC in Modbus network 2 Display interface The user can click Write Output button to show DO AO memory address configuration of output modules in Modbus network click Read Input button to show DI AI memory address configuration of input modules in Modbus network click Read Output button to show DO AO memory address configuration of input modules in Modbus network 3 Color display The user can discriminate states of Modbus address configuration by GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 58 different color White means the address is not used Light blue means the address was configured by a module Mazarine means the address was configured by many modules but Modbus ID is not repeat in these modules Red means the address was configured by many modules and Modbus ID is repeat in these modules The data may be read and written by different modules at this time it may make the data transmit and device control error easy because address configuration and Modbus ID overlap pace configuration in mod bus HF Select module 1 ui fw Module jw Module jw Moduled jw Modules jw Modules jw Module jw Mo
38. ile DP Master changes to operate mode GW 7552 will initial the modules Then GW 7552 allocates the memory space and waits for Set Prm telegram The next step is waiting for Check Cig telegram in order If there is no error occurs GW 7552 proceeds into data exchange state Users can observe the status indicator LED to know the state of GW 7552 At the meantime if there is any error occurs GW 7552 will return to wait parameterization GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 40 4 8 Data exchange example In this example a Modbus master device simulated by a PC program sends query message and receives response message from a Profibus master via the GW 7552 gateway In the following examples the CIF50 PB PROFIBUS master card from Hilscher 1s used The configuration and communication is done by the program SyCon provided by Hilscher Step 1 Copy the GSD file and assign the GW 7552 a valid station address Please refer to the section 4 2 GSD file Step 2 Connect the RS232 port of the GW 7552 module to a COM port of the PC and the Profibus port to a Profibus master Figure 37 PROFIBUS DP MASTER INTERFACE CARD PROFIBUS DEVICE 0 MASTER PROFIBUS mou wc GW 7552 SOFTWARE M PROFIBUS SyCon Modbus oe DEYVICE 1 ti T SLAVE Utility RS 232 Figure 37 Wiring diagram between PC and GW 7552 Step 3 Set the parameters of the GW 7552 We just need to change
39. k aka atak ki al ya aa k at ala es OD GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 3 1 Introduction Profibus and Modbus are two kinds of famous protocols and are wildly used in the fields of factory and process automation The GW 7552 is a Profibus to Modbus gateway By using this module users can easily put the Modbus devices into Profibus network Figure I shows an application example for the GW 7552 module Figure I Application architecture of the GW 7552 module The GW 7552 Gateway is specially designed for the slave device of PROFIBUS DP protocol In the Modbus protocol application the GW 7552 can be a Modbus master device or slave device The Modbus devices can exchange data with the Profibus master device via the GW 7552 module The main features and specification of GW 7552 are described as below GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 4 1 1 Features 16 Bit Microprocessor inside with 8OMHz Siemens SPC3 PROFIBUS controller Supports PROFIBUS DP VO slave PROFIBUS transmission rate detect automatically Max transmission speed up to 12M bps for PROFIBUS and 115 2K bps for COM Port Supports Modbus RTU ASCII format Supports Modbus master slave mode Supports safe value setting COM Port driver has 1K bytes QUEUE input buffer amp 512 bytes QUEUE output buffer Max length of output input data is 130 128 Bytes Built in self tuner ASIC controller on
40. mber Byte 4 5 Bit count Polling mode no wait r Statistics Timeout Clear Statistics r Command Responses 200 Current Packet Size bytes a GE Current Packet Size bytes 7 Total Packet bytes 11 Difference Total Packet bytes Timer mode fixed period Packet Quantity sent 1 0 Packet Quantity received En 1 Interval mp mg r Folling or Timer mode Date Time r Folling Mode Timing ms Stat me Time Start l War 000 Average Ee Stop time Time Stop Min 100 000 01 OF 00 40 00 10 2 FF FF Commands I with CRC A Responses 01 OF 00 00 00 10 02 FF FF E3 90 01 OF 00 00 00 10 54 07 Clear Lists i Exit Program Figure 45 Send Modbus command output data FF FF F SyCon EXE Network Yiew ji PTM_TEST_pb InputD01 8 bit unsigned integer byte al CH Master0 Inputd02 8 bit unsigned integer byte l d ffi Slaved PE Input module Output module Y Input module F 10 Watch Settings not saved yet SCHEER oie YS She Tapat module LU eg JE C Program Files HilscheriS yCon ProjectiPTM TEST pb nT For Help press FI OPCS not available Connected OPC Clients 00 Figure 46 Receive OxFF in the input data area GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 46 Table 15 Receive O
41. mmunication command 4 ERR LED indication of the It means the GW 7552 has diagnostic messages Please check GW 7552 is flashing slow diagnostic messages in the Profibus master station a Please confirm the GW 7552 1s working in operation mode and avoid clearing diagnostic message by communication command please refer section 2 6 Normal Setting Dip Switch and section 4 6 2 Output data area and communication command b Please confirm the connection between the GW 7552 and Modbus device c Please confirm Com Port setting of the GW 7552 please Profibus master station can refer section 4 3 The Configuration of the common not communicate with the parameters the same as Com Port setting of the Modbus Modbus device when device 5 RUN LED of the GW d Please confirm module ID of the GW 7552 please refer GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 7552 is light and ERR LED of the GW 7552 is dark section 4 3 The Configuration of the common parameters and section 4 4 The Configuration of the modules the same as Modbus address of Modbus device e Please confirm Setting of Start Address and NO of Relay Coil is correct please refer section 4 4 The Configuration of the modules f Please confirm the output data put in correct address and have changed value of byte 0 to trigger the output command when output data can not send to modbus device in output data area of Profibus master pleas
42. module parameter and DO AO data and send query message to Modbus slave device It can also receive response message form Modbus slave device and then saving to internal DI gt Al memory space as shown in figure 22 23 GW 7552 Profibus Modbus Gateway Modbus Viaster Mode Modbus Device klodiule Modbus Device D 1 Module Type WDO Query i Data Length 2 Bytes 5 Ge o Number af Point 16 a iernii TE i i CUE RAMAN Internal Memory Base Addr 4 00 00 18 o EI Modbus Start E Response Modbus 8 15 VO data Byte l Byte 1 Internal si memory 13 Figure 22 GW 7552 output data to modbus slave devices GW 7552 Profibus Modbus Gateway y Modbus Device Modbus Master Mode Module 1 Modbus Device TD 1 Module Type K DI Co gn Za ice addr 1 A Response es CL me es or o2 02 BC dE Modbus 8 15 VO data Query Internal memory Figure 23 GW 7552 receive data from modbus slave devices GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 23 When the GW 7552 acts as a Modbus slave device it can receive query message from Modbus master device and then saving to internal DO gt AO memory space It can also send response message to Modbus master device through internal DI gt Al data as shown in figure 24 25 GW 7552 Profibus Modbus Gateway Modbus Slave Mode Modbus Master Device l Query message write multiple DON
43. n EXE PTM_TEST pb EIB K File Edit View Insert Online Settings Toole Window Help Master Sabon actress Fi DE aster CIFS0 PE SlaveD Jadon adoken DP Save Double click icon For Help pres FI PROFIBUS Config Mode Figure 41 Double click the GW 7552 icon to open the Slave configuration window GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 43 e SyCon EXE PTM TEST pb Ki Die e Slave Configuration General Device GW 7552 Station address l Description Slave Iw Activate device in actual configuration Iw Enable watchdog control GSD file IPDSOBOE GSD y ee Max length of in outputdata 258 Byte Length of in output data 6 B DPYI Settings Max length of input data 128 Byte Length of input data AB Assigned master Max length of output data 130 Byte Length of output data 4 B Station address 0 Max number of modules 32 Number of modules 3 Masai Identifier 0 CIF50 PB System setting Output Relay Coil l Actual slave Output Relay Coil 2 Station address 1 Output Relay Coil 3 Slavel Output Relay Coil 4 1 GW 7552 s1od1ax Module symbol ryper Addr 1 Len type o Addr 0 en Append Module L E System Module4 QB 0 E 2 1 Output Module2 QB 2 2 Remove Module 3 1 Input Module3 IB 0 2 Insert Module Predefined Modules E Symbolic Names For Help press Fl PROFIBUS Config Mode Figure 42 Select modules Step 5 Close both the Parameter Data and the
44. o change the value from H to L or L to H 3 All DI O setting The user can click All set to H button to set all of DI DO to H and click All set to L button to set all of DI DO to L 4 AT O table The user can double click left button of mouse at the value of AI AO to change the value into 0OOOO FFFF 5 AN A O setting The user can click All set to F button to set all of AI AO to FFFF and click All set to 0 button to set all of AI AO to 0000 GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 60 6 Display and Save interface The user can click Output button to show safe value setting of DO AO click Input button to show safe value setting of DI AI click Save to File button to open save file dialog to save safe value setting for backup click Save to Device button to save safe value setting to EEPROM of the GW 7552 safe Yalne Setting Select module 1 Modi Module Module Moduled Modulen Moduleb Module Modules Module Modulel0 Modulel 1 Module A Modula Modulel4 Modulel5 Modulel6 Modulel Modulela Model Module Modue21 Module22 Modue 31 Module24 Modue h Modue26 Modue27 Modulez8 Module 9 Modules0 Module Addvess a bit 1 bit2 bit 3 bit 4 bit 5 bit bit 0 7 H 8 15 16 23 24 31 32 29 40 47 48 55 56 63 64 71 72 79 80 87 88 95 0
45. ofibus master maybe lose some data These error messages are not supported when the GW 7552 act as a Modbus slave PS Input Data Error a GW 7552 acts as a Modbus master If the polling speed between the GW 7552 device and the Modbus slave is faster than the data exchange rate between Profibus master and the GW 7552 then the Profibus master will not get all the data from the Modbus slave and therefore a diagnostic message Profibus master maybe lose some data will be send by the GW 7552 to the Profibus master b GW 7552 acts as a Modbus slave If the telegram cycle rate between the GW 7552 and the Modbus master exceeds the rate between GW 7552 and Profibus master then the Profibus master receives a diagnostic message In other words if the GW 7552 receives more telegram from the Modbus master than it transmits to the Profibus master then a diagnostic message Profibus master maybe lose some data will be send by the GW 7552 to the Profibus master GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 37 4 6 I O data exchange The I O data exchange is decided by Modbus type of the GW 7552 please refer section 4 3 The Configuration of the common parameters between Profibus master device and the GW 7552 Output data area of Profibus master device is mapped into DO AO memory of the GW 7552 and input data area of Profibus master device is mapped into DI AI memory of the GW 7552 when Modbus type is m
46. or set the control bit please refer section 4 6 2 Output data area and communication command to enable the setting mode of the GW 7552 as shown in table 11 Table 11 Mode of GW 7552 SM control bit O SM control bit 1 Dip switch Normal setting mode Dip switch Setting setting mode setting mode GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 18 3 Communication protocol transfer theorem 3 1 Profibus data exchange The GW 7552 is a Profibus DP slave device The GW 7552 is first parameterized then configured and finally it goes into the data exchange mode Figure 15 Profibus DP Slave State machine Reset d r HAEE Parameterization Watchdog Time aul Data Exchange Figure 15 State machine of Profibus DP slave device The GW 7552 exchanges data cyclically between internal DI DO gt AI AO data and Profibus master device in data exchange mode as shown in figure 16 GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 19 PROFIBUS GW 7552 MASTER Profibus Modbus Gateway Ce Cyclic Data TS Pi exchange E gt PA B wee IP Outpur Data ingu Data Max 130 Bytes Max 128 Bytes ATA Byte gd po yie 1 m S 3 E E Internal 5 memory S Mute 139 Byte 127 Figure 16 Data exchange between Profibus master device and GW 7552 The GW 7552 downloads the parameter and configuration from Profibus master device to be the module param
47. r Stop Mode Retain Last Value gt Module 5 Modbus Device ID 5 1 a WP Poll interval timedms M Module 6 Af Time out value ms M Module 7 SF Module count Module 8 Module 9 g Module 10 wel SW 7552 State 5 Com Port State GW PASI ta connected 6 Receive parameter finish Figure 55 Main window of the utility Main window of the utility has 6 parts they are 1 Menu 2 Com port settings 3 Module state gt 4 Module parameters 5 Connection status of GW 7352 and com port 6 Status bar as shown in the below 5 2 1 Menu 1 Communication gt a Connect Open Com Port and connect with the GW 7552 b Disconnect Close Com Port and disconnect with the GW 7552 c Exit Exit from the utility 2 Safe Value Setting gt a New Setting Open a new safe value setting b Load from file Load a safe value setting from the file c Load from device Load a safe value setting from the GW 7552 GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 55 3 View gt a Space configuration in device Display memory address configuration of select module in the GW 7552 b Space configuration in profibus Display memory address configuration of select module in Profibus master station c Space configuration in modbus Display memory address configuration of select module in the Modbus 4 Help gt a About Utility Show about version of the utility 5 2 2 Com Port se
48. rmal operation PROFIBUS system has been configured correctly Data exchange mode Normal operation GW 7552 module is not in a data exchange mode GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 16 Va Get F552 ES a Mires Haager rro ka DA Mi 4 FO FA trad raa cad arica ii IR E ken CO da lei ZA Gare yi CG CE Ry Veit deel rek ET Ae zH Fpi J igh Speed ira balsas Fre ian f d NA 5 S00 OC Isolation an DROE TLS fie E Ki Ee IW K rr DC LA s ry 4 i 5 ant rn i H PERO i YA i a 0 a a on H o JI e F WW a bh Fe E P T pe Di LU Figure 13 LED position 2 6 Normal Setting Dip Switch There is a dip switch on the back of the GW 7552 module as shown in Figure 4 The dip switch is used to set the GW 7552 module works in operation mode or setting mode In the normal situation it needs to set the dip switch to the Normal position In this case the GW 7552 module can communicate with Modbus devices When the user sets the dip switch to the Setting position the GW 7552 module can communicate with the utility tool to set the safe value Setting H Normal AAC viewer Figure 14 Dip switch of the GW 7552 GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 17 PS There are two kinds of methods to enable the setting mode of the GW 7552 The user can change the position of the dip switch
49. t Register module parameters e Modbus Slave Device ID M 0 247 e Start Address M 0 65535 C Input Relay Coil module parameters e Modbus Slave Device ID M 0 247 e Start Address M 0 65535 e NO of Relay Coil M 8 n 1 1 8 n Bits Module Type M Read DI DO n Module size Byte D Input Register module parameters e Modbus Slave Device ID M 0 247 e Start Address M 0 65535 e Module Type M Read AI AO Example 1 If the user wants to read a Modbus digital input module DI module Device ID is 1 data address is 10010 10019 and data count is 10 In this case the user can select an Input Relay Coil gt 2 Bytes module module parameters are shown in the below Input Relay Coil module parameters Modbus Slave Device ID M 1 e Start Address M 9 e NO Of Relay Coil M 10 Module Type M Read DI GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 35 Example 2 If the user wants to write a Modbus analog output module AO module Device ID is 2 data address is 40001 40004 and data count 1s 4 In this case the user can select an Output Register gt 4 Words module module parameters are shown in the below Output Register module parameters e Modbus Slave Device ID M 2 e Start Address M 0 PS a Relay Coil module 1s digital module DI DO module the unit 1s Byte Register module is analog module AI AO module the unit is Word b Modbus Slave
50. tallation complete Step 6 After finishing the installation of the Profibus Modbus Gateway Utility users can find the Utility as shown in the following screen shot L ThinkVantage Productivity Center Windows Catalog Windows Update Brae tz Fate Ae TRETE REN A DIS ICH T188E PEDO E Microsoft Visual Studio 6 0 GD Dreye GE en Microsoft Visual Studio 2005 ISS CH Blan SyCon system Configurator IE Microsoft Office AED a Power Management STE 2 HHD Free Serial Port Monitor IE skype TEH riden lanl E ICPDAS fan PROFIBUS a GATEWAY W gn zi ERIE E T e e e e e e e we ri th e fa 2 o E 0 ERRAT Figure 54 The path of Utility K C Le iv H A Ee la par E un 6 LI E GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 54 5 2 Utility introduction By this utility the user can understand the module address of Profibus gt Modbus and the GW 7552 The utility also support users set safe value easily It introduces main window of the utility first as shown in figure 55 GP Profibus Modbus Gateway Utility Communication Safe value setting View Help 1 3 A Com Port Setting 2 L Oe Tess Pork om Baudrate 115200 Parity DS Module 1 Data bik takabit Stop bit 1 stapbit 7 Module 2 Value State Module 3 i i EF Modbus Type Master Module 4 S Af Modbus Format RTU SF HO Value fo
51. to be able to communicate with the master To change the address by using the configuration tool it is necessary to first set the address stored in the EEPROM to 126 This is done by setting the dip switch to 255 in the power off state Switching the module on is forcing the module to change its address in the EEROM to 126 In the next step switch the module off and change the dip switch setting to any value from 126 to 254 This step is necessary in order to prevent the module to change its address in the EEPROM to 126 every time it is powered on The configuration tool can now assign the slave a new address GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 15 2 5 LED status indicator The GW 7552 provides three LEDs to indicate the statuses of the GW 7552 module The position of LEDs and descriptions are shown in table 10 and figure 13 Table 10 LED status description LED Name Status Description When the GW 7552 acts as a Modbus slave device and flash receiving query message form Modbus master device PWR led will flash Power supply is ok The firmware has loaded Power supply has failed When the GW 7552 connects with the utility tool it will flash fast flash once about 55ms When the GW 7552 has diagnostic message it will flash slowly flash once about 220ms Connection error between Profibus master and slave or Profibus system has not been configured correctly No
52. ttings 1 Port Coml Coms 2 Baud rate 2400 4800 9600 19200 38400 57600 115200 3 Parity None Odd Even 4 Data bit 8 data bit 5 Stop bit 1 stop bit 5 2 3 Module state It can display the number of modules in the GW 7552 and display module parameters in the window of the module parameter by click the module s ICON 5 2 4 Module parameters Display module parameters of the GW 7552 5 2 5 Connection status of device and com port GW 7552 state Display connection status between the utility and the GW 7552 The green color means connected and the red color means discomnected Com Port state Display state of the PC s com port The green color means Com Port is open and the red color means Com Port is close 5 2 6 Status bar Display messages about Com Port connection the GW 7552 connection and the progress of data transmission 5 3 Memory address configuration of the module GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 56 There are 3 kinds of memory address configuration They are 1 Space configuration in device 2 Space configuration in profibus 3 Space configuration in modbus as shown in figure 56 a Profibus Modbus Gateway Utility Communication Safe value setting SC Space configuration in device GW 7552 Space configuration in profibus Space configuration in modbus Module 1 ate Parity None gt Data bit o darabr v Stop bit fi stopbit Module 2
53. xFF in the input data area Module Data type Representation Byte Hex Byte Hex Input module PS Modbus command Query message po pope pepe ps fo Response message SA za NO ja CRC NCAA DA Device Address 0x01 FC Function Code OxOF gt Write multi DO SA Hi Start Address Hi byte Ox00 SA Lo Start Address Lo byte 0x00 NO CHD No Of points Hi byte Ox00 NO Lo No Of points Lo byte Ox10 BC Byte Count 0x02 4 8 2 Receiving data from the Profibus master device Send Command to read DI of the GW 7552 The user needs to input command 01 02 00 00 00 10 in MBRTU and click lt Send Command gt button to send Modbus command 01 02 00 00 00 1079 C6 and then MBRTU can receive response message 01 02 02 00 00 GW 7552 PROFIBUS MODBUS GATEWAY User Manual Version 1 00 Mar 2008 PAGE 47 B9 B8 In this message the user can know the value of DIO amp DII is 0 in the GW 7552 Send output data to write DI of the GW 7552 by the Profibus master The user needs to set OxFE amp OxDC in byte 2 amp byte 3 of output data area in the configuration program SyCon and then set the value of the first byte from 0 to 1 to trigger the data output command Send Command to read DI of the GW 7552 again Now the user can input command 01 02 00 00 00 10 in MBRTU and click Send Command gt button to send Modbus command 01 02 00 00 00 10 79 C6
Download Pdf Manuals
Related Search
Related Contents
4 ch dmx dimmer pack user`s manual 「取扱説明書」 TAV2シリーズ bd - Théses en Ligne User`s Manual @8360 openFT V11.0 for z/OS - Fujitsu manual server Copyright © All rights reserved.
Failed to retrieve file