Home
Modbus (RS485)/PROFIBUS
Contents
1. Exit GJ 5 6 2 Load configuration project Choosing Open can open a saved project before Edit E Tools Ti Hew CH Coin Open 0 Ctrl 0 ff Save E Ctrlts Save as Al Exit i T 5 7 Auto mapping The function helps user configurate The starting address of mapping memory Click the icon Mar PMA 123 1 2 Really re calculate mapping address 27 www sibotech net En SiboTech PM 125 R5485 Profibus DP Adapter User Manual Click Yes and PMA 123 will calculate the parameter automatically 5 8 Conflict detect a Conflict The function helps user check memory Click the icon Conflict Detect Input Memory 3 Subnet e Node 1 9 01 Read Coil Status 02 Read Input Status 6 03 Read Holding Regi 65 04 Read Input Registe 6 05 Force Single Coil E 06 Preset Single Regi 993 15 Force Multiple Co 93 16 Preset Multiple Re Output Memory Conflict IE Overflow Bill Selected Command 5 9 Export excel document Excel document helps users to examine the configuration related Choose the icon Export save the configuration as excel document and choose the right path ge SiboTech www sibotech net En PM 125 R5485 Profibus DP Adapter User Manual my Documents New Folder 2 Y My Computer software omy Network Places File name Save as type Config File
2. Insert FLUC View Options Window Help Dyce ss Ru amp cel gen ele S wl Select Profibus Address 8 SIMATIC 300 EC 1 i CP 300 Properties PROFIBUS interface DF Easter J CFU 316 2 DF m cry 318 2 General Farameters erc EEN Bg CPU 313 Address e If a subnet ais selected E En CPU 314 the next available address iz A CH cry 314 IFM Highest addrazz lZ2b gt p cry 315 Transmission rate 187 5 kbit s CFU 315 2 DF E NE H BEST J15 2AF00 OAn0 Subnet por od H BEST 315 2AFO1 DAB a i i i Ieper 315 2AF02 0ABU FROFIBUS 111 m BEST 315 ZAFOS 0AB0 Properties TI he BEST 315 PAF DABD DE gt EA GJ BEST 915 2AFe3 0An0 Delete 4 On CPU 316 oy IN 300 e CJ CPU 814 Cel 29 CPU Wi 3 FM 00 HE MT EXTENSTON rr En PS 200 E D cg RACE 300 RE Bail UR RE sm coo 5H SIMATIC 400 Sonne 3 Modula Order number co MPI address I add H address Commant El EH SIMATIC PC Based Control 300 4 A EE ui Bl SIMATIC FC Station E qe a Ss Spo Ed IET D E al A A A BEST 315 2AFO0 DABO d AAA AAA E 48 ER work menory 0 3 msf REES SS 1000 instructions MPE DP En M connections For multi tier w i yess Fi to gat Help o Che Figure 9 11 Put configuration into Profibus DP network and map the input and output data block into other controller s memory Figure 10 44 SiboTech www si
3. cha Cancel Double click the xls document and open it Order List Profibus and Subnet Order List orders list as follow Number Function code Starting address Data number The starting address of memory mapping 1 1 O 10 OH Profibus Protocol type and relevant parameters as follow Protocol type Input bytes Profibus Through the Profibus master configuration software to set Subnet Modbus subnet parameters as follow Protocol type Baud rate Data bits Parity Stop bits Slave adddrezz Communication mode Modbus master 158200 E None 1 ETU www sibotech net En e SI bo Tec h PM 125 RS485 Profibus DP Adapter User Manual 6 Working Principle of Modbus Master The data transmitting between PM 125 Modbus and Profibus is established by mapping PM 125 has two data buffers one is Profibus network input buffer the other is Profibus network output buffer Modbus read commands write the reading data into network buffer for Profibus network reading Get data from network output buffer by Modbus write commands and transmit to relevant Modbus device through write commands Input buffer Output buffer Modbus device 1 Modbus device 1 Modbus Modbus device 1 device 1 Users can configure 48 commands every command can read a set of continuous registers 8 SiboTech www sibotech net En PM 125 R5485 Profibus DP Adapter User Manual 7 Universal mode 7 1
4. 125 RS485 Profibus DP Adapter User Manual Then there is a new node named new node under subnet Note PM 125 only supports configuring a Modbus node 2 Delete nodes Right click on the node to be deleted and then perform the operation of deleting the node The node and its all commands will be deleted 3 Add commands Right click on the node and then perform the operation of adding command to add an command for the node The dialog box will be shown as follow Currently it supports the commands 01 02 03 04 05 06 15 and 16 Select the command Double click the command Select Command J2 Read Input Status 03 Read Holding Registers 14 Read Input Registers 05 Force Single Coil 06 Preset Single Register Q7 Read Exception Status US Diagnostics 11 Fetech Comm Event Counter 12 Fetech Comm Event Log 13 Program Controller 14 Poll controller 15 Force Multiple Cords 16 Preset Multiple Registers 4 Delete commands Right click on the command and then perform the operation of deleting the command 5 Rename nodes Left click on the node to be renamed and then the edit status will be shown and you can rename it 18 www sibotech net En SI b O Te C h PM 125 RS485 Profibus DP Adapter User Manual 5 4 The operation of configuration view 5 4 1 Interface of fieldbus configuration view In the interface of device view click fieldbus and then the configuration view is shown as follows d PH125 co
5. 1 Read Holding Registers Function code 03 Query The Table 2 2 is an example that reading there collected data U1 U2 and U3 to the slave The address of U1 is 0001H the address of U2 is 0002H and the address of U3 1s 0003H Table 2 2 Response The response include the address of slave functional code the number of the data and the CRC check The example table 2 3 is reading the response of U1 U2 and U3 49 e www sibotech net En SI b O Te ch PM 125 RS485 Profibus DP Adapter User Manual Address Functi The The The low The The low The The low The low The onal byte high byteof high byteof high byte of byte of high code number byte of the byte of the byte of the checkin byte of ofthe the variable the variable the variable g code checkin variable variable variable variable g code Table 2 3 2 2 Preset Multiple Registers Functional code 10 Query The functional code 10 allows users changing the content of multiple registers The device can be set 16 values from any starting address The controller work with the mode of dynamic scanning and it can change the content of the register anytime The Table 2 4 is an example changing the action and delay setting values of the monitor 1 and monitor 2 of the slave The address of the action setting value of the monitor 1 is 2AH and the delay setting value is 2BH The address of the action setting value of the monitor 2 is 2CH and the delay
6. Data exchange This product provides the communication between Profibus DP and RS485 The communication between Profibus DP and RS485 is bidirectional The output data of Profibus DP can be sent to RS485 fieldbus through the interface of RS485 and the data received from RS485 is put into input data of Profibus DP Data exchange is shown as follows PROFIBUS DP PROFIBUS ooutput data PROFIBUS input data Eo 3 LH D2 Dal Ei j D1 D2 Dy 0 PM 125 Serial output data Serial input data ail nr eae RS485 7 2 Universal Protocol Profibus DP output data format Transaction Number Length of serial output data n Serial output data 1 Serial output data n 0x00 0x00 I n Hr m Remark 31 www sibotech net En SI b O Te C h PM 125 R5485 Profibus DP Adapter User Manual The number of Profibus DP output byte should be greater than or equal to n 1 M 0x00 are filling data also for arbitrary number n m 1 should be equal to the number of Profibus DP output byte Transaction Number The transaction number must add 1 1f Profibus dp master output one new data frame Example If users select the number of Profibus DP input byte and output byte is 8 byte input and 8 byte output length of serial output data is 3 data are 01 02 03 The current transaction number is 0 The format of output data is
7. having been sent and having received correct response the time before next command being sent the range is 0 2500ms Polling mode of outputting command Modbus writing command output command has 3 kinds of outputting modes Continuous output Output disable Change of state output Continuous output The same with Modbus read command and output according to the scanning ratio Output disable Prohibit outputting Modbus write command Change of state output When the output data has changed it output the write command and stop outputting after receiving correct response Scan ratio Ratio of slow scan and quick scan If the quick scan command sends 10 times slow scan command sends time 2 Choose Universal mode in protocol type Configurable parameters are shown as follows Baud rate Data bits Parity mode Stop bits Control mode Character timeout Character number Start delimiter End delimiter Send auto Send auto period CRC Interface of configuration view 1s shown as follow 21 www sibotech net En SI bo Te C h PM 125 R5485 Profibus DP Adapter User Manual f PN125 configuration software File F Edit E View V Help Sie Save Open Upload Down Export Universal mode 33 Profibus i 33 Subnet Slave address Communication mode Response timeout 300 6000ms Delay between polls 0 2500ms Polling mode of outputting commands Change of state output Time between two continuous pluses Sca
8. i SiboTech www sibotech net En PM 125 RS485 Profibus DP Adapter User Manual DHT Config SIMATIC 30061 Configuration T NODBUS I B ooo B r Daseri PIC Vase Optiapr imde Nel x Disi j ej le l OD oi ei ze ER 5 Pret Standard ES x XE FROPIBIG IP lr BN serm xo 4 13 et e G cra 33 crt Sue In e eg CRU 3 zm mcg 514 E cry 344 IM e EJ enr ALS emm 2 CPW SL5 2 DF B 5857 315 2AFT 5857 315 PAR I DAX 3857 315 ZAB T DOAED T GEST 315 24F03 04ED i pem 315 2ABBP DATO y Properties PROFIBUS interface MP Enzter IA 1 w General Paramotor Add er E sl If a subnet it celected dhe ment eweileble dd ss ba Properties OCDE Gate vi Metwork Setting CRE AEST 315 5ABHS CUCO mz CRY SL Bg Cri 36 2 BP Mide S w Eg rn agea Transmission Bate 4 31 251 kbi x 53 CRW BL ius Paranatara W M Hfsar Bafinad ES Bail Fe H SIMATIC FC Based Control 004 co Bl SIMATIC PO Eladiam m4 Li Ex Bi 3L5 2AFOD 0 Es 48 XP werk mamery 0 3 auf mE LODO instructi era MPI DP mctienx for mulii tiar ny a on ot a o a Press Fl te get Help Che Figure 8 10 Select Profibus DP Master address Figure 9 www sibotech net En 8 Sibo Tec h PM 125 RS485 Profibus DP Adapter User Manual LHF Config SINATIC 30001 Configuration TI NODBIUS ally Station Edit
9. of Modbus register The starting address of register or switching value or loop and so on in Modbus slave and the range is 0 65535 Note The maximum number of read write registers 1s 45 at ASCII mode The starting address of memory mapping hexadecimal The starting address of data in memory buffer of the module The address range of data mapping in the module memory Read command 0x0000 0x00A7 Write command 0x4000 0x40A7 The address can calculate by software through calculate mapping address automatically Bit offset of memory mapping 0 7 For the bit operation commands the position range of start bit byte 1s 0 7 Bytes swapping There are three kinds of type No swapping two bytes swapping four bytes swapping The byte display order of Modbus and Profibus DP is MSB being preferential the byte display order of DeviceNet is www sibotech net En SI bo Tec h PM 125 RS485 Profibus DP Adapter User Manual LSB being preferential Users can exchange the byte display order to get correct value Scanning mode There are two kinds of scanning mode quick scan and slow scan It is fit for requests of user about quick scan or slow scan of different commands Slow scan is equal to quick scan being multiplied by scan ratio Configure it in the interface of subnet configuration interface 5 4 5 Notes View Notes view displays the explanation of configuration The notes that show how to configure the starting addre
10. setting value is 2DH gw SiboTech www sibotech net En PM 125 RS485 Profibus DP Adapter User Manual 03H hon oor PAH oor Z ven om Don oor van om onon oon OAH 25H CR Table 2 4 Response The Table 2 5 is the response of changing the action and delay setting values of the monitor 1 and monitor 2 Table 2 5 2 3 Preset Single Register Functional code 06 Query The functional code 06 allows users changing the content of single register Any single register of DAE system can use the command change the value The controller work with the mode of dynamic scanning and it can change the content of the register anytime The following example is changing the overload action value Ir1 The address of Irl is 002EH Table 2 6 Response The normal response of preset single register is transmitting the receiving data after changing the value of 51 www sibotech net En SI b O Te ch PM 125 RS485 Profibus DP Adapter User Manual the register Table 2 7 52 www sibotech net En SI bo Te C h
11. the changed data in the 47 9 www sibotech net En SI b O Te C h PM 125 R5485 Profibus DP Adapter User Manual transmission which improves safety and efficiency of the system The fault code apply 16 bit CRC Note The transmitting serial is always the same address functional code data and the fault checking code relating to direction The fault checking CRC field occupy 2 bytes including 16 bits binary value The value of CRC 1s calculated by transmitting equipment and then added to the data frame the receiving equipment calculate the CRC value again while receiving data Then it is compared with receiving CRC value If the two values are not the same the fault occurs When calculating CRC preset a 16 bit register to one firstly and then calculate 8 bit bytes in the data frame with the current value of the register Only 8 data bits of each byte participate in the generation of CRC The initial bit final bit and occasional odd and even bit don t influence the value of CRC The process of generating a CRC Preset a 16 bit register to OFFFFH and the register is named CRC register When generating CRC exclusive each 8 bit with the content of the register and then shift result to the low byte the high bit is filled with zero the LSB is shifted out and checked If it is one the register exclusives with a presetting fixed value If the lowest bit is zero there 1s no settlement The above settlement is repeated before exec
12. 01 03 01 02 03 00 00 00 00 Profibus DP input data format Transaction Number Length of serial input data n Serial input data 1 Serial input data n 0x00 0x00 n m Remark The number of Profibus DP input byte should be greater than or equal to n 1 M 0x00 are filling data also for arbitrary number n m 1 should be equal to the number of Profibus DP input byte Transaction Number The transaction number must add 1 show that there is new input data frame Example If users select the number of Profibus DP input byte and output byte is 8 byte input and 8 byte output length of serial input data is 3 data are 04 05 06 The current transaction number is 0 The format of input data is 01 03 1 04 05 06 00 00 00 100 32 www sibotech net En SI bo Te C h PM 125 R5485 Profibus DP Adapter User Manual 8 How Step7 Read and Write Gateway Data Data modules supported by PM 125 with total length as consistent are shown as follow 2 Words Input Consistent 4 Words Input Consistent 8 Words Input Consistent 16 Words Input Consistent 2 Words Output Consistent 4 Words Output Consistent 8 Words Input Consistent 16 Words Input Consistent Users must apply SFC 14 read data and SFC 15 write data in Setp7 programming DPRD_DAT EW ENG Wels JLADDE RET VAL PISO FP2DBloO DBAO Q BYTE 16 SFCIA DPWR DAT EN ENG We LAO LADDA RET VAL PISO PsDBiloO DBZ Q B
13. 85 Profibus DP Adapter User Manual EM Green Blinking Serial port is sending data TX Green Off Serial has no data sent 3 3 Button and LED Configuration Button has two functions Enter the mode of configurating parameters Modify Profibus DP address of the module LED Display the current Profibus DP address and the status of running or configuration The default mode of PM 125 after powering on is normal communication mode LED displays Profibus address and always bright Double click on the button and enter the menu After double clicking on the button enter the configuration menu first Menu Configuration menu Set Profibus address menu Configuration menu CF blinking Set Profibus menu Ad blinking Click on the button and turn to another menu at the status of displaying menu long press the button more than 2 5s and turn to the status that menu shows Configuration Status CF always bright Set Profibus address Status The high or low bit of present Profibus address blinking Configure Modbus parameters configure relevant parameters through configuration software at the status of configuration and download to PM 125 long press on the button more than 2 5s or power on PM 125 again the configuration will be available and enter into normal communication status Set Profibus address At the status of modifying Profibus address High bit of current Profibus address is blinking low bit is always bright click o
14. Manual f PH125 configuratio File F Edit L X E k B I B pen AddNode H mp Toolbar Export Protocol type Modbus master Profibus Baud rate 19200 Data bits 8 Parity None Stop bits 1 slave Address Communication mode RTU Response tmeout 300 60000ms Delay between polls 0 2500ms Configuration section input putting commands configuration parameters gray Equipment section can choose bontinuous pluses part can not be modified while the operating targets including fieldbus or sub network and add white part can be modified the nodes and commands Notes section The specific explanation to the nouns appearing in the configuration and devices to help users to understand and operate Toolbar is shown as below l Ts Haza Igea ON EE 2 r La n iis gd res EE a mom P E Th ANE mr WS um mx EN Lon m uu lelCmd Upload Down Map Export Hew Save Open AddWode IelHode AddEmd Functions separately from left to right are new open save add nodes delete nodes add commands delete commands upload configuration download configuration Auto mapping conflict detect and Export Excel La Hew New Create a new configuration project ha save Save Save the current configuration ka Upen Open Open a configuration project SiboTech www sibotech net En PM 125 RS485 Profibus DP Adapter User Manual E AddNode Add nodes Add a Mod
15. Occupy one input byte and one output byte Bit 0 of input byte Serial device fault indication O indicates that there is no fault in Modbus Slave 1 indicates that there is something wrong with Modbus Slave the other 7 bits reserved Bit Oof output byte Set 1 to hold the fault status of device Set 0 to refresh the status of Slave all the time the other 7 bits reserved Note The Status Control module can only be valid in Modbus master mode 4 Words Input 4 Words Output 8 Words Input 8 Words Output 16 Words Input 16 Words Output 32 Words Input 32 Words Output 64 Words Input 64 Words Output 1 Byte Input 1 Word Input 8 Words Input 1 Byte Output 1 Word Output 8 Words Output 2 Words Input Consistent www sibotech net En SI bo Te C h PM 125 RS485 Profibus DP Adapter User Manual 4 Words Input Consistent 2 Words Output Consistent 4 Words Output Consistent If use Status Control Optional Module when configuration in STEP7 putting it at the bottom of all data modules is a better choice The Module will occupy one input byte and one output byte of PM 125 memory mapping if you put it at the top of the memory or in the middle of the memory you should reserve one input and output byte when you configure Modbus parameters in PMA 123 8 Modbus interface is RS485 half duplex Baud rate 300 600 1200 2400 9600 19200 38400 57600 115200bps and 8 bit data bit Parity check mode None Odd Even Mark and
16. RS485 PROFIBUS DP Adapter PM 125 User Manual REV 2 4 Apr 2010 SiboTech Automation Co Ltd Technical Support 86 21 5102 8348 E mail support sibotech net PM 125 R5485 Profibus DP Adapter User Manual Table of Contents About This Manta ee es es secs se de dec des co 3 IMESIICNR E UU 3 1 2 Important user eh e ie apo 3 LS MES a 21 cia 3 2E eB Er NE 4 2 PERGOUOE ee E EE 4 PAS PPC PE O O NOOO E E E E A 4 PAE EE EEN 4 nn an 6 2 5 RO ee e 6 Ee RE ee E 7 Nas A A 7 2 2 ee 7 b BOT e E Na B PT 8 o COmiiumtoatioBn Eege 10 GE Ee 10 A hon o E E RE 11 4 Quick Start Guide 12 5 Instructions of configuration software 13 eh dee 13 AS A acne 14 2 9 The operation OF CQUIPMIENT TE 17 SN Ee hun dee ecoute eem E E UN RENDIR BUE iones 17 2 52 Operation EIERE VAS NN de ei ele en 17 5 3 3 Operation types of equipment Vie s sssssssnseseseseseseenereesesesiseseseststsrsrsrsreresesiseseseseneseseses 17 5 4 The operation of configuration view iii 19 5 4 1 Interface of fieldbus configuration view sss 19 5 4 2 Interface of subnet configuration view ssssssssseseeseeeeeentenrerenennne nnns 20 515 Interface of node conficuration View tn eee 23 5 4 4 Interface of command configuration view sse nnns 23 Si A 25 5 5 Upload and Download configuration sss 25 QOL SAA A 25 9 52 Download Cont UTM aaa 26
17. YTE 16 RECORD SFCIS Data modules supported by PM 125 with word as consistent are shown as follow 33 www sibotech net En SI b O Te C h PM 125 RS485 Profibus DP Adapter User Manual 4 Words Input 4 Words Output 8 Words Input 8 Words Output 16 Words Input 16 Words Output 32 Words Input 32 Words Output 64 Words Input 64 Words Output 1 Word Input 8 Words Input 1 Word Output 8 Words Output Users can apply MOVE command read and write data in Step7 programming Data modules of PM 125 that with byte as consistent are shown as follow Status Control Optional 1 Byte Input 1 Byte Output Users can apply MOVE command read and write data in Step7 programming 34 SiboTech www sibotech net En PM 125 R5455 Profibus DP Adapter User Manual 9 nstallation 9 1 Machine Dimension Size 70mm weight 100mm height 25mm depth 9 2 Installation Method Using 35mm DIN RALL install D um H 73 Jj 14 35 www sibotech net En I SS D AE ES E ff mm SiboTech PM 125 RS485 Profibus DP Adapter User Manual www sibotech net En T SI bo Tec h PM 125 R5485 Profibus DP Adapter User Manual 10 Optional Device RS25 RS232 RS485 Isolation Converter RS25 1s one kind of SiboTech it is an RS232 485 converter fo Be weiss Function RS 25 achieve the converter between RS232 and RS485 it can establish the communication between the
18. botech net En PM 125 RS485 Profibus DP Adapter User Manual HW Config SINATIC 300 1 Configuration 123 Bly Station Edit Insert EIC View Options findow Help E X DIG 25 E g ER mm xu pe wire Bj x 0 VE Find ant emi PS 307 5h FROFIBUS 1 DF master system 1 Frofil Standard a PROFIBUS DP A 43 Additional Field Devices S General J CONVERTER 1 g PCALOO ga PCALOOZO ga PISO E g FM120T g PMLZOT11 ga Pies Universal module Status Control Optional 4 Words Input 4 Words Outpu B Words Input 5 Words Outpu 16 Words Input 16 Words Out 32 Words Input 52 Words Out B4 Words Input B4 Words Out 1 Byte Input E F F r F r F F E 1 Word Input F E F F E F F Drag the data to the left bottom of the table i D Words Input 1 Byte Output 8 PMI2S 1 Ward Output 8 Words Output DP ID Order Humber Designation I Add H Address Comment 2 Words Input Consistent s su pre Output NENNEN NEUEM AZ 4 Words Input Consistent o eo Byte Output mm Z 2 Words Output Consistent T e Byte Output REESE 8 80 E o E 4 Words Output Consistent E sno E em gg F160 1 GEET ER Ze S AA A UMEN AA G Switching Devices 3 AA A AA M 2 14 NA A AA A Es AAA A ES 15 Fress Fl to get Help Figure 10 Operation is divided into two steps the first step 1s dragging PM 125 into the net
19. bus slave node E IelHode Delete nodes Delete a Modbus slave node Addad Add commands Add a Modbus command El lellmd Delete commands Delete a Modbus command e Upload Upload configuration Read the configuration from the module and show it in the software v Don Download configuration Download the configuration from the software to the module Map E Conflict ES Export Output Excel document Output the current configuration to local hard disk and save it as xls file Auto Mapping Automatically computing mapping address Conflict Detect Detect whether there is conflict in memory data buffer of the gateway www sibotech net En SI bo Tec h PM 125 RS485 Profibus DP Adapter User Manual 5 3 The operation of equipment view 5 3 1 Equipment interface Device Fieldbus Subnet Node 1 Read Holding Registers Node 2 Read Input Registers Node 3 Preset single Register Node 4 emm Preset Multiple Registers 5 3 2 Operation of equipment view The equipment view supports three types of operation Edit Menu Edit Toolbar and Right click edit Menu M ced erp an Delete Command L Upload Ctrl Download Ctr1 D Export XLS Ctr1 E1 Auto Mapping Ctr1 M Conflict Detect 5 3 3 Operation types of equipment view 1 Add nodes Right click on subnet or existing nodes and then perform the operation of adding a new node 17 e www sibotech net En SI bo Te C h PM
20. de Response timeout Delay between polls Polling mode of outputting commands Scanning ratio Interface of configuration view is shown as follow f PN125 configuration software File F Edit E View V Help H dM T Save Open 13 Profibus a Node 1 9 01 Read Cod Status 02 Read Input Status 3 03 Read Holding Registers 93 04 Read Input Registers 05 Force Single Coil E 06 Preset Single Register 93 15 Force Multiple Coils Q9 16 Preset Multiple Registers s x Upload Down Protocol type Baud rate Data bits Parity Stop bits Slave Address Communication mode Response timeout 300 60000ms Delay between polls 0 2500ms Polling mode of outputting commands Time between two continuous pluses Scan ratio Map Conflict Export Modbus master 19200 8 None 1 RTU 300 0 Change of state output 10 Modbus communication baud rate There are 300 600 1200 2400 9600 19200 38400 57600 and 115200bps to be selected Data bits 8 bits Parity check mode There are none odd even mark and space to be selected Stop bits There are and 2 to be selected Transmission mode There are RTU and ASCII to be selected i SiboTech www sibotech net En PM 125 RS485 Profibus DP Adapter User Manual Response timeout When the Modbus master send commands the time waiting for response from the slave the range is 300 60000ms Delay between polls After an command of Modbus
21. e RS232 485 converter such as RS 25 should be used here 2 Power on PM 125 double click on the configuration button and enter into menu mode CF blinking long press on the button more than 2 5s into configuration mode CF is always bright users can configure Modbus scanning commands through gateway configuration software PMA 123 the details can refer to 5 Instructions of software configuration After completing configuration long press on the button more that 2 5s or power on PM 125 again to make sure that the configuration is available and enter normal communication mode 3 Double click on the button and enter into menu mode and then click on the button Ad blinking long press on the button more than 2 5s into the mode of modifying Profibus DP address LED high bit blinking and low bit always bright click on the button and the number adds by itself long press on the button more than 2 5s and turn to the mode of modifying low bit address click on the button and the number adds 1 by itself long press on the button more than 2 5s to save new address and make sure that the address 1s available 4 Register GSD file to Profibus DP master configuration software 5 In Profibus master configuration software map the input output of PM 125 to the memory of PLC or other master devices according to your requirements 6 According to the instructions of RS485 interface in chapter 3 close the power and wire every pin of 5 pin
22. erial parameters and downloading to the adapter as factory settings Need not be informed the end user about any serial technical details Once completed can need not change the configuration later 2 3 Technical Specification 1 Act as a Profibus DP Slave at the side of Profibus DP serial port support Modbus Master Universal mode The adapter establishes transparent communication between Profibus DP and Modbus through the mapping relationship between Profibus DP data communication area and Modbus data communication area 2 As a Modbus Master PM 125 supports 01H 02H 03H 04H 05H 06H OFH and 10H function codes It can be configured up to 48 Modbus commands 03H and 04H function codes support Bytes mapping and be www sibotech net En SI b O Te C h PM 125 R5485 Profibus DP Adapter User Manual convenient for the user to solve two network data between the big Endian and small Endian 3 Support the control mode of character timeout character number and delimiter in universal mode and have the function of sending automatically 4 Complete Profibus DP VO slave functionality according to EN50170 IEC61158 5 As a Profibus DP Slave baud rate is self adaptive and up to 12Mbps 6 Profibus input output bytes number can be set through Step7 freely the maximum number 1 Max Input Bytes lt 168 Bytes 2 Max Output Bytes lt 168 Bytes 3 Max Data Bytes lt 336 Bytes 7 Max Module 50 Modules Status Control Optional
23. et En SiboTech PM 125 RS485 Profibus DP Adapter User Manual Uh Comfig SIMATIC 30000 Conmfigurats ien T_BODENS x Ml station Edit ener ELC Yiew Option Die ui a le wie E e Zi pp Ermia sl iz RR SIMATIC 200 fe BM SIMATIC 400 F EY OSIWATIC FC Baxed Control S004 Ho Bl SIMATIC FC Sisiion i D ipi UH el t E DF aleaz Err El BOF IBU SIMATIC ST MT and CT i distributed rack Fress Fl to set Help Figure 5 6 Here you can find your equipment in the right side of the window Profibus DP Additional Field Devices Converter PM125 Figure 6 SiboTech www sibotech net En PM 125 RS485 Profibus DP Adapter User Manual E PROFIBUS DF C Additional Field Devices General H eg PMISOT Ce PMIZOTII Universal module Status Control Optional 4 Words Input 4 Words Output B Words Input 8 Words Output 16 fords Input 16 Words Output se Words Input 32 Words Output Bi fords Input 64 Words Output Byte Input ford Input Words Input Byte Output Word Output fords Output Words Input Consistent Words Input Consistent Words Output Consistent AS M 4m Po C rz Ln C rz Ln Words Output Consistent Figure 6 7 Set PLC rack click the Hardware Catalog SIMATIC 300 RACK 300 1 Rail Figure 7 41 www sibotech net En SI bo Te C h PM 125 RS485 Profibus DP Adapter User Manual Station Edit Insert PIC View Op
24. ly one Only the terminal being addressed will respond the polling with its address when the terminal transmit a response the response tell the host computer the terminal which is communicating with it Function field Codes of function field show the function being executed by terminals which are addressed Figure 1 1 lists all the function codes their meanings and their initial functions Figurel 1 Function codes Read data obtain current binary value of single or multiple registers Preset multiple Place specific binary values to a series of multiple registers 06 Preset single register Place one specific binary value into the single register registers Data field Data field includes data when specific functions are executed by terminals or data being collected when the terminal responds to query The content of these data may be value of number reference address or limit value For instance functional code indicates terminals read a register data field on the other hand clearly show the register and the number of data to be read the inside address the type of data and different capacity of different computers Fault check code The field allows checking the fault in the transmission between host computer and terminals Sometimes due to electrical noise and other interference a set of data may change when transmitting from one equipment to another The fault checking code can guarantee that host computer don t respond to
25. m Feature 3000V photoelectric isolation and be suitable to the industry field with variable environment More information www sibotech net en 37 www sibotech net En SiboTech PM 125 RS485 Profibus DP Adapter User Manual Appendix A Using STEP 7 Set Profibus DP The following show how to use STEP7 to configure PM 125 First of all copy gsd file to the following path Step7 S7data gsd l Figure 1 2 File gt New create a new file gt SIBATIC Hanager Fils FIC Wier piisnx Wander Help rige B ol sl wl User projecte Libr ari se TA Ein Steph MS pe od Tm Hage Typa T manm Froject Skorege locstion path E x3 enenx Sispi STpra Brosze Figure 2 38 www sibotech net En SiboTech PM 125 RS485 Profibus DP Adapter User Manual 3 Insert gt Station gt SIMATIC 300 Station SET File Hit Tos Est A ds T BODES art FLE Mer Options Yindos Help SEE 5 e WE Bof Sei gu T e Pinte gt giel wi Ep TRI A _ modii ES ERR ur Soe STWATIC 30011 Figure 3 4 Open S7 PLC hardware configuration SIMATIC 300 1 gt Hardware double click A SINATIC Hanager T NODBUS File Edit Insert PLC View Options Window Help 3l RER AA a El More lei E el Ep I mau E SIMATIC 30001 Figure 4 5 Choose Option gt Update Catalog in the menu refresh GSD in Device catalog 39 www sibotech n
26. mmunication Port 3 4 1 RS485 The RS485 interface of PM 125 is standard and we will describe RS485 s features of the product The basic characteristics of RS 485 transmission technology Network topology Linear bus there are active bus termination resistors at both sides 2 Baud rate 1200 bps 115 2Kbps SMedia Shielded twisted pair cable and also can cancel the shielding depending on environmental conditions EMC 4 Site number 32 stations per subsection without repeater and can up to 127 stations with RS485 repeater S Plug connection 5 pin pluggable terminal The main points on RS 485 transmission equipments installation D All the equipments are connected with RS 485 bus 2 The farthest end of each bus has a termination resistor 120Q 1 2W to ensure reliable operation of the network Serial interface uses 5 pin pluggable terminal and users can wire it according to the wiring instructions on the panel 10 www sibotech net En SI bo Te C h PM 125 RS485 Profibus DP Adapter User Manual 3 4 2 Profibus DP port PROFI A PROFI B GND PROFI B Data positive GND optional connection 11 www sibotech net En SI bo Te C h PM 125 RS485 Profibus DP Adapter User Manual e PROFI A Data negative 4 Quick Start Guide The follow steps will tell you how to configure PM 125 in short time 1 Connect PM 125 Modbus RS485interface to PC COM because the PC COM is RS232 interfac
27. n ratio 10 Control mode Character timeout Character timeout 10 Character number Lil Start delimiter 0 End delimiter 0 send auto send auto period CRC check Communication baud rate There are 300 600 1200 2400 9600 19200 38400 57600 and 115200bps to be selected Data bits 8 bits Parity check mode There are none odd even mark and space to be selected Stop bits There are 1 and 2 to be selected Control mode There are Character timeout Character number and Delimiter to be selected Character timeout User input the default is 10 and the range is 10 60000ms Character number User input the range is 1 166 only when the control mode is character number it can be effective Start delimiter When the Delimiter control mode is selected it can be effective The range is 0 255 End delimiter When the Delimiter control mode is selected it can be effective The range is 0 255 Send auto There are open and close to be selected Send auto period User input the default is 1000 and the range 1s 10 6000ms 22 www sibotech net En SI bo Te C h PM 125 RS485 Profibus DP Adapter User Manual CRC check When the control mode is Character timeout or Character number it can be effective There are open and closed to be selected 5 4 3 Interface of node configuration view When the protocol type of subnet is Modbus master in the interface of device view left click a node a
28. n the button and the number adds 1 by itself press the button more than 2 5s to enter into the mode of modifying low bit address High bit is always bright low bit 1s blinking click on the button and the number adds 1 by itself press the button more than 2 5s to save the new address and make it available enter the status of normal communication If there is no pressing button more than 10s LED get back to display Profibus address and the modifying address is null before No overtime exiting function at www sibotech net En i SI b O Te C h PM 125 R5485 Profibus DP Adapter User Manual configuration status Configuration button function is shown as follow Power on Double click on configuration button Em switch status Long press on configuration button more than 2 53 Long press on configuration button more than 2 5s Long press on button more than 2 5s or power on again the configuration is available Long press on configuration button more than 2 5s Long press on configuration button more than 2 5s modifying address is available www sibotech net En gt SI b O Te C h PM 125 R5485 Profibus DP Adapter User Manual Note Except normal status and configuration status LED always displays CF if there is no pressing on button more than 10s the LED returns back to the status of displaying Profibus address normal mode and the previous modifying is null 3 4 Co
29. nd then configuration interface is shown as follow PN125 configuration software File F Edit E View V Help QW H 5 amp Ee m A e x New Save Open Addlode DelNode AddCmd d Upload Down Map Conflict Export 3 Slave Address 1 33 Profibus 2 34 Subnet 01 Read Coil Status 6 02 Read Input Status 3 03 Read Holding Registers 6 04 Read Input Registers 05 Force Single Coil E 06 Preset Single Register 15 Force Multiple Coils 93 16 Preset Multiple Registers 5 4 4 Interface of command configuration view In the interface of device view left click a command and then configuration interface 1s shown as follow www sibotech net En e SI bo Tec h PM 125 R5485 Profibus DP Adapter User Manual f PN125 configuration software File F Edit E View V Help QW Save pen EL Dell DelCmd Upload Down Map Conflict Export Function Code Modbus master The starting address of Modbus register Data number The starting address of mapping memory HEX Bit offset of memory mapping 0 7 0 33 Profibus 2 4 Subnet a e Node 1 01 Read Coil Status GI 02 Read Input Status Bytes number 0 wll Read Holding Registers Bytes swapping No swapping 04 Read Input Registers Type of Check BS GI 05 Force Single deeg RE mod cer 6 06 Preset Single Register 15 Force Multiple Coils 93 16 Preset Multiple Registers Mnemonic The mapping address of the data in the module s memory 0000H 00A7H The starting address
30. nd results are in accordance with the safety of relevant field and the safety includes laws rules codes and standards 1 3 Terms Profibus DP Profibus DP protocol RS485 Hardware specifications of serial interface PM 125 RS485 Profibus DP gateway RS 25 Convert RS485 RS232 to RS232 RS485 SiboTech www sibotech net En PM 125 RS485 Profibus DP Adapter User Manual 2 About the Gateway 2 1 Product Function The adapter PM 125 establishes communication between serial network and Profibus DP network and can connect a device with Modbus RS485 interface with Profibus DP network Modbus RS485 network device can be converted to Profibus DP network device 2 2 Feature gt Widely used Most devices with RS485 interface can be connected to Profibus DP network through PM 125 Such as converters with Modbus protocol or nonstandard protocol interface motor startup protection devices intelligent high and low voltage electrical equipments power measuring devices transmitters intelligent field measuring equipments and instruments and so on gt Easy implementation Users needn t know the technical details of Profibus and serial but refer to this manual and the application examples provided complete configuration according to the requirements without complex programming establish communication in a short time gt Minimum Configuration Support finishing mapping relationship between Modbus and Profibus DP or configuring s
31. nfiguration software File F Edit E View V Help H IM M o a m New Save pen Upload Down Map Conflict Export Protocol type Profibus Profibus input bytes Through the Profibus master configuration software to set ubne Profibus output bytes Through the Profibus master configuration software to set Length of valid input data Close Clear after twice faults of input data Close Configurable items include Length of valid input data and Clear after twice faults of input data Length of valid input data It is valid only if the subnet protocol type is universal mode Open The first byte of Profibus input data is used to indicate the length of received serial data Close Profibus input data 1s not used to indicate the length of bytes of data Clear after twice faults of input data It is valid only if the subnet protocol type is Modbus master Only effect on Modbus read commands any Modbus read command hasn t received present response and transmit the command in next scanning cycle Modbus read command hasn t received response clear the input data relevant to Profibus when selecting open SiboTech www sibotech net En PM 125 R5485 Profibus DP Adapter User Manual 5 4 2 Interface of subnet configuration view 1 Choose Modbus Master in protocol type Configurable parameters are shown as follows Modbus communication baud rate Data bits Parity check mode Stop bit Transmission mo
32. space can be selected 9 Power 24VDC 11V 30V 80mA 24VDC 10 Working temperature 20 C 60 C Humidity 5 95 11 External dimensions Width 70mm Height 100mm Depth 25mm 12 Installation 35mm DIN RAIL 13 Protection Level IP20 2 4 Attention To prevent stress prevent module panel damage To prevent bump module may damage internal components Power supply voltage control in the prospectus within the scope of the requirements to burn module To prevent water water module will affect the normal work Please check the wiring before any wrong or short circuit 2 5 Related Products Other related products in SiboTech PM 160 PM 127 and so on If you want to get more information about these products please visit SiboTech website http www sibotech net en or call the technical support hotline 86 21 5102 8348 www sibotech net En SI b O Te C h PM 125 RS485 Profibus DP Adapter User Manual 3 Hardware Descriptions PROFIBUS DP 3 1 Product appearance INTERFACE SZ PROFIBUS DP PROFIBUS ADDRESS SETTING amp RUN CONFIGURE SWITCH PROFIBUS DP INTERFACE INDICATOR PROFIBUS ADDRESS DISPLAY amp CURRENT STATUS SERIAL INDICATOR RS485 amp POWER INTERFACE 3 2 Indicators Green Blinking Profibus DP is communicating Profibus DP communication Always Red PBF fails 7 SiboTech www sibotech net En PM 125 RS4
33. ss of memory mapping is shown as follow In some Modbus function code the length of data is counted with bit as a unit the offset start from the specific bit of the mapping address byte and the range is U te 7 5 5 Upload and Download configuration 5 5 1 Upload configuration Choose upload configuration upload the configuration from gateway to the software the display interface is shown as follow Serial port If upload successfully the display interface is as follows 25 www sibotech net En SI b O Te C h PM 125 R5455 Profibus DP Adapter User Manual Note Before uploading the configuration please check whether the serial port configuration is the available port 5 5 2 Download configuration Choose download configuration download the configuration from software to the gateway the display interface is shown as follow Notel Before downloading the configuration please check whether the serial port configuration is the available port Note2 Before downloading the configuration make sure that all configurations have been completed www sibotech net En T SI bo Te C h PM 125 RS485 Profibus DP Adapter User Manual 5 6 Load and save configuration 5 6 1 Save configuration project Choosing Save can save the configuration project as xml document Edit E Tools TJ Hew UN Ctr1 H Open 01 Ctrlto B Ctrlts Save as A
34. terminal correctly 7 According to the instructions of Profibus DP interface in chapter 3 connect 3 pin and 8 pin correctly at least 8 Connect Modbus devices with Profibus DP master device power on PM 125 and enter the normal mode of communication 12 www sibotech net En SI b O Te C h PM 125 RS485 Profibus DP Adapter User Manual 5 Instructions of configuration software 5 1 Notes before configuring PMA 123 is a product based on Windows platform and used to configurate a variety of fieldbus gateway devices including PM 125 PM 126A and MPC 125 It can set related parameters and commands of Modbus and other bus The document mainly introduces the use method of PM 125 Double click the icon to enter the main interface of the software Select Device SiboTech Choose PM 125 to enter configuration interface www sibotech net En o SI bo Tec h PM 125 RS485 Profibus DP Adapter User Manual PH125 configuration software File F Edit E View V Help H IM a Ek k 5p m co o e a e New Save Open AddWode DelNode AddCmd DelCmd Upload Down Map Conflict Export 33 Profibus 33 Subnet 5 2 User Interface PMA 123 interface include title menu bar toolbar status bar equipment section configuration section and notes section Note All the gray part in the software can not be changed www sibotech net En SI bo Te C h PM 125 R5485 Profibus DP Adapter User
35. tions Window Help l x Dee al le ajal EE B E SIMATIC 300 MER cr Ee CF 300 B 3 cea B CPU 312 IFM Properties PROFIBUS interface DP iei R0 S2 1 General Parameters EU 313 Address E y If a subnet is selected l j SR CEU 314 the next available address is E GR CPU 314 IFM PLS CPU 315 E n CFU 315 2 IP fo pee N BEST 315 zAF D LABO bem E BEST 315 zAF 1 DABO New Weer 315 2ar0c 04p0 000 FH BEST 315 2AF03 0ARD Properties Y BEST 315 2AF82 DARO B J BEST 315 2AFS3 0AB0 a CCP 316 CN CPU 318 2 TP o CC CPU 318 2 a CCP 814 rg CPU WT d A FM 300 o CC m ann pe LY NT EXTENSION mi 200 EHE FACK 300 o Lm Rail m sw ann B T SIMATIC 400 S J Module Order mmber coo API address I add Q address Comment E El SIMATIC PC Based Control 300 4 e BH SIMATIC PC Station lt IM Hs gt li i pnm IEEE Hp E DEN lE Ee NN eee al E Pl ES EM VEM BEST 315 2AFOO OABO K UK RE E NAS AAA AS ES UU 48 KB work memory 0 3 ns ci 1000 instructions MPI DP connections for multi tier yy Fress Fl to get Help Che E cn 4 oo r3 E Figure 7 8 Set CPU module and select the corresponding device type and the occupied slots 9 Create Profibus DP network and set Profibus DP Click New and then Network settings select DP select a baud rate such as 187 5Kbps then OK Double click it Figure 8
36. uting the shifting 8 times After finishing shifting the last bit the next 8 bit byte has the same exclusive calculation with the register and the another 8 time shifting is carried out When all the bytes are settled the final value is CRC value The process of generating a CRC Preset a 16 bit register OFFFFH all one and name it CRC register Exclusive the first 8 bit byte in the data frame with the low byte in the CRC register and restore CRC register Shift CRC register to the right bit fill the highest bit with zero shift the lowest bit out and check them If the lowest bit 1s zero repeat the third step next shift If the lowest if one exclusive CRC register with a presetting fixed value 0A001H Repeat the third step and the fourth step until shifting eight times which settle the entire eight bit down Repeat the second step to the fifth step to deal with the next eight bit until all the bytes are settled down In the end CRC register value is the CRC value 2 Functions of application layer 48 www sibotech net En SI bo Te C h PM 125 RS485 Profibus DP Adapter User Manual The first chapter has described the protocol and data frame The processors of the software can use the following methods establish their specific application program via protocols without fault The protocol in this chapter use the follow format as many as possible the format is shown as table 2 1 digital is set in hexadecimal Table 2
37. work configuration on the upper left the mouse will change shape and that is to say it can be placed The second step is dragging data block into the data mapping table at the bottom left the table will change to green and that is to say it can be places mapping to the PLC memory Notel When require full word drag data module to the left bottom of table where the full word data module placed and the place should be paid attention to the location must to corresponding to gateway memory area where need full word in PMA 123 Note2 The address must be the same with the settings of module switches 12 Compiler and download into PLC 45 www sibotech net En SI b O Te C h PM 125 RS485 Profibus DP Adapter User Manual Appendix B Modbus Protocol Modbus RTU Protocol Note The equipments being connected with this product must have Modbus interface and Modbus protocol of the equipments must be in line with the following rules Our company provides customer oriented services 1 Description of protocol Physical layer transmission mode RS485 Address 0 247 Baud rate Can be canfigurated Medium STP Transmission mode Half duplex mode The connection is established throng one line with half duplex mode and that is to say that signals transmit through the only one line with opposite directions Firstly host computer find the only terminal and then the terminal transmits response signals on the opposite direction Protocol onl
38. www sibotech net En SI bo Te C h PM 125 R5485 Profibus DP Adapter User Manual OA SCOR coe ee ene er eee D MU ME CEU er 2 5 6 1 Save configuration PTOS dust ent esmn te dans entiere 27 LEE oia pei 27 I AO D E eee E m t 27 o COMORES laci n 28 39 Export excel ON a e 28 6 Working Principle of Modbus Master geseet See eebe t srr terser ege 30 TONNO O NOTTE 31 EE RRE EE 31 Aoi ee E 31 8 How Step Read and Write Gateway Da nn css 33 D ASE Te ZE 35 Sal Macho DS ION T Tm 35 9 2 Installation Ee o 35 10 Optional Device cccsccsccsccsccscescccscencescenceecesceccecesessescessscecessessessessescuseucs 37 Appendix A Using STEP 7 Set Profibus DP vissicssscssacescaccsessdecscadedavcsccsncdevesesectevessees 38 Appendix B Modbus POLE dansante tens anne ce ce te etes asie 46 www sibotech net En SI bo Te C h PM 125 RS485 Profibus DP Adapter User Manual 1 About This Manual 1 1 General This manual describes every parameter of the gateway PM 125 and provides using methods and some announcements that help users use the gateway Please read this manual carefully before using the gateway 1 2 Important user information The data and examples in this manual can not be copied without authorization Sibotech maybe upgrades the product without notifying users SiboTech js the registered trade mark of SiboTech Automation Co Ltd The product has many applications The users must make sure that all operations a
39. y allows the communication between host computers and terminals while the communications between terminals are not allowed Thus they will not occupy communication line when they are in the status of being initialized and respond the polling signals which are transmitted to the local terminal only Format of a data frame 1 bit start bit 8 bits data and 1 bit stop bit Format of a data packet paa pescar CE CT NN NN The protocol defines check code data serial and so on in details which are important contents when communicating specific data When data frames reach terminal they access to the equipment through a simple entrance The equipment delete the envelop of the data frame and read the data If there are no faults the required tasks are executed 46 www sibotech net En SI b O Te C h PM 125 RS485 Profibus DP Adapter User Manual Then it adds the data being generated by itself to the obtained envelop and return the data frame to the sender The response data include the address of terminal the executed function and the required data and a check code by executing the command Any faults won t lead to respond successfully Address field Address field is located at the beginning composed of 8 bits 0 255 These bits indicate the address of the terminal being specified by users The equipment will receive data from the host computer being connected with it Every address of terminal must be the on
Download Pdf Manuals
Related Search
Related Contents
Copyright © All rights reserved.
Failed to retrieve file