7/4/2014 7:12 PM | |
Posts: 69 Rating: (0) |
So if i understand this right, a 0-20mA module can't be used with 4-20mA and the oposite is true. ? |
7/4/2014 11:13 PM | |
Posts: 5225 Rating: (1196) |
Hi there. If you have an analog card that can read 0..20mA, you can use this to read your 4..20mA signal. Please look again at the note "Ste39" left for you. What happens is that the measured values between 0..4mA you "throw away". You need to do some software scaling so that what you measure only use the analog reading values between 4mA and 20mA. The downside is that you loose 20% of your range.. but maybe that is okay for you. So the question is - how accurate do you need to measure? Forgive my ignorance.. have you ever worked with analog readings before? Do you know how to handle the analog value? If you are unsure.. about rescaling the analog value to give engineering units, please let us know. Good luck. w |
This contribution was helpful to1 thankful Users |
7/5/2014 9:55 AM | |
Posts: 5225 Rating: (1196) |
Kind greetings. It is difficult for me to "see" what you have done already. Maybe you already on your way to resolve your own problem. It would be helpful if you could show what you have done.. * connections sketch * hardware configuration * coding [Practical Advice] Allow me to start at Chapter 0. Please do these quick experiements to get a "feel" for the analog values. I suggest you first work with the analog output. Have the signal go through a resistor first. If it is a 500ohm (0.25W) resistor you can read a voltage peaking at 10V. Whatever resistor you take.. make sure the resistor Watts rating can handle the power flowing through. Remember.. Volts = ohms x Amps Watt = Volts x Amps = Volts x Volts / ohm = Amps x Amps x ohms Then experiment with the analog output word (PQWxxx) through the status chart / watch table. For this you need to have no program. Then take volt measurements with your meter. Change the PQW value between 0 and 27648 (explaination to follow). See the effect. Now write down the Volt value measured at 27648. Now calculate the 20% value. In my case with 10V it will be 2V. Manipulate the PQW value until you get that 20%. Write that down. Next step is to connect the analog output to the analog input. Again manipulate the PQW value and this time read from the analog input word (PIWxxx) what the effect is. You know what the 100% value and 20% value (more or less) should be. [Coding] For some background information I suggest you do some reading. From this forum.. [LINK] From the FAQ.. [LINK] The analog format that Siemens uses for unipolar analog signals, will have the internal signal (PIW / PQW) change from 0 and 27648. In your case you are going to use only a portion of this, because you want to measure from 4mA and your card handles from 0mA. So you will have the internal signal change from 20% of 27648... 5530 up to 27648. If you use library functions FC105 and FC106, you might run into a bit of trouble. Remember that these functions assume you are using the full range. I suggest you do some maths and project what the physical values (Bar / Hz) should have been if you could use 0mA.. it is going to be negative values. Does this help? Tell us with what you still struggle with and give us some more information about the questions I asked at the beginning. Greetings. w |
7/7/2014 5:10 AM | |
Joined: 10/15/2009 Last visit: 2/9/2021 Posts: 20 Rating: (0) |
Hi Mishal11, Use limits and Scale fc105 block for scaling. hope you get good results. |
7/8/2014 5:26 PM | |
Joined: 6/24/2013 Last visit: 11/18/2024 Posts: 1652 Rating: (426) |
Hi You can scale it in software by changing values sent to analog output to force it change from 4 not from 0mA Blocks which scale (AI to engineering) and unscale (engineering to AQ) attached as zipped source file. AttachmentAIAQ_4_20mA.zip (629 Downloads) |
Follow us on