6/19/2010 3:15 PM | |
Posts: 23 Rating:
|
Have a look at the following attachment, extracted from the following manual: http://support.automation.siemsn.com/WW/view/en/8859629S7-300 Module Data manualChapter 5: Analog value representation Table 5.9: 0-20 mA and 4-20 mA analog values. |
1/8/2014 3:29 PM | |
Joined: 6/24/2013 Last visit: 4/9/2025 Posts: 1676 Rating:
|
Hi It is in hex 6C00 - a round value in hexadecimal where full scale of 16bit integer is in hex 7FFF (32767). This approach gives possiblity of converting values which are a bit over module range and detect overrange. Numberical difference is 18% (i.e. for 0..10V --> 0..27648; 32767 is given when input=11.85V) Exact behaviour of input module: -32767 ERROR -32512 Over Range for negative inpiut (i.e. range: -10V .. 10V) -27648 Module Range in Bipolar Mode 0 0 or Minimum in Unipolar Mode (4mA for 4..20mA) 27648 Module Range (i.e. 10V / 20mA ...) 32512 Over Range 32767 ERROR Note: When module is configured for PT100 or Thermocouples it returns temperature x 10 for example 100 = +10 degrees C |
Last edited by: Piotr.M at: 1/8/2014 3:31 PM |
|
7/9/2014 11:38 AM | |
Joined: 6/24/2013 Last visit: 4/9/2025 Posts: 1676 Rating:
|
Hi This is 6C00 in Hex for all modules / regardless of resolution/ it is used as a max so you can use one scaling block regardless of module resolution. the 27648 to 32767 (roughly) are for overrange i.e. a bit above max value (so 0..10V module can show i.e. 10.5V) when 4..20mA used You can expect small negative values (i.e. up to -200) when sensor sends 3.9mA which is in line with standard. |
8/24/2014 3:41 AM | |
Posts: 4 Rating:
|
Dear Firend........ good day, please about number 27648 , you know Analoge Value receive by PIW , so W it mean word (0-15) so (011011000000.... ) its mean 0* 2^15+1* 2^14+1* 2^13+0* 2^12+1* 2^11+1* 2^110=27648 its 85 % |
3/31/2016 5:27 PM | |
Joined: 5/27/2014 Last visit: 4/9/2025 Posts: 116 Rating:
|
Hi Ayman, Are you sure about this statement? If we have input 0-20mA and 8bit ADC, that mean 20/2^8=0.078mA is smallest current we can sense, that mean 27648/2^8=108 is smallest change in analog input. Am I right?
|
TIA V16 update 4, STEP 7 Professional+safety |
|
4/8/2016 10:37 PM | |
Joined: 5/28/2008 Last visit: 4/8/2025 Posts: 4520 Rating:
|
Hello, Yes you are right... Please see my answer from other thread about the resolution issue and also please see the attached file.
For 0-20mA AI, For the 16 bit resolution, the minimum increment / decrementunits = 1 (please revise the attachments) in the above thread link. Now let us assume we have 8-bit resulion AI module. AttachmentAnalog Input Representation.pdf (2901 Downloads) |
Ayman Elotaify |
|
This contribution was helpful to
2 thankful Users |
4/11/2016 11:43 PM | |
Joined: 5/27/2014 Last visit: 4/9/2025 Posts: 116 Rating:
|
Thanks for answer. Why the number is 128 (I see it's on first page of your pdf). I know it's 2^7, but if we use 128 as the minimal inc/dec then 27648/128=216 different values for 8bit ADC, so we missing 40 values(resolution is lower, than it could be, if we use all 256 values), is there any reason for this? Thanks
|
TIA V16 update 4, STEP 7 Professional+safety |
|
4/12/2016 7:49 AM | |
Joined: 5/28/2008 Last visit: 4/8/2025 Posts: 4520 Rating:
|
Hello, If you look at table 5-2 of the attachment of my last post here, For 8-bit resolution, The minimum count value that would affect the channel is as follows: For High Byte: 0000 0000; For Low Byte: 1000 0000 Then the whole word became: 0000 0000 1000 0000 BIN = 128 DEC I hope I could clear the resolution issue now. |
Ayman Elotaify |
|
4/12/2016 8:07 AM | |
Joined: 5/28/2008 Last visit: 4/8/2025 Posts: 4520 Rating:
|
Hello Again, Why you consider that the module missed 40 values?! if it really missed these values, then 27648 / 40 = 691.2 How could you write this value in BIN ?! Again, for 8-bit resolution analog modules, the first bit which will be affected according to changes in the measured analog signal is Bit # 7 of the lower Byte. Which equal BIN 1000 0000 = DEC 128 |
Ayman Elotaify |
|
4/12/2016 4:39 PM | |
Joined: 5/27/2014 Last visit: 4/9/2025 Posts: 116 Rating:
|
Allright, now I think I know what is going on. I didn't know, in 8bit ADC we not using 6 lower bits. I should read manual more carefully next time. So when I want gen analog voltage 0-10V with 8bit ADC in S1200, I use func norm_x(min=0 max=32767 or 32640?) and then scale_x(min=0 max=10 or 11,852?) Btw how we can have 16bit ACD if we are using just 15bits? Thanks for patience, your answers are really helpful |
Last edited by: Petr Broza at: 4/12/2016 4:40:19 PMLast edited by: Petr Broza at: 4/12/2016 4:43:24 PMTIA V16 update 4, STEP 7 Professional+safety |
|
We are working on a new user interface with better overview and more relevance.
Follow us on