Burster DIGIFORCE 9310 Manual Download Page 39

Appendix 

 

PROFIBUS manual 

Version FELD-V2002.02 

Page 39 

 

Calculation tip 

  This calculation can be performed relatively easily by bit manipulation 

directly at the binary level using the following sequence of operations: 
First, as described above, the three components of sign bit, exponent and 
mantissa must be obtained from the four bytes by copying and masking bits. 

Example: 

As described above, the bytes 0x3F,0x40,0x00,0x00 

become 
sign=0, exponent=0x7E(126dec), mantissa =100 0000 0000 0000 0000 0000b 
or (0x400000) 

 

Calculating the exponent value

 

by subtracting 0x7F (127dec) from the contents of the exponent field 

Example: 

Contents_ExponentField – 127dec = Exponent value 

126dec – 127dec = -1 

 

Adding the 1.0 i.e. inserting a 1 and a decimal point in front of the mantissa 

Example

:

 

Mantissa was 100 0000 0000 0000 0000 0000b 

new mantissa is 1.100 0000 0000 0000 0000 0000b 

 

Taking into account the exponent.  

A negative exponent shifts the decimal point to the left, a positive exponent to 
the right. Thus, if an exponent of -3 was calculated, the decimal point is 
shifted three places to the left; for an exponent of +1 the decimal point moves 
one place to the right. 

Example: 

Mantissa was: 1.100 0000 0000 0000 0000 0000b 

Exponent was:   -1 
 new mantissa with exponent is: 0.1100 0000 0000 0000 0000 0000b 

 

Calculating the integer positions 

The integer positions (places in front of the decimal point) are interpreted in a 
similar way to above as positive powers of two which are added together: 

Example: 

integer position of: 0.1100 0000 0000 0000 0000 0000b  

   is 

0b 

  

0*2

0

 + [0*2

1

 +0*2

2

+0*2

3

 ...] = 0 

 

Calculating the decimal positions 

Like the integer positions, the decimal positions also represent powers of two, 
but in this case negative powers. 

example 

: decimal position of: 

: 0.1100 0000 0000 0000 0000 0000b 

is 1100 0000 0000 0000 0000 0000b 

 

1*2

-1

 + 1*2

-2

 + 0*2

-3 

