Home
PTM User Manual
Contents
1. PTM User Manual Rhino Bilger Page 1 of 39 26 M rz 2004 PTM_user manual DEBOO5C doc PTM User Manual Ay 7 A 7Revision list DE BOO3A 13 12 2002 Created DE BOO3B 03 02 2004 HU Literature adapted Section 1 supplemented Section 2 5 re divided and structured partially supplemented Section 4 new Rhino Bilger Page 2 of 39 26 M rz 2004 PTM user manual DEBOO AC doc PTM User Manual Contents Revision list Contents Literature Conventions Abbreviations 1 PTM Transmitter Types 1 1 General 1 1 1 User scaling 1 1 2 Recalibration 1 1 3 Temperature compensation 1 1 4 Damping 1 2 PTM 2 conductor 1 2 1 Functions 1 2 2 Interface 1 3 PTM digital 1 3 1 Functions 1 3 2 Interface 1 4 PTM GR 1 4 1 Functions 1 4 2 Interface 2 Modbus 2 1 General 2 1 1 Summary 2 1 2 Command structure 2 1 3 Example code CRC16 3 STS Layer 7 Log 3 1 General 3 2 Standard commands 3 2 1 3 2 2 3 2 3 3 2 4 Do Rhino Bilger Overview of commands Function Code 03 Function Code O4 Function Code 30 Function Code 31 PIM user manual DEBOO5C doc Read out pressure and temperature Read out relay status Read out serial number Read out version number Page 3 of 39 O O oo oco N d d NN Oh Dh Go WNW 13 13 13 13 14 14 14 15 26 M rz 2004 PTM User Manual 2 5 3 3 Extended commands 16 3 3 1 Overview of commands 16 3 3 2 Overview of parameters 16
2. return fcs Rhino Bilger Page 12 of 39 26 M rz 2004 PTM user manual DEBOO AC doc PTM User Manual A A 3 STS Layer 7 Protocol 3 1 General The STS Layer 7 protocol is used for the sensor types 2 conductor and CR The digital PTM can be switched over from the Modbus Layer 7 to the STS Layer 7 protocol whereby this switchover cannot be saved volatile Then the commands of the STS Layer 7 protocol are also available to the digital PTM With this protocol the following secondary conditions apply to the Modbus 1 The data are transmitted as 2 byte data words DW i e the number of data bytes is always a multiple of 2 2 The maximum number of data bytes is 16 8 DW The maximum telegram length including address function code and CRC sum is thus 20 bytes 3 The address O broadcast is always active for all transmitters regardless of the address at which the transmitter is set this contradicts the documents 1 and 2 However this means that the broadcast cannot be used in a network with several transmitters connected simultaneously since otherwise the responses of the transmitters would collide 4 The addresses I 255 are permissible as possible transmitter addresses The default is the address 240 before February 2004 address 255 5 The function codes lie within the range 3 255 This contradicts with Modbus as there only codes less than 128 are assigned and codes greater than the exception are use
3. 2 MODBUS Application Protocol Specification V1 1 http www modbus org gt Modbus Standard Library section Conventions Abbreviations P Pressure P Zero point pressure P Nominal pressure Ps Switch on point pressure of the relay Pos Switch off point pressure of the relay ZP Zero point T Temperature Ls Start of temperature range T End of temperature range DW Data word DB Data byte Q at Rhino Bilger Page 6 of 39 26 M rz 2004 PTM_user manual DEBOO5C doc PTM User Manual 1 PTM Transmitter Types 2 5 There are three different types PTM transmitters These unify the same basic functions described in Section 1 1 General and specific functions These are listed in the following Sections 1 2 to 1 4 and shown in the block diagrams 1 1 General 1 1 1 User scaling It is possible via user scaling to set which pressure range at the analogue output 4 20 mA The following setting ranges apply Pressure Am 5 105 FS Pressure 20mA 5 105 FS Whereby the minimum span pressure820mA pressure84mA may not be less than 25 of the nominal range and not less than 50 mbar For example with a transmitter with a nominal range of 1 bar settings between 20 4mA and 80 20mA or 20769 4mA and 5 20mA are possible 5 0 100 105 P FS Figure 1 User scaling The digital output is not scalable Here the measuring range is always shown directly on O 10 000 points These are equivalent
4. 3 3 3 Function Code 112 Delete parameter flash 17 3 3 4 Function Code 114 Password for parameter flash modifications 17 3 3 5 Function Code 136 Read out user parameter 1 18 3 3 6 Function Code 137 Read out user parameter 2 19 3 3 7 Function Code 138 Read out user parameter 3 19 3 3 8 Function Code 234 Read out factory parameter 1 20 3 3 9 Function Code 235 Read out factory parameter 2 21 3 3 10 Function Code 152 Write user parameter 1 21 3 3 11 Function Code 153 Write user parameter 2 23 3 3 12 Function Code 154 Write user parameter 3 24 3 4 Procedure for writing to memory 25 4 Modbus Layer 7 Log 26 Al General 26 4 2 Standard commands 26 4 2 1 Overview of commands 26 4 2 2 Function Code 04 Read input register 27 4 2 3 Start index overview 27 4 2 4 Start Index O Measured pressure value 27 4 2 5 Start Index 1 Measured temperature value 27 4 2 6 Start Index 7 Software version 27 4 3 Extended commands 28 4 3 1 Command overview 28 4 3 2 Function Code 03 Read holding register 28 4 3 3 Function Code 16 Write multiple register 28 4 3 4 Start Index overview 28 4 3 5 Start Index O Layer 7 command set 29 4 3 6 Start Index 2 Password for parameter flash modifications 29 4 3 7 Start Index 4 Write and delete password for parameter flash modifications 29 4 3 8 Start Index 20 Address 30 4 3 9 Start Index 21 Damping filter 30 4 3 10 Start Index 22 Pressure zero point scaling for analogue output 30 4 3 11 Start Index 2
5. PUserCalZero Value range Description Value range Description Value range Calculation Description Value range Calculation Description Value range Calculation Description Value range Calculation Description Value range Calculation PUserCalFullscale Rhino Bilger Value range Calculation PIM user manual DEBOO5C doc 1 255 O is reserved for broadcast and cannot be used as address 240 is the default value on delivery Represents the damping set at the analogue output O approx 30 Hz standard 1 lOHz 2 1 Hz 3 0 1 Hz Zero point scaling of analogue output Pout from 5 to 105 FS 19 500 30 500 standard 20 000 O FS PUserZero 20000 4mA P bar en P bar P bar P bar Full scale scaling of analogue output Pout from 5 to 105 FS 500 10 500 standard 10 000 100 FS _ PUserFullscale 20mA P bar TUT P bar HR bar P bar Zero point scaling of analogue output Tout from 5 to 105 FS 19 500 30 500 standard 20 000 O FS E TUserZero 20000 4mA T C 10008 UTC Te PCD Pye PC Full scale scaling of analogue output Tout from 5 to 105 FS 500 10 500 standard 10 000 100 FS _ TUserFullscale 20mA T C Tm PCI Te PCD Tye PC Zero point re calibration 19 500 30 500 standard 20 000 O FS See section 2 5 Re calibration Description Full sca
6. Value range O approx 30 Hz Standard 1 10 Hz 2 1 Hz 3 0 1 Hz 4 3 10 Start Index 22 Pressure zero point scaling for analogue output PUserZero Description Zero point scaling for analogue output Pout from 5 to 105 FS Value range 19 500 30 500 Standard 20 000 O FS PUserZero 20000 read 4mA Plbar ae P bar P bar P bar P bar 4mA P bar Py bar E P bar write PUserZero 10000 20000 4 3 11 Start Index 23 Pressure of full scale scaling for analogue output PUserFullscale Description Full scale scaling for analogue output Pout from 5 to 105 FS Value range 500 10 500 Standard 10 000 100 FS _ PUserFullscale read 20mA P bar EEUU P bar P bar P bar Por le 20mA P bar P bar 7 I bar write PUserFullscale 10000 4 3 12 Start Index 24 Temperature of zero point scaling for analogue output TUserZero Description Zero point scaling for analogue output Tout from 5 to 105 FS Value range 19 500 30 500 Standard 20 000 O FS read ama Tpc CREE rt TEC TIC T C 9 4mA T C ER C u Pu C write TUserZero 10000 20000 Rhino Bilger Page 30 of 39 26 M rz 2004 PTM user manual DEBOO AC doc A PTM User Manual A A 4 3 13 Start Index 25 Temperature of full scale scaling for analogue output TUserFullscale Description Full scale scaling for analogue output Tout from 5 to 105 FS V
7. 112 Delete parameter flash E e Deletes the parameter flash The password has to be sent before this command can be executed see function code 114 Section 2 3 4 2 5 Response Value range O Error 1 Correct Note With the PTM 2 conductor the deletion process causes current peaks which can interrupt communication i e the response of the transmitter is interrupted As workaround the application program can ignore the response and by means of read access ensure that the deletion process was completed successfully with commands 136 138 all data words must be 65535 Note Please note section 5 1 Procedure for writing to the memory 3 3 4 Function Code 114 Password for parameter flash modifications Response 114 Respons e To enable deletion or writing of the parameter flash the password first has to be transmitted After entering the password deletion and writing operations are possible within the next 1O minutes or until the next reset Response Value range O Password incorrect Password correct Rhino Bilger Page 17 of 39 26 M rz 2004 PTM_user manual_DEBOO5C doc PTM User Manual 2 5 3 3 5 Function Code 136 Read out user parameter 1 Response LPSel PUserFullscale TUserFullscale PUserCalZero PUserCalFullscale Reads out the address damping scaling and re calibration parameters Address LPSel PUserZero PUserFullscale TUserZero TUserFullscale
8. address 240 with transmitter before February 2004 255 Transmission rate 1200 Baud Data bits 8 Parity None Stop bits 2 1 3 PTM digital 1 3 1 Functions The PTM digital offers the following functions e User scaling of the analogue pressure measuring channel e Recalibration of the pressure measuring channel e Active or passive temperature compensation e Damping filter e Digital temperature output only with active temperature compensation e Analogue temperature output with user scaling option with active temperature compensation The calculations of the individual parameters are indicated with the respective Modbus command Rekalibration D mpfung Druck Druck Pi A D md PUserCalZero IPSel gt digital PUserCalFullscale Anwender Skalierung Druck Temperatur PUserZero analog PUserFullscale amp Druckkalibration Temperatur digital Y Temperatur A D Anwender Skalierung Temperatur analog TUserZero TUserFullscale Figure 2 Signal flow diagram PTM digital 1 3 2 Interface An RS485 interface is used to communicate with the PTM digital The following settings apply Protocol Modbus see Section 2 with Modbus Layer 7 see Section 4 Default address 240 with transmitter before February 2004 255 Transmi
9. frequency c o f Intensity dB Frequency Hz Figure 2 Damping 1 2 PTM 2 conductor 1 2 1 Functions The PTM 2 conductor offers the following functions e User scaling of the analogue pressure measuring channel e Recalibration of the pressure measuring channel e Active or passive temperature compensation e Damping filter The calculations of the individual parameters are indicated with the respective Modbus command Rekalibration D mpfung Druck Druck gt A D gt Gen PUserCalZero LPSel digital PUserCalFullscale Y Temperatur amp Anwender Druckkalibration Skalierung Druck Sg T D A analog serZero PUserFullscale Temperatur A D Figure 1 Signal flow diagram PTM 2 conductor Rhino Bilger Page 8 of 39 26 Marz 2004 PTM_user manual_DEBOO5C doc PTM User Manual 1 2 2 Interface 2 5 Two types of modulation are used to communicate with the PTM 2 conductor Communication between PC and transmitter is realised via a supply voltage modulation The transmitter responds to the PC via a current modulation In this way the current loop conductors are used for communication For the above mentioned reasons measurements cannot be taken at the analogue output during communication The following settings apply Protocol Modbus see Section 2 with STS Layer 7 see Section 2 Default
10. range Calculation TMin TMin2 65536 TMin If TMin gt 2 TMin TMin2 65536 TMin1 2 IMin Popes C el er Rhino Bilger Page 20 of 39 26 Marz 2004 PTM_user manual_DEBOO5C doc PTM User Manual Ay 7 A 3 3 9 Function Code 235 Read out factory parameter 2 Response 235 SNI SN2 HW Ver HW Index PTyp CalTyp p Reads out the factory parameters serial number hardware version hardware index pressure type and calibration type SN1 SN2 Description Transmitter serial number Value range Whole number 32 bit integer between O and 2 1 Divided into 2 DW SN1 and SN2 each of 2 bytes Calculation Serial number SN2 65536 SNI Example SNI 53597 SN2 2 gt serial number 184669 HW Ver Description Hardware version of the transmitter print Value range 0 9999 Representation 6 00 xxxx A HW Index Description Hardware index of the transmitter print Value range 65 90 decimal ASCII values for A Z Representation 6 00 0000 x PTyp Description Indicates the pressure types of the transmitter Value range O a absolute pressure l g relative pressure 2 sg over pressure CalTyp Description Temperature calibration type Value range O passive temperature compensation l active temperature compensation For explanation of active or passive temperature compensation see section PTM transmitter types 3 3 10 Function Code 152 Write user parameter 1 Command Re
11. 128 during the response With the exception code it can be determined why a fault has occurred in the receiver 4 4 3 Exception codes Here the following exception codes are possible Exception code Fault description The function code used in the command is not supported by the device 2 a The start index used in the command is not supported by the device b The length used in the command is too large for this start index The length used in the command is O 4 a There are not enough rights present to an index used in the command write read b The value range of the data to be written has been violated Table 8 Exception codes Rhino Bilger Page 34 of 39 26 Marz 2004 PTM_user manual_DEBOO5C doc PTM User Manual 2 5 Due to the memory structure it is necessary when writing the flash to comply with the following procedure 4 5 Procedure when writing to memory 1 Read the user parameters function code O3 start index 20 30 per length 8 2 Temporary storage of the values in the PC 3 Writing the password and deleting the flash function code 16 start index 4 length 1 After the flash is deleted the address is set with the default to 240 OxFO until it is reset with the first write access to the start index 20 see Point 6 As a result the address 240 should only be used when only one transmitter is in the network As soon as several transmitters are connected in the network then no transmitter sh
12. 2 interface is used to communicate with the PTM CR The following settings apply Protocol Modbus see Section 2 with STS Layer 7 see Section 3 Default address 240 with transmitter before February 2004 255 Transmission rate 9600 Baud Data bits 8 Parity None Stop bits 2 Rhino Bilger Page 10 of 39 26 M rz 2004 PTM_user manual DEBOO5C doc PTM User Manual 2 5 2 Modbus 2 1 General The document 1 MODBUS over Serial Line describes the basics of Modbus communication it describes the layers 1 and 2 of the ISO OSI layer model Layer 7 describes the interpretation of the data With the PTM transmitters two different Layer 7 logs are used These are described in Sections 3 and 4 of this document 2 1 1 Summary e Modbus is a master slave communication protocol e Modbus telegrams in the RTU or binary mode always begin with and address IO 247 and a function code Fcn Code Then the data bytes DB follow 2 bytes with the CRC sum form the conclusion e The communication states transmit receive cancel are controlled via timeouts e The byte sequence for transmission of a data word is controlled as follows Data STS Layer 7 Lo Hi byte Data Modbus Layer 7 Hi Lo byte CRC for both Lo Hi byte 2 1 2 Command structure Command frame Modbus message command or response pain Fen Cade own ow owa ve RE 1 byte 2 2 2 2 2 bytes bytes bytes bytes bytes The number of d
13. 3 Pressure of full scale scaling for analogue output 30 Rhino Bilger Page4o39 26 M rz 2004 PIM user manual DEBOO5C doc PTM User Manual 5 55 4 3 12 Start Index 24 Temperature of zero point scaling for analogue output 30 4 3 13 Start Index 25 Temperature of full scale scaling for analogue output 31 4 3 14 Start Index 26 Pressure of zero point re calibration 31 4 3 15 Start Index 27 Pressure of full scale re calibration 31 4 3 16 Start Index 30 37 Device description 31 4 3 17 Start Index 200 201 Nominal pressure 32 4 3 18 Start Index 202 203 Zero point pressure 32 4 3 19 Start Index 204 205 End of temperature range 32 4 3 20 Start Index 206 207 Start of temperature range ER 4 3 21 Start Index 210 211 Serial number 33 4 3 22 Start Index 212 Hardware version 33 4 3 23 Start Index 213 Hardware index 33 4 3 24 Start Index 214 Pressure type 33 4 3 25 Start Index 215 Temperature calibration type 33 4 4 Handling exceptions 34 4 4 1 General 34 4 4 2 Exception response 34 4 4 3 Exception codes 34 4 5 Procedure when writing to memory 35 5 Procedure and Calculations 36 5 1 Re calibration 36 5 2 Unit conversions 39 5 2 1 Pressure units 39 5 2 2 Temperature units 39 Rhino Bilger Page 5 of 39 26 Marz 2004 PTM_user manual_DEBOO5C doc PTM User Manual 2 5 1 MODBUS over Serial Line Specification amp Implementation Guide V1 0 http www modbus org gt Modbus Standard Library section Literature
14. 3597 SN2 2 gt Serial number 184669 4 3 22 Start Index 212 Hardware version HW Ver Description Hardware version of transmitter PCB Value range O 9999 Format 6 00 xxxx A 4 3 23 Start Index 213 Hardware index HW Index Description Hardware index of transmitter PCB Value range 65 90 ASCII values decimal for A Z Format 6 00 0000 x 4 3 24 Start Index 214 Pressure type PTyp Description Indicates pressure types of transmitter Value range O a Absolute pressure l g Relative pressure 2 sg Overpressure 4 3 25 Start Index 215 Temperature calibration type CalTyp Description Temperature calibration type Value range O Passive temperature compensation Active temperature compensation For explanation see Section 1 PTM transmitter types Rhino Bilger Page 33 of 39 26 M rz 2004 PTM user manual DEBOO AC doc PTM User Manual 4 4 Handling exceptions 2 5 4 4 1 General In the Modbus Layer 7 protocol faulty accessing of a node will be responded to with an exception However faulty does not mean e Incorrect device address e Faulty CRC sum In these cases no response may be sent The exception response is characterized by the fact that the function code has been increased by 128 For example for a function code O3 the response in the case of an exception is received with the function code 131 4 4 2 Exception response Response ETE As described above the function code is increased by
15. Marz 2004 PTM_user manual_DEBOO5C doc 2 5 Response PTM User Manual 3 3 12 Function Code 154 Write user parameter 3 Poff DelayOn1 DelayOff Poff2 DelayOn2 DelayOff2 With PTM GR transmitters writes the switching thresholds and switching delays of the two delays in the flash Indices 1 or 2 of the above parameters indicate to which relay they correspond Pon Description Switch on thresholds Value range 19 500 30 500 however less than or equal to Poffl or Poff2 Calculation Pon Cbar Pulbar D 10000 20000 Py bar Pp bar Poff Description Switch off thresholds Value range 19 500 30 500 however less than or equal to Ponl or Pon2 Calculation Poff albar Fl x 9000 20000 Py bar Pp bar DelayOn Description Switch on delay when value is less than Pon Value range O 10 000 Calculation DelayOn switch on delay ms DelayOff Description Switch off delay when value is less than Poff Value range O 10 000 Calculation DelayOff switch off delay ms Rhino Bilger Page 24 of 39 26 M rz 2004 PTM_user manual_DEBOO5C doc PTM User Manual 2 5 Due to the structure of the memory when writing the flash the following procedure must be observed Read the user parameters function codes 136 138 Intermediate storage of the values in the PC Send the password function code 114 Delete the flash function code 112 IF necessary read out the flash check the deleti
16. PMax If PMax gt 2 PMax PMax2 65536 PMax1 2 PMax P bar ET bar Example PMaxl 54464 PMax2 gt PMax 120 000 gt P 1 2 bar 4 3 18 Start Index 202 203 Zero point pressure Data type signed long PMinl PMin2 Description Zero point pressure of transmitter Calculation PMin PMin2 65536 PMin If PMin gt 2 PMin PMin2 65536 PMin1 2 PMin P bar Tem bar Example PMinl 31072 PMin2 65534 gt PMin 100 000 gt P I bar 4 3 19 Start Index 204 205 End of temperature range Data type signed long TMax1 TMax2 Description End of temperature range of transmitter Calculation TMax TMax2 65536 TMax If TMax gt 2 TMax TMax2 65536 Tmax1 2 TMax ZC S eT 199999 Rhino Bilger Page 32 of 39 26 Marz 2004 PTM_user manual_DEBOO5C doc PTM User Manual 2 5 4 3 20 Start Index 2064207 Start of temperature range Data type signed long TMinl TMin2 Description Start of temperature range of transmitter Calculation TMin TMin2 65536 TMin If TMin gt 2 TMin TMin2 65536 TMin1 2 TMin IT ICT C wel C Ted 4 3 21 Start Index 2104211 Serial number Data type unsigned long SN1 SN2 Description Serial number of transmitter Value range Whole number 32bit integer between O and 2 1 Divided into 2 DW SN1 and SN2 of 2 bytes each Calculation Serial number SN2 65536 SNI Example SNI 5
17. alZero u S Full scale re calibration If a pure full scale re calibration is performed G en If an offset and full scale re calibration is performed G Dmm It thus follows that S 2 P R2 G PUserCalFullscale PUserCalFullscale G PTM Rhino Bilger Page 38 of 39 26 M rz 2004 PTM user manual DEBOO AC doc PTM User Manual 5 2 Unit conversions 5 2 1 Pressure units 2 5 The following gives the conversion factors for converting any unit into bars ann among Table 5 Pressure units 5 2 2 Temperature units Kelvin gt degrees Celsius T C TIK 273 15 Degrees Celsius gt Kelvin TIK T C 273 15 Degrees Fahrenheit gt degrees Celsius TIC 5 9 TIF 160 9 Degrees Celsius gt degrees Fahrenheit mp 9 5 T C 32 Rhino Bilger PTM_user manual_DEBOO5C doc Page 39 of 39 um Feet CREME NEN S pon l1 26 M rz 2004
18. alue range 500 10 500 Standard 10 000 100 FS read 20mA TI C mr T C T C T C T C 20mA T C T C zu T C write TUserFullscale 10000 4 3 14 Start Index 26 Pressure of zero point re calibration PUserCalZero Description Zero point re calibration Value range 19 500 30 500 Standard 20 000 O FS Calculation see Section 5 2 Re calibration 4 3 15 Start Index 27 Pressure of full scale re calibration PUserCalFullscale Description Full scale re calibration Value range 500 10 500 Standard 10 000 100 FS Calculation see Section 5 2 Re calibration 4 3 16 Start Index 30 37 Device description The description consists of a maximum of 16 characters The values of the individual bytes are equivalent to the decimal values of the ASCII table whereby the low byte of Desc1 represents the first and the high byte of Desc8 the last character If not all characters are required then the remaining bytes are initialized with zeros Example character string O 10 mWsg uem unen ten wi e 2030h 8240d Desc 202Dh 8237d Desc2 3031h 12337d Desc3 6D20h 27936d Desc4 7357h 29527d Desc5 6720h 26400d Desc Rhino Bilger Page 31 of 39 26 M rz 2004 PTM user manual DEBOO AC doc PTM User Manual 2 5 4 3 17 Start Index 200 201 Nominal pressure Data type signed long PMax1 PMax2 Description Nominal pressure of transmitter Calculation PMax PMax2 65536
19. arameters data without start index length or byte count are transmitted as 2 byte data words DW 2 The maximum number of parameter bytes data without start index length or byte count is 16 8 DW The maximum telegram length including the address function code start index length byte count and CRC sum is therefore 25 bytes with function code 16 write multiple registers 3 The address O is a broadcast address in the Modbus Layer 7 protocol i e all connected transmitters carry out the command and none respond 4 The addresses 1 247 are permissible as possible transmitter addresses The default is the address 240 5 The start indices have always been created so that maximum blocks of eight consecutive indices result This length can still be processed by the receiving memory of the PTM 4 2 Standard commands 4 2 1 Overview of commands The standard commands are listed in the following The transmission and response lengths are specified in data bytes including the address function code and CRC sum Function code Description Digital Transmission Response length a h 04 Readinput registers Reodinputregisers registers 8 Ia zeng 2 ERD Table 4 Overview of standard commands Rhino Bilger Page 26 of 39 26 M rz 2004 PTM user manual DEBOO AC doc PTM User Manual Ay 7 A 4 2 2 Function Code 04 Read input register Response Exe d xw M S Be The number of data words 1 to maximum of 8 is depend
20. ata words can be seen from the definition of the respective commands In the remainder of this document the address and the CRC sum are not stated explicitly but they are always part of the Modbus telegram The CRC sum is divided into individual bytes with the low byte being transmitted first and then the high byte see example below Thus CRC CRC hi 256 CRC lo The CRC sum is formed via the address function code and data words If the response is faulty no response is given Rhino Bilger Page 11 of 39 26 M rz 2004 PTM user manual DEBOO AC doc PTM User Manual 2 5 Example STS Layer 7 Function Code 03 Read pressure and temperature Command Parameter Example Hex Example Decimal Description Ma m ow 1 Function code 03 03 7470 CRCI Response Mm m m LLL Wemme CB m 5678 5687 56 78 FS 25 251 2 51 FS 5130 CRCI 2 1 3 Example code CRC16 The CRC16 code is used as CRC sum In order to avoid misunderstandings at this point the C code is attached unsigned short calcCRC16 unsigned char data unsigned short count unsigned int fcs OxFFFFU initial Frame Check Sequence FCS value unsigned int d i k for i O i lt count i d unsigned int data lt lt OU for k 0 k lt 8 k if fcs d amp 0x0001U 1 fcs fcs gt gt 1 OxAOOTU Generator Polynomial OxAOO1U else fcs fcs gt gt 1 d gt gt 1
21. d 3 2 Standard commands 3 2 1 Overview of commands The standard commands are listed below The transmission and response lengths are stated in data bytes and include address function code and CRC sum Function Code Description 2 Digital GR Transmission Response length conductor length Iable 1 Overview of standard commands Rhino Bilger Page 13 of 39 26 M rz 2004 PTM user manual DEBOO AC doc PTM User Manual 2 5 3 2 2 Function Code 03 Read out pressure and temperature Response Reads out the pressure and with the digital actively compensated transmitter also the temperature With the 2 conductor and the GR transmitter the temperature field does not contain any valid data but the data frame remains the same Pressure Value range O 10 000 points Conversion P bar pressure na P Pp bar 10000 Temperature Value range O 10 000 points Conversion T C temperature Gy CI Dl CH T 10000 3 2 3 Function Code 04 Read out relay status Response 04 Status relay 1 Status relay 2 1 byte With the PTM GR transmitter it is possible to read out the status of the two relay contacts The other transmitter types do not respond to this command Value ranges O Make contact open Make contact closed 3 2 4 Function Code 30 Read out serial number Response O Reads out the serial number 1 byte Value range Whole number 32bit unsigned integer between O and 2 1 Divide
22. d into 2 DW SN1 and SN2 each of 2 bytes Calculation Serial number SN2 65536 SNI Example SNI 53597 Rhino Bilger Page 14 of 39 26 M rz 2004 PTM user manual DEBOO AC doc 2 5 SN2 2 gt serial number 184669 PTM User Manual 3 2 5 Function Code 31 Read out version number Response Version number 31 Reads out the software version number Value range Whole number 16bit unsigned integer between O and 65 535 Calculation Software version version number 100 Example version number 202 software version 2 02 Rhino Bilger Page 15 of 39 26 M rz 2004 PTM user manual DEBOO AC doc PTM User Manual 2 5 3 3 Extended commands 3 3 1 Overview of commands The extended commands are listed below The transmission and response lengths are quoted in data bytes and include address function code and CRC sum n E n m ol length length m eem fe ee e hu meme eid he do rm xk e ehem he lt lt zl KX X lt lt zl KX X se tendon verpoonew xe iki 9 sz weed xed fs gt 77 vr zug X dds se etn verpoonew fx eid mu Rendon ony poem kk Je ms Reotontonoypaemawr xe idx ide Je Table 2 lt lt KK Z X x lt Kx Z X Overview of extended commands 3 3 2 Overview of parameters Table 3 Extended commands parameter overview Rhino Bilger PTM_user manual_DEBOO5C doc Page 16 of 39 26 Marz 2004 PTM User Manual 3 3 3 Function Code
23. endent on the length called In the process the byte count becomes the number of data bytes transmitted or 2 length 4 3 3 Function Code 16 Write multiple register Response Start index Length The number of data words 1 to a maximum of 8 is dependent on the length called In the process the byte count becomes the number of data bytes to be transmitted or 2 length ERR NUM e 4 3 4 Start index overview The parameters can be read out or written with the two function codes 03 and 16 under the following start index Command set Command setforlayer7 Io lee Command setforlayer7 7 rmm n En Set user password delete data Rhino Bilger Page 28 of 39 26 M rz 2004 PTM user manual DEBOO AC doc PTM User Manual prm user Manual d ZA A m E CHE PUserZero 22 HW Number 212 PUserCalZero PUserCalFullscale Table 7 Start index overview of expanded commands Access r read only W write only rw read and write 4 3 5 Start Index 0 Layer 7 command set Reads or sets the command set to be used on the Layer 7 level Command set Value range O Modbus Layer 7 command set STS Layer 7 command set Following start up the digital transmitter is always in the Modbus Layer 7 command set The Modus STS Layer 7 command set cannot be saved it is in a volatile state This is reset during a reset Important In the STS Layer 7 command set the two function codes 03 and 16 have also been implemented afte
24. ent on the length called In the process the byte count becomes the number of data bytes transmitted or 2 length 4 2 3 Start index overview The parameters can be read out in function code 04 under the following start index Table 5 Start index overview of standard commands Access r read only 4 2 4 Start Index 0 Measured pressure value Pressure Value range 0 10 000 points Py bar Py bar Conversion P bar Druck P bar bar 10000 vp Lbar 4 2 5 Start Index 1 Measured temperature value Temperature Value range O 10 000 points Conversion 7 C Temperatur AD T C 10000 4 2 6 Start Index 7 Software version Version Value range Whole number 16bit Unsigned Integer between O and 65 535 Calculation Software version Versions number 100 Example Versions number 202 Software version 2 02 Rhino Bilger Page 27 of 39 26 M rz 2004 PTM user manual DEBOO AC doc PTM User Manual A A 4 3 Extended commands 4 3 1 Command overview The extended commands are listed in the following The transmission and response length are specified in data bytes including the address function code and CRC sum Function code Description Digital Transmission Response length length Read holding registers 5 2 length Table 6 Overview of extended commands 4 3 2 Function Code 03 Read holding register nd Response P Nw ee C The number of data words 1 to a maximum of 8 is dep
25. le re calibration 500 10 500 standard 10 000 100 FS See section 2 5 Re calibration Page 18 of 39 26 Marz 2004 PTM User Manual A A 3 3 6 Function Code 137 Read out user parameter 2 Response Desc2 Desc3 DescA Desc5 Desc Desc Desc8 Reads out the description The description comprises a maximum of 16 characters The values of the individual bytes correspond to the decimal values of the ASCII table with the low byte of Desc representing the first and the high byte of Desc8 the last character If not all characters are required the remaining bytes are initialised with zeros see also function code 153 3 3 7 Function Code 138 Read out user parameter 3 Response Poff DelayOn1 DelayOffl Poff2 DelayOn2 DelayOff2 With PTM GR transmitters reads out the switching thresholds and switching delays of the two relays Indices 1 or 2 of the above parameters indicate to which relay they correspond A Schliesserkontakt geschlossen Schliesserkontakt offen Pon Poff Druck P Einheit Figure 4 Switching thresholds of the relays Pon Description Switch on thresholds Value range 19 500 30 500 however less than or equal to Poff1 or Poff2 Calculation P bar Le P bar P bar P bar Poff Description Switch off thresholds Value range 19 500 30 500 however less than or equal to Pon or Bon Calculation bar M P bar P bar P bar DelayOn Descri
26. on process function codes 136 138 On read back the parameters must contain the values 65535 gt As from here the address is therefore set to an undefined value use the address O to write the parameters With it the transmitter can be addressed at any time regardless of the address setting 6 Compile the new user parameters 7 Write the user parameters function codes 152 154 All three function codes always have to be written consecutively Individual parameters or lines cannot be partially overwritten 8 Read out the flash check the write process function code 136 138 IF the write process fails continue from point 4 3 4 Procedure for writing to memory en Rhino Bilger Page 25 of 39 26 M rz 2004 PTM user manual DEBOO AC doc PTM User Manual A A 4 Modbus Layer 7 Protocol 4 1 General The Modbus Layer 7 protocol is used for the PTM digital which is network capable with the RS485 interface The document 2 MODBUS Application Protocol Specification is to be considered the basis for this protocol The data are accessed with fixed function codes with an index system For this purpose a Start Index SI read write from which index and the length L how many indices are included In some cases the length is also included with a byte count BC whereby the byte count must be calculated with the formula 2 length The following secondary conditions for the Modbus apply to this protocol 1 The p
27. ors are calibrated at room temperature in a vertical position with the measuring cell pointing downwards Signal digital A Ideale Kennlinie Aktuelle Kennlinie gt Referenzdruck Pr P R1 R2 Figure 5 Calculating the re calibration Abbrevi Description Value range Unit ation Zero point pressure of the transmitter Fixed according to specification Nominal pressure of the transmitter Fixed according to specification Reference pressure in the range from 90 105 FS one pei rm Jet Table 4 Re calibration signals Rhino Bilger Page 36 of 39 26 M rz 2004 PTM user manual DEBOO AC doc PTM User Manual 2 5 Rhino Bilger Page 37 of 39 26 M rz 2004 PTM user manual DEBOO AC doc PTM User Manual Ay 7 Values S1 and S2 are read out with function code 03 see section 2 2 2 It is important that reference pressure values R1 and R2 are determined at the same time as S1 and S2 PuserCalFullscale and PuserCalZero are read out with function code 136 see section 2 3 5 The calculation to re calibrate the PTM transmitters is as follows 10000 Calculate current increase in PTM Gn PUserCalFullscale PUserCalZero 20000 l l l 51 Offset re calibration In the case of a pure offset re calibration G SES i In the case of an offset and full scale re calibration G CV R2 RI It thus follows that SI RI P G PUserCalZero PUserC
28. ould be operated on the permanent address 240 as otherwise collisions can occur on the bus during parameterisation 4 Any reading out of the flash checking the delete process function code 03 start index 20 30 per length 8 When reading back the parameter must contain the values 65535 5 Putting together the new user parameters 6 Writing the user parameters function code 16 start index 20 30 per length 8 It must be observed that the start index 20 is to be written first so that the address is reset From here the correct address can then be used further All three index blocks must always be written consecutively Individual parameters or partial lines cannot be overwritten 7 Reading out of the flash checking the write process function code 03 start index 20 30 per length 8 If the write process fails continue from Point 3 Rhino Bilger Page 35 of 39 26 Marz 2004 PTM_user manual_DEBOO5C doc PTM User Manual 2 5 5 Procedure and Calculations 5 1 Re calibration The sensors are calibrated at the factory Due to the long term drifts however zero point and full scale errors can occur As a result of re calibration it is possible to a certain extent to compensate both Re calibration is only recommended if there is a pressure reference that is at least five times more accurate than the sensor Furthermore it should be noted that the sensor position can be crucial for calibration In the factory the sens
29. ption Switch on delay when value is less than Pon Value range O 10 000 Rhino Bilger Page 19 of 39 26 M rz 2004 PTM user manual DEBOO AC doc PTM User Manual Ay 7 A Calculation Switch on delay ms DelayOn DelayOff Description Switch off delay when value is less than Poff Value range 0 10 000 Calculation Switch off delay ms DelayOff 3 3 8 Function Code 234 Read out factory parameter 1 Response 234 PMax 1 PMax2 PMin PMin2 TMax TMax2 TMin TMin2 Reads out the factory parameters of the pressure and temperature ranges All Value range Whole number 32 bit integer between O and 2 1 Divided into 2 DW each of 2 bytes PMaxl PMax2 Description Nominal pressure of the transmitter Calculation PMax PMax2 65536 PMax If PMax gt 2 PMax PMax2 65536 PMax1 2 PMax P bar SE bar Example PMaxl 54464 PMax2 gt PMax 120000 gt P 1 2 bar PMinl PMin2 Description Zero point pressure of the transmitter Calculation PMin PMin2 65536 PMinl IF PMin gt 2 PMin PMin2 65536 PMin1 2 PMin P bar Term bar Example PMinl 31072 PMin2 65534 gt PMin 100 000 gt P 1 bar TMaxl TMax2 Description End of the transmitter temperature range Calculation TMax TMax2 65536 TMax If TMax gt 2 TMax TMax2 65536 Tmax1 2 om TMAX y on 1 TMinl TMin2 Description Start of the transmitter temperature
30. r Modbus Layer 7 command set As a result a transmitter can also be reset to the Modbus Layer 7 command set 4 3 6 Start Index 2 Password for parameter flash modifications To enable deleting or writing of the parameter flash first the password must be transmitted After the password is entered delete and write operations are possible within the next 1O minutes in each case until the next reset This command only has a write access Command Value range 2001 User password 4 3 7 Start Index 4 Write and delete password for parameter flash modifications To enable deleting or writing of the parameter flash first the password must be transmitted After the password has been entered deleting and writing operations are possible within the next 10 minutes each time until the next reset At the same time the parameter flash is also immediately deleted with this command and is then ready for write accesses This command only has a write access Rhino Bilger Page 29 of 39 26 M rz 2004 PTM user manual DEBOO AC doc PTM User Manual A A Command Value range 2001 User password 4 3 8 Start Index 20 Address Address Description Device address of Modbus protocol Value range 1 247 O is reserved for broadcast and is not permissible as an address 240 is the default value on delivery 4 3 9 Start Index 21 Damping filter LPSel Description Represents the set damping on the analogue output of the pressure measuring channel
31. rom 5 to 105 FS Value range 19 500 30 500 standard 20 000 O FS T C 9 4mA Typ C Ty PC Typ PCD Calculation TUserZero 10000 20000 TUserFullscale Description Full scale scaling of the analogue output Tout from 5 to 105 FS Value range 500 10 500 standard 10 000 100 FS TFC 20mA T U CN Ty PC Typ PCD Calculation TUserFullscale 10000 PUserCalZero Description Zero point re calibration Value range 19 500 30 500 standard 20 000 O FS Calculation See Section 2 5 re calibration PUserCalFullscale Description Full scale re calibration Value range 500 10 500 standard 10 000 100 FS Calculation See section 2 5 Re calibration Rhino Bilger Page 22 of 39 26 M rz 2004 PTM user manual DEBOO AC doc D PTM User Manual Ay 7 3 3 11 Function Code 153 Write user parameter 2 Response 153 Desc Desc2 Desc3 Desc4 Desc5 Desc Desc Desc8 Writes the description in the flash It comprises a maximum of 16 characters The values of the individual bytes correspond to the decimal values of the ASCII table with the low byte of Desc representing the first and the high byte of Desc8 representing the last character IF all characters are not required the remaining bytes are initialised with zeros Example Character string O 10 mWs g 2030h 8240d Desc 8237d 12337d 27936d 29527d 26400d a 9 nn L Peel oe Rhino Bilger Page 23 of 39 26
32. sponse LPSel PUserFullscale TUserFullscale PUserCalZero PUserCalFullscale Writes the address damping scaling and re calibration parameters in the flash 1b 1b vb Address Value range 1 255 O is reserved for broadcast and cannot be used as address Rhino Bilger Page 21 of 39 26 M rz 2004 PTM user manual DEBOO AC doc PTM User Manual 2 5 LPSel Description Represents the damping set at the analogue output Value range O approx 30 Hz standard 10 Hz 2 Hz 3 0 1 Hz In order to calculate PUserZero and PuserFullscale the following should be observed The minimum span P bar G20mA P bar 4mA may not be less than 25 of the nominal range of and not less than 50 mbar PUserZero Description Zero point scaling of the analogue output Pout from 5 to 105 FS Value range 19 500 30 500 standard 20 000 O FS P bar lei 4mA P bar P bar P bar Calculation PUserZero 10000 20000 PUserFullscale Description Full scale scaling of the analogue output Pout from 5 to 105 FS Value range 500 10 500 standard 10 000 100 FS Por lei 20mA P bar P bar P bar Calculation PUserFullscale 10000 In order to calculate TUserZero and TUserFullscale the following should be observed the minimum span T C 20mA T C 4mA may not be less than 25 of the nominal range TUserZero Description Zero point scaling of the analogue output Tout f
33. ssion rate 9600 Baud Data bits 8 Rhino Bilger Page 9 of 39 26 M rz 2004 PTM_user manual DEBOO5C doc PTM User Manual 2 5 Parity None Stop bit 2 1 4 PTM GR 1 4 1 Functions The PTM GR offers the following functions e User scaling of the analogue pressure measuring channel e Recalibration of the pressure measuring channel e Active or passive temperature compensation e Damping filter e 2 electromechanical relays The two electromechanical relays are equipped with one break and make contact element each For each relay it is possible to define cut in and cut off pressure points Pon Poff as well as ON and OFF delays DelayOn DelayOff The ON and OFF designations should be considered with respect to the make contact The calculations of the individual parameters are indicated with the respective Modbus command Rekalibration D mpfung Druck Hm A D gt ruc PUserCalZero LPSel digital PUserCalFullscale e Anwender Skalierung D A EN PUserZero uiui Kr as PUserFullscale Druckkalibration Schaltschwellen Verz gerungen Poni Poffi gt Relais 1 DelayOn DelayOff1 Schaltschwellen Temperatur 3 A D Verz gerungen ET Pon2 Poff2 gt Relais 2 DelayOn2 DelayOff2 Figure 3 Signal flow diagram PTM GR 1 4 2 Interface An RS23
34. to O 100 of the measuring range 1 1 2 Re calibration Re calibration of the pressure measuring channel can be used to correct long term drifts Both the zero point IPJ and the final value P can be recalibrated These can each be changed by 5 The measurement of the signal by the PTM and a reference value measured in parallel are required for this purpose 1 1 3 Temperature compensation As a rule the PTM transmitters differentiate between two types of temperature compensation In the case of active temperature compensation the thermal characteristic is measured in the furnace and the corresponding compensation data stored in the memory Temperature compensation in sensor operation is thus determined numerically In the case of passive temperature compensation the Rhino Bilger Page 7 of 39 26 M rz 2004 PTM user manual_DEBOO5C doc PTM User Manual Ay 7 thermal characteristic is compensated resistively As this can only be used to correct linear components this method is not quite as accurate as active compensation 1 1 4 Damping To suppress undesirable rapid pressure changes to the output signal the cut off frequency of the low pass filter can be selected accordingly With the damping the rate of increase of the output signal is damped The smaller the set limit frequency the larger the set damping Cutoff frequencies of 30 Hz default 10 Hz 1 Hz and 0 1 Hz are available Lowpass Filter CutofT
Download Pdf Manuals
Related Search
Related Contents
Bea-fon SL205 LG 50PM6700 Energy Guide : Free Download, Borrow, and Streaming : Internet Archive STONEPRO LENUSS_L4_MIT_500GB_HD_SAT_RECEIVER - Ver. 01 サンリオ(8136) - シェアードリサーチ DVD Player Copyright © All rights reserved.
Failed to retrieve file