background image

 

 

14 

 

By  double-clicking  on  the  "write  profibus"  function  module,  the  values  for  the  profile  can  be 
determined. Each value is allocated to the format. The function module receives an input pin for each 
variable. 

 

 

The following graphic shows a list of variables in the SIMATIC software. Profibus 16 is illustrated with 
the first three input values. 

 

 
Example for a Read Profibus Profile 

 

With  the  "read  profibus"  function  module,  it  is  possible  to  use  PLC  values  in  your  own  programme 
code. The master, an S7 PLC in the following example case, can describe profile values. A profile can 
only be recorded once it has been created. A profile is recorded with a "write profibus" function module 
or  if  values  are  allocated  to  fixed  profiles  using  the  unit  configuration.  In  the  example,  the  "write 
profibus" module is not placed in the repeater which results in the module being processed once and 
the  profile  being  created.  The  remaining  function  modules  are  placed  in  the  repeater;  they  are  then 
processed in cycles according to the selected intervals. The values coming from the PLC are written in 
local variables and can now be used in the programme. If you want to write a profile extern, the profile 
must be in the profibus buffer. 

 

 

Illustration 14 

Summary of Contents for Profibus DP/V0 UMG604

Page 1: ... Functions UMG604 UMG605 UMG508 UMG511 Example with a Siemens PLC S7 300 Version 1 2 Document no XXXXX Janitza electronics GmbH Vor dem Polstück 1 D 35633 Lahnau Support Tel 0 64 41 9642 22 Fax 0 64 41 9642 30 E mail info janitza de ...

Page 2: ... a Profile 6 GSD File 9 Incorporating the Slave Unit in the Master Software SIMATIC S7 300 9 Simatic variables table 11 Profibus Profiles in Graphic Programming 13 Profibus Puffer 17 Modbus Profibus Gateway 18 cover Version 1 0 translation English Version 1 1 Standard Profiles S 5 Version 1 2 Profibus buffer S 17 ...

Page 3: ...aphic programming There is read and write access to the profile which makes it possible to describe digital outputs or user defined variables from the PLC The description of functions has been created with GridVis 1 6 0 and with UMG604 Firmware 1 095 available from November 2009 Plug Assignment The Power Analyzer supports Profibus DP V0 to 12Mbaud The profibus connection of the Power Analyzer is d...

Page 4: ... variables and global variables can be individually scaled and converted into one of the following formats 8 16 32bit integer with and without signs 32 or 64bit float format Big or Little Endian Global variables are variables that are defined by the user in graphic programming or in Jasic and are available to each interface of the Power Analyzer Big Endian High Byte before Low Byte Little Endian L...

Page 5: ...files are preconfigured upon delivery Firmware 1 095 These can also be changed retrospectively if required The following illustrations show the standard profiles with their profile number Profile no 2 Profile no 0 Profile no 1 Profile no 3 ...

Page 6: ...unit button in the unit list In the field bus profile tab selected measurement values can now be allocated to the individual profiles A maximum of 128 bytes are available for a profile The profile numbers are fixed at 0 to 15 With the process button you can allocate measurement values to the selected profile Illustration 3 Illustration 4 ...

Page 7: ... by drag and drop On the right side there is the possibility of swapping variables and putting them in the required order You can also change the byte order here Big Endian High Byte before Low Byte Little Endian Low Byte before High Byte Illustration 5 ...

Page 8: ...er PC PLC can only differentiate this unit on the basis of the unit address Each Power Analyzer must have a specific unit address within the network Profibus supports the unit addresses in the range 0 to 126 The profibus address can be directly allocated using the display or using the configuration software GridVis The modbus and profibus addresses have the same parameters in the unit On the displ...

Page 9: ...lyzer s GSD file currently supports the following modules STD 8 Word In 1 Byte Out STD 16 Word In 1 Byte Out STD 32 Word In 1 Byte Out STD 62 Word In 1 Byte Out STD 8 Word In 3 Byte Out STD 16 Word In 3 Byte Out STD 32 Word In 3 Byte Out STD 62 Word In 3 Byte Out STD 8 Word In 16 Byte Out STD 16 Word In 16 Byte Out STD 32 Word In 16 Byte Out STD 62 Word In 16 Byte Out Incorporating the Slave Unit ...

Page 10: ...s that you previously set on the Power Analyzer Please be aware that the addresses cannot be assigned more than once Information on the module it is not necessary to read out the whole profile If just the first measurement value of a profile e g 62 Word is required a smaller module e g 16 Word can be selected The following section shows implementation of the slave unit in the hardware configuratio...

Page 11: ...All of the hardware configuration must be transferred to the S7 so that communication can take place Simatic variables table Assign a communication to a variable table for testing purposes In the project overview go to the menu point Insert S7 module Create variables table After calling up the variables table the operands must be allocated Allocation takes place according to the address range whic...

Page 12: ...rofile number request PEB 256 DEZ 0 Profile number request PED 257 Floating point 230 7 1 st value in profile 0 ULN1 PED 261 Floating point 230 5 2 nd value in profile 0 ULN2 PED 265 Floating point 230 8 3 rd value in profile 0 ULN3 PED 269 Floating point 8844 9 4 th value in profile 0 PSUM Output byte is written Live values are activated Illustration 12 ...

Page 13: ...ed to a profile profiles 16 255 using the graphic programming The write profibus function module is used for allocation Profiles can also be read and analysed read profibus With the read profibus function module variables in the profile described by the PLC can be read and used in the programme e g in order to set a digital output or reset a working value There is an additional description of func...

Page 14: ...ng example case can describe profile values A profile can only be recorded once it has been created A profile is recorded with a write profibus function module or if values are allocated to fixed profiles using the unit configuration In the example the write profibus module is not placed in the repeater which results in the module being processed once and the profile being created The remaining fu...

Page 15: ...e list of variables the values are written out from the PLC For an analysis of values these are connected to the print function module and after transfer of the programme they can be browsed in the debug tab Illustration 15 Illustration 16 ...

Page 16: ...profibus function module has a status pin that can be used for analysis The following table shows the error codes Error no Comment 1 Error 0 No error 255 Feedback of the incorrect profile number Illustration 17 Illustration 19 ...

Page 17: ...one reading and one writing profile in processed program The following illustration shows an IF command with 2 profiles Example The profile number writing 0 In case that a request the profile number 16 the group profile 16 is in processed For all other request the group profile 17 is in processed Important is that you have only one profile in the profibus buffer The writing from more than one prof...

Page 18: ...c programming Measurement units are read using Modbus Slave measurement units in the following example The read data is placed on a profibus profile With this programme it is now possible to write values from slave units using the gateway function without a profibus protocol Illustration 19 ...

Reviews: