Industry Online Support
Technical Forum
3/6/2011 8:54 PM | |
Posts: 288 Rating:
|
hello. i want to write a program for reading analog value in s7-300 but i don't know. is there an example for this? thanks. |
3/6/2011 9:09 PM | |
Joined: 9/27/2006 Last visit: 6/2/2023 Posts: 12030 Rating:
|
Hello saeedplc; Almost all of the Siemensanalog input modules provide a value that is standard between 0-27648 or +/- 27648, depending if the input is bipolar or not. The exception is for RTD inputs. You should have a look at the S7-300 Module Data manual chapters on analog value representation (you will find a link to this manual in the FAQ shown further down). As an attachment you will find a table from that source showing the 0-20 mA and 4-20 mA inputs to a Siemens anal;og module and the different ranges of input signals. Now to scale this input value into "normal" engineering units, you will find a standard block (in the TI-S7 converting library) named FC105, "SCALE", that is designed to convert that input integer valus nto a REAL output value; here is a FAQ with explanations and examples: How and for which analog measurements can you use the function FC105 "SCALE" to convert the integer values (INT) into real number values? http://support.automation.siemens.com/WW/view/en/1765297 Hope this helps, Daniel Chartier |
Last edited by: dchartier at: 3/7/2011 8:11 PMLast edited by: dchartier at: 3/7/2011 8:09 PMLast edited by: dchartier at: 3/7/2011 8:08 PM |
|
This contribution was helpful to
2 thankful Users |
Follow us on