Home
piconet® – USER MANUAL FOR PROFIBUS-DP
Contents
1. 28 8 9 2 Parameterisation of an incremental encoder via GSx file eese teen 28 8 9 3 Parameterisation of an incremental encoder via the control 28 Setting the counter Value ie 28 Storing 30 8 9 4 Parameterisation of an incremental encoder via register communication ettet 31 Writing a password to register 31 Disabling the counter eterne nnne Switching from Encoder interface mode to counter mode D300776 0511 piconet PROFIBUS DP 8 1 8 1 General information The following chapter contains a detailed description of the connection of a piconet network to the controller S7 The Siemens controller Simatic S7 together with the CPU 315 2AG10 0ABO and the Simatic Manager V 5 1 Service Pack 6 is used in our example The piconet network contains the following modules Table 8 1 Module DP address Designation Function Model network 11 SDPL 0404D x00x 4DI 4 DO coupling module for PROFIBUS DP A 1 IP Link SNNE 10S 0004 RS422 485 Interface extension module A2 IP Link SNNE 10S 0002 RS232 interface extension module IP Link SNNE 40A 0009 Pt100 extension module
2. 8 2 8 2 Creating new Simatic 20 66 8 3 8 3 Importing the GSD file 8 4 8 3 1 Prior to sstarting the 50 aria 8 4 8 3 2 8 4 8 4 Hardware configuration 8 6 8 4 1 Configuration of a piconet 8 8 Configuration of the IP LiMK 8 8 8 5 Consistent data transmission 8 13 8 5 1 Consistent data transmission via Siemens function modules SFC14 and SFC15 8 13 D300776 0511 piconet PROFIBUS DP iii Table of Contents 8 7 8 8 1 8 8 2 8 8 3 8 8 4 8 8 5 8 8 6 8 9 8 9 1 8 9 2 8 9 3 8 9 4 9 1 9 1 1 9 1 2 9 1 3 9 1 4 9 1 5 9 1 6 9 1 7 9 1 8 9 1 9 9 1 10 9 2 9 2 1 9 2 2 SF end o cer li n i M M M E CE M Anche 8 13 8 14 Module access via a table of variables cccccccccccsccsscccscccscccccccccccccccccccsccccccccccescccccccssccsccoee 8 16 Parameterisation of the modules
3. 2 9 1 1 M M 2 9 1 2 Configuration of the piconet 2 9 1 3 Structure OF the 57 3 9 1 4 Reading out the IP Link 6 Reading out the IP Link configuration via variable 7 9 1 5 P Einkereset Q 9 9 1 6 gt 10 Writing the password into register 7 10 Activating the switch on off and reset threshold 11 9 1 7 Enabling the internal counter functions ss 9 1 8 Configuration 9 1 9 Programming eerte Writing the password into register 31 Setting the cycle Checking the 9 2 Application example counter module 9 2 1 Parameterization of a counter as stand alone module 17 9 2 2 Parameterization of a counter as extension module via register communication eee 18
4. 4 D300776 0511 piconet PROFIBUS DP 2 1 2 1 2 2 System overview piconet the smallest bus system within the TURCK programme offers I O modules with dimensions of only 210 175 126 x 30 x 26 5 mm ideally suited for application in serial machine engineering 8 the coupling modules as the interface between the fieldbus and the piconet fibre optic network E the extension modules connected to the coupling module as well as E the stand alone modules for direct connection to the fieldbus D300776 0511 piconet PROFIBUS DP System overview All connections are screw connections and feature protection degree IP67 Figure 2 1 PLC and PROFIBUS DP System overview interface Ld PROFIBUS connector IP20 D9T451 xM RKSWA51 xM RKM52 xM FKW FSW45 M12 RSF RKF57 22 RSM 2RKM50 RKM52 x RSM52 9 RKM52 x RSM52 BS4151 0 9 WKMS52 x WSM52 WKM52 xM FXDP FLDP BMWS8251 8 5 CEE Ij BL20 Power supply RSSW451 xM WSSW WSSWA51 xM 6 Eloy 2 50 WSSW WKSWA51 xM WAK3 x SSP3 S90 2 WKM52 x RSM52 WSSW WKSWA51 xM WSSW WKSWA51 xM WSSW RKSW451 xM SDPL SDPB ERN REP DP0002 SNNE SNNE SNNE 10S 0001 RKSWSA 5 5 RSSWS e RSS4 5 PDP TR IPSKP4 x S90 WSSW RKSWA51 xM piconete IP
5. Figure 8 7 Config SIMATIC 300 1 Configuration piconet_sicherung Configur ation oh Station Edit Insert PLC Options Window Help lal xl of the model plela 5 CAPE 92 network PROFIBUS 1 DP master system 1 E Additional Field Devices Eg vo H BLE TURCK DPB 40A 00 DPV 08000 000 DPB 0202D 0003 DPB 0008D 000x DPB 0404D 000x DPB 0002D 000x PB 404 000 DPB 044 000x SNNE 105 256 261 256 25 SDPB 105 0005 SOFE 105 0001 1 88 SDPB 105 000x 5 A SDPL 0404D 000x S NNE IOIA KEA EEA 2 m Gateway WNEI TU AC 277 27 J Compatible PROFIBUS D EI Closed Loop Controller EI Configured Stations DP VO slaves m DPS DP P Link 8DE 8Bit TE 8DE 8 Bit Digitale Inputs SDA 1777 8 Bit Diaitale Figure 8 8 2 11 SDPL 0404D x00x Configuration of the digital modules _Slot Order Number Designation Address Address Comment 105 0060 256 26 256 3 T in steps of 8 SNNE 105 000x 256 261 56 261 SNNE 105 000x 262 267 SNNE 406 000x 4x24 Bit In Out 288 270 268270 lt SNNE AIT 4424 Bit Aw 57588 424 Bit IAT GAME GOI UT EX SNNE 40 000 4x24 Bit In Out E SHINE GOI GE Bit IDA 2 amp MH Bit Ip AP au SANE LRRD LAT 8 Bit Digitale Inputs 8 Bit Digitale Inputs 15 SDA 8 Bit Diaita
6. Figure 10 2 WS KOP AWL FUP CYCL EXC DPV1_IP_Link SIMATIC 300 1 CPU 315 2 PN DP 0B1 SFB 5 2 gt Datei Bearbeiten Einf gen Zielsystem Test Ansicht Extras Fenster Hilfe Dat 5 4 Inhalt von Ungebung Schnittstelle Schnittstelle Name ES Neues Netzwerk TEMP Hg TEMP y FB Bausteine gy FC Bausteine y SFB Bausteine Gy SFC Bausteine 78 Mulinstanzen Bibliotheken CALL RDREC 2 Read a Process Data Record REQ zM20 0 ID 00 1687 8 INDEX 90 MLEN 48 VALID 20 1 BUSY 20 2 ERROR 20 3 STATUS 200 LEN 4 RECORD Werte Programm X Erwarteter Datentyp IN INT INT ID 2 Info 3 Quewveweise 4 Operandeninfo 5 Steuem 6 Diagnose 7 Vergleich Erwarteter Datentyp IN INT offline Abs lt 5 2 1 1 7 And The variables of the function block are defined as follows Table 11 Parameter name Meaning Input data SFB52 REQ REQ 1 starts the data transmission ID Logical address of the respective BLxx I O module taken from the hardware configuration When establishing a connection to the coupling module the logical address is the Diagnostic Address assigned in the hardware configuration Note Ifthe module to be addressed is an output module bit 15 has to be set e g for address 5 ID DW 16 8005 If the module concerned is a combination module the low
7. Using the function block 7 97 iru m Step7 reading the IP Link error counter from register table 90 Step7 reading IP Link error counter from register table 50 10 3 Reading IP Link errors using VT250 with CoDeSys 3 eee eese sete eese eese sees 10 3 1 Igea C Example network 10 3 2 Configuration of the station in CoDeSys 10 3 3 Reading the diagnosis via acyclic services Using the library lloDrvDPV1C1 library of CoDeSys Variable declaration 60 Example CoDeSys V3 reading the IP Link error counter from register table 10 15 CoDeSys V3 reading the IP Link error counter from register table 50 eee 10 16 D300776 0511 piconet PROFIBUS DP Table of Contents 11 Glossary 12 Index vi D300776 0511 piconet PROFIBUS DP Industri A 1 How to work with this manual 1 1 ruere Ta vH RETE 2 1 1 1 2 1 1 2 2 1 2 Meaning of the symbols used
8. Table 3 7 Slotnumber Index Byte Description Reading out the module 0 9 0 1 Description coupling module configuration 0 9 2 3 Module 1 0 9 46 47 Module 23 0 10 0 1 Module 24 0 10 47 46 Module 47 0 11 0 1 Module 48 0 13 47 46 Module 95 0 14 0 1 Module 96 0 14 30 31 Module 119 This information can also be written via DP V1 If the written configuration should not match the configuraiton on the table a DP V1 error message is generated 3 12 D300776 0511 piconet PROFIBUS DP Acyclic services via DPV1 Industri A IP Link reset If via the GSD file the parameter Restart after IP Link error is set to manual reset the IP Link reset can be activated with the following DP V1 parameters After an IP Link interruption and it s elimination the IP Link can be restarted Table 3 8 Slot Index Byte Description IP Link reset number 0 99 0 2 0 99 1 1 0 99 2 0 0 99 3 0 Access to module registers The registers of the extension modules can be red or written Table 3 9 Slot numberIndex Description Access to module registers 1 0 Register 0 of module 1 channel 1 1 1 63 Register 63 of module 1 channel 1 1 64 Register 0 of module 1 channel 2 1 1 255 Register 63 of module 1 channel 4 2 0 IP Link Register 0 of module 2 channel 1 from here on only for IP Link 2 255 255 Register 63 of module 255 channel 4 D300776 0511 p
9. Industrial Automation piconet USER MANUAL FOR PROFIBUS DP All brand and product names are trademarks or registered trade marks of the owner concerned Edition 05 201 1 Hans Turck GmbH Muelheim an der Ruhr rights reserved including those of the translation No part of this manual may be reproduced in any form printed photocopy microfilm or any other process or processed duplicated or distributed by means of electronic systems without written permission of Hans Turck GmbH amp Co KG Muelheim an der Ruhr Subject to alterations without notice Industri A Prior to installation Disconnect the device from the power supply Protect against an accidental restart Verify safe isolation from the supply Cover or separate adjacent live components by a barrier Follow the specific mounting instructions of the device Only appropriately qualified personnel according to EN 50 110 1 2 VDC 0105 part 100 is permitted to work with the device system Please ensure that you are free of static charge prior to touching the device when carrying out installation Connecting cables and signal lines must be installed in such a manner that inductive and capacitive interference do not impair the automation function Install automation equipment and related operating elements in such a way that they are protected against unintentional operation In order to ensure that a signal line or wire b
10. Table 9 14 register Designation Memory threshold value register RO Switch on threshold value low byte RAM register R1 Switch on threshold value high byte RAM R2 Switch off threshold value low byte RAM R3 Switch off threshold value high byte RAM R4 Switch off threshold value low byte RAM R5 Reset threshold value high byte RAM R35 Switch on threshold value low byte EEPROM R36 Switch on threshold value high byte EEPROM R37 Switch off threshold value low byte EEPROM R38 Switch off threshold value high byte EEPROM R39 Reset threshold value low byte EEPROM R40 Reset threshold value high byte EEPROM Note The changes in registers 35 to 40 will only be valid and copied to the module s RAM and thus to register 0 to 5 after a power reset Attention Setting the threshold values should not be done directly in registers 0 to 5 In case of a power reset the actual changes in the RAM could be overwritten with invalid EEPROM values from registers 35 to 40 lt 0300776 0511 piconet PROFIBUS DP 9 21 8 Switch on threshold value 25 pulses Table 9 15 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Writing register 35 control byte 1 1 1 0 0 0 1 1 data byte 0 memory byte 119 25 dec 0x19 hex Table 9 16 Bit7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Data byte 0 memory byte 0 0 0 1 1 0 0 1 119 Figure 9 24 a iB xd Switch on thresho
11. M 9 7 7 Analogue output modules 5 04 000 10 7 8 Technology 065 7 8 1 Sxxx 10S 0001 Incremental encoder interface 7 8 2 5 105 0002 RS232 interface n R5422 485 105 0004 7 8 3 7 84 105 0005 SSI interface 0 00 7 8 5 Sxxx 0002D 0002 pulse width output 24 VDC 2 5 14 7 8 6 5 00020 0003 up down counter 24 VDC 15 D300776 0511 piconet PROFIBUS DP 7 1 7 1 7 2 Introduction The chapter describes the bus specific bit assignment of theuser parameters of the individual piconet modules Attention AN Alongside the parameter which are defined via the GSD file of the modules and that can be be modified with the configuration software many modules have parameters that can only be changed via the register communication In this case the parameters are contained in the register descriptions of the respective modules in the Module Manual of the product series piconet TURCK document number D300777 German D300778 English Note i A more detailed description of the individual parameters their settings and their impact on the system is contained in the annex of the I O Module Manual TURCK document number D300777 German D300778 English D3007
12. 92 xe PROFIBUS 1 DP master system 1 E G3 Additional Field Devices Ec vo 2 8167 a TURCK 9 08 SDPB 40A x00x DPV SDPB 0800D 000x SDPB 0202D 0003 SDPB 0008D 000x SDPB 0404D 000x SDPB 0002D 000 SDPB 404 000x 0 04 000 SDPB 105 0005 SDPB 105 0001 ISNNE 404 000x 4x24 In Dut Bl SDPB 105 000x SNME GI AE 9 Fn 50 1 04040 000 SANE MI HR 458 5 08 Gateway md SINNE GOI e 428 Bit In 0 PLC ISNNE 404 000x 4x24 In Out m Compatible PROFIBUS D ONNE GOA dd E NAG 9 Closed Loop Controller SNNE M UID dc BRD AP a Configured Stations gt SNE BOS OO BR IIT a DP VO slaves ISNNE 0202D 0003 LQ DP AS i SANE REO 2S I ink 22 8 Bit Digitale Inputs 8 Bit Digitale Inputs 8 Bit Diaitale Qutputs Press F1 to get Help 8 After having completed the network configuration it is stored and loaded to the controller via the command PLC gt Download 9 Forthis select the destination station in the pop up window and the following window the node address for connection to the destination station In this case it is the MPI with the node address 2 Figure 8 11 cee x Connection to the Over which station address is the programming device connected to the module CPU 315 2 DP destination station Rack ra Slot 2 Target Station Local 8 12 Can be reached by means of gateway Connection to target station Type
13. Value 0x80 Table 9 30 Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Register 32 High byte 1 0 0 0 0 0 0 0 Bit 15 0 encoder interface Bit 14 to Bit 12 00 reserved Bit 11 Bit10 O quadruple evaluation of the encoder signals A B C Bit9 Bit8 1 reserved Figure 9 33 variable beobachten und steuern AT_1 iconet Writing register 32 Tabele Bearbeiten Einf gen zielsystem Variable Ansicht Extras Fenster Hilfe 5 Dista a salele 2 ve Sy ar GA __ 4 Operand Symbol Anz Statuswert Steuerwert 508 105 0001 Inkremental Encoder J Lesen 1M Mw 46 HEX WHIEHODOD 145 MB 180 Status BIN 280000 0000 146 MB 181 Di DEZ MB 182 DO DEZ MB 183 02 BIN MB 184 D4 DEZ MB 185 03 DEZ schreiben Mw 48 HEX MB 190 Control BIN 191 Reg1 BIN 28 192 0 BIN 0000_00 193 HEX 194 HEX Piconet SIMATIC 300 1 157 Programm 5 Note The settings done in R32 become only valid after a power reset at the module The module now changes to process data exchange The counter will now be disabled as long as a high signal at the gate input occurs With a new signal change at the input High Low the counter will again be disabled 9 32 D300776 0511 piconet PROFIBUS DP Application example incremental encoder Industri A Switching Encoder interface mode to counter mode Switching from the encoder interface mode to the count
14. 7 2 7 2 Module independent user 665 3 3 IP Link coupling module 521 0404 00 2 eee e ee eee ense osos sss 7 4 7 4 Digital stand alone modules ee 7 5 7 5 Digital extension 010165 e ecce eec eee eee eee eee eee eee ee eee e eee ee eese eese eese e eee se 7 5 7 6 Analogue input modules 40 000 ee eee eee ee esee assesses ese ss ess sss osse osse sss se sess sess esses esas 7 6 7 6 1 Dec 7 6 7 6 2 Sxxx 40A 0005 7 6 3 Sxxx 40A 0007 7 6 4 SXXKHAQA OOOO ia 7 9 7 7 Analogue output modules 04 000 ssssrrrrrrrrererece cere renesesececeee eee nenenenesecneee sesso neneneeneneee 7 10 7 8 Technology 06 nane nane enna nananana rreneseneeseneseeneceseseenese nese neoeesesesenseseenso 7 12 7 8 1 5 105 0001 Incremental encoder interface 0 7 12 7 8 2 7 7 12 7 83 105 0004 RS422 485 7 13 784 SXXX 10S 00057SSIl a aaa 7 14 7 8 5 Sxxx 0002D 0002 pulse width output 24 VDC 2 5 7 14 7 8 6 5 00020 0003 up down counter 24 VDC 7 15 8 Application example piconet with S7 8 1 General information
15. 1 2 2 1 1 1 1 1 2 Projecting guidelines Product 1 2 1 2 Meaning of the symbols used eee eee ette neneenececeseeseneneneneneceese esee eneenenaneceeeeocese 1 3 1 3 Release status and 6 5105 eee e eee ee eee eee eee e nee ese eoo eese eee ee eee eee ee eee e eee eese eee sP ee ese esee 1 3 1 Documentation es 1 3 2 Firmware and hardware status 1 4 List 01 Revisions 0 1 5 2 The piconet system 2 1 System 0 16 2 2 2 1 1 Coupling and stand alone 2 4 2 1 2 Extension network 7 7 7 7 9 2 4 2 1 3 e M 2 4 3 PROFIBUS DP 3 1 System description 3 2 3 1 1 3 1 2 1 Module addressing in DP V1 s 3 1 3 Mast r slav
16. 3 1 3 Release status and versions eene eee eee ee ee ee ese ee eee seo ee e eee eee eese eee eeO eese eee oee 4 1 3 1 4 1 3 2 Firmware and hardware status 4 Downward COMPAtiID lIty A reeieeecieezeeeene 4 1 4 List Of REVISIONS e eee ee eee uosis eee eee se Pee esee eee sese 5 D300776 0511 piconet PROFIBUS DP 1 1 1 1 Introduction Attention Itisindispensable to leasethis section because the safety in dealing with electrical equipment should not be left to chance This manual contains all information pertaining to safe and proper operation of piconet modules for PROFIBUS DP It was specially edited for qualified staff with the required specialised knowledge 1 1 1 Correct usage to the intended purpose Danger The devices described in this manual may only be used in such applications described in the technical sections of the manual and only in conjunction with certified external devices and components Correct and safe operation of the devices relies on appropriate transport and storage correct set up and installation as well as careful operation and maintenance 1 1 2 Projecting guidelines Product installation Danger Itisindispensableto observe the applicable safety and accident prevention regulations ofthe specific application 1
17. 5 3 3 5 105 0004 RS422 485 interface 5 3 4 5 105 0005 SSI INterfACC 5 3 5 Sxxx 0002D 0002 pulse width output 24 VDC 2 5 14 5 3 6 Sxxx 0002D 0003 up down counter 24 VDC wu esssessssecssssssesssesssessscsssessscsssecssecsssssuessuessnecssessuecsuecesesuecssecsnecsscesneessecssecsseesseess 15 D300776 0511 piconet PROFIBUS DP 5 1 5 1 Data mapping Coupling modules First all byte oriented modules are registered in the process image The are registered according to the order in which they are physically installed within the IP Link ring Next come the bit oriented digital modules according to the order in which they are physically installed within the IP Link ring 5 1 1 Mapping of process data via byte alignment Byte alignment is activated and de activated via the coupling module It is permitted to map the user data as shown in the following tables Note ET Byte alignment can only be activated for PROFIBUS DP modules For DeviceNet only the setting not active is admissible This function is offered by all SDPL 0404D x00x modules with the software version 1 Dwwxx1yzz This setting refers to the entire modular extension network coupling module SDPL 0404D x00x including extensions SNNE 0404D 000x Bytealignment not active Default setting The coupling module SDPL 0404D x00x and the extension module SNNE 0404D 000x map 4 bits input and 4 bit
18. Selection of the By Station Edit Insert PLC Options Window Help 8 lt Mounting rack S 32 Profile Standard PROFIBUS DP PROFIBUS PA Ef SIMATIC 300 300 cPu 300 Cg FM 300 E Gateway IM 300 M7 EXTENSION E Ps 300 E C3 RACK 300 B Rail 5 300 SIMATIC 400 SIMATIC PC Based Control 300 400 A SIMATIC PC Station BES 390 12220 04A0 Available in various lengths xl Insertion possible 7 8 6 D300776 0511 piconet PROFIBUS DP Hardware configuration 3 Then the CPU type is determined In our example a CPU 315 2AG10 0ABO is used Drag the according entry from the hardware catalogue to the 2nd position of the mounting rack in the station window 4 Inthe pop up dialogue window Properties PROFIBUS interface DP please define the PROFIBUS address of your control system and then select the subnet Possibly a new subnet must be added via the button New 5 Thecharacteristics of the subnet such as the transmission speed and profile can be determined via Properties in the window Properties PROFIBUS These can differ system specifically from the specifications made here x Properties ofthe i subnet General Network Settings Highest PROFIBUS Boi Address 126 2 Transmission Rate 33 75 Kbps 187 5 Kbps 500 Kbps 3 Mbps Mhns zl Profile Standard Univers
19. lr VT250 CoDeSys V3 m IP Link modules M Manufacturer specific diagnosis 6 8 6 10 Mapping Mounting P Parameter data errors 6 3 D300776 0511 piconet PROFIBUS DP Industri A 5 safety regulations Set up sciencia SFB52 RDREC eene tenente tenent tentus SFB53 RWRREC E ce Specialised knowledge Staff qualified storage 5 0 5 system configuration PROFIBUS DP 3 4 system expansion 3 5 System overview PROFIBUS DP ses 3 2 T Table of variables 8 16 topology PROFIBUS DP 3 5 transmission rate PROFIBUS DP eese 3 6 Trouble shooting 20 tenentes 6 5 U Us r parameters acies eine teste creta tte eire ie ice User parameters analogue input modules da User parameters analogue output modules 7 10 User parameters coupling module 7 4 User parameters extension modules 7 5 User parameters module independent 7 3 User parameters stand alone modules User parameters technology modules 12 1 12 2 0300776 0511 piconet PROFIBUS DP Industrial Automation www turck com Hans Turck GmbH amp Co KG
20. 9 27 9 4 Parameterization of an incremental encoder via 9 27 9 4 1 Parameterization of an incremental encoder via the control byte eerte 9 27 9 4 2 9 27 Setting the 9 28 7 9 30 8 09 Parameterization of an incremental encoder register communication 9 4 3 9 30 31 Writing the password into register Disabling the co nter eer rrt rti aaa 9 31 9 33 Switching 10 IP Link diagnosis via acyclic services S7 and VT250 10 1 A PR E A 10 2 10 1 1 10 2 EP icIiurninreiumme 10 2 GS D TIES f M 10 2 10 1 2 Function blocks for acyclic services 10 2 10 1 3 General structure of the data in the register 10 3 Register table 90 general 10 3 Register tables 50 60 error counter of the extension 10 4 10 2 Reading IP Link errors using the S7 with Step7 eee eese eese nasse enun 10 2 1 Example network MM 10 2 2 Configuration of the station in Step7 10 2 3 Reading diagnosis acyclic services
21. To achieve this function block SFC15 is added to the project SFC15 In register communication SFC15 serves for writing module specific settings and parameters Figure 9 12 function TESI schreiben SNNE 0202D 000x Kanal 1 block SFC15 Konsistente Prozessdatentibertragung via SFC 15 Prozessadresse 292 dez 124 DPWR_DAT W 16 124 RET VAL 28 115 0 BYTE 5 Add the function block SFC15 using the Call SFC15 command Table 9 8 Parameter name Meaning Notation Parameters of function block LADDR Configured start address from the process image Example SFC15 output area of the PLC to which the data will be W 16 124 written RECORD Source area for the user data to be written Example The entry of the user data data length in byte is P M 115 0 BYTE 5 important RET_VAL If an error occurs while the function is active the for example MW 28 return value contains an error code In order to have access to the module s control byte the following entries have to be added to the variable table 9 12 D300776 0511 piconet PROFIBUS DP The first byte in the write area is always the control byte of the respective module The modules in and output data follow this byte 6 The control byte is written with 2 0000 0001 using the variable table Figure 9 13 2 Bi Enabling via bit Tabelle Bearbeiten Einf gen Zielsystem Variable Ansicht Fenster
22. 1 D300776 0511 piconet PROFIBUS DP 5 5 2 Module parameter byte alignment not active default and byte half used 4 bits input and 4 bits output data are mapped Table 5 9 Bit4 Bit 3 Bit 2 1 Bit 0 Data in the process image Input Byte 0 COPA Is used by the physically preceding bit M8 x 1 oriented extension module on the IP Link connector Byte 0 4 12 1 Output Byte 0 4 4 M8 x 1 Byte 0 2 4 12 1 3 Module parameter Byte alignment active 1 byte input and 4 bits output data are mapped Table 5 10 Bit 0 Data in the process image Input ByteO 4 female M8 x 1 connector Byte 0 COP4 M12 x 1 Output 0 idle M8 x 1 Byte 0 idle M12 x 1 8digital combined inputs outputs 8 Table 5 11 Bit 0 Data in the process image Input Byte 0 COPA C female Output Byte 0 COP2 connector P 8digital combined inputs outputs IP20 terminals Table 5 12 Bit 0 Data in the process image Input Byte 0 COP1 C feriale Output Byte 0 1 1 P 5 6 0300776 0511 piconet PROFIBUS DP Data mapping Stand alone and extension modules Industri A 5 2 4 Analogue input modules Note The data mapping of all analogue input modules is identical E Compact evaluation in the MOTOROLA format Default mapping Tab
23. Binary code for reproduction of integers Two consecutive values only differ in a single bit Ground All linked inactive parts of an electrical apparatus which will not assume a touch voltage even in the event of an error Ground reference plane Ground potential in the proximity of earthing systems In contrast to the earth whose potential is always zero it can have a different a potential than zero D300776 0511 piconet PROFIBUS DP 11 3 Grounding strip Usually a flexible braided conductor that connects the inactive parts of the electrical equipment e g the door of a switching cabinet with the switching cabinet corpus Grouping A power supply module forms a new potential group Thus the load and sensor supply can be fed separately GSD The German term for device data base file DDBF The GSD file contains standardised descriptions of PROFIBUS modules GSD files are used to simplify configuration of the DP master and the DP slaves Half duplex Physical or logical connection of two terminal points to establish a data transmission channel In contrast to full duplex operation data can be transferred in both directions but however not simultaneously Both terminal stations are equipped with a switch to toggle between sending and receiving data Hexadecimal Numerical system with 16 as basis One counts from 0 to 9 and then continues with the letters A B C D E and Hysteresis An encoder can stop at a certa
24. Figure 9 15 KJ SIMATIC Manager DPY1_piconet C Programme Siemens Step 57Proy DP 1 e xj Function blocks of Bp Datei Bearbeiten Einf gen Zielsystem Ansicht Extras Fenster Hilfe 8 x the program 2194 Sa Soft foi DPY1_piconet CH SIMATIC 300 1 ml CPU 315 2DP Egg Programm 1 gj Quellen Bausteine Dr cken Sie F1 um Hilfe zu erhalten Writing the password into register 31 Input parameters Table 9 9 Parameters Meaning Input parameters ID Logical address of channel 1 1004 6 INDEX Register number see sectionDP V1 functions page 3 1 1 Index 1 LEN Length of the data to be transferred Register 2 byte RECORD Memory area for the read data Figure 9 16 1081 1 40A 0005 57 300 1 CPU 315 2 DP Password in gt Datei Bearbeiten Einf gen Zielsystem Test Ansicht Extras Fenster Hilfe register 31 5 e Cl 2 410 Password 1235 OBl Main Program Sweep Cycle B logicaladdress ofthe module Hetzwerk 1 Passwort in den DB153 laden Byte 18 35 und Byte 19 12 of the module Kommentar register number D Length of the data to be transferred 2 byte Netzwerk 2 Azyklisch schreiben Passwort 8 B M4 0 DB153 DBXl 0 0 DB153 DBX1 REQ DB153 DBXl Y 0 1 lr DB153 DBXl rex ER
25. Index to write 38 tUrite wLen wiriteLen Len to Write 39 tWrite pBuffer ADR abyUriteData 0 Write Buffer 40 41 Call DIVI Ci Write 42 CIFX PB IoDrvDPVl Cl M Write tUrite 43 bg 5 Figure 10 8 Example program ADP address byStation Address BSlot no ofthe coupling module bySlotNr CNo of the register table to be read DLwLen 10 14 DPV1 Datei Bearbeiten Ansicht ico project CoDeSys Projekt Visualisierung Erstellen Online Debug Tools Fenster Hilfe 5 m4 5 REOR 50 Ger te 22 pico sPS Logik Bibliotheksverwalter E PLC PRG PRG 28 Taskkonfiguration MainTask Visualization Manager 84 visualization CIFX PB spp 04040 x00x SDPL 0404D x00x 50 Erweiterungsmodul 3 SNNE 40A 000x Koppelmodul Inputs 8 Bit Digitale Inputs Koppelmodul Outputs 8 Bit Digitale Outputs Erweiterungsmodul 1 8 Bit Digitale Inputs Erweiterungsmodul 2 Inputs 8 Bit Digitale Outputs Erweiterungsmodul 2 Outputs 8 Bit Digitale Inputs Erweiterungsmodul 4 8 Bit Digitale Outputs o6o0o0o0o00 LIE PLCPRG 50 04040 0 g Task Configuration Erweiterungsmodul X Slave 15 Slot 0 B Index 50 6 RdLen 48 D OPState 2 D300776 0511 pi
26. WHHBHOOOO MB 120 280000 0010 MB 121 HEX BHIGHOO MB 122 HEX 8816800 MB 123 HEX 8816800 MB 124 HEX 50 write Mw 32 HEX WBIBHODOD MB 125 BIN 280000 0001 280000 0001 126 HEX 8816800 MB 127 HEX 8816800 MB 128 HEX 8816800 MB 129 HEX O 80 81 84 85 86 88 89 90 EN Reaching the reset threshold 7 After 100 counted pulses the count in data byte 0 here 124 is reset to O 8 Thecounter starts counting upwards from 0 on D300776 0511 piconet PROFIBUS DP 8 27 8 9 8 9 1 8 9 2 8 9 3 8 28 Application example SSI module The SSI module must be parameterised via the register communication or via the software I O ASSISTANT The multiturn encoders cannot be parameterised directly via the piconet module Configuration can only be carried out e g f r K bler encoders by the free parameterisation tool for multiturn encoders i e the software Ezturn Note When using the piconet SSI module 5 105 005 please ensure that the settings of the communication parameters output format single or multi turn baud rate data length etc of the module and the used SSI encoder accord with each other This applies to all parameter settings of the feature register register 32 the baud rate register register 33 and the data length register register 34 Note i Detailed information on the module register assign
27. Anzeigeformat Statuswert Steuerwert BOOL re true BOOL CALL RDREC DBSZ BOOL BOOL BOOL REQ 20 0 ID DW 16 7FB INDEX MLEN BOOL BOOL BOOL VALID BUSY ERROR STATU LEN RECORD Werte 0 2 DB11 DEW 4 HEX DB11DBEW 6 HEX DBi1DBW 8 HEX 0811 10 16 8232 LInerwartetes Dateiformat E 2 EJ WIN 3 Querverweise The read are displayed in DB11 4 Operandeninfo S amp Steuem amp Diagnose 7 Vergleich Abs lt 52 1127 Einfg The error counter DB11 DBW10 shows that error streams arrive at the coupling module and that the IP Link communication is disturbed D300776 0511 piconet PROFIBUS DP 10 9 Step7 reading the IP Link error counter from register table 50 For reading register table 50 the following entries have to be done ID 7FB diagnosis address of the coupling module INDEX 50 MLEN 48 Table 10 2 ES KOP AWL FUP_ Reading register 9 uo ne ORG ata Dee oS table 50 SEP IS Inhalt von Umgebung Schnittstelle 9 Neues Netzwerk Hat TEMP FB Bausteine FC Bausteine HE SFB Bausteine 9 g SFC Bausteine 8 Multinstanzen Bibliotheken Tabelle Bearbeiten Einf gen Zielsystem Variable Ansicht Extras Fenster Hilfe ax a olla e E 2 Sila op
28. Bit 7 1 Register communication is activated Bit 6 1 Register is written Bit 5 uptoBitO 32 dec Register number In our example the configuration of the feature register of the incremental encoder results in the following settings Lowbyte Data byte 0 in the example MB 119 Value 0x02 Table 8 26 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Register 32 low byte 0 0 0 0 0 0 1 0 Bit 7 0 reserved Bit 6 Bit 5 0 reserved Bit 4 0 External latch function active Bit 3 Bit 2 0 Status input active low is inserted in the status byte bit 5 Bit 1 1 Counteris inhibited with a low level at the gate input Bit 0 0 reserved 8 32 D300776 0511 piconet PROFIBUS DP Application example 551 module High byte Reg 1 in the example MB 191 Value 0x80 Table 8 27 Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Register 32 High byte 1 0 0 0 0 0 0 0 Bit 15 0 Encoder interface Bit 14 uptoBit 12 O reserved Bit 11 Bit10 O 4 fold evaluation of the encoder signals A B C Bit9 Bit8 1 reserved Figure 8 29 n Writing the xi register 32 j amp jAddress Disp Status value Modify value c Az n SDBP 105 0001 incremental encoder Mw 46 HEX W 16 0000 MB 180 BIN 280000 0000 MB 181 DEZ 0 MB 182 DEZ 0 MB 183 BIN 280000 0001 MB 184 DEZ 0 MB 185 DEZ 0 Mw 48 HEX 4680000 MB 190 BIN MB 181 BIN MB 192 BIN MB 193
29. US SME SON LN RODD 2 D SIME AIA 400 II 2 ro SHINE AE Aen NNE A E Rn 9 Press F1 to get Help 4 2 3 Consistent data transmission The communication of the S7 controller with the piconet modules in the complex mode requires consistent data transmission In order to ensure consistent data transmission the Siemens function blocks SFC14 and SFC15 are used within an organisation block These are standard program components of the Simatic Manager 4 2 4 Consistent data transmission via Siemens function blocks SFC14 and SFC15 The function blocks SFC14 and SFC15 must be copied to the project and called up via the organisation block In this example the function blocks are added to the OB1 of the project With the help of these two function blocks the data for register communication are read and written consistently SFC14 The SFC14 is needed to read the module specific settings and parameters in the register communication Figure 4 9 CALL DPRD DAT Function LADDR 6 block SFC14 RET VAL MW10 RECORD P M 100 0 BYTE 6 NOP 0 0300776 0511 piconet PROFIBUS DP 4 7 Call up the function block the command Call 5 4 Table 4 2 Parameter Meaning Notation Parameters ofthe name function block SFC14 LADDR Configured start address of the module from the entry is written in an input data mem
30. eee ee eee eene esee esee osse etes eee e eee eee e eee 8 18 Application example counter 01 Parameterisation of a counter as a stand alone module via GSx file Parameterisation of a counter as an extension module via register communication Writing a password to register Activation of the switch on switch off and reset thresholds Writing the feature register register 32 Setting the switch on switch off and reset thresholds Monitoring the counting procedure Reaching the switch on threshold ccssssssecsssscsssccsssccescccssccessccsssccsseccsseecsuecessecessecessecssscesaeesueesascesaseesseecesceesneecsneeesnsees Reaching the reset threshold tr et t o ii e RE eet ditur siet te ee seu ttes Application example SSI module 8 28 8 28 Parameterisation of an incremental encoder GSX 8 28 Parameterisation of an incremental encoder via the control 8 28 Setting 78 7 8 28 Storing the COUNtEr VAalUC essesssssscsssecsseecsssecsssccsssccsseccssccessccessccssnecssuccesuecsssecsssecsssccssscesuscesssecsusccsusecsseceesecsusessnseesnscessses 8 30 Parameterisation of an incremental encoder v
31. Writing the password into register 31 sten 18 9 2 3 Activating the switch on off and reset threshold 19 Writing the feature register 19 9 2 4 Activating the switch on off and reset threshold 21 9 2 5 Enabling the internal counter functions essent ntes ttes tttt nonni tttt nono tts notte no nttts noo ttts nonis 24 9 2 6 Monitoring the count operation via the variable 24 Reaching the switch on threshold value 24 Reaching the switch off 24 Reaching the reset threshold 25 9 3 Application example SSI 016 ees ss ess osse osse osse esses sess ess aae 26 9 4 Application example incremental encoder ee eee eese sese sese sese sees osse nose osse ssssese 27 9 4 1 Parameterization of an inc
32. i e all analogue modules and all technology modules of the IP Link ring must be selected Note It must be ensured that the order of the extension modules in the configuration software accords exactly to the physical order of the modules in the IP Link network Table 4 1 Module order Order in the IP Link 1 byte oriented modules according to their physical order 2 digital input modules according to their physical order 3 digital output modules according to their physical order After the byte oriented modules have been configured the digital modules are integrated into the IP Link D300776 0511 piconet PROFIBUS DP piconet connection to the Siemens PLC type 57 The input and output channels are always configured in steps of 8 to maintain a better overview and clearer assignment of the input and output bytes Note i To configure the digital modules in steps of 8 the byte alignment of the coupling module must be activated Figure 4 8 SHW Config SIMATIC 300 1 Configuration piconet_sicherung Station Eck Insert Yew Options Window Hep 181 IP Link network mie cof T DP sp TE 12 SOPR h 13 SDPR TURO PROFIBUS DP I Additional Field Devices 50 40 0000 SOPB 044 000 SOPB 105 0005 SOFB 105 0001 SOPB 105 000x SOPL 0404D 000x VS gt AME MOM ON 42 RA IO
33. modules as slaves To register the piconet modules as slaves select the required entries in the hardware catalogue under Further field devices Figure 4 7 HW Config SIMATIC 300 1 Configuration piconet 1 lO xl Selection of the Ql Station Edit Insert PLC Options Window Help 1 xi piconet module Diae 81 8 slave PROFIBUS 1 DP master system 1 Profile Standard X PROFIBUS DP 51 28 Additional Field Devices Ec vo amp 1 0 H TURCK SDPB 0002D x00x SDI SD 3 SDI ZSC m SDPB 044 x00x m SDPB 0800D x00x m SDPB 10S x001 SDPB 105 005 SDPB 10S x00x SDPB 40A 00x SDPB 404 x00x DPV1 m SDPL 0404D x00x SDPL 0404D x00x EQ Gateway 1 H E PLC us B a o PROFIBUS DF Slot Order Number Designation Address Q Address Comment a CiR Objekt 7 FEY SOF ROARED OOF Ap RE RE 9 Closed Loop Controller 2 n Aoc pes DI Configured Stations X Press F1 to get Help cha 4 Configuration of the stand alone modules piconet stand alone module can be moved via drag amp drop from the hardware catalogue to the PROFIBUS master system in any order IP Link network configuration When setting up an IP Link network first the coupling module is configured Then the extension modules are added to the coupling module First the byte oriented piconet modules
34. show the assignment of the input and output data to the data bytes Figure 8 28 Password in 4 register 31 __ Address Disp Status value Modify value SDBP 10S 0001 incremental encoder ARegister 31 BReg 1 144 Mw 46 HEX 81680000 CReg 0 MB 180 BIN 280000 0000 ul dala min MB 181 DEZ 0 MB 182 DEZ D MB 183 BIN 280000 0001 MB 184 DEZ 0 MB 185 DEZ 0 Mw 48 HEX MB 190 BIN MB 191 BIN MB 192 BIN MB 193 HEX MB 194 HEX MB 195 HEX EE 4 e e BHODOD 2 0000_0000 291110 0000 SS ajo WIN e B 16400 B 16400 B 16400 ee nun c 4 0300776 0511 piconet PROFIBUS DP 8 31 Disabling the counter The counter of the incremental encoder can be disabled either via a high or a low level at the gate input depending on parameterisation In our example the counter is to be inhibited with a low level at the gate input The module is parameterisated via the feature register R32 Access to the registers of the module is enabled via call up of the register communication a write or read command and entry of the register number in the control byte of the respective module Writing the feature register register 32 The parameters in register 32 are transferred to the module via the control byte as follows Table 8 25 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Writing the register 32 1 1 1 0 0 0 0 0 control byte
35. threshold 1 12 13 Channel 2 threshold 2 14 15 Channel 3 threshold 1 16 17 Channel 3 threshold 2 18 19 Channel 4 threshold 1 20 21 Channel 4 threshold 2 7 8 D300776 0511 piconet PROFIBUS DP Analogue input modules Sxxx 40A 000x Industri A 7 6 4 Sxxx 40A 0009 The modules feature the following module specific parameters Note E The adjustments which are made in byte 1 apply to all other channels of the module Table 7 6 Byte Bit Parameters Parameters Sxxx 40A 0009 1 3 0 Channel 1 RTDA ADefault 0000 Pt 100 setting 0001 Ni 100 0010 Pt 1000 0011 Pt 500 0100 Pt 200 0101 Ni 1000 0110 Ni 120 0111 RSNE1000 1000 10 5000 Ohm 1001 10 1200 Ohm 4 Channel 1 Siemens additional bit 0 is notactive A 1 5 active 5 Channel 1 overrange protection 0 is not active 1 is active A 6 Channel 1 3 wire 0 is notactive A 1 5 active 7 Channel 1 2 wire 0 is notactive A 1 is active 2 Bit assignment of channel 2 identical to channel 1 3 Bit assignment of channel 3 identical to channel 1 4 Bit assignment of channel 4 identical to channel 1 D300776 0511 piconet PROFIBUS DP 7 9 7 7 Analogue output modules Sxxx 04A 000x Sxxx 04A 0007 The modules feature the following module specific parameters Table 7 7 Byte Bit Parameters Parameters Sxxx 04A 0007 0 3 Ch
36. 0x64 hex Table 8 17 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Data byte 0 MB 119 0 1 1 0 0 1 0 0 Figure 8 22 Reset threshold GlAddress Disp Status value Modify value SDPB 0202D 0003 Counter Channel 1 read Mw 30 HEX 1680000 MB 120 HEX 8816800 MB 121 HEX 8816800 MB 122 HEX 8816800 MB 123 HEX 8816800 MB 124 HEX 8816800 write Mw 32 HEX W 16 0000 MB 125 BIN Li MB 126 HEX B 16 00 MB 127 HEX 8816800 MB 128 DEC MB 129 DEC m 78 80 84 85 86 83 30 Attention Carry out a power reset to transfer settings from registers 35 to 40 to registers 0 to 5 of the module D300776 0511 piconet PROFIBUS DP 8 25 8 8 5 Enabling the internal counter functions 1 Priorto taken the counter in operation the internal functions of the counter i e the parameter settings must first be enabled via the enable bit bit 0 in the control byte 2 Forthis the control byte is overwritten via the table of variables with 2 0000 0001 Figure 8 23 Enable via bit 0 of the control byte nl x siters Sous Maty vater SDPB 0202D 0003 Counter Channel 1 Mw 30 HEX WHIBHODUD MB 120 HEX 8816800 MB 121 HEX 8816800 MB 122 HEX 8816800 MB 123 HEX 8816800 MB 124 HEX 8816800 write Mw 32 HEX W 16 0000 MB 125 BIN 280000_0000 250000 0001 MB 126 HEX 8816800 MB 127 HEX 8816800 MB 128 HEX 8816800 MB 129
37. 2 2 Configuration of the station in Step7 When configuring the piconet station please observe that analog channels always have to be configured before the digital channels see figure Figure 10 1 i HW Konfig SIMATIC 300 1 Konfiguration IP Link Con figura tion f Station Bearbeiten Einf gen Zielsystem Ansicht Extras Fenster Hilfe Operand Symbol Anzeigeformat Statuswert Steuerwert the station in 200 BOOL uu tue Step7 CPU 315 2 PN DP MPI DP Pott RR 2 PROFIBUS 1 DP Mastersystem 1 gt 15 SDPL4 3 4 5 6 7 8 3 1 1 zs lt 15 50 04040 00 lt Steckplatz DP Kennung Bestellnummer Bezeichnung E Adresse Adresse Kommen SNNE 404 000x 256 257 A WNE DONO o WNE GOI Ae co INNE GAI Ae 8 Bit Digitale Inputs 8 Bit Digitale Outputs 8 Bit Digitale Inputs 8 Bit Digitale Qutputs 8 Bit Digitale Inputs 10 8DA 8 Bit Digitale Outputs Dr cken Sie F1 um Hilfe zu erhalten 10 6 D300776 0511 piconet PROFIBUS DP Reading IP Link errors using the S7 with Step7 example 10 2 3 Reading the diagnosis via acyclic services Using the function block SFB52 For acyclic reading of the IO Link diagnosis SFB52 is called of the project see also section Structure of the S7 program page 9 3
38. 2 D300776 0511 piconet PROFIBUS DP Meaning of the symbols used Industri A 1 2 Meaning of the symbols used Danger This sign is placed next to a warning indicating the presence of a hazard This can relate to personal injury as well as to system damage hardware and software The user should interpret this symbol as follows exercise extreme caution D Attention This sign is placed next to a warning indicating a potential hazard This can relate to personal injury as well as to system hardware and software and equipment damage Note This sign is located next to general hints providing important information on individual or stepwise work procedures These hints may facilitate work and possibly help to avoid excess work resulting from faulty proceedings D300776 0511 piconet PROFIBUS DP 1 3 1 3 Release status and versions 1 3 1 Documentation This documentation pertains to the hardware and firmware status at the time of editing this manual The features of the piconet systems are continuously developed and improved Changes in the documentation can be taken from Modification index of this manual 1 3 2 Firmware and hardware status Downward compatibility The modules of the piconet series are downward compatible Older module cannot however feature the same characteristics than newer module versions However existing characteristics have been retained so that older modules c
39. 4 IP Link SNNE 40A 0004 Thermoelement extension module 5 IP Link SNNE 0202D 0003 Up down counter extension module A 6 IP Link SNNE 0808D 0001 8 DI 8 DO Extension module A7 IP Link SNNE 0008D 0001 8 DO Extension module B 12 SDPB 0202D 0003 Up down counter stand alone module 6 13 SDPB 10S 0004 RS422 485 Interface Stand alone module D 14 SDPB 0002D 0002 PWM module Stand alone module E 15 SDBP 10S 0005 SSI encoder interface Stand alone module F 16 SDBP 10S 0001 incremental encoder interface Stand alone module 8 2 D300776 0511 piconet PROFIBUS DP Creating new Simatic project 8 2 Creating a new Simatic project 1 Create a new project in the Simatic Manager File New 2 Select a Simatic station via Insert Station In our example a Simatic 300 station is used n h KJ SIMATIC Manager piconet 1 CiProgramme Siemens SH election of the E 5 Edit Insert PLC View Options Window Help Simatic station D 1 SIMATIC 400 Station 2 SIMATIC 300 Station Subnet gt Program 3 SIMATIC H Station RE 4 SIMATIC PC Station 57 Blod 5 Other station Djs nee S5IMATICSS 7 PGIPC Symbol Table Text library gt External Source D300776 0511 piconet PROFIBUS DP 8 3 8 3 Importing GSD file Prior to initial configuration of the piconet system via the hardware configurator of the software the piconet GSx files mu
40. 45472 M lheim an der Ruhr Germany WitzlebenstraBe 7 Tel 49 0 208 4952 0 Fax 49 0 208 4952 264 E Mail more turck com Internet www turck com D300776 0511
41. Address MPI 2 Cancel Help 10 The destination station must be stopped and restarted to load the data D300776 0511 piconet PROFIBUS DP Consistent data transmission Industri A 8 5 Consistent data transmission The communication of the 57 controller with the piconet modules in the complex mode requires consistent data transmission In order to ensure consistent data transmission the Siemens function blocks SFC14 and SFC15 are used within an organisation block These are standard program components of the Simatic Manager 8 5 1 Consistent data transmission via Siemens function modules SFC14 and SFC15 The function blocks SFC14 and SFC15 must be copied to the project and called up via the organisation block With the help of these two function blocks the data for register communication are read and written consistently In this example the function blocks are added to the OB1 of the project SFC14 The SFC14 is needed to read the module specific settings and parameters in the register communication LADDR 10 16 116 OCK SECI RET VAL MWl0 RECORD P M 100 0 BYTE 6 NOP 0 Call up the function block the command Call SFC14 Table 8 5 Parameter name Meaning Notation Parameters of the function block LADDR Configured start address ofthe module The entry is written in an hexadecimal SFC14 from the input data memory of the format controller Example W 16 14 RE
42. Bausteine Ail Maultiinstanzen 4 Bibliotheken 315 2 PNIDP S7 Pro Mem dg Tabelle Bearbeiten Einf gen Zielsystem Variable Ansicht Extras Fenster Hilfe a salele Sa 8 parler l Operand Symbol Anzeigeformat Statuswert Steuerwert true CALL RDREC DBSZ RECORD Werte VWIGRFFFF E Progamm DB11 DEW 10 witie 0000 E Datentyp IN BOOL F r Hilfe dr cken Sie F1 Offline 0 2 4 Win Siroo00 8 8 DB11 DEV SITE A 21 SQuerverwese A 4 Operandeninfo 5 A 6 Diagnose 7 Vergleich Dr cken Sie F1 um Hilfe zu erhalten offline Abs 5 2 1 5 Einfg And 10 8 D300776 0511 piconet PROFIBUS DP Reading IP Link errors using the S7 with Step7 example Step7 reading the IP Link error counter from register table 90 For reading register table 90 the following entries have to be done ID 7FB diagnosis address of the coupling module INDEX 90 48 Table 10 1 i KOP AWL FUP_ OB1 CYCL_EXC DPV1_IP_Link SIMATIC 300 1 CPU 315 2 PN DPA 0B1 Reading register 2 e LR table 90 PDA IE HS Neues Netzwerk FB Bausteine y FC Bausteine g SFB Bausteine g SFC Bausteine 8 Multinstanzen Inhalt von Ungebung Schnittstelle TEMP 9 Bibliotheken
43. Bit 0 of the xl control bytes S slale x 81 2 Operand Anzeige Statuswert Steuerwert 5 02020 0003 Z hler Kanal 1 Lesen Mw 26 HEX W 16H0000 MB 110 BIN 280000 0010 111 B 6800 MB 112 HEX B 16 00 DI 113 HEX BHIBHOD MB 114 DEZ 0 Z schreiben Mw 28 HEX MB 115 BIN 280000 0001 MB 116 HEX BHIGHI2 117 HEX B 16 35 MB 118 HEX 0 119 HEX 8816800 EI piconet SIMATIC 300 1 4 157 Program 6 lt PZ 9 1 8 Configuration The function blocks used work with the module s logical address Figure 9 14 HW Konfig SIMATIC 300 1 Konfiguration DPY1_40A_0005 logi cal addr ess of h Station Bearbeiten Einf gen Zielsystem Ansicht Extras Fenster Hilfe the module 8 le A logical address PROFIBUS 1 DP Mastersystem 1 PROFIBUS PA SIMATIC 300 SIMATIC 400 DITEXDC24V E SIMATIC PC Based Control 300 400 B SIMATIC PC Station SDPB 404 x005 kompakt 100 101 n 5 TIT DAE Ms kampakt 7 0 AE 04 705 kompakt 168 187 PROFIBUS DP Slaves der SIMATIC 57 M und dezentraler Aufbau Dr cken Sie F1 um Hilfe zu erhalten D D300776 0511 piconet PROFIBUS DP 9 13 9 1 9 Programming The following function blocks are necessary for programming the PLC
44. DB 2 DB 1 DB2 DB 1 2 SB Channel 1 CB Channel 1 Channel 2 DB3 Channel 2 DB3 3 Channel 2 Channel 2 Channel 2 Channel 2 DB 1 DBO DB 1 DBO 4 Channel 2 Channel 2 Channel 2 Channel 2 DB3 DB2 DB3 DB2 D300776 0511 piconet PROFIBUS DP 5 15 0300776 0511 piconet PROFIBUS DP Industri A 6 Errortreatment and diagnostics 6 1 Error diagnosis via 2 6 1 1 35 7 60 005 fe M 2 6 1 2 Diagnostic LEDs for PROFIBUS i iet inen re nahe 3 Parameter data errors Configuration data errors 6 1 3 Trouble shooting Avoidance of typical errors 6 2 Error diagnosis via software X X 7 6 2 1 General informa Messanam 7 6 2 2 General structure of diagnostic 6 2 3 Diagnostic telegram of the stand alone modules 6 2 4 Diagnostic message D300776 0511 piconet PROFIBUS DP 6 1 6 1 Error diagnosis via LEDs With the piconet system one distinguishes between the following kind of errors PROFIBUS errors IP Link or local module errors Please read the descriptions of the LED diagnostics of IP Link errors and module errors in
45. DPVi 4 HEX zl 9 10 D300776 0511 piconet PROFIBUS DP Industri A Activating the switch on off and reset threshold values Activating the counter functions for setting and resetting the output as well as for resetting the counter is done the module s feature register register 32 see for the counter s register assignment Chapter 12 Technology modules in manual piconet TURCK documentation number 0300778 English The assignment of the Feature register defines the following settings for this example 8 Low byte data byte DB11 DBB 1 Value 0x78 Table 9 6 Bit7 Bit 6 Bit 5 Bit4 Bit 3 Bit 2 Bit 1 Bit 0 Register 32 Low byte 0 1 1 1 1 0 0 0 Bit 7 0 pulse mode inactive Bit 6 1 function for the counter reset active Bit 5 1 function for resetting the output active Bit 4 1 function for resetting the output active Bit 3 1 Setting the counter is done with a positive edge at bit CNT SET in the control byte Bit 2 0 watchdog active O reserved High byte data byte 11 0 Value 0x01 Table 9 7 Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Register 32 High byte 0 0 0 0 0 0 0 1 Bit 15 to Bit 11 00 reserved Bit 10 0 resetting the output is done with a counter reset Bit 9 0 timer base pulse length register 41 1 us Digit 250 us 65 ms Bit 8 1 counteris disabled
46. DW 16 64 ID DB152 DBXl r0 2 37 INDEX DB152 DBD1 2 HLEN 2 DB152 RECO DB152 DBWl RD re ENO 4 4 gt gt 1 Fehler 2 Info D300776 0511 piconet PROFIBUS DP 9 15 9 1 10 Structure of the data blocks Figure 9 19 DB52 and DB53 Datei Bearbeiten Einf gen Zielsystem Test Ansicht Extras Fenster Hilfe nisja x eje a vel icf x pM EM EE EE MEE pem __ aeos der iesus Jaco ee 050 vom vo vom o DB53 DPV1 40A 0005 SIMATIC 300 1 CPU 315 2 DP EE Figure 9 20 VWSRKOP AWL FUP 3 08152 DB153 Datei Bearbeiten Einf gen Zielsystem Test Ansicht Extras Fenster Olea 2l cii s EET m DB152 DPV1 40A 0005 SIMATIC 300 1 Batongsvert Komentar cl mm __ Datensatz bertragung durchf hren log Slaveadresse Datensatznummer max L nge Datensatz Datensatz g ltig FALSE Lesen noch in Bearbeitung FALSE Fehler beim lesen 1181680 Fehlercode 0 L nge gelesene Datensatz ARRAY 0 47 B 16 0 Datensatz On 2 DB153 DPV1 40A 0005XSIMATIC 300 1 CPU 315 2 DP LL Om nea A FALSE Datensatz bertragung durchf hren log Slaveadresse Datensatznummer max Lange Datensatz Datensatz g ltig Lesen noch in Bearbeitung BOOL FALS
47. Execute data transfer Can be realized through a signal change at an additional digital input ID DWORD Logic address of the DP slave station or module INDEX INT Number of the data set slot number or register number LEN INT Maximum length of the data to be transferred in bytes Outputs DONE BOOL Data set has been transferred BUSY BOOL BUSY 1 The write operation is still running ERROR BOOL ERROR 1 Error during write operation STATUS DWORD Call ID bytes 2 and 3 or error code RECORD ANY Data set In this example the data blocks DB10 and DB11 are used to handle the in and output bytes of the respective module OB82 and OB83 are used to avoid that the CPU changes to operation mode STOP in case of an error The variable table VAT1 serves for monitoring and controlling the module s in and output D300776 0511 piconet PROFIBUS DP 9 5 9 1 4 Reading out the IP Link configuration The example shows the possibility of reading out the IP Link configuration via acyclic services The IP Link configuration is read out of the IP Link coupling module For each connected extension module one word is transferred This word contains for all analog and byte oriented module the modules type for example 5109 Incremental Encoder and for all digital extension module the module size and the module type Note i The access to the coupling module and to the module configuration of the IP Link is done via the
48. HEX 8816800 MB 194 HEX 8816800 MB 195 HEX 8816800 e n 4 4 C 149 nun e N jas j Go en e n 4 Note The settings made in register 32 will only be activated after a power reset of the module which will then return to the process data exchange mode The counter is inhibited until a high level applies to the gate input After a new signal change at the input from High Low the counter is re inhibited D300776 0511 piconet PROFIBUS DP 8 33 Switching from Encoder interface mode to counter mode Changing from the encoder interface mode to the counter mode is also accomplished via the feature register R32 of the module Writing the feature register register 32 The parameters in register 32 are transferred to the module via the control byte as follows Table 8 28 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Writing the register 32 1 1 1 0 0 0 0 0 control byte 7 1 Register communication is activated Bit 6 1 Register is written Bit 5 uptoBitO 32 dec Register number In our example the configuration of the feature register of the incremental encoder results in the following settings Lowbyte Data byte 0 in the example 119 Value 0x00 Table 8 29 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Register 32 lo
49. Link BS4151 0 9 RSM 2RKM50 WKM52 x RSM52 e further bus devices or PDP TRA active terminating resistor ete el RKM52 x RSM52 D300776 0511 piconet PROFIBUS DP BS4151 0 9 2 3 2 1 1 Coupling and stand alone modules The stand alone and coupling modules are connected directly to the respective fieldbus 2 1 2 Extension network IP Link Up to 1201 O extension modules can be interconnected via a coupling module and via the IP Link an extremely reliable internal bus based on fibre optic transmission and integrated into the higher level fieldbus as a single unit Thus the user can determine any kind of I O configuration that matches his application 2 1 3 Combined modules In order to obtain the highest flexibility novel 16 channel digital combined I O modules have been developed The module channels can be used either as inputs or outputs The separate circuitry ensures the isolated supply of the inputs and outputs These combined modules enable precise modular construction of the system The modules are powered via an M8 connector Note i A detailed description of the complete system the individual piconet modules and the extension network IP Link is contained in the bus independent manual piconet I O Modules document number D300778 2 4 D300776 0511 piconet PROFIBUS DP Industri A 3 PROFIBUS DP 3 1 System description 2 3 1 1 2 3
50. Sy teM RE System configuration and device 3 4 Single Master SYSTEMS Multi Master SYStemMS rinite 3 1 4 Topology 3 1 5 Maximum system expansion Use of drop lines m 3 1 6 Transmission tate Cycle times iii 3 1 7 ei e e Checking the PROFIBUS cabling 3 1 8 Diagnostic functions eee 3 1 9 Sync and Freeze Mode SVMS Free eMod 3 1 10 System performance iaia ici viari 3 9 Protective mechanisms dent number 3 1 11 rM dio i i i e iM 3 2 Acyclic services via 3 1 0300776 0511 piconet PROFIBUS DP i Table of Contents 4 1 4 1 1 4 1 2 4 1 3 4 1 4 4 2 4 2 1 4 2 2 4 2 3 4 24 5 1 5 1 1 5 2 5 2 1 5 2 2 5 2 3 5 2 4 5 2 5 5 3 5 3 1 5 3 2 5 3 3 5 3 4 5 3 5 5 3 6 6 1 6 1 1 6 1 2 DPV T UNCHON acte de d pte E tee 3 11 3 11 IP Link eset areali dna eda editt tte it un DA UNDA 3 13 Access to module r
51. example counter module Industri A Table 8 11 Register Designation Memory Treshold register RO Switch on threshold least significant word RAM RI Switch on threshold most significant word RAM R2 Switch off threshold least significant word RAM R3 Switch off threshold most significant word RAM R4 Reset threshold least significant word RAM R5 Reset threshold most significant word RAM R35 Switch on threshold least significant word EEPROM R36 Switch on threshold most significant word EEPROM R37 Switch off threshold least significant word EEPROM R38 Switch off threshold most significant word EEPROM R39 Reset threshold least significant word EEPROM R40 Reset threshold most significant word EEPROM Note The settings in register 35 to 40 will only be activated after a power reset of the module and stored in the RAM of the module and thus in registers O to 5 E Attention The threshold values should not be entered directly in registers 0 to 5 In case of a power reset of the module the actual changes in the RAM could be overwritten by invalid values of registers 35 to 40 stored in the EEPROM Switch on threshold 25 pulses Table 8 12 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Writing the register 35 1 1 1 0 0 0 1 1 control byte Data byte 0 MB 119 25 dec 0x19 hex Table 8 13 Bit 7 Bit 6 Bit 5 Bit4 Bit 3 Bit 2 Bit 1 Bit 0 Da
52. expected number of bytes Error code7 Error code 7 describes CfgData errors Table 6 5 Argument Description Error arguments parametererror 1 Length of CfgData not correct code 7 2 Syntax of CfgData not correct 3 Length of input data too long 4 Length of output data too long 6 4 D300776 0511 piconet PROFIBUS DP Error diagnosis via LEDs Industri A 6 1 3 Trouble shooting Should you have problems with the module the Status LEDs will give information on the probable error cause Avoidance of typical errors 1 Checking the PROFIBUS cabling A PROFIBUS cable or the cable segment if repeaters are used can be tested with a few resistance measurements For this the cable should be disconnected from all stations Table 6 6 Measuring points Typical Checking the resistance PROFIBUS cabling between A and B at the beginning of the cable approx 110 Q between A and B at the end of the cable approx 110 Q between A at the beginning and A at the end of the cable approx 0 Q between B at the beginning and B at the end of the cable approx 0 Q between shield at the beginning and shield at the end of the cable approx 0 Q Note If these measurements are successful the cable is error free Should there be further bus errors these can usually be ascribed to EMI Please also observe the installation guidelines of the PROFIBUS user organisation www profibus com 2 Configuration sequence
53. module s diagnostic address here 2041 dez 7F9hex The IP Link configuration with in this example a maximum of 23 connected modules is read out using Slot 0 Index 9 see also chapter 3 Acyclic services via DPV1 Table 9 3 Slot Index Byte Description Readingoutthe number module configuration 0 9 0 1 Description coupling module 9 2 3 Module 1 9 46 47 Module 23 Figure 9 5 Reading out the EA Lesen der IP Link Konfiguration aus dem Koppelmodul module Koppelmodul ID Diagnose Adresse Indexzum Auslesen 9 configuration via SFB52 DBS2 7F9 gt _logicaddress of the coupling module In this case for reading the IP Link configuration the module s diagnostic address has to be set not the process data address B setting the index no the max number of expected data bytes is 48 Byte Note i Load the changed OB1 to the PLC using PLC Download 9 6 D300776 0511 piconet PROFIBUS DP Reading out the IP Link configuration via variable table Set M40 1 to true in order to read out the IP Lin configuration The function block is started A signal change at input EO 0 enables the data transfer Figure 9 6 D ma o Reading out the IP 5 operand sym Anzei statuswert steuerwert Link configuration Schreiben BOOL false false via variable table DB11 DBW 4 WRITE DB wR DPVI REG DEZ 0 0 0811088 0 WRITE DB WR DPVI WERT U HEX 88168
54. piconet PROFIBUS DP 10 13 Example program Figure 10 7 Example program Example visualization 18 Visualization PLC PRG SDPL 0404D Task Configuration 5 tRead DPVl Cl Read 6 trite DPVl Cl Write xEnableRead BOOL 8 xEnableWrite BOOL lt 1 iCounter iCounter 1 080 080 1 3 in 2 4 5 IF xAutoRead TRUE THEN 6 IF tRead w pState 0 THEN 7 xEnableRead TRUE 8 ELSIF tRead w pState 3 THEN 9 xEnableRead FALSE 10 ELSIF tRead w pState 4 THEN 11 xEnableRead FALSE 12 END IF 13 END IF 14 7 15 Set 01 Read Parameters 16 7 17 abyReadData 0 1 is abyReadData 1 1 is abyReadData 2 20 abyReadData 3 21 4 22 tRead byStationAddress byStationAdr station address slave 23 tRead bEnable xEnableRead Set xEnableRead to start the service 24 tRead bySlotNr byReadSlot Slot to read 25 tRead byIndex byReadIndex Index to read tRead wLen wReadLen Len to read tRead pBuffer ADR abyReadData 0 Read buffer 29 Call Ci Read 30 PB IoDrvDPVl Cl M Read tRead 33 Set DIVi Ci Write Parameters 34 tWrite byStationAddress byStationAdr station address of BK slave 35 tWrite bEnable xEnableUrite Set xEnableWrite to start the service 36 tWrite bySlotNr byWriteSlot Slot to write 37 tWrite byIndex byWriteIndex
55. the error counter in the register table corresponds to the position of the extension module in the IP Link line offset 4 bytes An error at the second extension module would thus be monitored in bytes 6 and 7 an error in extension module 3 in bytes 8 and 9 Step7 reading the IP Link error counter from register table 50 page 10 10 or CoDeSys V3 reading the IP Link error counter from register table 50 page 10 16 10 4 D300776 0511 piconet PROFIBUS DP Note If register table 90 shows an error error counter counts upwards but register table 50 shows no error then the error cause has to be found between the last extension module and the coupling module Note Register table 50 is not actualized during an IP Link interruption because reading those values directly from the extension modules is not possible D300776 0511 piconet PROFIBUS DP 10 5 10 2 Reading IP Link errors using the S7 with Step7 example 10 2 1 Example project Example network 57 15 2 PN DP 6 57 315 2EH13 0ABO V 2 6 piconet station DP address 15 coupling module SDPL 0404D 1003 4 digital inputs and 4 digital outputs IP Link extension module 1 SNNE 0808D 0001 8 digital inputs and 8 digital outputs IP Link extension module 2 SNNE 0800D 0007 8 digital inputs P Link extension module 3 SNNE 40A 0004 4 analog inputs TC IP Link extension module 4 SNNE 0008D 0006 8 digital outputs 10
56. the extension module can only be done via register communication or using the software I O ASSISTANT The multi turn encoder cannot be parameterized through the piconet module The configuration can of Kuebler encoders can for example be done using the special software tool for parameterizing multi turn encoders Ezturn Note When using the piconet SSl module 5 105 005 please check that the communication parameter output format single or multi turn baud rate data length etc are the same for both devices module and SSl encoder This effects all parameter settings of the feature register register 32 of the baud rate register register 33 and of the data length register register 34 Note i Detailed information about the module s register assignments can be found in chapter 12 of the piconet I O manual piconet modules TURCK documentation number 8 English D300776 0511 piconet PROFIBUS DP Application example incremental encoder Industri A 9 4 Application example incremental encoder In the following example a piconet incremental encoder module is to be parameterized as follows E Setting the counter value to 0 0 E Storing the count value with activated latch input Disabling the counter with a low signal at the gate input Switching from the encoder to the counter mode 9 4 1 Parameterization of an incremental encoder via GSx file Parameterization of the
57. the modules Figure 8 16 LAD STL FBD 081 piconet_sicherung SIMATIC 300 1 CPU 315 2 DP SFCsinOB1andin ris Insert PLC Debug View Options Window Help the table of 0122 18 248 e e e KI e variables 081 Main Program Sweep Cycle Comment Network 1 read SNNE 105 0004 R 485 422 a 1 BEE Table Edit Insert PLC Variable View Options Window Help a x 8 vol DPRD DAT of P8M 50 0 B RECORD YTE 6 IP Link QR DPUR DAT W 16 100 4 LADDR RET_VAL 60 0 YTE 6 I 4 gt P 1 Error 2 Info D300776 0511 piconet PROFIBUS DP 8 17 8 7 8 18 Parameterisation of the modules The piconet coupling module and most stand alone modules allow clear text parameterisation via the hardware configurator of the Simatic software with the help of the GSx files Some few byte oriented stand alone modules as well as all byte oriented extension modules can only be parameterised via the control byte and or the register communication or the software I O ASSISTANT A Attention Generally parameterisation via GSx files has priority over parameterisation via register communication Following a power reset the parameters set via register communication are overwritten by the PLC with the parameters from the GSx
58. transmission speed of 1 5 Mbps At a transmission speed of 12 Mbps it is not permitted to use drop lines D300776 0511 piconet PROFIBUS DP 3 5 3 1 6 Transmission rate Cycle times The transmission rate set by the PROFIBUS DP master determines the system s transmission speed The transmission speed can be adjusted in a range of 9 6 kbps up to 12 Mbps The transmission rate is automatically detected by the TURCK stations Special settings on the stations are not required At 12 Mbps the typical response time accords gt 1 ms per 1000 I O points 3 1 7 Transmission cables The bus nodes are interconnected via fieldbus cables which accord to RS485 specifications and DIN19 245 The cables must thus have the following characteristics Table 3 2 Parameters Cable type A DIN 19 245 part 3 Characteristics of PROFIBUS DP Wave resistance 35 to 165 3 to 20 MHz transmission 100 to 1300 f 3100 kHz cables Capacitance 30 nF km Loop resistance 110 O km Core diameter 0 64 mm Core cross section gt 0 34 terminating resistors 2200 Attention A The higher the transmission rate the higher the number of bus nodes and the longer the transmission cables the more important to observe these parameters Figure 3 1 Vp 4 Schirm innenliegend A vp Schematic Zweidrahtleitung e li Si PROFIBUS DP T 5 Kar b cable AbschluB
59. up to MB 55 whereas the 6 output data bytes are written to the flag area from MB 60 0 on MB 60 to MB 65 8 6 Module access via a table of variables The variables which are to be monitored and controlled incl the associated format specifications are arranged in a table of variables This table enables direct monitoring and control of the network modules 1 Clickon Insert 57 block in the Simatic Manager to add a variable table to your project Figure 8 15 Inserting a table of variables 151 Manager piconet_sicherung C Programme Siemens Step7 s7proj picone_5 Ep Edit Insert PLC Options Window Help D IERI 4 s Sl Pope lt NoFiter gt E Subnet Systemdaten piconel program 1 Organization Block 2 Function Block 3 Function 4 Data Block 5 Data Type 6 Variable Table 2 Thestructure of the variable table enables call up control and monitoring of all module data bytes D300776 0511 piconet PROFIBUS DP Module access via table of variables 3 The first flag word in the areas Read and Write of our example always contains the error word VAL of the function blocks SFC 14 and SFC15 The first MB in the Read area is always the status byte whereas the first MB in the Write area always contains the control byte of the respective module Then come the input and output data of
60. 0 Watchdog active Bit 1 0 0 reserved D300776 0511 piconet PROFIBUS DP 8 21 Highbyte gt Data byte 1 in the example 118 Value 0x01 Table 8 10 Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Register 32 High byte 0 0 0 0 0 0 0 1 Bit 15 up to Bit11 O reserved Bit 10 0 Reset of output upon counter reset Bit 9 0 Timer basis pulse length register 41 1 us digit 250 us 65 ms Bit 8 1 counteris inhibited if input gate high 1 Figure 8 19 Writing the 4 register 32 Address Disp Status value Modify value SDPB 0202D 0003 Counter Channel 1 read Mw 30 HEX W 16 0000 MB 120 HEX 8816800 MB 121 HEX 8816800 MB 122 HEX 8816800 MB 123 HEX 8816800 MB 124 HEX 8816800 Mw 32 HEX 1680000 MB 125 BIN 280000 0000 281110 0000 MB 126 HEX 8816800 MB 127 HEX 8816800 MB 128 B 16 00 B 16 01 MB 129 B 16 78 80 83 84 85 85 83 90 Note i The settings made in register 32 are only activated after a power reset of the module 8 8 4 Setting the switch on switch off and reset thresholds The threshold values are set in registers 35 to 40 The thresholds are stored permanently in the EEPROM of the module Note Important for threshold value selection Switch on threshold Switch off threshold Reset threshold 8 22 D300776 0511 piconet PROFIBUS DP Application
61. 00 8816800 DB11 DBB 1 wRITE DB WR wERT I HEX 8816800 8816800 0811088 2 WRITE DB WR DPVI wERT HEX 8816800 816800 0811088 3 wRITE DB WR WERT 3 HEX BHIGHIE BHIGHIE M 401 Lesen true true 0 READ_DE RD_DPV1 0 HEX 0810088 1 READ DB RD DPVI I HEX 0810088 2 READ DB RD DPVI 2 HEX 3 0810088 3 READ DB RD DPVI 3 HEX 0810088 4 READ DB RD DPVI 4 HEX 3 0810088 5 READ DB RD 5 HEX 11 0810088 6 READ DB RD 6 HEX 0810088 7 READ DB RD DPVI 7 HEX 0810088 8 READ DB RD 8 HEX 0810088 9 READ DB RD DPVI S HEX 0810088 10 READ DB RD DPVI I0 2 0810088 11 READ DB RD DPVI M 0810088 12 READ DB RD DPVI I2 HEX 0810088 13 READ DB RD DBIQDBB 14 READ DB RD DPVI M HEX 0810088 15 READ DB RD DPVI I5 B 16800 DBIODBB 16 READ DB RD DFVI IS HEX B 6 00 0810088 17 READ DB RD DPVI I7 READ DB RD DPVi I8 HEX amp am B 5 6 P o m 2 15 6 e 9 20 21 22 23 24 5 26 0300776 0511 piconet PROFIBUS DP 9 7 In this example the module configuration can be read from bytes 10 0 to DB10 DBB 14 Table 9 4 Byte Value Descri
62. 1 The read are displayed in abyReadData The error counter in byte 8 and 9 shows that error streams arrive at the extension module see also Register tables 50 60 error counter of the extension modules page 10 4 and that the IP Link communication is disturbed at this position 10 16 D300776 0511 piconet PROFIBUS DP Industri A 11 Glossary A Acknowledge Acknowledgement of the receiver to confirm receipt of the signal Address A number for identification e g for a memory location a system or a module within a network Addressing Allocation or setting of an address e g for a module within a network Active conductive part Conductor or conductive component tHat is energized during operation Analogue A value e g a voltage that is infinitely proportional With analogue signals the value of the signal can assume any value within certain limits Automation device A device for connection of inputs and outputs which is connected within a technical process Programmable logic controllers PLC belong to a certain category of automation devices B Baud Unit of measure for the transmission speed of data One baud accords to one step per second If one bit is transferred per step then the baud rate is identical to the transmission rate in bit per second Baud rate see Baud Bidirectional Working in both directions Binary code Coding method with which the contents to
63. 1 MW 48 HEX WItTBHDODD MB 190 280000 0010 280000 0010 MB 181 BHIGHOO 8816800 155 192 BHIGHOO MB 193 B 16 00 MB 194 8816800 MB 195 B 16 00 8 30 D300776 0511 piconet PROFIBUS DP Application example 551 module Industri A 8 9 4 Parameterisation of an incremental encoder via register communication In order to parameterise the module via register communication the password for register access must first be written to register 31 of the module Writing a password to register 31 The password 1 0 235 is written to register 31 of the incremental encoder The command to write to the register and thus to enable register communication via entry of the password is given by the control byte of the module Table 8 24 Bit7 Bit 6 Bit 5 Bit4 Bit 3 Bit 2 Bit 1 Bit 0 Writing the register 31 1 1 0 1 1 1 1 1 control byte Bit 7 1 Register communication is activated Bit 6 1 Register is written Bit 5 810 31 dec Register number The data bytes ofthe output data map contain the values which are to be transmitted to the respective register The password 0 1235 is written to Reg 0 in our example MB 192 and Reg 1 in our example MB 191 of the module while Reg 0 presents the least significant byte and Reg 1 the most significant byte In our example 0x12 is written to MB 191 Reg 1 and 0x35 to MB 192 Reg 0 Note The mapping tables in chapter 5 Data mapping of the piconet modules
64. 1 1 widerstand I GND Teilnehmer 0 Teilnehmer 31 3 6 Cable types The bus cable of the PROFIBUS DP network is a special shielded twisted data cable according to R 485 standards The data transmission rate is 12 Mbps max The M12 bus connector of the station is shielded and mechanically reverse keyed Note Premoulded PROFIBUS DP cables simplify network installation shorten set up times and reduce wiring errors TURCK offers an extensive and varied product spectrum for this purpose The ordering information on the available cable types can be taken from the respective product catalog Installation guidelines D300776 0511 piconet PROFIBUS DP System description Industri A When mounting the modules and routing the cables please observe the technical guidelines of the PROFIBUS user organization concerning PROFIBUS DP FMS see www profibus com Checking the PROFIBUS cabling A PROFIBUS cable or the cable segment if repeaters are used can be tested with a few resistance measurements For this the cable should be disconnected from all stations 8 Resistance between A and at the beginning of the cable approx 110 Q E Resistance between A and at the end of the cable approx 110 8 Resistance between A at the beginning and A at the end of the cable approx 0 8 Resistance between B at the beginning and B at the end of the cable
65. 1 2 pm 2 Module addressing in DP V1 3 1 3 Master slave system System configuration and device types Single Master EI MEER M aa Multi Master systems inrita ir i E 4 3 1 4 Deje C M 5 3 1 5 Maximum system EXPANSION RE 5 Use of drop linesS 3 1 6 Transmission rate Cycle times 3 1 7 Transmission cables is ten 6 Checking the PROFIBUS cabling 7 3 1 8 Diagnostic spire 7 3 1 9 Sync and Freeze Mode Sync Mode Freeze Mode 3 1 10 System performance Data transfer between DPM1 and the DP 9 Protective mechanisms ione etit titi tatc 9 HI 10 3 1 11 GSD MES E 10 3 2 Acyclic services via DPV1 11 3 2 1 DPN TAONG OD S 11 Reading the configura
66. 10 is set Figure 9 28 Setting the output 9 24 Operan Anz 5DPB 0202D 0003 Z hler Kanal 1 Mw 30 HEX W 16 0000 MB 120 BIN 280000 0110 MB 121 HEX 8816800 MB 122 HEX 8816800 MB 123 HEX 8816800 MB 124 DEZ 25 Schreiben Mw 32 HEX W I6 O000 MB 125 BIN 280000 0001 280000 0001 MB 126 HEX B 16 12 MB 127 HEX B 16H35 MB 128 8816800 MB 129 HEX 8816800 Reaching the switch off pulse value 4 The counter continues counting as defined Having reached the 50 counted pulses the output is reset 5 TheLED 01 at connector D of the counter module is switched off D300776 0511 piconet PROFIBUS DP Application example counter module 6 Inthe status byte MB110 bit2 is reset Figure 9 29 Resetting the Operand Anz output 50 02020 0003 Z hler Kanal 1 Mw 30 HEX 81680000 120 280000 0010 1 MB 121 HEX 8816800 MB 122 HEX 8816800 MB 123 HEX B 16 00 MB 124 DEZ 50 Schreiben Mw 32 HEX W 16H0000 125 BIN 280000 0000 280000 0001 126 HEX B 16 00 127 HEX 8816800 128 B 16 00 128 HEX 8816800 Reaching the reset threshold value 7 After counting the 100 pulses the counter value in data byte 0 here MB 124 is reset to 0 8 Thecounter restarts counting upwards starting at 0 D300776 0511 piconet PROFIBUS DP 9 25 9 3 9 26 Application example SSI module The parameterization of
67. 1235 is written to register 31 of the counter module The command to write to the register and thus to enable register communication via entry of the password is given by the control byte of the module Table 8 7 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Writing the register 31 1 1 0 1 1 1 1 1 control byte Bit 7 1 Register communication is activated Bit 6 1 Register is written Bit 5 31 dec Register number The data bytes ofthe output data map contain the values which are to be transmitted to the respective register The password 0x1235 is written to data byte 0 in our example MB 119 and data byte 1 in our example MB 118 of the module Data byte 0 presents the least significant byte and data byte 1 the most significant byte In our example 0x12 is written to MB 118 data byte 1 and 0x35 to MB 119 data byte 0 Fi 8 18 ES A Address Disp Status value Modify value 50 02020 0003 Counter Channel 1 ARegister 31 ead BData byte 1 80 MW 30 HEX 1680000 CData byte 0 81 MB 120 HEX 8816800 82 MB 121 HEX 8816800 83 MB 122 HEX 8816800 84 MB 123 HEX 85 MB 124 HEX B 16 00 86 write Mw 32 HEX WHHBHODOD MB 125 BIN 280000 0000 2 1101_1111 B8 MB 126 HEX B 16 00 90 MB 127 8816800 MB 128 HEX 8816800 B 16 12 MB 129 HEX 8816800 B 16 35 93 Note The mapping tables in chapter 5 ofthe manual show the assignment of the in
68. 1P4 COPA M12x1 2 63 C3P4 C3P4 CIP2 0022 4 connector P Pin Data mapping for SNNE 0016D 0001 E Compact mapping Motorola format Only the user data are mapped Table 5 5 Word Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Compact mapping Output Low COP7 COP6 COP2 Motorolaformat High COP16 COP15 14 COP13 COP12 COP11 10 9 Connector Pin 56 short circuit ch x E Complex mapping Motorola format Word Alignment not active data are mapped with control and status byte 24DI 24DO Table 5 6 Word Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Complex mapping In put n Low RA ERR UV OCG2 OCG1 05 Motorolaformat High SC8 SC7 SC6 SC5 5 4 SC3 SC2 SC1 C Connector P Pin n 1 Low SC16 SC15 5814 SC13 5012 11 5610 SC9 SCx short circuit ch x 5 5 Output Low RA RE SDS High COPS COP7 COP6 COP5 COP2 n 1 COP16 COP15 14 COP13 COP12 COP11 10 9 0300776 0511 piconet PROFIBUS DP 5 3 Complex mapping Motorola format Word Alignment active data are mapped with control and status byte 32DI 32DO Table 5 7 Bit 0 Complex mapping Input Motorola format SCI C Connector P Pin SCx short circuit ch x idle reserved SC9 Output idle 5 4 D300776 0511 piconet PROFIBUS DP Data mapping Stand
69. 2 General IP Link error 12 0 No error 3 IP Link Interruption Error argument Fault location Incase of wire break against counting direction Fibre optic cabling 4 IP Link Timeout errors Error argument Fault location 5 Error when reading the register of the complex modules Error argument Problematic module 11 Extension module is not processing the synchronisation telegram Error argument Problematic module 12 More than 120 modules connected Error argument Number of modules connected in excess 13 Module type is not supported Error argument Problematic module 13 Oto 120 Error argument IP Link error e g wire break behind the n extension module Counting begins with n 2 1 with the last connected extension module against the direction of the fibre optic cabling backwards in direction of the coupling module Error argument n 0 accords to IP Link error between the last coupling module and the last connected extension module 14 0x00 15 0x00 D300776 0511 piconet PROFIBUS DP 6 11 Channel specific diagnostics Note i Channel specific diagnostics are only available for coupling modules with firmware status D kkjj2yzu firmware B3 Table 6 13 Byte Bit Description Channel specific diagnostics 16 0 7 Faulty extension module number Coupling modules 1 120 only complex modules are counted in the counting direction with the
70. 6 0000 MB 190 Control BIN 280000 0010 290000 0010 191 Regi HEX 8816800 8816800 192 0 HEX 8816800 183 HEX 8816800 194 HEX 8816800 185 HEX 8816800 Ala gagag 25 55 4 p 151 S555 en en en en cn eo piconetiSIMATIC 300 1 157 Programm 5 D300776 0511 piconet PROFIBUS DP 9 29 9 4 3 Parameterization of an incremental encoder via register communication For the module parameterization via register communication at first the password for the register access has to be written to register 31 Writing the password into register 31 The password 0x1235 will be written into register 31 of the incremental encoder module The command for writing the register and the enabling of the register communication by entering the password is given via the module s control byte Table 9 27 Bit7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Writing register 31 control byte 1 1 0 1 1 1 1 1 Bit 7 1 register communication activated Bit 6 1 register is written Bit 5 to Bit O 31 dec register number The data bytes of the output data image contain the values which have to be transmitted to the respective registers The password 0x1235 is written to the module s data byte 0 in the example marker byte 192 and data byte 1 in the example marker byte 191 whereas RegO is
71. 76 0511 piconet PROFIBUS DP Module independent user parameters Industri 7 2 Module independentuser parameters The following parameters are identical for all PROFIBUS DP nodes of the piconet system Table 7 1 Byte Bit Parameters Module independent 7 1 IP module diagnosis parameters 7 0 is notactive A ADefault 1 5 active setting 9 3100 Data format 0011 INTEL 1011 MOTOROLA A 6and5 Updating of process image 01 Synchron 11 FreeRun A 10 1andO Reaction on DP error 00 IL cycle stopped A 01 IL outputs to 0 11 Outputs remain equal D300776 0511 piconet PROFIBUS DP 7 3 7 3 IP Link coupling module SDPL 0404D x00x The modules feature the following module specific parameters Table 7 2 Byte Bit Parameters Parameters SDPL 0404D x00x 10 3and2 IP Link error reaction ADefault 00 leave DataExchangeA setting 01 DP inputs to 0 10 DP inputs remain equal 5 SDPL 0404D xxxx BYTE Align 0 is not active A 1 is active 7 0 Behavior on IP Link error manual reset automatic reset 7 4 D300776 0511 piconet PROFIBUS DP Digital stand alone modules 7 4 Digital stand alone modules Note The digital stand alone modules of the piconet systes do not have any other adjustable parameters in addition to the module independent parameters 7 5 Digital extension modu
72. 81 xl ole se su 98 2 5 E lt keinFiter gt DPY1_piconet 1 Ba CPU 315 2 DP 3 7 S7 Programm 1 gj Quellen Bausteine Dr cken Sie F1 um Hilfe zu erhalten 1 Inorderto execute the DV V1 services the system function blocks SFB 52 and SFB53 with the corresponding data blocks DB52 and DB53 have to be called in OB1 of the program 2 SFB52 Figure 9 3 SFB52 D300776 0511 piconet PROFIBUS DP 9 3 Table 9 1 Parameters Data type Description Parameters of SFB52 Inputs EN BOOL Setting the parameter to true starts the function block BOOL REQ 1 Execute data transfer Can be realized through a signal change at an additional digital input ID DWORD Logic address of the DP slave station or module INDEX INT Number of the data set slot number or register number MLEN INT Maximum length of the data to be read in bytes Outputs VALID BOOL New data set has been received and is valid BUSY BOOL BUSY 1 The read operation is still running ERROR BOOL ERROR lt 1 Error during read operation STATUS DWORD Call ID bytes 2 and 3 or error code RECORD ANY Target area for the read data SFB53 Figure 9 4 SFB53 DWU 16 1E WRITE DB 9 4 D300776 0511 piconet PROFIBUS DP Industri A Table 9 2 Parameters of SFB53 Parameters Data type Description Inputs REQ BOOL REQ 1
73. ADuring light connection 17 0 5 Status byte of channel valveterminal of the company 6 7 Faulty channel number 0 3 Festo please observe the 18 0 7 Bit assignment analogous to byte 16 for another following note faulty module 19 0 5 Bit assignment analogous to byte 17 for another 6 7 faulty module 60 0 7 Bit assignment analogous to byte 16 for another faulty module 61 0 5 Bit assignment analogous to byte 17 for another 6 7 faulty module Attention A When connecting a Festo valve terminal please observe the following If byte 16 indicates a valve terminal error via indication of the extension module number this always signals an under voltage of U U 20 4 V Byte 17 is always 0 Please check the load voltage of the valves 6 12 D300776 0511 piconet PROFIBUS DP Industri A 7 User parameters of the piconet modules 7 1 Introduction 2 7 2 Module independent user parameters 3 7 3 IP Link coupling module SDPL 0404D XOOX 4 7 4 Digital 5 5 Digital extension 100101165 eee e eene eee eee esee sesesessse nese nenennene nananana ssa PPP PP sa ee ee eee e eee eee e eese esee 5 7 6 Analogue input modules Sxxx 40A 000x 7 6 1 Sxxx 40A 0004 7 6 2 Sxxx 40A 0005 7 6 3 hreeqiur 7 6 4 40 0009
74. CORD Target memory area ofthe CPU forthe Example read user data P4M 30 0 BYTE 3 Here it is important to enter the data length of the user data n byte RET_VAL Target memory area of the CPU for a e g MW100 possible error code of the block D300776 0511 piconet PROFIBUS DP 8 13 5 15 The 5 5 is needed to write the module specific settings and parameters to the register communication Function LADDR W 16 116 ROIS RECORD P M 110 0 BYTE 6 RET_VAL MW12 NOP 0 Call up the function block the command Call SFC14 Table 8 6 Parameter name Meaning Notation Parameters of the function block LADDR Configured start address ofthe module The entry is written in an hexadecimal SFC15 from the output data memory of the format controller Example W 16 14 RECORD Target memory area of the CPU for Example writing user data P4M 50 0 BYTE 3 Here it is important to enter the data length of the user data n byte RET VAL Target memory area of the CPU forthe e g MW120 error code of the block D300776 0511 piconet PROFIBUS DP Consistent data transmission The function blocks are stored in OB1 for each module Here the addresses and the O addresses are assigned to certain MBs in the memory of the PLC The example Figure 8 14 shows the call up for the first extension module Modul A 1 SNNE 10S 0004 in the IP Link with the start address 256 dec or 100 hex in the input I address an
75. Central unit for data processing the core component of the computer Digital A value e g of a voltage which can only assume a certain condition usually defined as 0 and 1 DIN The abbreviation for Deutsches Institut for Normung e V Earth An electrotechnical term used to signify conductive earth whose electrical potential is always zero The electrical potential of the earth can be unequal zero in the proximity of earthing systems In this case the term ground reference plane would be used Earth electrode One or several components which are in direct and good contact with the earth EIA The abbreviation for Electronic Industries Association An association of companies belonging to the electronic industries in the USA Electrical equipment All devices that are used for generation conversion transmission distribution and use of electrical energy such as conductors cables machines control sevices etc EMC The abbreviation for Electromagnetic Capability The term EMC describes the capability of an electrical apparatus to function correctly within a certain environment without having a negative influence on the environment D300776 0511 piconet PROFIBUS DP Industri A Equipotential bonding Adaptation of the electrical levels of the frame of electrical apparatus and external conductive components an electrical connection ESD The abbreviation for Electro Static Discharge Exposed c
76. DAT aps Tr yf Fetter 2 into Dr cken Se F1 um Hilfe zu erhalten Note The annex of this manual contains a detailed description of the connection of a piconet network to the Siemens controller S7 The chapter explains configuration set up and parameterisation via GSD file or register communication of various modules using several application examples D300776 0511 piconet PROFIBUS DP 4 9 0300776 0511 piconet PROFIBUS DP Industri A 5 Data mapping of the piconet modules 5 1 Data mapping Coupling 010165 ecce e eene esee eese eese eoo eaae eee e teet oeste eaae 2 5 1 1 Mapping of process data via byte 2 5 2 Data mapping Stand alone and extension modules eee ee eene sees esee esae 3 5 2 1 Digital input modules AIR i 5 2 2 Digital output modules Data mapping for SNNE 0016D 0001 5 2 3 Digital combined modules 7 7 5 2 4 Analogue input modules eret tte tegere iii 7 5 2 5 Analogue output Modules 9 5 3 Technology 06 11 5 3 1 Sxxx 10S 0001 Incremental encoder interface eerte 11 5 3 2 5 105 0002 RS232 interface
77. E Fehler beim lesen DWORD 1181680 Fehlercode INT 0 L nge gelesene Datensatz ARRAY 0 47 B 16 0 Datensatz 9 16 D300776 0511 piconet PROFIBUS DP Application example counter module 9 2 Application example counter module 9 2 1 Parameterization of a counter as stand alone module via GSx file E count upwards E Setting an output after 25 counted pulses 8 Resetting the output after 50 counted pulses 8 Resetting the counter to 0 after 100 counted pulses Industri A In the following example a piconet counter module is to be parameterized as follows The parameterization of the counter being a stand alone module can be done using the GSx parameters via the textual parameterization in the hardware configurator Attention For modules which provide the textual parameterization via GSx file a parameterization via register communication should be avoided See page 7 23 Parameterization of the modules Instructions 2 Thefollowing parameters are set 1 Openthe dialog box properties DP slave by double clicking the module In the register Parameter Assignment all device specific parameters can be found Figure 9 21 Parameterization in the Hardware Configurator Prozessabbildaktualisierung Reaktion auf DP Fehler Kanal 1 Watchdog Kanal 1 Setzen des Zaehlers Kanal 1 Setzen des Ausgangs Kanal 1 Ruecksetzen des Ausgangs Kanal 1 Ruecksetzen des Zaehle
78. EG DEZ 99 2 s 0811088 0 WRITE DB WR DPvi wERT D HEX gt 8816802 DB11 DBB 1 WRITE DBE WR wERT HEX B 16 01 5 DB11 DBB 2 WRITE DE WR wERT 2 HEX 8816800 6 0811088 3 wRITE DB wR DPVI wERT 3 HEX 8816800 M 401 Lesen BOOL s 0610088 0 READ HEX 8816800 a 0810088 1 READ DB RD DPV1 l HEX 8816800 10 0810088 2 READ DB RD DPV1 2 BHIBHOO 11 0810088 3 READ DB RD DPVI 3 HEX B 16 00 12 0810088 4 READ DB RD DPVvi 4 HEX Note The coupling module will always execute an IP Link reset as long as the input signal will be reset D300776 0511 piconet PROFIBUS DP 9 9 9 1 6 Register communication via DP V1 service Setting and activating switch on off and reset values in the piconet counter extension module will be used as examples for explaining the register communication via DP V1 The counter module fulfills the following functions E Setting an output after 10 counted pulses Resetting the output after 15 counted pulses 8 Resetting the counter to 0 after 20 counted pulses Writing the password into register 31 The password 0x1235 will be written into register 31 of the counter module In the example network the counter module is the fifth module n the IP Link module n the IP Link The communication is done via it s process data address defined in the hardware configuration 292 This means results in the fo
79. FIBUS DP 6 9 DP diagnosis accord to DP standard Table 6 11 DP diagnosis DP diagnosis coupling modules Byte Bit Description 0 0 No slave response set internally by the DP master Slave in start up mode evaluation of parameters and configuration Configuration error Ext Data present from byte 6 on Function is not supported Faulty slave response set internally by the DP master Parameterisation error Slave is exchanging data with other master set internally by the DP master Slave must be re parameterised Slave with static diagnostics 1 accord to PNO specification DP watchdog is active Slave is in Freeze Mode Slave is in Sync Mode reserved Slave is de activated set internally by the DP master reserved Too many Ext Diag Data 3 Station address of master with which data are transferred 4 5 Ident number Manufacturer specific diagnosis Note i The values in bytes 6 to 10 and bytes 14 and 15 are presented in a hexadecimal format The values in byte 11 to byte 13 are decimal D300776 0511 piconet PROFIBUS DP Error diagnosis via software Industri A Table 6 12 Byte Bit Description Manufacturer Value specific diagnosis Coupling modules 6 Length of Ext_Diag_Data including length byte 7 01 8 to 10 0 00 11 0 No error 1 Start IP Link error diagnostics 3
80. HEX 8816800 S 55 4 AIO 8 8 6 Monitoring the counting procedure via the table of variables The counter counts upwards The counted pulses are indicated in data byte 0 of the counter in this case MB 124 Reaching the switch on threshold 1 The counter counts up to 25 as pre set and sets the output 2 TheLED Q1 at the connector D of the counter module illuminates green 3 Bit 2 of the status byte in our example MB 120 is set Figure 8 24 Setting the output 8 26 Bil x Address Disp Status value Modify value 50 8 02020 0003 Counter Channel 1 read Mw 30 HEX WRIBHODUD MB 120 HEX 280000 0110 MB 121 HEX B 16 00 MB 122 HEX BH 16 00 MB 123 HEX B 16 00 MB 124 HEX 25 write Mw 32 HEX Wi 16 0000 MB 125 BIN 280000 0001 280000 0001 MB 126 HEX 8816800 MB 127 HEX 8816800 MB 128 HEX 8816800 MB 128 HEX 0300776 0511 piconet PROFIBUS DP Application example counter module Reaching the switch off pulse value 4 Thecounter continues to count as pre set After 50 counted pulses the output is reset 5 TheLED Q1 atthe connector D of the counter module turns off 6 Bit2isreset again in the status byte MB120 Figure 8 25 Resetting the output amp Address Disp Status value Modify value SDPB 0202D 0003 Counter Channel 1 read Mw 30
81. IBUS DP Error diagnosis via software 8 Channel specific diagnostics Table 6 10 Byte Bit Description Channel specific diagnostics 16 0 5 0x00 Stand alone modules 6 7 Faulty channel number 0x00 error in channel 0 0x40 error in channel 1 0x80 error in channel 2 60 0 error in channel 3 17 0 5 Status byte of channel 6 General error bit set in the event of an error 18 0 5 Bit assignment analogous to byte 16 for another 6 7 faulty channel 19 0 5 Bit assignment analogous to byte 17 for another 6 7 faulty channel 60 0 5 Bit assignment analogous to byte 16 for another 6 7 faulty channel 61 0 5 Bit assignment analogous to byte 17 for another 6 faulty channel Note The status byte is transferred from the module to the controller in the complex mapping mode It contains various status bits depending on the module type e g process data smaller larger limit value x over range under range etc 6 2 4 Diagnostic message of the coupling modules The DP master usually enables polling of a diagnostic data change via a flag in the PLC Diagnostic data can then be read via a function block With the Siemens controller S5 the diagnostic data are read with the function module FB IM308C and with the Siemens controller S7 with the function block SFC13 If more diagnostic data apply than can be transferred then this will be indicated by the diagnostic data D300776 0511 piconet PRO
82. ROR 0 2 D Qus DB153 DBDl STATUS be DB153 RECO RECORD ENO 4 4 gt erf Fehler 2 Info 9 14 D300776 0511 piconet PROFIBUS DP Setting the cycle time In networks 3 and 4 the cycle time of 20 ms to be set value 0x021E will be written to register 37 by means of SFB52 and DFB53 Figure 9 17 OB1 DPY1_40A_0005 SIMATIC 300 1 CPU 315 2 DP Cycle time in gt Datei Bearbeiten Einf gen Zielsystem Test Ansicht Extras Fenster Hilfe register 37 5 S fo e DI 8 A cycle time Hetzwerk 3 Filterwert in den DB153 laden Byte 18 02 und Byte 19 lE 20 ms Kommentar B register number DB153 DBXl Ho 0 DB153 DBX1 0 1 0 REQ DB153 DBXl 1 DW 16 64 DB153 DBXl QGH 0 2 B 2 LEN DB153 DBDl STATUS 2 DB153 RECO RD RECORD ENOL 14 4 gt e 1 Fehler A 2 Info Checking the parameter changes Checking the parameter changes is done by means of SFB52 RDREC To do so the new value in registers 37 is read out using the SFB in network 5 Figure 9 18 IBiKOP AWL FUP OB1 DP 1_40A_0005 SIMATIC 300 1 CPU 315 2 DP Checking the Datei Bearbeiten Einf gen _ Zielsystem Test Ansicht Extras Fenster Hilfe parameter Della ele vc s p changes DB152 DBXl 0 0 DB152 DBXl DB152 DBXl 0 1 REQ 9 1
83. Reg 0 DB Data byte 2 reserved DBO reserved reserved SB Status Byte Control Byte Complex evaluation in the INTEL format Table 5 28 Address Input data Output data Complex evaluation inthe Word High Byte Low Byte High Byte Low Byte MOTOROLA format 0 DBO SB Reg 0 CB 1 DB2 DB 1 reserved Reg 1 DB Data byte 2 reserved DB3 reserved reserved SB Status Byte Control Byte Data bytes 0 to 3 Contain the data of the encoder 0 least significant byte for register communication Reg most significant byte for register communication D300776 0511 piconet PROFIBUS DP 5 3 5 Sxxx 0002D 0002 pulse width output 24 2 5 This module can only be operated in the complex mode Complex evaluation in the MOTOROLA format Default mapping Table 5 29 Address Input data Output data Complex evaluation Word High Byte Low Byte High Byte Low Byte MOTOROLA 0 1 SB Channel 1 CB Reg 1 Channel 1 DB 1 Channel 1 DB Data byte 1 SB Channel 1 CB Channel 1 SB Status Byte Channel 2 Reg 0 Channel 2 DBO CB Control Byt THUS 2 Channel 2 Channel 2 Channel 2 Channel 2 Reg 0 Reg 1 DBO DB 1 Complex evaluation in the INTEL format Table 5 30 Address Input data Output data Complex evaluation Word High Byte Low Byte High Byte Low Byte INTEL format 0 Channel 1 SB Channel 1 CB Reg 0 Channel 1 DBO Channel 1 DB D
84. System description Industri A 3 1 10 System performance In order to achieve a relatively high level of device interchangeability the PROFIBUS DP system performance has also been standardized It is largely determined by the operating status of the DPM1 This can be either controlled locally or via the bus from the configuration device One distinguishes between three major conditions Table 3 4 Operating mode Description Operating modes Stop There is no data transfer between the DPM1 and the DP slaves The coupling module merely addresses the modules once after power up none of the I O LEDs illuminate Clear The DPM1 reads the input data of the DP slaves and retains the outputs of the DP slaves in the safe state depending on the reaction to fieldbus errors the green O LED illuminates and the outputs are set Operate The DPMI is in the data transfer phase During cyclic data exchange the inputs of the DP slaves are read and the output information is transferred to the DP slaves the green I O LED illuminates The 1 sends its local status within a configurable time interval via a multimaster command to all assigned DP slaves The system response to an error in the data transfer phase of the DPM1 e g a failure of a DP slave is determined by the operating parameter Auto Clear If this parameter is set to True then the DPM1 switches all outputs of the assigned DP slaves to the safe status as soon a
85. UE E siem0024 gsd TR TR directory 29 siEM0738 G5D rriF E siem8037 gsd rui FFiF ESTRCKFF2F 6SD 2 rriF FE TRCKFF33 G5D TU3 FF1F TrckfF9F asd TU4_FFIF SIEM8070 GSD gt Dateiname TRCKFF20 gsd TRCKFF21 gsd TRCKFF2 Dateityp GSD files gs Y Abbrechen 8 4 0300776 0511 piconet PROFIBUS DP Importing the GSD file E After correct import and an update of the hardware catalogue via Extras gt Update catalogue the modules will be displayed as separate entries in the hardware catalogue Note i The exact configuration procedure can be taken from the operating manual which is supplied together with the software D300776 0511 piconet PROFIBUS DP 8 5 8 4 Hardware configuration 1 Open the hardware configuration via the folder Hardware HW Config of the project Figure 8 4 RJ SIMATIC Manager piconet 1 C Programme Siemens Step7 s7projipicone 1 _B ni x the B Edit Insert PLC Options Window Help 421 x ardware i x Configuration aAa Sul Sofi Sa gt piconet 1 SIMATIC 3001 Press F1 to get Help 2 Inthe hardware catalogue first select Simatic 300 RACK 300 to select the type of rack Simply drag it to the upper part of the station window ig ure 8 5 GHW Config SIMATIC 300 1 Configuration piconet _1
86. When configuring the IP Link network with digital and analogue modules first register the analogue modules according to their physical order within the IP Link in the control software Then enter the digital modules in accordance to their physical order within the IP Link Then the inputs and outputs are mapped 3 Configuration errors with the PROFIBUS coupling module With piconet modules with less than 8 bits process data the process data are rounded off to 8 bits These modules thus occupy 8 bits in the respective process data area Note i To configure the digital modules in steps of 8 the byte alignment of the coupling module must be activated Please note that 4 inputs and 4 outputs must configured for instance for the module SxxB 0404D xxxx 4 IP Linkerrors If the IP Link error LED illuminates or flashes irregularly there is no message transmission or the telegrams are faulty The modules amplify every telegram but they cannot correct an error occured once The error must thus be traced backward from the last module to the first error free module The connection from this module to the next module is the source of error D300776 0511 piconet PROFIBUS DP 6 5 6 6 This error is usually due to IP Link lines with too high damping A possible cause could be the faulty assembly of cables and connectors Note The most simple test is visual inspection When held against a not too bright light source the res
87. al DPFMS User Defined Bus Parameters Abbrechen Hite D300776 0511 piconet PROFIBUS DP 8 7 8 4 1 8 8 Configuration of a piconet network 1 Afterselecting the CPU and configuring the PROFIBUS DP the fieldbus nodes are configured These will now appear after correct installation of the GSD files under Additional field devices in the hardware catalogue Configuration of the IP Link 2 The first module in our model network is the coupling module with the hardware address 11 3 Thenthe extension modules are added to the coupling module 4 First the byte oriented piconet modules i e all analogue modules and all technology modules of the IP Link ring must be selected Attention It must be ensured that the order of the extension modules in the configuration software accords exactly to the physical order of the modules see Table 67 Model network in the IP Link network 5 After the byte oriented modules have been configured the digital modules are integrated into the IP Link 6 Thenthe input and output channels of the modules are configured in steps of 8 Note To configure the digital modules in steps of 8 the byte alignment of the coupling module must be activated When configuring the digital inputs and outputs please include the 4 inputs and 4 outputs of the coupling module D300776 0511 piconet PROFIBUS DP Hardware configuration
88. alone and extension modules Industri A Status byte DS Default Status The outputs have assumed the default status as defined in register R33 OCGx Over Current Group x Short circuit on one of the outputs of group x The output concerned is indicated in the input byte Note i The fault display must be reset when the fault is rectified by resetting bit 6 of the control byte UV Under voltage Load voltage UL lt 18 V UL LED lit red the outptus remain switched off Error error bit Fault has occured RA Register Access Acknowledgement for the process data operation Control byte SDS Set Default Status Sets the output to the predefined default status defined in register R33 RE Reset Error Resets the indicated faults in the status byte RA Register Access Register communication switched off Process data operation 5 2 3 Digital combined modules 8 4 digital inputs and 4 digital outputs 1Module parameter byte alignment not active default and previous byte fully used 4 bits input and 4 bits output data are mapped Table 5 8 Data in the process image C female connector Pin 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Input ByteO 15 used by the next bit oriented 4 2 4 C1P4 COPA M8x1 extension module on the IP Link Byte 0 C1P2 C1P4 COP2 COPA M12 x 1 Output ByteO C7P4 C6P4 5 4 4 4 M8 x 1 Byte 0 C3P2 C3P4 C2P2 C2P4 M12 x
89. an always be replaced with new ones The documentation describes the differences between the modules The firmware and hardware status of the piconet modules can be taken from the version number printed on the side of the module The version number can be identified by the prefix D Table 1 1 Indication on Explanation Example Firmware and module hardware status D kkjjxyzu D 22011501 kk Calendar week Calendar week 22 ji Year of the year 2001 X Firmware bus board Firmware bus version 1 y Hardware bus board Hardware version 5 2 Firmware I O board Firmware I O 0 no firmware needed for this board Hardware I O board Hardware I O version 1 1 4 D300776 0511 piconet PROFIBUS DP List of Revisions Industri A 1 4 List of Revisions In comparison to the previous manual edition the following changes revisions have been made Table 1 2 Chapter Subject new changed List of revisions Description 9 IP Link diagnosis via acyclic services S7 and VT250 page X 10 1 Note The publication of this manual renders all previous editions invalid D300776 0511 piconet PROFIBUS DP 1 5 1 6 0300776 0511 piconet PROFIBUS DP Industri A 2 The piconet system 2 1 System OVEFVIEW 2 2 1 1 Coupling and stand alone 4 2 1 2 Extension Network IP LINK V 4 2 1 3 woinlezegnesfe
90. annel 1 watchdog ADefault 0 15 active A setting 1 is not active 1 3 Channel 2 watchdog O isactive 1 is not active 2 3 Channel 3 watchdog 0 active A 1 is not active 3 3 Channel 4 watchdog 0 active A 1 is not active 7 10 D300776 0511 piconet PROFIBUS DP Analogue output modules Sxxx 04A 000x Sxxx 04A 0009 The modules feature the following module specific parameters Industri A Table 7 8 Byte Bit Parameters Parameters Sxxx 04A 0009 0 3 Channel 1 watchdog ADefault 0 is active A setting 1 is active 5 Current mode for all channels 0 0 20 MAA 1 4 20 mA 1 5 Channel 2 watchdog 0 is activeA 1 is active 2 6 Channel 3 watchdog 0 is active A 1 is active 3 7 Channel 4 watchdog 0 is active A 1 is not active D300776 0511 piconet PROFIBUS DP 7 8 Technology modules 7 8 1 Sxxx 10S 0001 Incremental encoder interface This module cannot be clear text parameterised via the GSD file at present The module must be parameterised via the register communication of via the software I O ASSISTANT For this please refer to chapter 3 of the piconet I O module manual TURCK documentation number D300777 German D300778 English 7 8 2 Sxxx 10S 0002 RS232 interface The modules feature the following module spe
91. approx 0 M Resistance between shield at the beginning and shield at the end of the cable approx 0 If these measurements are successful then the cable can be used according to standards However if there are further disturbances on the bus electromagnetic interference should be considered as cause Please also observe the installation guidelines of the PROFIBUS user organization www profibus com 3 1 8 Diagnostic functions The comprehensive diagnostic functions of PROFIBUS DP allow fast error localization The PROFIBUS DP diagnosis is divided into three levels Table 3 3 PROFIBUS DP diagnostics Type of diagnosis Description station related diagnostics Messages concerning the general operational readiness of a bus node Example Excessive temperature or under voltage Module related diagnostics These messages indicate that there is a diagnostic message within the a certain I O area e g 8 bit output module of a bus node Channel related diagnostics Here the error cause of a single input output bit i e relating to a single channel is indicated Example Short circuit at output 2 Module related diagnostics The PROFIBUS slaves of the piconet series support the diagnostic functions of PROFIBUS DP The evaluation of the diagnostic data via the control depends on the support of the master Note Further information on diagnostics can be taken from the device descriptions of the master interfaces o
92. ata byte SB Status Byte 1 SB Channel 1 CB Channel 1 CB Control Byte Channel 2 Reg 1 Channel 2 DB 1 2 Channel 2 Channel 2 Channel 2 Channel 2 Reg 1 Reg 0 DB 1 DBO Channel x Reg Channel x least significant byte for register communication Channel x Channel x most significant byte for register communication 5 14 D300776 0511 piconet PROFIBUS DP Technology modules Industri A 5 3 6 Sxxx 0002D 0003 up down counter 24 VDC This module can only be operated in the complex mode Complex evaluation in the MOTOROLA format Default mapping Table 5 31 Address Input data Output data Complex evaluation Word High Byte Low Byte High Byte Low Byte MOTOROLA format 0 Channel 1 SB Channel 1 CB DB3 Channel 1 DB3 Channel 1 DB Data byte SB Status Byte 1 Channel 1 Channel 1 Channel 1 Channel 1 Control Byte DB 1 DB2 DB 1 DB2 2 SB Channel 1 CB Channel 1 Channel 2 DBO Channel 2 DBO 3 Channel 2 Channel 2 Channel 2 Channel 2 DB 2 DB DB2 DB3 4 Channel 2 Channel 2 Channel 2 Channel 2 DBO DB 1 DBO DB 1 8 Complex evaluation in the INTEL format Table 5 32 Address Input data Output data Complex evaluation Word High Byte Low Byte High Byte Low Byte INTEL format 0 Channel 1 SB Channel 1 CB DBO Channel 1 DBO Channel 1 DB Data byte SB Status Byte 1 Channel 1 Channel 1 Channel 1 Channel 1 CB Control Byte
93. ate the parameter SDPL 0404D xxxx Byte Align in the coupling module Figure 8 9 Activation ofthe byte alignment Parameters Value Station parameters Device specific parameters 2 DPV1 Services Class 1 is active H IP Modul diagnosis is not active HEJ Behaviour on IP Link Error automatic Reset HE Data Format MOTOROLA HE Updating of process image FreeRun 2 Reaction on DP Error IL Cycle stopped H IP Link Error Reaction leave DataE xchange SDPL 0404D xxxx BYTE lign is not active Hex parameter assignment is not active User Prm Data 0 to 7 is active User Prm Data 8 to 14 00 68 00 40 00 00 00 Cancel Help Table 8 4 Byte Input data Process image with byte 7 6 5 4 3 2 1 0 alignment E n z 0 idle idle idle idle A A A A Bit 3 Bit 2 Bit 1 Bit 0 Output data 0 A A A A idle idle idle idle Bit 3 Bit 2 Bit 1 Bit 0 2 7 7 7 7 A_7 A_7 A_7 A_7 Bit 7 Bit 6 Bit 5 Bit4 Bit 3 Bit 2 Bit 1 Bit 0 D300776 0511 piconet PROFIBUS DP 8 11 7 Allother modules of the network are configured according to the coupling module on PROFIBUS DP Figure 8 10 TT SIMATIC 300 1 Configuration piconet_sicherung Model network Gl Station Edit Insert PLC Options Window Help 8 S
94. be coded is reproduced in form of logical binary characters 0 and 1 or character strings Binary codes are suited for coding of numerical and alpha numerical characters Bus A group signal line for data transfer e g between the central processing unit CPU memory and I O level A bus can consist of several parallel lines for data transfer addressing control and power supply Bus cycle time The time interval in which the master adresses and communicates with all slaves within the bus system i e the time in which the master writes the slave outputs and reads the slave inputs Bus line Smallest unit connected to the bus consisting of a PLC a coupling element to couple the modules to the bus and a module D300776 0511 piconet PROFIBUS DP 11 1 Bus system The entirety of components that communicate via a bus Capacitive coupling A capacitive electrical coupling occurs between two conductors with different potentials Typical sources of interference are for example parallely routed signal lines contactors and static discharge Coding element A two part component for clear assignment of electronic and base module Command capable modules Command capable modules are modules with an internal command rountine which are capable of executing certain commands e g output of substitute values Configuration Systematic arrangement of the modules of a station CPU The abbreviation for Central Processing Unit
95. by any master even without access token Ident number Each DP slave and each 1 must have an individual ident number It is needed so that the DP master can identify the connected devices directly without creating significant protocol overhead The master compares the ident numbers of the connected DP devices with the ident numbers registered in the configuration data of the DPM2 User data transfer will only be started if the right device types with the right station addresses are connected to the bus This provides additional protection against configuration errors The manufacturer specific ident nos are determined and assigned by the PROFIBUS user organization PNO The PNO governs the ident no together with the GSD files 3 1 11 GSD files Each PROFIBUS DP module has a so called GSD file German abbr for device data base file that comprises detailed information on the module I O data volume transmission rates revision status etc This GSD file is needed to configure the station within the PROFIBUS DP system The GSD files can be downloaded via the TURCK web site under www turck com 3 10 D300776 0511 piconet PROFIBUS DP Acyclic services via DPV1 Industri A 3 2 Acyclic services DPV1 The following is basically valid 8 The execution of acyclic services is always possible via DP V1 during active communication of a Master class 2 DPM2 and piconet Fora communication between a DP Master class 1 DPM1 a
96. cific parameters Table 7 9 Byte Bit Parameters Parameters Sxxx 105 0002 0 2 1 0 Baud rate ADefault 000 reserved setting 001 reserved 010 reserved 011 1200 Baud 100 2400 Baud 101 4800 Baud 110 9600 Baud A 111 19200 Baud 1 2 1 0 Data structure 000 reserved 001 7 data even 010 data odd 011 8 data no A 100 8 data even 101 8 data odd 110 2 reserved 111 2 reserved 3 Stop bits 0 1 stop bit A 1 2 stop bits 2 reserved 3 2 Status one cycle later 0 is not active A 1 is active 7 12 D300776 0511 piconet PROFIBUS DP Technology modules Industri A Byte Bit Parameters 3 3 XON XOFF send 0 is notactive A 1 5 active 4 0 is notactive A 1 5 active 5 reserved 6 send 16 byte 0 is notactiveA 1 5 active 7 8 3 Sxxx 10S 0004 RS422 485 interface The modules feature the following module specific parameters Table 7 10 Byte Bit Parameters Parameters Sxxx 105 0002 0 2 1 0 Baud rate ADefault 000 reserved setting 001 reserved 010 reserved 011 2 1200 Baud 100 2400 Baud 101 4800 Baud 110 9600 Baud A 111 19200 Baud 1 2 1 0 Data structure 000 reserved 001 7 data even 010 data odd 011 8 data no 100 8 data even 101 8 data odd 110 reserved 111 reserved 3 St
97. combi modules 16 B 16 11 7 Extension module 17 B 16 00 Evaluation see page 3 11 As byte 3 00 the module is a bit oriented module Byte 2 11 00010001 Bit 1and0 01 n 2 de gt 2 Outputs Bit 4 1 which means number of in and outputs x 8 Bit gt Module type SNNE 0808D 000x 8 channel output module 17 B 16 00 no further modules in the network 18 B 16 00 9 8 D300776 0511 piconet PROFIBUS DP 9 1 5 IP Link reset If via the GSD file the parameter Restart after IP Link error is set to manual reset the IP Link reset can be activated with the following DP V1 parameters After an IP Link interruption and it s elimination the IP Link can be restarted Table 9 5 Slotnumber Index Byte Description IP Link reset 0 99 0 2 See Figure 9 8 0 99 1 1 VATI IP Link reset 0 99 2 0 0 99 3 0 9 7 nA Durchf hren eines IP Link Resets Index 99 Kommentar IP Link reset 1853 Schreiben E0 0 16 7 9 WRITE DB UR DPVl EG 4 WRITE DB DPVl W ERT During the IP Link reset the index no 99 and the entries necessary for the reset are transferred to the SFB53 via the variable table In this case the activation of the function block with true at DB11 DBW 4 as well as the enable via a positive signal at E0 0 is important Figure 9 8 VATI IP Link reset M 400 Schreiben BOOL true DB11 DBW 4 WRITE DB wR R
98. conet PROFIBUS DP Reading IP Link errors using VT250 with CoDeSys CoDeSys V3 reading the IP Link error counter from register table 90 For reading register table 90 the following entries have to be done Slave 15 Slot 0 Index 90 RdLen 48 Table 10 4 DPV1 pico project CoDeSys Reading register Datei Bearbeiten Ansicht Projekt Visualisierung Erstellen Online Debug Tools Fenster Hilfe g g Cui gt table 90 Dum AS Gerate v 5 X Visualization PLC PRG SDPL_0404D_x00x Task Configuration jj _Erweiterungsmodul v BPVI_pico 7 DEI device Verbunden T 0 Slave 15 80 sPS Logik Trigger Q Bibliotheksverwalter abyReadDatali Slot 0 E PLC PRG PRG o 84 Taskkonfiguration Index 90 MainTask 1 Visualization Manager 2 visualization 3 8 fJ CIFX PB 4 spPL 04040 00 50 1 04040 00 5 Erweiterungsmodul 3 SNNE 40A 000x Keppelmodul Inputs 8 Digitale Inputs OPState 0 Koppelmodul Outputs 8 Bit Digitale Outputs 7 OD Erweiterungsmodul_1_ 8 Digitale Inputs 8 6 0 Erweiterungsmodul 2 Inputs 8 Bit Digitale Outputs 9 0 Erweiterungsmodul 2 Outputs 8 Bit Digitale Inputs 10 Erweiterungsmodul_4_ 8 Bit Digitale Outputs 12 13 14 15 The read are displayed in abyReadData The error c
99. d together with the software Selection of a CPU E First please select a module rack In this example the rack 300 is selected under SIMATIC 300 gt RACK 300 Figure 4 5 i Hw Config SIMATIC 300 1 Configuration piconet 11 5 xi Selection ofa Station Edit Insert PLC Options Window Help 8 x module rack 3 amp suli EE 92 Profile Standard 2 5 n PROFIBUS DP PROFIBUS PA SIMATIC 300 E 7 300 cPu 300 m RI FM 300 Gateway 1M 300 M7 EXTENSION E 5 300 J RACK 300 B Rail E E E1 E1 E EH SM 300 SIMATIC 400 SIMATIC PC Based Control 300 400 8 SIMATIC PC Station IBES7 390 1 0 0AA0 EC Available in various lengths E Insertion possible kh 8 9 9 Order number 8 Then the CPU type is determined E First enter the PROFIBUS address of the CPU and select the subnet PROFIBUS in the pop up dialogue window Via the button Properties the subnet can be defined more precisely Figure 4 6 Properties PROFIBUS interface 0 52 2d Selection ofa General Parameters subnet Address a z If a subnet is selected the next available address is suggested Highest address 126 Transmission rate 1 5 Mbps Subnet not networked New Properties Delete D300776 0511 piconet PROFIBUS DP 4 5 4 2 2 Selection of the piconet
100. d output data area O address of the PLC Figure 8 14 SFC14 und SFC 15 for the module 5 105 0004 0300776 0511 piconet PROFIBUS DP LAD STL FBD OB1 piconet_sicherung SIMATIC 300 1 CPU 315 2 DP DI xl 18 xl gt File Edit Insert PLC Window Help nlala sole etel To of cbs el e HOC OBL Debug View Options Main Program Sweep Cycle Commenti Billy Station Edit Insert PLC View Options Window Help 8 2 Network 1 read SNNE 105 0004 R 485 422 IP Link DPRD DAT 14 SDFB E 15 SDPB 12 SDFB 15 SDPB LADDR RET VAL amino P M 50 0 B RECORD EN ENO ISNNE 404 000x 4x24 Bit In D o SHINE ARI Une Bit ho lt SINE GOI Ue d Bik IT W 16 100 LADDR P M 60 0 B YTE 6 RECORD 044 000 4x24 Bit In O SRE LI EI I INE dM UG o SHINE del Ure 4 Bit In ARR 4 4 I DICI 1 Error 2 Info ISNNE 0202D 0003 292 295 292 296 A SWINE 32222040107 297 97 B98 RI 277 8 Bit Digitale Inputs 0 8 Bit Digitale Inputs 1 8 Bit Digitale Outputs 0 8 Bit Digitale Outputs 1 Press F1 to get Help The 6 input data bytes of the module are written to the flag area from MB 50 0 on MB 50
101. d output data to the data bytes 9 18 D300776 0511 PROFIBUS DP Application example counter module Industri A 9 2 3 Activating the switch on off and reset threshold values Activating the counter functions for setting and resetting the output as well as for resetting the counter is done in the module s feature register register 32 see forthe counter s register assignment Chapter 12 Technology modules in manual piconet TURCK documentation number 0300778 English Writing the feature register register 32 The settings in register 32 are transmitted to the module via the control byte as follows Table 9 11 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Writing register 32 control byte 1 1 1 0 0 0 0 0 Bit 7 1 register communication activated Bit 6 1 register is written Bit 5 to Bit 0 32 dec register number The assignment of the Feature register defines the following settings for this example E Low byte data byte 0 in the example memory byte 119 Value 0x78 Table 9 12 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Register 32 Low byte 0 1 1 1 1 0 0 0 Bit 7 0 pulse mode inactive Bit 6 1 function for the counter reset active Bit 5 1 function for resetting the output active Bit 4 1 function for resetting the output active Bit 3 1 Setting the counter is done with a positive edge at bit CNT SET the co
102. e 6 10 2 1 Example Project m 6 Example 10 22 Configuration of the station Step7 10 2 3 Reading the diagnosis via acyclic services Using the function block AANA K zBLuriccce 8 Step7 reading the IP Link error counter from register table 90 eene 9 Step7 reading the IP Link error counter from register table 50 10 10 3 Reading IP Link errors using VT250 with CoDeSys V3 10 3 1 Example project Example network 10 3 2 Configuration of the station in CoDeSys 10 3 3 Using the library lloDrvDPV1C1 library of CoDeSys PER Example program Example visualization CoDeSys V3 reading the IP Link error counter from register table 90 CoDeSys V3 reading the IP Link error counter from register table 50 D300776 0511 piconet PROFIBUS DP 10 1 10 1 General This chapter describes in order to localize an error in a IP Link line the reading of error counters from register tables see General structure of the data in the register tables page 10 3 of the coupling module and the IP Link extension modules by means of acyclic PROFIBUS DPV1 services If the IP Link communication is disturbed but not totally in
103. e Of the data blocks c eee t topic Application example counter module eee eee eee eene eee eee eee ee esee eese eese esaet eee se esses esses so seeone 9 17 Parameterization of a counter as stand alone module GSx file 9 17 Parameterization of a counter as extension module via register communication ees 9 18 0300776 0511 piconet PROFIBUS DP Industr A Writing the password into register 31 7 9 18 9 2 3 Activating the switch on off and reset threshold 9 19 Writing the feature register register 32 9 19 9 2 4 9 21 9 2 5 Enabling the internal counter 9 2 6 Monitoring the count operation via the variable table Reaching the switch on threshold value Reaching the switch off pulse value Application example SSI 016 9 26 9 3 Application example incremental encoder
104. e function IODrvDPV1 M Read with the structure 1 C1 M Read is used Figure 10 5 Eingabehilfe DP Vi C1 M Kategorien Elemente Read en nis Schl sselw rter pPV1 C1 Alarm TYPE pPvi C1 Alarmack 27 1 Read pPV1 C1 Status pPvi Ci write O ICmpIoDrwDPY1C 0 ICmpIoDrwDPYWIC Standard Argumenten einf gen Strukturierte Ansicht Dokumentation anzeigen Dokumentation TYPE 1 C1 Read bEnable BOOL VAR IN byStationAddress VAR bySlotNr BYTE VAR byIndex BYTE VAR wLen WORD VAR INOUT byDummy ARRAY 0 1 OF BYTE VAR pBuffer POINTER TO BYTE VAR abyError ARRAY 0 3 OF BYTE VAR OUT wOpState WORD VAR wJobld WORD VAR LOCAL bOldEnable BOOL VAR Abbrechen The variables of the function block are defined as follows Table 10 3 Variable Data type Description Description of DPV1_C1_M_ Read bEnable BOOL Enable Flag of the service input byStationAddress BYTE station address of the slave input bySlotNr BYTE slot number of the slave input bylndex BYTE Index number of the slave input wLen WORD Length of the data to be read byDummy ARRAY 0 1 OF BYTE reserved in output pBuffer POINTER TO BYTE Pointer to the memory area to which the read data have to be written in output abyError ARRAY 0 3 OF BYTE reserved in output 10 12 D300776 0511 piconet PROFIBUS DP Reading IP Link er
105. e gateway It is independent of the fieldbus MSB The abbreviation for Most Significant Bit The bit with the highest significance Multimaster Mode An operating mode in which all stations or node have equal rights to communicate over the bus N NAMUR The abbreviation for Normen Arbeitsgemeinschaft f r Mess und Regeltechnik NAMUR sensors are special versions of 2 wire sensors Due to their special construction i e low internal resistance only very few components short housings Namur initiators are particularly interference immune and provide a high level of operational safety Overhead System administration time required by the the system for each transmission cycle P Parameterisation Determination of parameters ofthe individual bus stations or their modules via the configuration software of the DP master PLC The abbreviation for Programmable Logic Controller Potential free Galvanic isolation of the reference potentials of the control and load current circuits of I O modules Potential bound Electrical connection of the reference potentials of the control and load current circuits of I O modules PROFIBUS DP PROFIBUS bus system with DP protocol DP stands for Decentralised Periphery The PROFIBUS DP is based on DIN 19245 part 1 4 and was integrated in the European fieldbus standard EN 50170 It is designed for fast cyclic data transfer between the central DP master and the remote peripheral compone
106. e the parameter DP V1 Services Class 1 at every stand alone or IP Link coupling module Figure Ix avele 90 Activating the DP services nersiiame169 nismegli isisme169 isismeiegenoileie E E isisme169 ea E szonpeibluboM ql AJOAOTOM jemmoinsisd E brisivelist priaisizileublebliddezzssoY 2 igqoizsp zublys al lue E ville 121 I lene 2 Sylnel4 svilizoq zisldssS 290 95090 I lene E ville irloin 321 zpriepzuA 2sb 95080 lene E ville 1rloin 121 zpnep2uA 29 9519220290 lere E ville irloin 321 zisidseS 290 nssiszAoswA T 68 E ville 121 8 zluqml 65 ste d nensqe lene E em 08 zu DES 2268 remi T lene S ville 12i fim 951922 lene E 0 hiswllewra tlerlazni3 lene E 0 eluqmliledozzuA lene E siliH 94 Load the changed hardware configuration into the PLC using the PLC Download command 9 2 D300776 0511 piconet PROFIBUS DP 9 1 3 Structure of the 57 program Figure 9 2 57 EE 3 nx Datei Bearbeiten Einf gen Zielsystem Ansicht Extras Fenster Hilfe
107. echnology modules e eee ecce e eee ee eee ee eee ee eese esee esee esee eese eese sees osse osse ss sesoe Sxxx 10S 0001 Incremental encoder interface Sxxx 105 0002 RS232 interface se 5 105 0004 RS422 485 interface 0 9 SXXX 10S 0005 SSI interface i Sxxx 0002D 0002 pulse width output 24 2 5 5 14 Sxxx 0002D 0003 up down counter 24 9 5 15 Error treatment and diagnostics Error diagnosis 6 2 0105 Diagnostic LEDs for PROFIBUS Parameter data errors z Configuration data este e S A lac aisi D300776 0511 piconet PROFIBUS DP Industr A 6 1 3 Trouble SHOOTING 6 5 Avoidance 6 5 6 2 Error diagnosis via software 6 7 6 2 1 General informalo e aiar 6 7 6 2 2 General structure of diagnostic messages essent teen tton testis tono tts nette notitia eee 6 7 6 2 3 Diagnostic telegram of the stand alone 6 8 6 24 Diagnostic message 6 9 7 User parameters of the piconet modules 7 1 Introduction
108. eering configuration or operating devices They are used during set up maintenance and diagnosis to configure the connected devices to evaluate parameters and to scan the device status DP slave A PROFIBUS DP slave is a peripheral device I Os drives transducers which reads input data and provides output data to the periphery Of course there are also devices which provide only input or only output data The input and output data volume depends on the specific device and may comprise up to 246 bytes input data and 246 bytes output data Single Master systems With mono master systems merely a single master on the bus is active during bus operation The PLC is the central control component The slaves are coupled decentrally to the PLC via the transmission medium With this type of system configuration the shortest bus cycle times are achieved Multi Master systems In multi master operation there are several masters on the bus These form independent sub systems consisting of one DPM1 each and the associated slaves or additional configuration and diagnostic devices The slave input and output data can be read by all DP masters Writing of outputs is reserved to a single DP master the assigned 1 during configuration Multi Master systems achieve an average bus cycle time In time critical applications you should monitor the bus cycle time via a connected diagnostic tool D300776 0511 piconet PROFIBUS DP System descri
109. egisters 3 13 Connection of piconet to PROFIBUS DP Connection modes e eee ee ee eee eese ee etes ee esses eese eese ees esee ese eo eee eese see es sees esses ee see sees 4 2 Fi ldb s CoHHection z tette tein tired EEE de da ina aa Fieldbus termination Service Interface c aeta a ai ca etse te iecit seu RNC Ere Nominal current consumption of piconet modules connected to PROFIBUS DP 4 3 piconet connection to the Siemens PLC type S7 1 55555 4 4 Importing the erret race A Selection ofa CPU ce aient tee reete te eR Selection of the piconet modules as slaves Configuration of the stand alone modules IP Link network configuration Consistent data transmission ertet ere eee eie eee e Ee Aa Data mapping of the piconet modules Data mapping Coupling modules eere e esee eee eee ee eee see e nose osse ss sss ss sss sess s sss ss ss ess sess eee ee eet ee eoee 5 2 Mapping of process data via te 9 5 2 Data mapping Stand alone and extension modules Digital input Digital output modules s Analogue modules netter RE ii Anialogue output modules ette ries ete tinere cereos pnt deshacer estet avene desee etienne T
110. er mode is also done using the module s feature register R32 Writing the feature register register 32 The settings in register 32 are transmitted to the module via the control byte as follows Table 9 31 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Writing register 32 control byte 1 1 1 0 0 0 0 0 Bit 7 1 register communication activated Bit 6 1 register is written Bit 5 to Bit 0 32 dec register number The assignment of the Feature register of the incremental encoder defines the following settings for this example E Low byte data byte 0 in the example memory byte 119 Value 0x00 Table 9 32 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Register 32 Low byte 0 0 0 0 0 0 0 0 Bit 7 0 reserved Bit 6 Bit 5 0 reserved Bit 4 0 external latch function active Bit3 Bit2 O status input active low is mirrored to the status byte bit 5 Bit 1 0 thecounteris disabled with high signal at the gate input Bit 0 0 reserved High byte Regl in the example memory byte 191 Value 0x80 Table 9 33 Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Register 32 High byte 1 0 0 0 0 0 0 0 Bit 15 1 counter mode Bit 14 to Bit 12 00 reserved Bit 11 Bit10 O quadruple evaluation of the encoder signals A B C Bit 9 Bit8 1 reserved D300776 0511 piconet PROFIBUS DP 9 33 Figure 9 34 Writing register 32 9 34 Yariable be
111. erand Symbol Anzeigeformat Statuswert Steuerwert M 200 BOOL true true 201 Mie 202 MI false 203 204 205 206 CALL RDREC DBSZ REQ M ID INDEX M M M M HLEN VALID BUSY ERROR STU M 207 LEN DB11 DEW RECORD Werte DB DEW 2 DB11 DBW 4 DB11 DBW DB11 DEW 8 DB11DBW 10 Witt 6 0000 rtetes Dateiformat 3 Querverweise Operandeninfo 5 Steuem Diagnose 7 Vergleich Dr cken Sie F1 um Hife zu erhalten The read are displayed DB1 1 The error counter in DB11 DBW8 shows that error streams arrive at the extension module see also Register tables 50 60 error counter of the extension modules page 10 4 and that the IP Link communication is disturbed at this position 10 10 D300776 0511 piconet PROFIBUS DP Reading IP Link errors using VT250 with CoDeSys 10 3 Reading IP Link errors using VT250 with CoDeSys 10 3 1 Example project Example network VT250 57P firmware 250 57 1 0 5 E piconet station DP address 15 coupling module SDPL 0404D 1003 4 digital inputs and 4 digital outputs IP Link extension module 1 SNNE 0808D 0001 8 digital inputs and 8 digital outputs IP Link extension module 2 SNNE 0800D 0007 8 digital inputs IP Link extension module 3 SNNE 40A 0004 4 analog inputs TC IP Link extension module 4 SNNE 0008D 0006 8 digital out
112. ern AT_1 pico Setting the Tabelle Bearbeiten Einf gen Zielsystem Variable Ansicht counter Extras Fenster Hilfe 1 x a S 8 x Sy ar Operand Symbol Anz _Statuswert__ SDBP 105 0001 Inkremental Encoder MW 46 HEX W 16 0000 MB 180 Status BIN 280000 0100 MB 181 DI DEZ 0 MB 182 DO DEZ 8 MB 183 D2 BIN 280011 0000 MB 184 D4 DEZ 10 MB 185 DEZ 87 schreiben Mw 48 WHIBHOODO MB 190 Control BIN 240000_0100 280000 EO MB 191 1 HEX 8816800 BHIBHOD gt MB 192 RegO HEX 8816800 MB 193 HEX 8816800 MB 194 HEX 8816800 MB 195 HEX 8816800 Piconet SIMATIC 300 1 157 Programm 5 Depending on sense of rotation of the connected encoder the module counts up or downwards starting at 0 Data byte D2 The status of the input channels A B and C as well of inputs Gate and Latch are monitored in data byte 2 Table 9 23 Bit 7 6 5 4 3 2 1 0 Data byte D2 Name INPUT A INPUT B INPUT C INPUT ERR LATCH Gate Table 9 24 Name Description Description INPUT A Status of input channel A INPUT B Status of input channel B INPUT C Status of input channel C ERR Status of the alert channel LATCH Status of the LATCH input at the M12 connector GATE Status of the GATE input at the M12 connector Storing the counter value Data byte D3 and D4 store the actually present count value when acti
113. ers Table 7 11 Byte Bit Parameters Parameters 5 105 0002 Channel 1 ADefault 20 0 Channel 1 watchdog setting 0 is active A 1 5 active 1 Channel 1 set counter 0 positive signal A 1 positive edge 2 Channel 1 set output 0 is notactive A 1 5 active 3 Channel 1 reset output 0 is notactive A 1 5 active 4 Channel 1 reset counter 0 is notactive A 1 5 active 5 Channel 1 pulse mode 0 5 not active A 1 5 active 6 Channel 1 disable counter 0 Gate0 A 1 Gate 1 20 7 Channel 1 timer basis 0 1 us Digit 250 us 65 ms A 1 64 us Digit 10 us 4 ms 21 0 Channel 1 set back with reset 0 is active A 1 5 active 2410 27 Channel 1 power on level 28 to 31 Channel 1 power off pulse D300776 0511 piconet PROFIBUS DP 7 15 Byte Bit Parameters Channel 1 reset level BParameter 32to 35 setting Channel 2 identical to channel 1 ofthe 22 and module 23 The assignment of the parameter bytes 22 and 23 of the module accords to the assignment of the parameter bytes 20 and 21 for channel 1 of the module 36to 39 The assignment of the parameter bytes 36 to 39 of the module accords to the assignment of the parameter bytes 24 to 27 for channel 1 of the module 40 to 43 The assignment of the parameter bytes 40 to 43 of
114. essment of the voltage drop on the power cable The annex of the piconet module manual TURCK documentation number D300777 German D300778 English contains tables with the nominal current consumption of the modules D300776 0511 piconet PROFIBUS DP 4 3 4 2 4 2 1 Figure 4 3 Importing a GSD file into the software via the menu item Install New GSD File piconet connection to the Siemens PLC type 57 In order to describe the connection of the piconet modules to an S7 type Siemens controller the software package SIMATIC Manager version 5 1 with Service Pack 6 from the company Siemens is used Importing the GSD file Prior to initial configuration of the piconet system via the hardware configurator of the software the piconet GSD files must be imported into the software Two different procedures can be applied Prior to starting the software 8 Copy the GSD GSG files of the piconet modules TRCKFFxx gsx into the directory Step7 S7data GSD M Copy the Icon files bmp to the directory Step7 S7data NSBMP E Start the software SIMATIC Manager Upon correct installation of the files the piconet modules will be registered automatically in the hardware overview which can be called up under the menu item Insert Hardware Catalogue After starting the software If you have started to the software please proceed as follows to import the above mentioned GSx files M Please open a ne
115. est address has to be chosen INDEX Number of the module s index to be read no of the register table to be read see also Step7 reading the IP Link error counter from register table 90 page 10 9 and Step7 reading the IP Link error counter from register table 50 page 10 10 MLEN Maximum length of the data to be read D300776 0511 piconet PROFIBUS DP 10 7 Table 12 Parameter name Meaning Output data SFB52 VALID New data set was received and valid BUSY BUSY 1 The read process is not yet terminated ERROR ERROR lt 1 Error occurred while reading STATUS Error code of the function block see Siemens online help for SFB54 RALRAM LEN Length of the read data RECORD Target area for the read data record here in this example DB1 1 The following variables are important for reading out the IP Link diagnosis REQ Start of the data set transmission E ID Definition of the diagnosis address of the piconet coupling module here address 2043 7FB INDEX Number of the register table to be read register table 90 or register table 50 60 see General structure of the data in the register tables page 10 3 MLEN Length of data to be read Variable table Figure 10 3 HS KOP AWL FUP_ OB1 DPV1_IP_Link SIMATIC 300 1 PN DPI 0B1 Example of variable table 9 Neues Netzwerk FB Bausteine FC Bausteine gg SFB Bausteine g SFC
116. f the various manufacturers D300776 0511 piconet PROFIBUS DP 3 7 3 1 9 Sync and Freeze Mode In addition to the node specific user data traffic which is automatically controlled by the DPM1 the DP master has the possibility to send control commands to a slave a group of slaves or simultaneously to all DP slaves These control commands are transmitted as multicast messages The Sync and Freeze mode for synchronization of the DP slaves can be determined via the control commands They enable event controlled synchronization of the DP slaves Sync Mode The DP slaves initiate the Sync mode upon receipt of a Sync control command from the assigned DP master In this mode all addressed DP slaves freeze their present output status During the following user data transfer cycles the output data are stored by the DP slaves while the output states are retained Only after receipt of the next Sync control command from the master the stored output data are switched through to the outputs The Sync mode is terminated upon an Unsync control command Freeze Mode The Freeze control command induces the addressed DP slaves to assume the Freeze mode In this mode the momentary values of the input states are frozen Input data will only be updated upon receipt of the next freeze command from the DP master by the affected devices The Freeze mode is terminated upon an Unfreeze control command D300776 0511 piconet PROFIBUS DP
117. files Modules that enable clear text parameterisation via GSx files should thus not be parameterised via register communication Note The piconet module manual TURCK document number 0300777 German and 0300778 English contains a detailed description of the register communication as well as precise specifications of the register allocation of the individual piconet modules D300776 0511 piconet PROFIBUS DP Application example counter module 8 8 Application example counter module In the following example a piconet counter module is to fulfil the following functions Upwards counting E Setting the output after 25 counted pulses 8 Resetting the output after 50 counted pulses Resetting the counter to 0 after 100 counted pulses 8 8 1 Parameterisation of a counter as a stand alone module via GSx file The counter can be parameterised as a stand alone module via clear text parameterisation in the hardware configurator and the GSx file parameters Attention Modules that enable clear text parameterisation via GSx files should thus not be parameterised via register communication See Seite 1 20 Parameterisation of the modules Procedure 1 Double click on the module to open the dialogue Properties DP slave In the register Parameterisation you will find the device specific parameters of the module 2 Thefollowing parameter settings are made ia x Parameterisat
118. gnosis 6and7 Length of diagnostic data Diagnostic code defined by PROFIBUS DP standard 8to 15 reserved 16 to 61 Channel specific diagnostics D300776 0511 piconet PROFIBUS DP 6 7 6 2 3 Diagnostic telegram of the stand alone modules DP diagnosis accord to DP standard Table 6 8 Byte Bit Description DP diagnosis Stand alone 0 0 No slave response set internally by the DP master modules 1 Slave in start up mode evaluation of parameters and configuration 2 Configuration error 3 Ext Data present from byte 6 on 4 Function is not supported 5 Faulty slave response set internally by the DP master 6 Parameterisation error 7 Slave is exchanging data with other master set internally by the DP master 1 0 Slave must be re parameterised 1 Slave with static diagnostics 2 1 accord to PNO specification 3 DP watchdog is active 4 Slave is in Freeze Mode 5 Slave is in Sync Mode 6 reserved 7 Slave is de activated set internally by the DP master 2 0 6 reserved 7 Too many Ext Diag Data 3 Station address of master with which data are transferred 4 5 Ident number Manufacturer specific diagnosis Table 6 9 Byte Bit Description Manufacturer specific diagnosis 6 Length of Ext_Diag_Data including length byte Stand alone modules 7 0x81 code 1 diagnostic format 8 to 15 0x00 6 8 D300776 0511 piconet PROF
119. h Byte Low Byte INTEL format 0 Channel 1 SB Channel 1 CB DBO Channel 1 DBO Channel 1 DB Data byte SB Status Byte 1 SB Channel 1 CB Channel 1 CB Control Byte Channel 2 DB 1 Channel 2 DB 1 2 Channel 2 Channel 2 Channel 2 Channel 2 DB 1 DBO DB 1 DBO 3 Channel 3 SB Channel 3 CB DBO Channel 3 DBO Channel 3 4 SB Channel 3 CB Channel 3 Channel 4 DB 1 Channel 4 DB 1 5 Channel 4 Channel 4 Channel 4 Channel 4 DB 1 DBO DB 1 DBO 5 8 D300776 0511 piconet PROFIBUS DP Data mapping Stand alone and extension modules Industri A 5 2 5 Analogue output modules Note The data mapping of all analogue output modules is identical E Compact evaluation in the MOTOROLA format default mapping Table 5 17 Address Input data Output data Compact evaluation Word High Byte Low Byte INTEL format 0 Channel 1 Channel 1 DB Data byte DB 1 DBO 1 Channel 2 Channel 2 DB 1 DBO 2 Channel 3 Channel 3 DB 1 DBO 3 Channel 4 Channel 4 DB 1 DBO E Compact evaluation in the INTEL format Table 5 18 Address Input data Output data Compact evaluation Word High Byte Low Byte INTEL format 0 Channel 1 Channel 1 DB Data byte DB 1 DBO 1 Channel 2 Channel 2 DB 1 DBO 2 Channel 3 Channel 3 DB 1 DBO 3 Channel 4 Channel 4 DB 1 DBO D300776 0511 piconet PROFIBUS DP 5 9 Complex evaluation in
120. ia register communication eerte 8 31 Writing a password to register 31 8 31 Disabling the counter rele den boos ipte tnde ipte indes 8 32 Switching from Encoder interface mode to counter mode e 8 34 Application example acyclic services in piconet with S7 DP V1 GON Cl Fassa ee eere oa CI LISTEN NON ETE e tena se ed aus ou cuo ti duse ss ese eep 9 2 Example network Config ration of the laica Rai etos Structure of the S7 PLOQKAM Reading out the IP Link configuration variable 6 POS E Register communication via DP V1 service Writing the password into register 31 Activating the switch on off and reset threshold values Enabling the internal counter c Writing the password into register 31 4 Setting the cycle stent ene nee e Ree Y ee bate n at n Eu ire ic nee ted Checking the parameter changes csscssscssecssecsnecesseccsseccsseccsscesssccsssccesecesuscesnscessscessecctsecseseessuscesusecsuseesseeesseeesneessneeesaes Structur
121. iconet PROFIBUS DP 3 13 0300776 0511 piconet PROFIBUS DP Industri A 4 Connection of piconet to PROFIBUS DP 4 1 Connection modes 2 4 1 1 Field DUS geeii Taiejueee e aana a AR Ra 2 4 1 2 Fieldbus iunrucm 4 1 3 Service 0 aaa 4 1 4 Nominal current consumption of piconet modules connected to PROFIBUS DP 4 2 piconet connection to the Siemens 4 4 2 1 Importing the GSD flle cec re E ie 4 Selection Of 5 4 2 2 Selection of the piconet 6 6 IP Link network configuration 4 2 3 Consistent data 4 2 4 Consistent data transmission via Siemens function blocks SFC14 and SFC15 ze lle m 8 D300776 0511 piconet PROFIBUS DP 4 1 4 1 Connection modes 4 1 1 Fieldbus connection The fieldbus conection of both stand alone modules and coupling modules is established via reverse keyed M12 x 1 connectors Note i The PROFIBUS DP is routed forward either via an external T or Y piece or with the modules of new series e g SDPL 0404D 1003 via an integrated T piece M12 male connect
122. if input Gate high 1 Figure ZT gramm loxi Writing register32 operand Sym Anei ststuswert steuerwer t M 400 Schreiben BOOL tue DB11 DBW 4 wRITE DB wR DPv1 REG DEZ 32 32 DB11 DEB 0 WRITE DB WR WERT O HEX BHIG HOT DB11 DBB 1 WRITE_DE WR_DPV1_WERT 1 8816878 8816878 DB11 DBB 2 wRITE DB wR DPV1 wERT 2 8816800 8816800 6 DB11 DBB 3 WRITE DB wR DPV1 wERT 3 8816800 8816800 M 401 Lesen BOOL m true true DBIO DEB 0 READ_DB RD_DPY1 0 HEX 0810088 1 READ DB RD DPvi 1 HEX 8816878 10 0810088 2 READ_DE RD_DPV1 2 B 16 00 il 0810088 3 READ DB RD DPw1 3 HEX 0300776 0511 piconet PROFIBUS DP 9 11 Note The settings done in register 32 will only be valid after a voltage reset of the module Note In order to control the changes in register 32 a read command with true in M40 1 line 7 in the figure above the actual register value can be read out If this value fits to the value entered before the write command was successful 9 1 7 Enabling the internal counter functions Before enabling the counter the internal counter functions which means the parameter settings have to be enabled using the enable bit A bit 0 in the module s control byte The access to the control byte is done via the process data which makes a consistent data transfer necessary see also chapter 8 Consistent data transmission page 8 13
123. ily disturbed In this case the IP Link error position is either shown optically via LED blinking codes or read via PROFIBUS DP diagnostics The error position is localized by counting backwards starting at the coupling module see Error diagnosis via LEDs page 6 2 Note If in register table 50 the maximum number of error streams is reached 255 0xFF in low and high byte the error counter stops at these values It can only be reset to zero by means of a power reset But ifthe communication is still running then the error counter for each extension module can be read from register tables 50 to 60 Register table 50 contains the error counters for modules 1 to 22 of the IP Link line register table 51 contains the error counters for modules 23 to 46 etc Table 10 4 Table Byte Word Word no Register Content iu no no at Siemens no Error counter afi 60 50 0 0 0 0 Offset 1 0 0 0 2 1 2 1 3 1 2 1 4 2 4 2 extension module 1 Low byte 5 2 4 2 High byte 6 3 6 3 extension module2 Low byte 7 3 6 3 High byte 8 4 8 extension module3 Low byte 9 4 8 High byte 46 23 46 23 extension module 22 Low byte 47 23 46 23 High byte 51 0 0 0 24 extension module 23 Low byte 1 0 0 24 High byte 2 1 2 25 extension module 24 Low byte 3 1 2 25 High byte 46 23 46 47 extension module 46 Low byte 47 23 46 47 High byte The position of
124. in point and then swing around this position This will lead to a fluctuation of the count at a certain value If a reference value is within this range of fluctuation the associated output will switch on and off in the rhythm of the oscillation 1 0 The abbreviation for Input Output Impedance The resistance of a component or a circuit of several components for an AC current of a certain frequency Inductive coupling An inductive magnetic coupling between two current carrying conductors The magnetic effect caused by the currents induces an interference voltage Typical sources of interference are for example transfomers motors parallely routed power cables and high frequency signal lines Lightning protection All measures that can help protect a system against damage caused by excessive voltages due to lightning Low impedance connection Connection with a low AC resistance LSB The abbreviation for Least Significant Bit The bit with the lowest significance Master A bus station or a bus node which controls the communication between the other bus devices Master Slave Mode An operating mode in which one station or node controls the communication over the bus as a master D300776 0511 piconet PROFIBUS DP Industri A Mode The operating mode of a system component etc Module bus The module bus is the internal bus of a BL67 station The BL67 modules communicate the module bus with th
125. incremental encoder module via GSX file is not possible at the moment The module can either be parameterized via the control byte and or via register communication or via the software I O ASSISTANT 3 0 9 4 2 Parameterization of an incremental encoder via the control byte In many cases the parameterization of the incremental encoder can be done directly via the control byte A parameterization via register communication is then not necessary Certain parameterizations have nevertheless to be done using the register communication All settings are done directly in the predefined registers Setting the counter value With a rising edge at bit SET bit 2 in the control word the counter will be set to the value defined via the process data in RegO and Reg1 see Mapping in the bus specific piconet manual Setting the bit CNT SET Setting the bit is done simply the control byte without register access Table 9 21 Bit 7 6 5 4 3 2 1 0 Control byte Name RegAccess CNT SET LAT EXT LATC RD PERIOD Table 9 22 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Setting CNT_SET 0 0 0 0 1 0 0 The value defined in Reg0 memory byte 192 and Reg1 memory byte 191 in this example 0 is overtaken Note i Please ensure that bit CNT_SET has to be reset before activating it again D300776 0511 piconet PROFIBUS DP 9 27 9 30 Variable beobachten und steu
126. ion 3 General Parameter Assignment via the hardware configurator Parameters VENE 3 Device specific parameters E DPV1 Services Class 1 is active IP Modul diagnosis is not active Data format MOTOROLA Updating of process image FreeRun Reaction on DP Error IP Cycle stopped channel 1 Watchdog is active channel 1 Set Counter positive edge channel 1 Set Output is active channel 1 Reset Output is active channel 1 Reset Counter is active channel 1 puls mode is not active s channel 1 Disable Counter Gate 1 channel 1 Timer Base 1 us Digit 250 us 65 ms channel 1 set back with Reset is active channel 1 power on level channel 1 power off puls channel 1 Reset level 3 After having completed module configuration store and load the modified parameters to the controller via the command PLC Download D300776 0511 piconet PROFIBUS DP 8 19 8 8 2 Parameterisation of a counter as an extension module via register communication The module must be parameterised via the register communication or via the software I O ASSISTANT All settings are made directly in the pre defined registers Access to the registers of the piconet modules is enabled via an upload of the register communication a write or read command and the entry of the register number in the control byte of the respective module Writing a password to register 31 The password 0x
127. ion INPUT A Status of input channel A INPUT B Status of input channel B INPUT C Status of input channel C INPUT ERR Status of alarm channel LATCH Status of LATCH input at M12 connector GATE Status of GATE input at M12 connector Storing the counter value Data bytes D3 and 4 store the actual counter value upon activation of the external latch input Bit 1 LAT EXT of the control byte is set to activate the external latch input Upon receipt of the first external latch pulse at the latch input and a valid EN LAT EXT bit the counter value is saved The following pulses have no influence on the latch register if the bit is set This bit is set without register access simply via the control byte in process data operation Table 8 22 Bit 7 6 5 4 3 2 1 0 Control byte Name RegAcc CNT SET EN LAT EN LATC ess RD PERIOD Table 8 23 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Setting EN LAT EXT 0 0 0 0 0 0 1 0 If an edge change from 0 to 1 takes place at the external latch input during the counting procedure the actual counter value is written to data bytes D3 and D4 Bit 1 LATCH in data byte D2 see page 8 29 is set for a short moment to indicate activation ofthe latch input Figure 8 27 Storing the Bi x counter value Address Disp Status value Modify value 5 0001 incremental encoder head 144 Mw 46 HEX 1680000 MB 180 280000 0010 MB 181 MB 182 148 MB 183 MB 184 MB 185 15
128. ister O to 5 D300776 0511 piconet PROFIBUS DP 9 23 9 2 5 Enabling internal counter functions 1 Before enabling the counter the internal counter functions which means the parameter settings have to be enabled using the enable bit A bit 0 in the module s control byte 2 The control byte is written with 20000 0001 using the variable table Figure 9 27 Enabling via bit Bit 0 of the control bytes 9 2 6 Monitoring the count operation via the variable table VAT 1 piconet SIMATIC 300 1 CPU 315 2 DP S7 Progr Tabelle Bearbeiten Einf gen Zielsystem Variable Ansicht Extras Fenster Hilfe la gt a S seel x fe SNNE 0202D 0003 Z hler Kanal 1 Lesen Mw 26 HEX W 16 0000 65 MB 110 BIN 280000 0010 66 111 HEX 8816800 MB 112 HEX 8816800 68 113 HEX 8816800 69 MB 114 DEZ 0 schreiben Mw 28 HEX W 16 0000 MB 115 BIN 280000 0001 MB 116 HEX B 16 12 MB 117 HEX B 16 35 MB 118 HEX BHI6 OD i MB 119 HEX 8816800 5 piconet SIMATIC 300 1 57 Program 6 lt The counter counts upwards The counted pulses are monitored in data byte 0 in this case MB124 of the counter Reaching the switch on threshold value 1 Asdefined the counter counts to 25 and sets the output 2 TheLED Q1 at connector D of the counter module lights up green 3 Bit2 ofthe status byte in the example MB 1
129. laves M device module and channel specific diagnostics parameterization and configuration of slaves DP V1 This is the first step in the further development of PROFIBUS DP DP V1 is above all designed for acyclic services e g acyclic parameterization of devices parallel to the cyclic user data traffic acyclic parameterization operation monitoring and alarm handling indication of diagnostics using alarms standardization of the first 3 bytes of the user parameter data Module addressing in DP V1 In DP V1 module addressing is done slot number and index whereas the slot number describes the module and the index the data block belonging to the module max 244 byte Modular slaves In modular devices the slot number is assigned to the modules With piconet this is valid for the IP Link coupling modules and the respective extension modules The coupling module is slot number 0 the addressing of the extension modules starts with 1 D300776 0511 piconet PROFIBUS DP System description Industri A Compact devices The compact devices are considered as an entity of virtual modules For the piconet stand alone modules addressing starts with slot number 1 slot number 0 does not exist Note H chapter 9 contains an application example which describes the addressing of modules in the IP Link as well as the addressing of stand alone modules In addition to that the acyclic parameterizatio
130. ld HEX WHIBHOODU BIN 281010 0011 HEX B 16 00 HEX B 16 00 DEZ 0 DEZ 0 HEX W 16 0000 BIN 281110 0011 281110 0011 B 16 00 HEX B 16 00 DEZ DEZ 25 Switch off threshold value 50 pulses Table 9 17 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Writing register 37 control byte 1 1 1 0 0 1 0 1 data byte 0 memory byte 119 50 dec 0x32 hex Table 9 18 Bit7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Data byte 0 memory byte 0 0 1 1 0 0 1 0 119 9 22 D300776 0511 piconet PROFIBUS DP Application example counter module Industri A threshold HEX WHiBHODDU BIN 2 1010_0101 111 B 16 00 112 B 16 00 113 DEZ 0 114 DEZ 8 schreiben HEX Ww 16 0000 BIN 281110 0101 HEX B 16 00 HEX B 16 00 DEZ DEZ 50 8 Reset threshold value 100 pulses Table 9 19 Bit 7 Bit 6 Bit 5 Bit4 Bit 3 Bit 2 Bit 1 Bit 0 Writing register 39 control byte 1 1 1 0 0 1 1 1 data byte 0 memory byte 119 100 dec 0x64 hex Table 9 20 Bit 7 Bit 6 Bit 5 Bit4 Bit 3 Bit 2 Bit 1 Bit 0 Data byte 0 memory byte 0 1 1 0 0 1 0 0 119 Figure 9 26 Reset threshold value HEX WHWIBHOODO BIN 211010 0111 HEX 8816800 HEX 8816800 DEZ 0 DEZ 0 HEX W 16 0000 BIN 281110 0111 HEX B 16 00 HEX B 16 00 DEZ DEZ 100 Attention Please execute a power reset in order to overtake the settings from register 35 to 40 to reg
131. le Industri A Setting the bit CNT SET This bit is set without register access simply via the control byte Table 8 18 Bit 7 6 5 4 3 2 1 0 Control byte Name RegAccess CNT_ EN LAT EXT LATC SET PERIOD Table 8 19 Bit 7 Bit 6 Bit 5 Bit4 Bit 3 Bit 2 Bit 1 Bit 0 Setting CNT SET 0 0 0 0 0 1 0 0 The value set in Reg 0 MB 192 and Reg 1 MB 191 in our example O is accepted Note Please note that the bit CNT SET requires a reset prior to re activation Figure 8 26 5 Setting the 4 counter Address Disp Status value Modify value 508 105 0001 incremental encoder read 144 Mw 46 HEX MB 180 BIN 280000 0100 MB 181 DEZ 0 MB 182 DEZ 0 148 MB 183 280011 0000 MB 184 DEZ 10 MB 185 DEZ 87 write 152 Mw 48 HEX Ww 16 0000 MB 190 BIN 280000 0100 280000 000 MB 181 HEX 8816800 B 16 00 MB 182 8816800 156 MB 193 HEX BHIBHOD MB 184 HEX 8816800 158 MB 195 HEX 8816800 The module counts from 0 on upwards or downwards depending on the rotary direction of the connected encoder Data byte D2 The status of the input channels A B and C as well as the inputs Gate and Latch is shown in data byte D2 Table 8 20 Bit 7 6 5 4 3 2 1 0 Data byte D2 Name INPUT A INPUT B INPUT C INPUT ERR LATCH Gate D300776 0511 piconet PROFIBUS DP 8 29 Table 8 21 Name Description Descript
132. le 5 13 Address Input data Output data Compact evaluation Word High Byte Low Byte MOTOROLA format 0 Channel 1 Channel 1 DBO DB 1 DB Data byte 1 Channel 2 Channel 2 5 DBO DB 1 2 Channel 3 Channel 3 DBO DB 1 3 Channel 4 Channel 4 E DBO DB 1 E Compact evaluation in the INTEL format Table 5 14 Address Input data Output data Compact evaluation Word High Byte Low Byte INTELINTEL format 0 Channel 1 DB 1 Channel 1 DBO DB Data byte 1 Channel 2 Channel 2 2 DBO 2 Channel 3 Channel 3 DB 1 DBO 3 Channel 4 Channel 4 DB 1 DBO D300776 0511 piconet PROFIBUS DP 5 7 Complex evaluation in the MOTOROLA format Table 5 15 Address Input data Output data Complex evaluation Word High Byte Low Byte High Byte Low Byte MOTOROLA format 0 Channel 1 SB Channel 1 CB DB 1 Channel 1 DB 1 Channel 1 DB Data byte 1 SB Channel 1 CB Channel 1 SB Status Byte Channel 2 DB 0 Channel 2 DBO CB Control Byt ir id 2 Channel 2 Channel 2 Channel 2 Channel 2 DBO DB 1 DBO DB 1 3 Channel 3 SB Channel 3 CB DB 1 Channel 3 DB 1 Channel 3 4 SB Channel 3 CB Channel 3 Channel 4 DBO Channel 4 DBO 5 Channel 4 Channel 4 Channel 4 Channel 4 DBO DB 1 DBO DB 1 Complex evaluation in the INTEL format Table 5 16 Address Input data Output data Complex evaluation Word High Byte Low Byte Hig
133. le Outputs 1 D300776 0511 piconet PROFIBUS DP 8 9 This results in the following allocation of the process data bytes in the IP Link network of the sample station compare Figure 8 8 Table 8 2 IP Link network Process data Process data bytes ofthe IP Link Module physical Designation Input bytes Output bytes order in the no no IP Link A SDPL 0404D x00x 0 A 1 1 SNNE 10S 0004 256 261 256 261 A_2 2 SNNE 10S 0002 262 267 262 267 3 SNNE 40A 0009 268 279 268 279 4 4 SNNE 40A 0004 280 291 280 291 A_5 5 SNNE 0202D 0003 292 301 292 301 A_6 6 SNNE 0808D 0001 1 A_7 7 SNNE 0008D 0001 2 Attention A Only ifthe parameter SDPL 0404 xxxx Byte Align is activated in the coupling module all digital modules will occupy a full byte input or output data Please also read Kapitel 4 section Mapping of process data via byte alignment Data mapping without byte alignment Table 8 3 Byte Input data Process image without 7 6 5 4 3 2 1 0 byte alignment 0 A 6 A 6 A 6 A 6 A A A A Bit 3 Bit 2 Bit 1 Bit 0 Bit 3 Bit 2 Bit 1 Bit 0 1 _6 _6 _6 _6 Bit 7 Bit 6 Bit 5 Bit 4 Output data 0 A_6 A_6 A_6 A_6 A A A A Bit 3 Bit 2 Bit 1 Bit 0 Bit 3 Bit 2 Bit 1 Bit 0 8 10 D300776 0511 piconet PROFIBUS DP Hardware configuration Data mapping with byte alignment For this please activ
134. les Note The digital extension modules of the piconet system are not parameterisable D300776 0511 piconet PROFIBUS DP 7 5 7 6 Analogue modules Sxxx 40A 000x 7 6 1 Sxxx 40A 0004 The modules feature the following module specific parameters Parameters Cold junction compensation 0 each channel individual A 1 channel 1 for all channels Channel 1 thermocouple 0000 thermocouple type L 0001 thermocouple type 0010 thermocouple type J 0011 thermocouple type E 0100 thermocouple type T 0101 thermocouple type N 0111 thermocouple type B 1000 thermocouple type R 1001 thermocouple type S 1010 reserved 1011 reserved 1100 reserved 1101 30 30 mV 1110 60 60 mV 1111 120 120 mV Channel 1 Siemens additional bit 0 is not active A 1 is active Channel 1 Reference junction 0 is active 1 is not active A Parameters of channel 2 Parameters of channel 3 Parameters of channel 4 Table 7 3 Byte Bit Parameters Sxxx 40A 0004 0 0 ADefault setting 1 0 to 3 1 5 6 2 0 to 6 3 0 to 6 4 0 to 6 7 6 D300776 0511 piconet PROFIBUS DP Analogue input modules Sxxx 40A 000x Industri A 7 6 2 Sxxx 40A 0005 The modules feature the following module specific parameters Table 7 4 Byte Bit Parameters Parame
135. llowing entries fir OB1 ID 292 124 nex Index Register number Index 31 to be entered in VAT1 Figure 9 9 bs write Passwort schreiben in Register 31 von Modul 5 d Slot 5 passwor ID Prozessadresse von Modul 5 292 dez 124 hex Index Regiternummer 31 ber VAT einzugeben Aprocessdata 1853 address of the counter module Schreiben A Bwill be entered to VATI in B DB11 DBW4 WRITE DB WRITE DB STATUS 41m 300 WR DPVl ERT In order to take over the changes done in OB1 the data block has to be sent again to the PLC The command for writing the register and the enabling of the register communication by entering the password is then done via variable table Figure 9 10 A 101 Entering the operand symbol Statuswert Steuerwert password 1 M 400 Schreiben EN false true 2 DB11 DBW 4 WRITE_DB WR_DPV1_REG DEZ 32 31 0811 088 0 WAITE DB WR DPVI WERT D gt 2 DB11 DBB 1 WRITE DB WR DPVI HEX B 16 00 37 5 081 088 2 DB WR DPVI WERT HEX 86168000 8816800 6 0811088 3 WRITE DE WR DPVI WERT 3 HEX 8816800 8816800 M 401 Lesen BOOL false true a 06810088 0 READ DB RD HEX B 16 00 0810088 1 READ_DE RD_DPVI 1 HEX io 6810088 2 BEAD DB RD DPVi 2 HEX B 16 00 11 0810088 3 READ DB RD DPVi 3 HEX 8816800 12 0610088 4 READ DB RD
136. luation in the MOTOROLA format Default mapping Table 5 21 Complex evaluation in the MOTOROLA format DB Data byte SB Status Byte CB Control Byte Address Input data Output data Word High Byte Low Byte High Byte Low Byte 0 DB 1 SB Reg 1 CB 1 DB2 DBO reserved Reg 0 2 DB 3 DB 4 reserved reserved Complex evaluation in the INTEL format Table 5 22 Complex evaluation in the INTEL format DB Data byte SB Status Byte CB Control Byte Address Input data Output data Word High Byte Low Byte High Byte Low Byte 0 DB 0 SB Reg 0 CB 1 DB2 DB 1 reserved Reg 1 2 DB4 DB3 reserved reserved Data byte 0 least significant byte of the counter word read set Data byte 1 most significant byte of the counter word read set Data byte 2 Status of A B C latch gate and latch input Data byte 3 least significant byte of the latch word read least significant byte of the period Data byte 4 most significant byte of the latch word read most significant byte of the period least significant byte for register communication Reg most significant byte for register communication D300776 0511 piconet PROFIBUS DP 5 11 5 3 2 Sxxx 10S 0002 RS232 interface This module can only be operated in the complex mode Complex evaluation in the INTEL MOTOROLA format Table 5 23 Address Input data Ou
137. ment is contained in chapter 12 of the piconet I O module manual piconet I O document number 0300777 German D300778 English Application example Incremental encoder In the following example the piconet incremental encoder module is to fulfil the following functions E Setting the counter value to 0 Storing the count with an activated latch input Inhibiting the counter with a low level at the gate input Switching from encoder interface mode to counter mode Parameterisation of an incremental encoder via GSx file The incremental encoder cannot be parameterised via the GSx file at present The module can be parameterised either via the control byte and or register communication or via the software I O ASSISTANT Parameterisation of an incremental encoder via the control byte Im many cases the incremental encoder can be parameterised directly via the control byte Parameterisation via register communcation is thus not necessary Certain parameters must however be set by the register communication All settings are made directly in the pre defined registers Setting the counter value The counter is set with a rising edge of the bit CNT SET Bit 2 in control word of the module to the value which is determined by the process data in Reg0 and see Mapping in the bus specific piconet manual D300776 0511 piconet PROFIBUS DP Application example 551 modu
138. n of modules is specified D300776 0511 piconet PROFIBUS DP 3 3 3 1 3 3 4 Master slave system PROFIBUS DP is a master slave system which consists of a master usually integrated in the PLC and up to 31 slaves per segment During operation the master constantly scans the connected slave stations Several masters may be connected within a single network this would then be classified as a multi master system In this case they pass on their transmission permission Token Passing PROFIBUS DP uses a bit transmission layer Physical Layer based on the industrially proven RS485 standard System configuration and device types PROFIBUS DP is suited for both mono master or multi master system configuration Thus a high level of flexibility in system configuration is guaranteed The network comprises 126 devices max master or slaves Configurable system parameters include the number of stations the assignment of the station address to the I O addresses data consistence of I O data format of diagnostic messages and the bus parameters used Every PROFIBUS DP system consists of different types of devices One distinguishes between three device types E DP master class 1 DPM1 This is a central control which exchanges data in a defined message cycle with the remote stations slaves Typical devices are for instance programmable logic controllers PLCs or PCs E DP master class 2 DPM2 Devices of this type are engin
139. nd piconet the acyclic communication has to be activated using a configuration tool acyclic services are deactivated per default 3 2 1 DP V1 functions The stand alone modules and the extension modules support the following functions of DP V1 services DP V1 services Note The maximum length of the DP V1 services is 48 bytes Reading the configuration only IP Link The configuration of the extension modules can be read from the IP Link coupling module For each connected extension module one word 16 bits is transferred This word contains for all analog and byte oriented module the modules type for example 5109 Incremental Encoder and for all digital extension module the module size and the module type Table 3 6 Bit Description of the digital modules Description of the digital modules 0 1 if bit4 0 number of outputs multplied with 2 bit if bit4 1 number of outputs multplied with 8 bit 2 3 if bit4 0 number of inputs multiplied with 2 bit if bit 4 1 number of inputs multiplied with 8 bit 4 0 bit data length 2 1 bit data length 8 5 6 00 This is a combined module with 4 in and 4 outputs 01 This is a combined module with 8 in and 8 outputs 2 dedicated 3 dedicated 7 15 always 0 0300776 0511 piconet PROFIBUS DP 3 11 The module configuration can be read using the following DP V1 parameters the modules are listed in the same order as they are connected to the OP Link
140. ns function modules SFC14 and SFC15 13 13 C P 14 8 6 Module access via a table of variables ee Lees Lees e eee eee eee ee eee eee eese eese esee eese esses ees se ees seeou 16 8 7 Parameterisation of the modules lecce ee eee n enne enne n ee stesse teet teet eee eese esee esee eee ee eese sese u 18 8 8 Application example counter 8 8 1 Parameterisation of a counter as a stand alone module via GSx file 8 8 2 Parameterisation of a counter as an extension module via register communication Writing a password to register 8 8 3 Activation of the switch on switch off and reset thresholds eee Writing the feature register register 32 eere ennn tentent tento tette 8 8 4 8 8 5 Enabling the internal counter 8 8 6 Monitoring the counting procedure via the table of variables eerte Reaching the switch on threshold eese Reaching the switch off pulse 8 9 Application example SSI 00160 28 8 9 1 Application example Incremental
141. ntrol byte Bit 2 0 watchdog active Bit 1 Bit O 0 reserved D300776 0511 piconet PROFIBUS DP 9 19 High byte gt data byte 1 in the example memory byte 118 Value 0x01 Table 9 13 Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Register 32 High byte 0 0 0 0 0 0 0 1 Bit 15 to 11 00 reserved Bit 10 0 resetting the output is done with a counter reset Bit 9 0 timer base pulse length register 41 1 us Digit 250 us 65 ms Bit8 1 counter is disabled if input Gate high 1 Figure 9 23 Writing register 32 2 Operand Anz SNNE 0202D 0003 Z hler Kanal 1 iLesen Mw 26 HEX W 16H0000 MB 110 BIN 280000 0010 MB 111 HEX 8816800 MB 112 HEX 8816800 MB 113 DEZ 0 MB 114 DEZ schreiben Mw 28 HEX 41680000 MB 115 BIN 281110 0000 291110 0000 116 HEX 8816800 117 HEX B 16800 118 HEX B 16801 119 HEX B 16 78 B 16 78 el Note The settings done in register 32 will only be valid after a voltage reset of the module 9 20 D300776 0511 piconet PROFIBUS DP Application example counter module Industri A 9 2 4 Activating the switch on off and reset threshold values Setting the threshold values is done in registers 35 to 40 The threshold values will be permanently stored to the module s EEPROM Note Important for the threshold values switch on value lt switch off value lt reset value
142. nts i e the DP slaves Consistent usage is realised by a multimaster concept PROFIBUS DP address Every PROFIBUS DP module has a unique address via which it can be addressed by the master PROFIBUS DP Master As the central bus component the PROFIBUS DP master controls the access of all PROFIBUS DP slaves to the PROFIBUS D300776 0511 piconet PROFIBUS DP 11 5 PROFIBUS DP Slave PROFIBUS DP slaves are addressed by the PROFIBUS DP master and exchange data with the master upon receipt of a master poll request Protective earth conductor A conductor needed for protection against dangerous shock currents signified by the abbreviation PE for Protective Earth Radiated coupling Radiative coupling occurs if an electromagnetic wave meets a conductor structure The wave will induce currents and voltages in the conductor Typical sources of interference are for instance sparking gaps sparking plugs collectors of electro motors and emitters e g radio interference which are operated near the affected conductor structure Reference potential Potential which serves as a reference for the measurement or assessment of the voltage of all connected circuits Response time In a bus system this term is used to define the time interval between sending a read command and the receipt of a response If referring to an input module it describes the time interval between a signal change at the module input and the signal output to the b
143. obachten und steuern AT_1 piconet xi Tabelle Bearbeiten Einf gen Zielsystem Variable Ansicht Extras Fenster Hilfe 8 xl a laele amp Dje e S ae _ Symbol Anz Statuswert Steverweit Mw 46 MB MB MB MB MB 180 181 182 183 184 185 schreiben Mw 48 1 190 Control 191 Reg _ 192 0 193 194 195 DEZ DEZ BIN DEZ DEZ HEX BIN BIN BIN HEX HEX OS Piconet SIMATIC 300 1 157 Programm 5 Note After a power reset of the module the settings done in R32 become valid the module changes to the process data exchange and the counter continues counting D300776 0511 piconet PROFIBUS DP Industri A 10 IP Link diagnosis via acyclic services 57 and VT250 2 10 1 10 1 1 Important 0 A Iaia 2 Date 2 GSD files 10 1 2 Function blocks for acyclic services 10 1 3 General structure of the data in the register tables Register table 90 general Register tables 50 60 error counter of the extension 4 10 2 Reading IP Link errors using the S7 with Step7 example ccce ee
144. ommand for writing the register and the enabling of the register communication by entering the password is given via the module s control byte Table 9 10 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Writing register 31 control byte 1 1 0 1 1 1 1 1 Bit 7 1 register communication activated Bit 6 1 register is written Bit 5 to Bit 0 31 dec register number The data bytes of the output data image contain the values which have to be transmitted to the respective registers The password 0 1235 is written to the module s data byte 0 in the example marker byte 119 and data byte 1 in the example marker byte 118 whereas data byte 0 is the low and data byte 1 the high byte In this case the 0x12 has thus to be written into memory byte 118 data byte 1 and the 0x35 into memory byte 119 data byte 0 Figure 9 22 Password in Anz register 31 SNNE 0202D 0003 Z hler Kanal 1 Aregister 31 Mw 26 HEX 1680000 Bdata byte 1 65 MB 110 BIN 21001 1111 A 65 MB 111 HEX B 16 00 Cdata byte 0 MB 112 8816800 68 MB 113 DEZ B 69 MB 114 DEZ 0 6 schreiben Mw 28 HEX Ww 16H0000 MB 115 BIN X 2H1101 281101 1111 MB 116 HEX B 16 00 MB 117 HEX 8816800 MB 118 HEX 8816812 MB 119 HEX B 16 35 8816835 7 Note The mapping tables in chapter 5 of the manual show the assignment of in an
145. onductive part An exposed conductive part is electrically isolated from the active conductive part but can become energised in the event of an error Fieldbus Data network at the sensor actuator level The fieldbus connects the field devices The fieldbus is characterised by the high transmission reliability and real time performance Field supply Supply of voltage to power the field devices as well as the signal voltage Force mode A software mode in which it is possible to set certain fixed variables of input and output modules to simulate certain system conditions Full duplex Also called duplex Physical or logical connection of two terminal points to establish a data transmission channel Data can be sent or received simultaneously in both directions Full duplex cables have two wires In full duplex operation either both channels or only one channel are used If data are transferred via a single channel this takes place in the multiplex mode That means that data are transferred alternately but with a very high frequency so that the impression of simultaneous data transfer is given G Galvanic coupling Galvanic coupling generally occurs if two current circuits share a common line Typical interference sources are for example starting motors static discharge clocked devices and a potential difference between component housings and the mutual power supply GND The abbreviation for Ground zero potential Gray Code
146. op bits 0 1stopbit A 1 2 stop bits 2 reserved D300776 0511 piconet PROFIBUS DP 7 13 Byte Bit Parameters 3 0 Half duplex 0 is not active A 1 5 active 2 State one cycle later 0 is not active A 1 5 active 3 3 XON XOFF send 0 is notactive A 1 is active 4 XON XOFF receive 0 is not active A 1 is active 5 RS422 mode 0 15 not active A 1 5 active 6 send 16 bytes 0 is not active A 1 5 active 7 8 4 Sxxx 10S 0005 SSI interface This module cannot be clear text parameterised via the GSD file at present The module must be parameterised via the register communication of via the software I O ASSISTANT For this please refer to chapter 3 of the piconet I O module manual TURCK documentation number D300777 German D300778 English 7 8 5 Sxxx 0002D 0002 pulse width output 24 VDC 2 5 A This module cannot be clear text parameterised via the GSD file at present The module must parameterised via the register communication of via the software I O ASSISTANT For this please refer to chapter 3 of the piconet I O module manual TURCK documentation number D300777 German D300778 English 7 14 D300776 0511 piconet PROFIBUS DP Technology modules Industri A 7 8 6 0002 0003 up down counter 24 VDC The modules feature the following paramet
147. or for the in coming bus line bus in Figure 4 1 2 12n c M12 male gt 2 LineA connector 3 1 3 GND reverse keyed 4 Line B 4 5 5 Shield also on coupling nut M12 female connector for the outgoing bus line bus out Figure 4 2 2 125VDC M12 female 6 2 Line A connector GND reverse keyed 4 Line 5 4 5 Shield also on coupling nut 4 1 2 Fieldbus termination The bus is terminated via an external terminating resistor The piconet modules are not capable of fieldbus termination Note i The bus termination must be accomplished externally via a connector with integrated terminating resistor e g RSS4 5 PDP TR ident no 6601590 as passive terminating resistor or PDP TRA ident nr 6825346 as active terminating resistor 4 1 3 Service interface The service interface is the interface between the piconet modules and the configuration and diagnostic software l O Assistant Alongside various offline functions project planning plausibility check of stations detailed project documentation the software offers many online functions for system set up diagnosis and trouble shooting 4 2 D300776 0511 piconet PROFIBUS DP Connection modes Industri A 4 1 4 Nominal current consumption of piconet modules connected to PROFIBUS DP It is important to consider the current consumption of the individual modules for power feed through calculations module protection and ass
148. ory of the controller hexadecimal format Example W 16 14 RECORD Target memory area of the CPU for the read user Example data P M 30 0 BYTE3 Here it is important to enter the data length of the user data n byte RET VAL Target memory area of the CPU for a possible e g MW100 error code of the block SFC15 The SFC15 is needed to write the module specific settings and parameters to the register communication Function LADDR W 16 116 block SFC15 RECORD P M 110 0 BYTE 6 RET_VAL MW12 NOP 0 Call up the function block the command Call 5 4 Table 4 3 Parameter Meaning Notation Parameters ofthe name function block SFC15 LADDR Configured start address of the module from the The entry is written in an output data memory of the controller hexadecimal format Example W 16 14 RECORD Target memory area of the CPU for writing user Example data P M 50 0 BYTE 3 Here it is important to enter the data length of the user data n byte RET VAL Target memory area of the CPU forthe error code e g MW120 of the block 4 8 0300776 0511 piconet PROFIBUS DP piconet connection to the Siemens PLC type 57 Figure 4 11 081 piconet SIMATIC IINU 315 200 SFC14 in vininisivicinl 2122 8 pec 1419915 1 Coming event Bits 4 7 1 Event class Metrwerk 2 SNNE 105 0004 RS485 422 SCHREIBEN tar f
149. ounter bytes 10 and 11 shows that error streams arrive at the coupling module and that the IP Link communication is disturbed D300776 0511 piconet PROFIBUS DP 10 15 CoDeSys V3 reading the IP Link error counter from register table 50 For reading register table 50 the following entries have to be done Slave 15 Slot 0 Index 0 48 Datei Bearbeiten Ansicht Projekt Visualisierung Erstellen Online Debug Tools Fenster Hilfe Reading register bl i 9 4 3 5 TE ES 5 oi LEE ON meee i Ger te 7 4 X 4 Visualization PLC PRG jj 50 04040 00 Task Configuration jj Erweiterungsmodul v X 2 DIVI pico tz amp gt en x Slave 15 8 525 1096 Trigger Bibliotheksverwalter abyReadData i Slot 0 E PRG 0 8 Taskkonfiguration Index 50 E MainTask 1 il Visualization Manager 2 d Visualization 3 48 crx CIFX PB 4 SDPL_0404D_x00x SDPL 0404D x00x 5 D Erweiterungsmodul 3 40 000 5 Koppelmodul Inputs 8 Bit Digitale Inputs OPState 0 Konnelmodul Outputs 8 Bit Digitale Outputs Erweiterungsmodul_1_ 8 Bit Digitale Inputs 8 6 0 Erweiterungsmodul 2 Inputs 8 Bit Digitale Outputs 9 Erweiterungsmodul_2_Outputs 8 Bit Digitale Inputs 10 6 i Erweiterungsmodul 4 8 Bit Digitale Outputs
150. pective connector surface should provide a uniformly lightened image check both sides In case of doubt re assemble the connector Please take care not to grind the optical fibre too far down see also D300778 piconet I O Manual chapter 2 section IP Link connector Note During connector assembly please ensure that the specifications on insulation stripping are observed The assembled cable can be tested simply when connected between coupling and extension module If the cable is correctly connected there will be no faulty telegrams D300776 0511 piconet PROFIBUS DP Error diagnosis via software Industri A 6 2 Error diagnosis via software 6 2 1 General information In the event of an error the piconet modules automatically send diagnostic data to the DP master Note Please note that the parameter IP module diagnostics of the diagnostic capable modules must be enabled Generally DP masters have the possibility to check whether diagnostic data have changed via a flag in the PLC Diagnostic data can then be read via a function block If more diagnostic data apply than can be transferred then this wil be indicated by the diagnostic data 6 2 2 General structure of diagnostic messages Table 6 7 Diagnostic Diagnostic contents Structure of the bytes diagnostic message 0to5 Standard PROFIBUS DP diagnosis according to PROFIBUS DP standard 6to61 Manufacturer specific dia
151. ption Industri A 3 1 4 Topology PROFIBUS DP communicates via a shielded 2 wire cable according to the RS485 standard The network topology accords to a line structure with active bus terminators on both ends 3 1 5 Maximum system expansion PROFIBUS DP is suited for connection of alarge number of I O points Up to 126 addressable bus nodes enable connection of thousands of analogue and digital points within a network PROFIBUS DP allows a maximum of 32 nodes per segment please note that masters and repeaters always count as nodes One segment is defined as the bus section between two repeaters If no repeaters are used the entire network corresponds to one segment Segments must comply with the specified maximum length and the specified transmission rates Up to nine repeaters type 002 may be connected within a network The maximum length of a bus line within a segment and the number of repeaters are listed in the following table Table 3 1 Communication Length ofbusline Max Max no of nodes Maximum rate no of repeaters system expansion PROFIBUS DP 9 6 kbps 1200 m 2 126 19 2 kbps 1200 m 2 126 93 75 kbps 1200 m 2 126 187 5 kbps 1000 2 126 500 kbps 400 m 4 126 1 5 Mbps 200m 6 126 12 Mbps 100m 9 126 Attention AN The maximum number of 32 bus nodes may not be exceeded without a repeater Use of drop lines Note i The length of drop lines may not exceed 6 6 m at a
152. ption Reading out the module 16 36 Coupling module configuration 1 B 16 01 Module type 0136 2 50 1 04040 000 PROFIBUS DP coupling module 2 B 16 0A In and outputs of the coupling module 3 B 16 00 Evaluation see page 3 11 As byte 3 00 the module is a bit oriented module Byte 2 00000101 Bit 1 andO0 01 2 ge gt 2 outputs Bit 3 and 2 070 260 gt 2 inputs As Bit 4 0 which means number of in and outputs multiplied with 2 Bit the module provides 4 in and 4 outputs 4 B 16 86 1 Extension module 5 B 16 17 Module type 1786 60224 gt SNNE 10S 0004 RS485 422 module 6 B 16 72 2 Extension module 7 B 16 17 Module type 1772 60024 105 0003 RS232 module 8 B 16 82 3 Extension module 9 B 16 0C Module type 0C82 3202 SNNE 40A 0009 PT100 module 10 B 16 F0 4 Extension module 11 B 16 0C Module type OCF0 331246 SNNE 40A 0004 thermo module 12 B 16 DE 5 Extension module 13 B 16 05 Module type 05DE 15024 gt SNNE 0202D 000x counter module 14 B 16 35 6 Extension module 15 B 16 00 Evaluation see page 3 11 As byte 3 00 the module is a bit oriented module Byte 2 35 00110101 Bit 1 andO0 01 2 ge gt 20utputs Bit 3 and 2 07 2 de gt 2 inputs Bit 4 1 which means number of in and outputs x 8 Bit gt Module type SNNE 0808D 000x combi module with 8 in and 8 outputs Bit 6 and 5 always 01 for 8 8
153. put and output data to the data bytes 8 20 D300776 0511 piconet PROFIBUS DP Application example counter module Industri A 8 8 3 Activation of the switch on switch off and reset thresholds The counter function to set and reset the output and to reset the counter is activated in the feature register register 32 of the module see register assignment of the counter chapter 12 Technology modules in the piconet I O module manual TURCK document number D300777 German 0300778 English Writing the feature register register 32 The parameters in register 32 are transferred to the module via the control byte as follows Table 8 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Writing the register 32 1 1 1 0 0 0 0 0 control byte Bit 7 1 Register communication is activated Bit 6 1 Register is written Bit 5 uptoBitO 32 dec Register number In our example the configuration of the feature register of the counter module results in the following settings Lowbyte Data byte 0 in the example MB 119 Value 0x78 Table 8 9 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Register 32 low byte 0 1 1 1 1 0 0 0 Bit 7 0 Pulse mode is activated Bit 6 1 Function to reset counter active Bit 5 1 Function ro reset output active Bit 4 1 Function to set output active Bit 3 1 Thecounter is set upon a positive edge from CNT_SET Bit in the control byte Bit 2
154. puts 10 3 2 Configuration of the station in CoDeSys V3 When configuring the piconet station i9nd CoDeSys please observe that analog channels always have to be configured before the digital channels see figure Figure 10 4 DPV1 pico project CoDeSys Configur ation of Datei Bearbeiten Ansicht Projekt Erstellen Online Debug Tools Fenster the station in Ba Tar gt Ime CoDeSys V3 x o 6 Ba m x bh Ger te X pico E Device Turck VT250 57x 8 sPS Logik Bibliotheksverwalter E PLC PRG PRG ET Taskkonfiguration 8 MainTask Visualization Manager Visualization 34 PB CIFX PB SDPL 04040 00 SDPL 0404D x00x Erweiterungsmodul 3 SNNE 40A 000x Koppelmodul Inputs 8 Digitale Inputs Koppelmodul Outputs 8 Digitale Outputs Erweiterungsmodul_1_ 8 Bit Digitale Inputs Erweiterungsmodul 2 Inputs 8 Digitale Outputs Erweiterungsmodul 2 Outputs 8 Bit Digitale Inputs Erweiterungsmodul 4 8 Bit Digitale Outputs D300776 0511 piconet PROFIBUS DP 10 11 10 3 3 Reading the diagnosis via acyclic services Using the library IloDrvDPV1C1 library of CoDeSys By means of the library IIoDrvDPV1C1 library the VT250 works as PROFIBUS DPV1 Master class 1 The library is generated automatically when using the DP Master For acyclic reading of the IP Link diagnosis th
155. reakage cannot trigger an undefined state of the automation equipment it is required to implement hard and software safety measures for reliable I O interfacing Safe electrical isolation of the low voltage for the 24 V supply must be ensured Use power supply units compliant with IEC 60 364 4 41 or HD 384 4 41 S2 VDE 0100 part 410 only Fluctuations or deviations of the mains supply from the rated value may not exceed the tolerance limits specified in the technical data Devices for cabinet or cubicle mounting as well as desktop or portable units may only be used and operated after enclosure Measures have to be taken to ensure correct restart of a program which has been interrupted by voltage dips or failures It must be ensured that such events cannot result in dangerous operating states even if only present for a short time If necessary an emergency stop must be carried out The electrical installation has to be carried out in compliance with the applicable regulations e g concerning cable cross sections fuses PE connection etc Transport installation set up and maintenance may only be carried out by qualified staff observe IEC 60 364 or HD 384 or DIN VDE 0100 and national work safety regulations It is required to keep all covers and doors closed during operation Industr A Table of Contents 1 How to work with this manual 1 1 IntroduUcti i BREL L
156. rection D300776 0511 piconet PROFIBUS DP 11 7 0300776 0511 piconet PROFIBUS DP 12 Index A accident prevention regulations Analogue modules Application example incremental encoder 9 27 Application example counter module 8 19 9 17 Application example incremental encoder 8 28 Application example SSI module 8 28 9 26 B Byte alignment 5 2 6 Channel specific diagnostics 6 9 6 12 Configuration data errors 6 4 Configuration stand alone modules 4 6 CONGCL OPERATION 1 2 Correct usage to the intended purpose 1 2 Coupling module 2 2 8 8 D Data mapping coupling modules sss Data mapping extension modules Data mapping stand alone modules Data transmission consistent diagnostic functions PROFIBUS DP Diagnostic LEDS ep M Diagnostic MESSAGE EE DPV1 C1 M Read DPV1 C1 M Write E Error diagnostics sua 6 2 6 7 Extension module 2 2 Extension modules 8 8 F Flash codes wuccsccscscsssscssssssssscscssescsscscssssessesessesssesessesessssesessesesecsesees 6 2 1 lloDrvDPV1C1 library 10 2 10 12 Hio EM TEE 2 4 IP Link diagnosis
157. remental encoder via GSx file esee ttnnnns 9 4 2 Parameterization of an incremental encoder via the control byte Setting the counter value e Parameterization of an incremental encoder via register communication 9 4 3 Writing the password into register 31 Disabling the COUNTE oriri be e tre b tei bsc Rio Switching Encoder interface mode to counter mode etse tenente D300776 0511 piconet PROFIBUS DP 9 1 9 1 The following chapter describes the application of acyclic services via DP V1 which are used for example for reading out the IP Link configuration or for executing the parameter changes in piconet stand alone and extension modules all this done parallel to the cyclic PROFIBUSP data exchange A Siemens PLC Simatic 57 with CPU 315 2AG10 0ABO as well as the Simatic Manager V5 2 are used Note For detailed information about dealing with the Siemens hard and software please read the respective manufacturer manuals documentation 9 1 1 Example network The network described in this example corresponds to that in chapter 7 of this manual For creating a project in the Simatic Manager please follow the steps page 8 3 to page 8 12 described in the last chapter 9 1 2 Configuration of the piconet slaves In order to execute DP V1 services the piconet modules have to be configured Activat
158. ror argument indicates the wrong byte byte 0 starts with error argument 1 Error code 3 The combination of some functions via the User Data is not admissible error argument provides detailed information Table 6 3 Argument Description Error arguments parametererror 1 In the Synchronous Mode it is not permitted to set the response to PROFIBUS errors code 3 to retain outputs The watchdog of the sub bus system responds faster than the PROFIBUS watchdog 2to7 reserved 8 The Synchronous Mode is not permitted if there are no outputs 9to 11 reserved 12 The Fast FreeRun Mode is not admissible if the Synchronous Mode is activated D300776 0511 piconet PROFIBUS DP 6 3 Error code9 Error code 9 describes start up errors Table 6 4 Argument Description Error arguments parameter error 1 DP input data too long code 9 2 DP output data too long 3 DP CfgData data too long 4 Extension module type not recognised 5 Configuration data of the DP interface are faulty Configuration data errors Error code2 Error during comparison of configuration data The error argument indicates the first faulty byte starting with 1 Error code 5 Error in the length of the digital output data The error argument indicates the expected number of bytes Error code6 Error in the length of the digital input data The error argument indicates the
159. rors using VT250 with CoDeSys Industri A xEnableRead BOOL Table 10 3 Variable Data type Description Description of DPV1_C1_M_ Read wOpState WORD Operation status output wJobld WORD Internal variable which must not be used local bOldEnable BOOL Internal variable which must not be used local The following variables are important for reading out the IP Link diagnosis bEnable Activating the read command E byStationAddress DP address of the piconet coupling module here addr 15 E bySIotNr Slot no of the coupling module always 0 E Number of the register table to be read register table 90 or register table 50 60 see General structure of the data in the register tables page 10 3 wLen Length of data to be read Variable declaration Fi g ure 10 6 g Visualization E PLC PRG 09 SDPL 04040 00 Task Configuration ES Example of gt H variable itounter INT amp declaration mite Aic ger E xEnableWrite BOOL xAutoRead BOOL TRUE piconet byStationAdr BYTE 15 byReadSlot BYTE 0 Slot 0 Index 5 gt Read FW Info of bk slave byReadIndex BYTE 90 wReadLen WORD 45 17 abyReadData ARRAY 0 127 BYTE 1 byUriteSlot BYTE 0 Slot 0 Index 99 gt KBus Reset byliriteIndex BYTE 99 w ritelen WORD 4 abyWriteData ARRAY 0 512 OF BYTE END VAR D300776 0511
160. rs Kanal 1 Impuls Betrieb Kanal 1 Zaehler Sperren Kanal 1 Timer Basis Kanal 1 Ruecksetzen mit Reset Kanal 1 Einschalt Schwellwert Kanal 1 Ausschalt Impuls Kanal 1 Reset 5 We Kanal 2 Watchdog Kanal 2 Setzen des Zaehlers Kanal 2 Setzen des Ausgangs Kanal 2 Ruecksetzen des Ausgangs D300776 0511 piconet PROFIBUS DP Eigenschaften DP Slave Allgemein Parametrieren Wert freilaufend IP Zyklus wird gestoppt ist aktiv positive Flanke _ ist aktiv ist aktiv ist aktiv ist nicht aktiv Gate 1 1 us Digit 250 us 5 ms ist nicht aktiv 25 50 100 ist aktiv positive Flanke ist nicht aktiv ist nicht aktiv Abbrechen Hilfe 3 Parameterize the module accordingly and load the changed settings to the PLC using the PLC gt Download command 9 2 2 Parameterization of a counter as extension module via register communication The parameterization of the extension module can only be done via register communication or using the software I O ASSISTANT settings are done directly in the predefined registers The access to the registers of the piconet modules is done by activating the register communication a write or read command and by entering the register number into the control byte of the respective module Writing the password into register 31 The password 0x1235 will be written into register 31 of the counter module The c
161. s a DP slave is no longer capable of user data transfer Then the DPM1 changes to the Clear state If this parameter is set to False then the DPM1 will retain its operating condition also in the event of an error and the user can determine the system response Data transfer between DPM1 and the DP slaves Data exchange between the and the assigned DP slaves is automatically controlled by the DPM1 in a determined fixed order During configuration of the bus system the user assigns the DP slaves to the DPM1 It is also defined which DP slaves are to be included in or excluded from cyclic user data transfer Data exchange between 1 and the DP slaves can be divided into the phases parameterization configuration and data transfer Prior to including a DP slave in the data transfer phase the DPM1 checks during the parameterization and configuration phase whether the programmed required configuration complies with the actual device configuration This check is used to verify that the device type the format and length information as well as the number of inputs and outputs accord The user thus is securely protected against parameterization errors Additionally to the user data transfer which is automatically effected by the DPMI1 it is also possible to send new parameters to the DP slaves upon request of the user Protective mechanisms In the decentralized periphery it is required to provide the system with highly effective pro
162. s output data each Table 5 1 ByteO Connection Bit no Process image without byte 7 6 5 4 3 2 1 0 alignment E IN M8x1 Is used by the next bit oriented C3P4 6274 C1P4 extension module on the IP Link ES M12x1 1 2 C1P4 COP2 OUT M8x1 6704 6624 6504 M12x1 C3P2 C3P4 C2P2 2 4 Byte alignment active The coupling module SDPL 0404D x00x and the extension module SNNE 0404D 000x map 1 byte input and 1 byte output user data each Table 5 2 ByteO Connection Bit no Process image with byte 7 6 5 4 3 2 1 0 alignment IN M8 x 1 idle idle idle idle C3P4 C2P4 C1P4 COPA C female M12x1 idle idle idle idle C1P2 C1P4 COP2 connector P OUT M8x1 C7P4 6 4 C5P4 CA4PA idle idle idle idle idle not used M12x1 C3P2 C3PA C2P2 2 4 idle idle idle idle 5 2 D300776 0511 piconet PROFIBUS DP Data mapping Stand alone and extension modules 5 2 Data mapping Stand alone and extension modules 5 2 1 Digital input modules Industri A Table 5 3 Bit 7 6 5 4 3 2 1 0 Input data in the process image M8x1 C7P4 C6P4 C5P4 C4P4 C3P4 C2P4 C1P4 COP4 M12x1 C3P2 C3P4 C3P4A CIP2 0P2 4 connector P Pin 5 2 2 Digital output modules Table 5 4 Bit 7 6 5 4 3 2 1 0 Outputdatainthe process image M8 x 1 C7P4 C6P4 C5P4 C4P4 C3P4 C2P4 C
163. st be imported into the software Two different procedures can be applied 8 3 1 Prior to starting the software M Copy the GSx files of the piconet modules into the directory Step7 S7data GSD M Copy the Icon files bmp to the directory Step7 S7data NSBMP E Start the software SIMATIC Manager Upon correct installation of the files the piconet modules will be registered automatically in the hardware overview which can be called up under the menu item Insert Hardware Catalogue 8 3 2 After starting the software If you have started to the software please proceed as follows to import the above mentioned GSx files Please open a new or existing project E Open the hardware configurator Copy the required GSx file to the software via the menu item Extras gt Install New GSD File da GSD i HW config SIMATIC 300 1 Configuration piconet a fly Station Edit Insert PLC View Options Window Help software via the D g Sal ESC Customize Ctrl Alt E menu item Install Specify Module New GSD File Configure Network Symbol Table Report System Error Edit Catalog Profile Update Catalog Install New 650 Import Station GSD M Select the GSD file from the according source directory Figure 8 3 Installing new GSD 2 xi Selection of the GSDfilefromthe Suchenin J GSD amp m E3 according SI
164. t PROFIBUS DP Industri A 10 1 3 Generalstructure of the data in the register tables Table 10 2 Register with IP Link diagnostic messages Table 10 3 Structure of register table 90 Registertable Diagnostic content Index no DPV1 dec hex 90 5A Error counter for general IP Link errors In this register offset 005 occurred IP Link errors are counted 50 60 32 3 Errorcounter in the extension modules error localization Reading the error position using the error counter of the extension modules This is only possible if the IP Link communication is still running Register table 90 general IP Link errors Register table 90 contains with an offset of 5 registers an general IP Link error counter Sporadically occurring errors do not cause problems in the communication This error counter will only be reset by a Power ON OFF Byte word Word no register Content no no at Siemens no 0 0 0 0 Offset 1 1 0 0 2 2 2 1 3 3 2 1 4 4 4 2 5 5 4 2 6 6 6 3 7 7 6 3 8 8 8 4 9 9 8 4 10 10 10 5 IP Link error counter 11 11 10 5 D300776 0511 piconet PROFIBUS DP 10 3 Register tables 50 60 error counter of the extension modules If the coupling module recognizes an error it tries to localize this error by reading the extension modules error counter this is not possible if the IP Link is interrupted or ifthe communication is heav
165. ta byte 0 MB 119 0 0 1 1 0 0 1 D300776 0511 piconet PROFIBUS DP 8 23 Figure 8 20 Switch on threshold Address Disp Status value Modify value 50 8 02020 0003 Counter Channel 1 read Mw 30 HEX BHOODO MB 120 HEX B 16 00 121 HEX 8816800 MB 122 HEX B 16 00 MB 123 HEX B 16 00 MB 124 HEX 8816800 Mw 32 HEX W 16 0000 MB 125 BIN 280000 00007 281110 0011 MB 126 HEX 8816800 MB 127 HEX 8816800 MB 128 DEC 8 D MB 129 DEC 0 25 Switch off threshold 50 pulses Table 8 14 Bit 7 Bit 6 Bit 5 Bit 4 Bit 2 Bit 1 Bit 0 Writing the register 37 1 1 1 0 1 0 1 control byte Data byte 0 MB 119 50 dec 0x32 hex Table 8 15 Bit 7 Bit 6 Bit 5 Bit 4 Bit 2 Bit 1 Bit 0 Data byte 0 MB 119 0 0 1 1 0 1 0 Figure 8 21 Switch off threshold 50 8 02020 0003 Counter Channel 1 read Mw 30 HEX W 16 0000 MB 120 HEX 8816800 MB 121 HEX B 16 00 MB 122 HEX 8816800 MB 123 HEX B 16 00 MB 124 HEX 8816800 write Mw 32 HEX W 16 0000 MB 125 BIN 280000 0000 2911100101 MB 126 HEX 8816800 MB 127 HEX B 16 00 MB 128 DEC MB 129 DEC 0 8 24 D300776 0511 piconet PROFIBUS DP Application example counter module Reset threshold 100 pulses Table 8 16 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Writing the register 39 1 1 1 0 0 1 1 1 control byte Data byte 0 MB 119 100 dec
166. tective functions against faulty parametrization or failure of the transmission devices PROFIBUS DP applies certain mechanisms to monitor the DP master and the DP slaves These can be described as time monitoring functions The monitoring interval is determined during system configuration D300776 0511 piconet PROFIBUS DP 3 9 Table 3 5 Protective Description Protective mechanisms mechanisms Of the The DPMI controls the user data transfer of the slaves via the DP Master Data Control Timer Each assigned slaves has a monitoring timer of its own The timer actuates if no user data are transferred correctly during a certain time interval In this case the user is informed on this condition If automatic error response Auto Clear True is enabled the DPM1 terminates the Operate status switches the outputs of the assigned slaves into the safe status and returns to the operating status Clear Of the The slave carries out response monitoring to detect master or transmission DP slave errors If there is no data exchange during the response monitoring interval with the associated master the slave automatically switches the outputs into the safe status In multimaster system operation an additional access protection is required for the inputs and outputs of the slaves in order to ensure that only the authorized master has direct access The slaves provide an input and output image for all other masters so that this map can be read
167. terrupted the diagnostics messages of the IP Link may be read out of the register tables from the coupling or the extension modules The access to these register tables is done via acyclic services by means of respective function blocks seeFunction blocks for acyclic services page 10 2 10 1 1 Important information Date of manufacturing Only modules manufactured in 2011 or later off the possibility of reading the IP Link error counter GSD files Please use only the newest GSD files GSD revision gt V 3 10 1 2 Function blocks for acyclic services These function blocks are used for acyclic data exchange in the PLCs and are provided by the PLC manufacturers Table 10 1 PLC function block structure Function blocks for acyclic services S7 SFB52 RDREC Acyclic reading of data from defined registers with Step 7 71 SFB53 RWRREC Acyclic writing of defined registers VT250 DPV1 C1 M Read Acyclic reading of data from defined registers with CoDeSys V3 from the DP Master library lloDrvDPV1C1 library DPV1_C1_M_Write Acyclic writing of defined registers from the DP Master library lloDrvDPV1C1 library Note The usage of these function blocks is described later on in this chapter by means of examples with 7 and VT250 see also Reading IP Link errors using the S7 with Step7 example page 10 6 and Reading IP Link errors using VT250 with CoDeSys V3 page 10 11 10 2 D300776 0511 picone
168. ters Sxxx 40A 0005 1 4 Channel 1 overflow offset ADefault 0 is not active setting 1 is active A 6 Channel 1 threshold 1 0 is not active A 1 5 active 7 Channel 1 threshold 2 0 is notactive A 1 is active 2 Bit assignment of channel 2 identical to channel 1 3 Bit assignment of channel 3 identical to channel 1 4 Bit assignment of channel 4 identical to channel 1 6 7 Channel 1 threshold 1 8 9 Channel 1 threshold2 10 11 Channel 2 threshold 1 12 13 Channel 2 threshold 2 14 15 Channel 3 threshold 1 16 17 Channel 3 threshold 2 18 19 Channel 4 threshold 1 20 21 Channel 4 threshold 2 D300776 0511 piconet PROFIBUS DP 7 7 7 6 3 Sxxx 40A 0007 The modules feature the following module specific parameters Table 7 5 Byte Bit Parameters Parameters Sxxx 40A 0007 1 0 Channel 1 current modus ADefault 0 0 20mAA setting 1 4 20 4 Channel 1 overflow offset 0 is not active 1 is active A 6 Channel 1 threshold 1 0 is not active A 1 active 7 Channel 1 threshold 2 O isnotactive A 1 is active 2 assignment of channel 2 identical to channel 1 3 Bit assignment of channel 3 identical to channel 1 4 Bit assignment of channel 4 identical to channel 1 6 7 Channel 1 threshold 1 8 9 Channel 1 threshold 2 10 11 Channel 2
169. th a high or a low signal at the gate input In this case the disabling of the counter is done with a low signal at the gate input The parameterization is done via the module s Feature Register R32 The access to the module registers is done by activating the register communication a write or read command and by entering the register number into the control byte of the respective module Writing the feature register register 32 The settings in register 32 are transmitted to the module via the control byte as follows Table 9 28 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Writing register 32 control byte 1 1 1 0 0 0 0 0 Bit 7 1 register communication activated Bit 6 1 register is written Bit 5 to Bit O 32 dec register number The assignment of the Feature register of the incremental encoder defines the following settings for this example Low byte data byte 0 in the example memory byte 119 Value 0x02 Table 9 29 Bit7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Register 32 Low byte 0 0 0 0 0 0 1 0 7 0 reserved Bit 6 Bits O reserved Bit 4 0 external latch function active Bit 3 Bit2 O status input active low is mirrored to the status byte bit 5 Bit 1 1 thecounteris disabled with a low signal at the gate input Bit 0 0 reserved D300776 0511 piconet PROFIBUS DP 9 31 High byte 1 in the example memory byte 191
170. the piconet Manual Document numbers German D300777 English D300778 6 1 1 Flash codes Table 6 1 Flash sequence Meaning LED flash codes Fast flashing Start First slow sequence Error code Second slow sequence Error argument Third slow sequence Error argument with more than 20 extensions optional Figure 6 1 pause pause pause Flash codes start error code error argument 1 error argument 2 optional 6 2 D300776 0511 piconet PROFIBUS DP Error diagnosis via LEDs Industri 6 1 2 Diagnostic LEDs for PROFIBUS Table 6 2 LED Description Remedy LEDs for PROFIBUS DP Green Red I O RUN ON ON None Module is waiting for Baud rate detected Meaning communication Start communication Possibly the wrong ident number OFF ON None module in baud rate Start PROFIBUS Meaning search mode Connect and check bus line OFF OFF None Module is waiting for Start cyclic PROFIBUS Meaning cyclic communication communication ON Flashing None Baud rate detected Parameter Meaning Start up error configuration error see flash code ON OFF OFF DP start up okay but Start cyclic PROFIBUS still no communication Data Exchange message ON OFF ON Moduleisexchanging No error data Parameter data errors Error code 1 The reserved and fixed User Prm Data have a wrong value Theer
171. the MOTOROLA format Table 5 19 Address Input data Output data Complex evaluation Word High Byte Low Byte High Byte Low Byte MOTOROLA format 0 Channel 1 SB Channel 1 CB DB 1 Channel 1 DB 1 Channel 1 DB Data byte 1 SB Channel 1 CB Channel 1 SB Status Byte Channel 2 DBO Channel 2 DBO CB Control Byt Up E Channel 2 Channel 2 Channel 2 Channel 2 DBO DB 1 DBO DB 1 3 Channel 3 SB Channel 3 CB DB 1 Channel 3 DB 1 Channel 3 4 SB Channel 3 CB Channel 3 Channel 4 DBO Channel 4 DBO 5 Channel 4 Channel 4 Channel 4 Channel 4 DBO DB 1 DBO DB 1 Complex evaluation in the INTEL format Table 5 20 Address Input data Output data Complex evaluation Word High Byte Low Byte High Byte Low Byte INTEL format 0 Channel 1 SB Channel 1 CB DBO Channel 1 DBO Channel 1 DB Data byte SB Status Byte 1 SB Channel 1 CB Channel 1 CB Control Byte Channel 2 DB 1 Channel 2 DB 1 2 Channel 2 Channel 2 Channel 2 Channel 2 DB 1 DB 0 DB 1 DBO 3 Channel 3 SB Channel 3 CB DBO Channel 3 DB 0 Channel 3 4 SB Channel 3 Channel 3 Channel 4 DB 1 Channel 4 DB 1 5 Channel 4 Channel 4 Channel 4 Channel 4 DB 1 DBO DB 1 DBO D300776 0511 piconet PROFIBUS DP Technology modules Industri A 5 3 Technology modules 5 3 1 5 105 0001 Incremental encoder interface This module can only be operated in the complex mode Complex eva
172. the low and Reg1 the high byte In this case the 0x12 has thus to be written into memory byte 191 Reg1 and the 0x35 into memory byte 192 0 Note The mapping tables in chapter 5 Data mapping of the piconet modules show the assignment of in and output data to the data bytes Figure 9 32 beobachten und steuern AT_1 olx Password in Tabelle Bearbeiten Einf gen Zielsystem Variable Ansicht register 31 Extras Fenster Hife Aregister 31 2 x 8 BReg 1 far A CReg0 9 30 qup tmm Ane Hausen s sen SDBP 105 0001 Inkremental Encoder iLesen MW 46 WHWIBHOODD MB 180 Status BIN 211001 1111 MB 181 Di HEX BHIBHOD MB 182 DO HEX B 16 00 MB 183 D2 HEX B 16 00 MB 184 D4 HEX 8816800 MB 185 D3 HEX B 16 00 schreiben Mw 48 HEX W 16 0000 190 Control BIN 2 101 1111 191 Regl HEX 8816812 B 16 12 192 Reg 0 HEX 8816835 B 16 35 193 HEX 8816800 194 HEX 8816800 108 Lic piconetiSIMATIC 3001 157 Programm 5 SS SS SS SSeS Da aa EE ze en en en en e n N D300776 0511 piconet PROFIBUS DP Application example incremental encoder Industri A Disabling the counter The counter of the incremental encoder can depending on the parameterization be disabled either wi
173. the module accords to the assignment of the parameter bytes 28 to 31 for channel 1 of the module 44 to 47 The assignment of the parameter bytes 44 to 47 of the module accords to the assignment of the parameter bytes 32 to 35 for channel 1 of the module D300776 0511 piconet PROFIBUS DP Industri A 8 Application example piconet with S7 8 1 General information p m 2 8 2 Creating a new Simatic project eese eee ee eee ee en nn eese sees eee en snos ee a aas seen eee eo osos eee eese esee seen sooo se eese eee 3 8 3 Importing the GSD file 4 8 3 1 Prior to starting the 4 8 3 2 After startirig the SOftWAre 4 8 4 Hardware configuration 6 8 4 1 Configuration of a piconet iA 8 Configuration of the 8 8 5 Consistent data 3057155100 13 8 5 1 Consistent data transmission Sieme
174. tion only IP LiMk sssscsssssccssssecssssscesssscessseecsssecessssecssssseessscesseceesnssssnssecsssnscessssecsnsseeennneessneseees 11 13 13 0300776 0511 piconet PROFIBUS DP 3 1 3 1 3 1 1 3 1 2 3 2 System description PROFIBUS is a manufacturer independent and open fieldbus standard for a wide area of applications in factory and process automation Manufacturer independence and openness are guaranteed by the international standards EN 50170 und EN 50254 PROFIBUS enables communication of devices of various manufacturers without requiring particular interface adaptations PROFIBUS DP Decentral Periphery is designed for data transfer between the control and the input output level TURCK PDP stations and piconet stations support PROFIBUS DP PROFIBUS DP is the speed optimized PROFIBUS version specially designed for communication between automation devices and decentralized peripheral devices PROFIBUS DP is suited to replace cost intensive parallel signal transmission via digital and analogue sensors and actuators PROFIBUS DP is based on DIN 19245 part 1 and part 4 During the course of European fieldbus standardization PROFIBUS DP has been integrated into the European fieldbus standard EN 50170 DP VO DP VO contains the following basic functions of the DP communication protocol cyclic exchange of I O data between master and s
175. tput data Complex evaluation Word High Byte Low Byte High Byte Low Byte INTEL MOTOROLA 0 DBO SB DBO CB LG 1 DB2 DB 1 DB2 DB 1 4 DB 3 DB 4 DB3 DB Data byte SB Status Byte Control Byte 5 3 3 105 0004 RS422 485 interface This module can only be operated in the complex mode M Complex evaluation in the INTEL MOTOROLA format Table 5 24 Address Input data Output data Complex evaluation Word High Byte Low Byte High Byte Low Byte INTEL MOTOROLA 0 DBO SB DBO CB 1 DB 2 DB 1 DB 2 DB 1 DB 4 DB 3 DB 4 DB 3 DB Data byte SB Status Byte CB Control Byte 5 3 4 Sxxx 10S 0005 SSI interface Compact evaluation in the MOTOROLA format default mapping Table 5 25 Address Input data Output data Compact evaluation inthe Word High Byte Low Byte MOTOROLA format 0 DB 2 DB 3 1 DBO DB 1 DB Data byte D300776 0511 piconet PROFIBUS DP Technology modules Compact evaluation in the INTEL format Industri A Table 5 26 Address Input data Output data Compact evaluation inthe Word High Byte Low Byte INTEL format 0 DB 1 DBO DB Data byte 1 DB 3 DB2 E 7 Complex evaluation in the MOTOROLA format Table 5 27 Address Input data Output data Complex evaluation inthe Word High Byte Low Byte High Byte Low Byte MOTOROLA format 0 DB3 SB Reg 1 CB 1 DB 1 DB2 reserved
176. us system Repeater Amplifier for signals transferred via the bus RS 485 Serial interface according to EIA standards for fast data transfer via several transmitters Shield This term is used to describe the conductive sheath of cables casings and cabinets Shielding The entirety of all measures and equipment used to connect the system parts to the shield Serial This term is used to define a data transmission mode with which data are transferred consecutively bit by bit via a cable Short circuit proof Property of electrical apparatus A short circuit proof apparatus withstands the thermal and dynamic stress which can occur at its place of installation due to a short circuit Slave A bus station or a bus node that is subordinate to the master Station A functional unit or module assembly consisting of several components D300776 0511 piconet PROFIBUS DP Industri A Terminating resistor Resistor on both ends of the bus line to prevent disturbing signal reflections and to adjust bus lines Terminating resistors must always be the physically last unit at the end of a bus segment Topology Geometric construction of a network or arrangement of circuits vu UART The abbreviation for Universal Asynchronous Receiver Transmitter UART is a logic circuit which is used to transform an asynchronous serial data string into a bit parallel data string or vice versa Unidirectional Working in one di
177. vating the Latch input For activating the external Latch input bit 1 EN LAT EXT of the control byte is set After LAT 15 true the first latch signal at the latch input stores the counter value The following pulses do not influence the latch register if this bis is set 9 28 D300776 0511 piconet PROFIBUS DP Application example incremental encoder Setting the bits is done is done simply via the control byte in process data exchange without register access Table 9 25 Bit 7 6 5 4 3 2 1 0 Control byte Name RegAccess CNT SET EN LAT EXT LATC PERIOD Table 9 26 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Setting CNT_SET 0 0 0 0 0 0 1 0 If now during the count operation a signal change from 0 to 1 occurs at the latch input the count value actually read at this point of time is written to data byte D3 and 4 The activation of the latch input is confirmed by a short setting of bit 1 LATCH in data byte D2 see page 9 28 Figure 9 31 Storing the counter value variable beobachten und steuern AT_1 picone Tabelle Bearbeiten Einf gen Zielsystem Variable Ansicht Extras Fenster Hilfe 81 xele x 8 fe ael SDBP 105 0001 Inkremental Encoder iLesen Mw 46 w 16 0000 MB 180 Status BIN MB 181 Di DEZ MB 182 DO MB 183 D2 MB 184 D4 MB 185 D3 schreiben Mw 48 W 1
178. w byte 0 0 0 0 0 0 0 0 Bit 7 0 reserved Bit 6 Bit 5 0 reserved Bit4 0 External latch function active Bit 3 Bit 2 0 Status input active low is inserted in the status byte bit 5 Bit 1 0 Counter is inhibited with a high level at the gate input Bit O 0 reserved Highbyte 1 the example MB 191 Value 0x80 Table 8 30 Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Register 32 High byte 1 0 0 0 0 0 0 0 Bit 15 2 Counter mode Bit 14 uptoBit12 0 reserved Bit 11 Bit10 20 4 fold evaluation of the encoder signals Bit9 Bit8 1 reserved 8 34 D300776 0511 piconet PROFIBUS DP Application example 551 module Figure 8 30 T Writing the iBl x register 32 SDBP 105 0001 incremental encoder I read Mw 45 HEX W 16 0000 180 BIN MB 181 DEZ 8 MB 182 DEZ OF MB 183 BIN 280000 0000 MB 184 DEZ OF Mus iE DEG ie write Mw 48 HEX WHHBHODUD MB 180 BIN 0 MB 181 BIN o 192 BIN MB 193 HEX 194 HEX MB 195 HEX Note The settings made in R32 will only be activated after a power reset of the module which will then return to process data exchange and the counter will continue to count D300776 0511 piconet PROFIBUS DP 8 35 8 36 0300776 0511 piconet PROFIBUS DP Industri A 9 Application example acyclic services in piconet with S7 DP V1 9 1 UO
179. w or existing project E Open the hardware configurator Copy the required GSx file to the software the menu item Extras Install New GSD File HW Config SIMATIC 300 1 Configuration piconet _1 ll Station Edit Insert PLC View Options Window Help Dj s 8 al Customize t Specify Configure Network Symbol Table ystem Error Ctri Alt E Edit Catalog Profile Update Catalog Install HW Updates Install New 650 Import Station GSD M Select the GSD file from the according source directory Figure 4 4 Selection of the GSD file from the according source directory Suchen in Cx GSD E3 siem0024 gsd SIEM0738 GSD siem8037 gsd SIEM8070 GSD E TRCKFF20 gsd TRCKFF21 gsd 21x TUO_FF1F TU1_FFIF TU2_FF1F TUS FF1F TU4_FF1F gt asp files gs Abbrechen TRCKFF33 GSD Trckffaf gsd Dateiname TRCKFF20 gsd TRCKFF21 gsd TRCKFF2 Dateityp D300776 0511 piconet PROFIBUS DP piconet connection to the Siemens PLC type 57 E After correct import and an update of the hardware catalogue via Extras Update catalogue the modules will be displayed as separate entries in the hardware catalogue Note i The exact configuration procedure can be taken from the operating manual which is supplie
Download Pdf Manuals
Related Search
Related Contents
VT670/VT570/VT470/VT47 FM/AM PLL Synthesized Clock Radio ICF Copyright © All rights reserved.
Failed to retrieve file