+ [0*2

-4

 + 0*2

-5 

+ .. =1*0.5 + 1*0.25 + 0*0.125 [...] = 

0.75 

Summary of Contents for DIGIFORCE 9310

Page 1: ...ut prior notification Reproduction of any part of this document or its processing using electronic systems is prohibited without prior written approval burster provides no warranty whatsoever for this...

Page 2: ...sors made by burster praezisionsmesstechnik hereinafter referred to as product are the results of targeted development and meticulous research As of the date of delivery burster provides a warranty fo...

Page 3: ...that arise when reading floating point numbers 14 5 PROFIBUS DP data protocol 15 5 1 Transfer from master to slave 15 5 2 Message structure Transfer from slave to master 16 5 3 Meaning of the contents...

Page 4: ...Content Page 4 Version FELD V2002 02 PROFIBUS manual...

Page 5: ...peration of the equipment described in this documentation You are a commissioning or service engineer and have successfully completed a training course qualifying you to repair automation systems In a...

Page 6: ...lish a safe operating state in the event of a fault This may be achieved using limit switches mechanical interlocks etc for example 1 4 Symbols CAUTION This information must be observed to prevent dam...

Page 7: ...kage paths To DIN EN 61131 2 and DIN EN 50178 Overvoltage category II Pollution degree 2 Electrical isolation Between fieldbus and internal electronics Withstand voltage DC 500 V Electromagnetic compa...

Page 8: ...line is a shielded twisted pair cable The fieldbus line is specified in EN 50 170 as cable type A and must comply with specific cable parameters Cable type B also specified in EN 50 170 is obsolete an...

Page 9: ...rmination at the start and end of the bus line The bus termination uses the supply voltage VP from the device so ensure that the voltage supply to the slave device on which the bus termination is inst...

Page 10: ...ESS 002 WATCHDOG OFF CONTROLLER PROFIBUS DATA MODE 9 BAUD RATE 1 5 MBAUD VERSION 200201 001 to 126 ON OFF PLC PROFIBUS 1 9 9 6 kB 12 MB Internal watchdog The communications processor monitors the meas...

Page 11: ...ter A DP master exchanges data with the slaves via PROFIBUS DP and monitors the bus It transfers the data between the higher level controller and the remote peripheral devices Slave The DP slaves form...

Page 12: ...e same data length In general retrieving 240 bytes from a slave is too long for the user because it makes the total cycle time too long This is why different modified response lengths modes see page a...

Page 13: ...tomer requirements as possible nine different combinations of different measurement results have been provided These different options specify what information is sent to the master The information co...

Page 14: ...are binary numbers Example b1100 bin1100 1100b 1100bin 4 4 2 Handling problems that arise when reading floating point numbers This only concerns cases in which floating point numbers need to be read...

Page 15: ...C inputs Byte 1 Master Slave Valid values START Bit 0 LSB TARA Y Bit 1 Set spare bits to 0 TARA X Bit 2 RESET STATISTICS Bit 3 SENSORTEST Bit 4 spare Bit 5 spare Bit 6 spare Bit 7 MSB 5 1 2 PLC inputs...

Page 16: ...6 PLC W1 W2E E 3 32 35 bytes 7 PLC Full general curve data W1 W2E E 3 48 32 83 bytes 8 PLC W1 W3E E 3 48 51 bytes 9 PLC Full general curve data W1 W3E E 3 48 48 99 bytes Where WXE E stands for Window...

Page 17: ...pare Bit 6 spare Bit 7 MSB 5 3 2 PLC outputs Byte 2 program addressing switching points PLC outputs Byte 2 Slave Master Valid values STROBE Bit 0 LSB Prog0 Bit 1 Spare bits to are set to 0 Prog1 Bit 2...

Page 18: ...ax Y of whole curve X coordinate Max Y of whole curve Y coordinate First curve value X coordinate First curve value Y coordinate Last curve value X coordinate Last curve value X coordinate 4 byte floa...

Page 19: ...yte Function Section Comments 0 PLC outputs 1st byte 5 3 1 1 PLC outputs 2nd byte 5 3 2 2 PLC outputs 3rd byte 5 3 3 3 AbsMinY X coord 1st byte 5 4 1 min general curve data 4 AbsMinY X coord 2nd byte...

Page 20: ...nts 0 PLC inputs 1st byte 5 1 1 1 PLC inputs 2nd byte 5 1 2 Data from slave to master Byte Function Section Comments 0 PLC outputs Byte 1 5 3 1 1 PLC outputs Byte 2 5 3 2 2 PLC outputs Byte 3 5 3 3 3...

Page 21: ...ord 2nd byte 5 4 2 Max Y of whole curve 33 AbsMaxY Y coord 3rd byte 5 4 2 Y coordinate 34 AbsMaxY Y coord 4th byte 5 4 2 32 bit float 35 First Point X coord 1st byte 5 4 2 Full general curve data 36 F...

Page 22: ...3rd byte 5 4 3 X coordinate 6 Entry window 1 X coord 4th byte 5 4 3 32 bit float 7 Entry window 1 Y coord 1st byte 5 4 3 Window 1 8 Entry window 1 Y coord 2nd byte 5 4 3 Entry 9 Entry window 1 Y coord...

Page 23: ...byte 5 4 2 X coordinate 14 AbsMaxX X coord 4th byte 5 4 2 32 bit float 15 AbsMaxX Y coord 1st byte 5 4 2 Full general curve data 16 AbsMaxX Y coord 2nd byte 5 4 2 Max X of whole curve 17 AbsMaxX Y co...

Page 24: ...5 4 2 Full general curve data 48 Last Point Y coord 2nd byte 5 4 2 Last curve value 49 Last Point Y coord 3rd byte 5 4 2 Y coordinate 50 Last Point Y coord 4th byte 5 4 2 32 bit float 51 Entry window...

Page 25: ...4 X coordinate 14 Exit window 1 X coord 4th byte 5 4 4 32 bit float 15 Exit window 1 Y coord 1st byte 5 4 4 Window 1 16 Exit window 1 Y coord 2nd byte 5 4 4 Exit 17 Exit window 1 Y coord 3rd byte 5 4...

Page 26: ...d byte 5 4 2 X coordinate 14 AbsMaxX X coord 4th byte 5 4 2 32 bit float 15 AbsMaxX Y coord 1st byte 5 4 2 Full general curve data 16 AbsMaxX Y coord 2nd byte 5 4 2 Max X of whole curve 17 AbsMaxX Y c...

Page 27: ...te 5 4 3 Window 1 52 Entry window 1 X coord 2nd byte 5 4 3 Entry 53 Entry window 1 X coord 3rd byte 5 4 3 X coordinate 54 Entry window 1 X coord 4th byte 5 4 3 32 bit float 55 Entry window 1 Y coord 1...

Page 28: ...X coord 1st byte 5 4 3 Window 1 4 Entry window 1 X coord 2nd byte 5 4 3 Entry 5 Entry window 1 X coord 3rd byte 5 4 3 X coordinate 6 Entry window 1 X coord 4th byte 5 4 3 32 bit float 7 Entry window 1...

Page 29: ...4 Exit window 2 Y coord 4th byte 5 4 3 32 bit float 35 Entry window 3 X coord 1st byte 5 4 3 Window 3 36 Entry window 3 X coord 2nd byte 5 4 3 Entry 37 Entry window 3 X coord 3rd byte 5 4 3 X coordina...

Page 30: ...d byte 5 4 2 X coordinate 14 AbsMaxX X coord 4th byte 5 4 2 32 bit float 15 AbsMaxX Y coord 1st byte 5 4 2 Full general curve data 16 AbsMaxX Y coord 2nd byte 5 4 2 Max X of whole curve 17 AbsMaxX Y c...

Page 31: ...te 5 4 3 Window 1 52 Entry window 1 X coord 2nd byte 5 4 3 Entry 53 Entry window 1 X coord 3rd byte 5 4 3 X coordinate 54 Entry window 1 X coord 4th byte 5 4 3 32 bit float 55 Entry window 1 Y coord 1...

Page 32: ...84 Entry window 3 X coord 2nd byte 5 4 3 Entry 85 Entry window 3 X coord 3rd byte 5 4 3 X coordinate 86 Entry window 3 X coord 4th byte 5 4 3 32 bit float 87 Entry window 3 Y coord 1st byte 5 4 3 Wind...

Page 33: ...ndard for PROFIBUS DP and FMS Successor to the German standard DIN 19245 FDL Fieldbus Data Link also called Layer 2 FMS Fieldbus Message Specification Transmission protocol on the PROFIBUS whose stren...

Page 34: ...tsdr The time that the slave must wait before it is allowed to respond to a request by the master Specified as 11 Tbit in the standard Octet Term used in EN 50 170 An octet equals exactly eight bits O...

Page 35: ...e identification of the data to be transferred and requested within a message Each message contains a Source SAP and a Destination SAP exception data is transferred via the default SAP PLC Programmabl...

Page 36: ...he three components The number is composed from this formula 0 1 2 1 127 mant x ex sign Equation 36 1 The mantissa is saved without the leading 1 hence the term 1 0 mant The exponent is represented wi...

Page 37: ...Bit 7 MSB Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 LSB S E7 E6 E5 E4 E3 E2 E1 2nd byte second byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 E0 M22 M21 M20 M19 M18 M17 M16 3rd byte third byte B...

Page 38: ...0 0000b S 0 E 0111 1110b M 100 0000 0000 0000 0000 0000b S 0 E 0x7E dec 126 M 0x400000 The value in the mantissa field is interpreted as places after the decimal point in the following way 1 0 0 0 0 0...

Page 39: ...100 0000 0000 0000 0000 0000b Taking into account the exponent A negative exponent shifts the decimal point to the left a positive exponent to the right Thus if an exponent of 3 was calculated the dec...

Page 40: ...not necessary however there are PROFIBUS masters whose conversion routine expects a different sequence Please follow the instructions below for changing the order The unit must only be opened by quali...

Page 41: ...identifies pad 1 of the solder bridge Pads 1 and 2 are connected as standard 3 is not connected Use a scalpel knife to break the connection between pad 1 and 2 ensuring that there is no longer any ele...

Reviews: