6/28/2016 11:58 PM | |
Posts: 2 Rating:
|
Hi, I've been reading the contents of the forum for a while and finally decided to ask a particular question related to a project I'm currently working on: i) The basic idea is to obtain analog and digital input readings from a DP slave (ET-200) via profibus to a Siemens S7 300 CPU. ii) I have configured the blocks DP_SEND and DP_RECV according to this : https://support.industry.siemens.com...dti=0&lc=en-WW After some troubleshooting the communication is up and running. I am sending the information to a DB comprised of BYTE type entries. iii) The "remote" modules which will be sending their readings via ET-200 are of this type: http://www.slo.lt/out/media/siemens....1KF02-0AB0.pdf I have tested the digital inputs and when I send "1's" to them I can see the change in the Byte entry of the DB related to the Address of that particular module (I understand that that's the main principle of Profibus) iv) After testing the digital inputs I wanted to test the analog inputs. I have to read temperature values so I configured the channels as PT100's (RTD). I understand that the module gives back a reading which is a signed integer. After I "read" this value I should parse it to DINT, then to REAL and finally multiply it by 0.1 (the final value would be the temperature in Cº). My problem is that I can't seem to obtain anything logical from these readings. The "Byte" entries of the DB change when I simulate a RTD on that particular channel (which means that something is being sent via PROFIBUS from the module) but I am not obtaining anything close to what is required to obtain a temperature in degrees Celsius. For example, if the RTD is measuring 50 degrees, I should be reading an entry close to 500 on the DB. My readings are much more elevated than that. Also I tried simulating a negative temperature (for example -20 ºC) and I could not recognize the sign bit change. My guess is that something is not being done properly when sending the information from the module to the DB, perhaps I need to have a different type of entry for the DB (for example, I have tried WORD) but that also did not work. At this point I do not know how to fix this. I tried to "monitor" the analog input with the Siemens debugging program but it would not work (this would have allowed me to see what the module is "actually sending" without taking into account the Profibus stuff). I hope someone has some experience with this...or at least can suggest a possible fix or test to perform. Sorry for the long post! And thanks!!! Rott149 |
Follow us on