Just completed my first analogue input programming project on my S7-1200. Complete success thanks to Pete Vree. I followed his instructions exactly as presented. I used the Siemens training toggle switches with the analogue potentiometers for the analogue inputs. Worked perfectly.
You are amazing, I have never seen someone providing free content with so much dedication and explaining every single concept and not just providing something to copy and paste. You are AWESOME !!
PLC DEV has a great chart to help you distinguish different instructions and their resolutions www.plcdev.com/symbol_table_allowed_addresses_and_data_types
Thank u for the awesome video as you have explained typical concept in a very smooth way. Sir there is a request please make a detailed video with a practical example on modbus in Tia. Please sir we need it.
So good to hear. If you have additional topics that you think I should cover please let me know... I am working on a complete Siemens PLC Course and would love some critical feedback.
Adding a 500 Ohm resistor (or two 1k in parallel) across the analog input terminals will allow you to convert 4-20mA into a 2 -10 volt signal. Then use NORM-X and SCALE-X to convert to whatever range you need
Dear sir, I have SIMATIC S7-1200 and a Signal Generator Device and I use the NORM_X and SCALE-X functions in the TIA Portal program V 15 . The MIN value of NORM_X is 0.0 and the MAX is 27648.0 . It’s assumed that I use a RTD (PT100) with the Temperature Transmitter ranges ( -100 ˚C to 800 ˚C) and its output is 0-10 VDC. The output of NORM_X function is sent to two SCALE_X functions: one to scale the Ohms and the second to scale the temperature values. I depended on the RTD Temperature VS. Resistance Table to get the MIN and MAX values for these two scale functions. The first scale function which is for Ohms the MIN value is -100 ˚C whereas the MAX is 800 ˚C and the MIN value for the second scale function is 60.26 Ω and the MAX value is 375.7 Ω ( Because -100 ˚C is equal to 60.26 Ω and 800 ˚C is equal to 375.7 Ω in the reference table). But when I inject the following volt values in the Analog input of the PLC the output values of the Two SCALE_X functions are not as shown in the table?! Examples: 1- At 2.5 V the output of the first SCALE_X function is 124.4141 ˚C and the output of the second SCALE_X function is 138.91 Ω but in the Reference table when the Temperature is 124 ˚C the Ohms must be 147.58 Ω. 2- At 5 V the output of the first SCALE_X function is 349.93 ˚C and the output of the second SCALE_X function is 217.9 Ω but in the Reference table when the Temperature is 349 ˚C the Ohms must be 229.36 Ω. 3- At 7.5 V the output of the first SCALE_X function is 575.488 ˚C and the output of the second SCALE_X function is 297.0111 Ω but in the Reference table when the Temperature is 575 ˚C the Ohms must be 305.63 Ω. Why are the SCALE_X outputs not the same as what they must be as in the reference table?! And what must I do to make the outputs the same as what is shown in that table?! Thank you and I’m waiting for your reply.
Could we not put temp value(Data Type: Real) for the OUT and Scale_X VALUE? Because this value will be only in the given function right? And why should we use DW instead of a W for example? Thanks btw a really great video Pete!
Thanks very much for this. So basically i am an Automation Validation Engineer, While performing FAT on one of the systems on the HMI they are displaying RAW value and Scaled value for all the analogs of same make and model and signals are coming from same Festo but i see the difference between them is around 3 deg and for some transmitters it is 0.2 deg . My concern is which is actual field value . If we consider Raw value as actual field value, then i will ask them to calibrate the Instruments . Sorry for this long reply
May i request you sir to configure one topic about a Simple Feedback and generate it also into WINCC or Hmi. More power to you sir and to your channel. Thanks and great job.
Dear Pete. I wonder what's the sense of using NORM_X in regular programming (when no need to "adjust" the input values) if we know that the the PLC already knows that the INT range is between 0 to 27648? Why not jumping directly to SCALE_X? Thanks
Hello pete. Im new to plc analog io and i learned a lot from this video alone. You earned a sub from me. I would like to ask what kind of temperature sensor i can use for my project. I've been looking for around the internet and still i cant find the right thing to choose . I prefer a 2 wire sensor 0-10v or 4m-20 with any temperature range. Waiting for your response. Thanks a lot.
Amazing...but I have one question for U. In the video, I see only a red wire output in this Signal Generator in channel 10 V (I have a similar generator), but I don´t see other red wire output in the channel 0V connected to M2 in Analog Input Location, It`s correct? (or Maybe you use brigde between M ----- to -------M2 ???). Please Help me about this trouble
Can you just explain to me please why you have used INT data type in your Norm_x FB instead of using UINT? I might have some wrong understanding of data types in PLC, does it not matter as far as you are in the -32768 to +32768 range? And thanks for the video very explanatory. (edit) And could you also explain what the resolution is? As I don't get why it is only 10 bits if 2**10=1024 and you use a range of 27648 that is at least 15 bits.
Dear sir, Thank you for your great video. I have a question about it. You use a signal generator to send 0-10V to the %IW64 input on the PLC, but as shown in the video when the signal generator sends for example 1.08 V the value on %IW64 is 3037 , why is it not the same value on the signal generator (1.08V) ? And does that mean all the signal generators and the Temperature/Pressure/Flow/Level transmitters send similar values for example when a Temperature Transmitter wants to convert the value of Temperature sensor from Ohm to the Volt ?
The values for the Analog 0-10 volts are converted to a binary number between 0 and 27,648. 27648 * 1.08 = 2986 3037 is close to this value, off due to resolution error
@@PeteVree Dear sir, Thank you very much for your clarification. So the PLC make use of the following equation (27648 * (the value of input volts)) / 10 For example: ((27648 * 1.08)/10) = 2985.984 But how can we get the NORM_X value when the Analog Input Value is current (4-20 mA)? Thank you again and I’m waiting for your kind reply.
Great explanation as always, I'm wondering if you can do the same thing with Schneider Twido PLC or the new Modicon 221. Is there any chance that happens ?. Thank you.
@@PeteVree Yes, exactly like this Siemens S7 1200. To deal with 4-20mA you should add a TM3 analog input extension or a TM2 one. I'm stuck to scale the reading from an temperature 4-20mA transmitter to convert it to °C and store it in a variable for further communication with an hmi. It look like there is no a function in EcoStruxure Machine expert software available to do this, or I should use a user programmable function to do this.
Hi Pete, great video. Just one question, I'm working on a college project with this plc v15.1 software. I have done the steps as in the video but getting 0 at my IW64 reading. Just to be sure do i have to configure anything in the plc or any other steps that i have missed that might be causing this? otherwise its probably just the TT that's not working
Do you have your sensor hooked up to the analog input? Usually if no signal is present it usually gives you 32767. Also, IW64 is the word associated with the analog input for this particular model. Make sure to click on your analog card and confirm that the address is the same for your PLC.
What if my AI 4-20mA is 0mA (diagram at 4:29 min in video), and i have AI module defined for 4-20mA. Will my scaled variable go to minus (4-20mA=0-120degC)?
Sir I have a question regarding to norm_x. My trainer said we need to convert INT to DINT first before going to REAL. It means we cannot convert INT to REAL directly in the NORM_X. Is it true or wrong?
sir i am using LVDT for measuring height how can i convert 4-20mA into 3-250mm height . is it crt for this 3-250mm valuses entering as min and max in the scale_x instruction
I believe you choose Current (4 to 20mA) for your input (you may need an additional analog card to do this as I think the S7-1200 just does 0-10 Volts) NormX will still be 0 to 27648, and the ScaleX will be Min 3 Max 250. Make sure to update your software, my tiaportal did not give me the option to choose current until I had updated.
@@PeteVree For 4-20mA use a 500Ω resistor (or two 1KΩ in parallel) , connected between 2M and O channel, then at NORM_X use as MIN value the equivalent digital value of 2 Volts (5530), that's all.
You can scale anything you wish with the ScaleX function, but to display the analog inputs, I have found that the combination of NormX and ScaleX works best.
Full Siemens TIA Portal PLC Programming Course available here: petevree.thinkific.com/courses/siemens-tia-portal-plc-programming
So far one of the best explanations of NORM_X and SCALE_X
Just completed my first analogue input programming project on my S7-1200. Complete success thanks to Pete Vree. I followed his instructions exactly as presented. I used the Siemens training toggle switches with the analogue potentiometers for the analogue inputs. Worked perfectly.
Pete, your Siemens plc videos are the most complete and detailed on RUclips. Thank you very much.
True!
Best automation channel in entire universe. Love from India.
You are amazing, I have never seen someone providing free content with so much dedication and explaining every single concept and not just providing something to copy and paste. You are AWESOME !!
Thanks so much for the nice comment.
Keep these videos coming you r so organized which making it easier to follow and understand 👌
Thank you for the detailed and awesome presentation & description...
Liked and subscribed 👍 Crystal clear explanations throughout, both verbal and graphics. Love the way you recap and summarise each step. Many thanks.
Great video, well explained, no unnecessary waffle 👍🏿
Thanks @PeteVree. More power to you. God bless
Your explanation is very good with full details
Excellent video. The best explanation of analog scaling on RUclips. Thank you 😊
You are father of my success. Thank you.
Well done! Fantastic video, great and helpful explanations.
Best explanation. Wish you best of luck.
Simply the best! Thanks Pete!
You are a Good teacher ....keep it up...
Quite insightful!👌🏾 thanks for putting it up
Excellent video and all concepts.
Best PLC tutorial on the planet. Please, send me how to address long real variable
PLC DEV has a great chart to help you distinguish different instructions and their resolutions
www.plcdev.com/symbol_table_allowed_addresses_and_data_types
bro, this part of lesson is awesome.. 👌👌👌 from siemens analog
Best plc tutorial 👍
You are awesome mannn... Just watched the whole video.. keep up the good work
Awesome man! Many thanks!!! Learned a lot again thanks to Pete. God bless.
excellent video , so clear and understanding , keep up the good work
Wonderful content, great details
Just amazing.
Your are the best
Thank you so much for your great effort.. You are the best
Excellent video pete. Thank you. I just got one of these signal generators so I'm going to set it up tonight. Very helpful video...thank you.
Thank u so much, very well explained
Thank you for taking the time to make this video.
Thank u for the awesome video as you have explained typical concept in a very smooth way.
Sir there is a request please make a detailed video with a practical example on modbus in Tia.
Please sir we need it.
Thank you very much Pete!
thanks you’re great , hope to see more such videos
Thanks, this is great, easy to learn and understand, greetings from Croatia :)
Absolutely amazing video!
Thank you very much for bit by bit teaching😊👍👌
thanks a lot for the job that u make for us. Great video Pete :)
fantastic explanation! thank you very much
very clear explanation..
You have been a live saver today, Thank you
So good to hear. If you have additional topics that you think I should cover please let me know... I am working on a complete Siemens PLC Course and would love some critical feedback.
Thanks for your valueble information
Adding a 500 Ohm resistor (or two 1k in parallel) across the analog input terminals will allow you to convert 4-20mA into a 2 -10 volt signal. Then use NORM-X and SCALE-X to convert to whatever range you need
Thanks so much for this!
Thanks Pete, this is very informative.
EXCELLENT STUFF! THANKS A LOT✌
Thank you sir for awesome Video. It was really very helpful video. Great Job:)
well explained thank you so much.
Thanks! Very Helpful!!!
Thank you for the detailed
Thanks for the information..keep going
Dear sir,
I have SIMATIC S7-1200 and a Signal Generator Device and I use the NORM_X and SCALE-X functions in the TIA Portal program V 15 . The MIN value of NORM_X is 0.0 and the MAX is 27648.0 . It’s assumed that I use a RTD (PT100) with the Temperature Transmitter ranges ( -100 ˚C to 800 ˚C) and its output is 0-10 VDC. The output of NORM_X function is sent to two SCALE_X functions: one to scale the Ohms and the second to scale the temperature values.
I depended on the RTD Temperature VS. Resistance Table to get the MIN and MAX values for these two scale functions. The first scale function which is for Ohms the MIN value is -100 ˚C whereas the MAX is 800 ˚C and the MIN value for the second scale function is 60.26 Ω and the MAX value is 375.7 Ω ( Because -100 ˚C is equal to 60.26 Ω and 800 ˚C is equal to 375.7 Ω in the reference table).
But when I inject the following volt values in the Analog input of the PLC the output values of the Two SCALE_X functions are not as shown in the table?!
Examples:
1- At 2.5 V the output of the first SCALE_X function is 124.4141 ˚C and the output of the second SCALE_X function is 138.91 Ω but in the Reference table when the Temperature is 124 ˚C the Ohms must be 147.58 Ω.
2- At 5 V the output of the first SCALE_X function is 349.93 ˚C and the output of the second SCALE_X function is 217.9 Ω but in the Reference table when the Temperature is 349 ˚C the Ohms must be 229.36 Ω.
3- At 7.5 V the output of the first SCALE_X function is 575.488 ˚C and the output of the second SCALE_X function is 297.0111 Ω but in the Reference table when the Temperature is 575 ˚C the Ohms must be 305.63 Ω.
Why are the SCALE_X outputs not the same as what they must be as in the reference table?! And what must I do to make the outputs the same as what is shown in that table?!
Thank you and I’m waiting for your reply.
thank you I learn a lot pete.
Very nice video 👍🏻
Really your great sir thanks for you giving your valuable time ... god bless you sir ... 🤝
Thanks so much for the nice comment.
Hi Peter, thanks for this presentation. Can you show to convertion of a metric value 1 kpa to 0.145 psi. Thank you.
Thank you very much.
Amazing! Thank you very much! :)
Beutiful! :D Thanks for easy explanation!
Could we not put temp value(Data Type: Real) for the OUT and Scale_X VALUE? Because this value will be only in the given function right? And why should we use DW instead of a W for example? Thanks btw a really great video Pete!
Hi Pete. Are you able to do an analogue output scaling tutorial? Can't find anything on the Tube that explains things as clearly as you.
I'll add it to my list of videos to create. Thanks
Awesome ! Great video.
You are just the BEST OF THE BEST making this Pete!! Do you have the same but scaling 4 to 20 mA ??
Nice and helpful!
Thank you sir....enjoyed a lot..
very helpful thank you very much
GREAT VEDIO
Perfect ! Helpful !!!
Super video!
Thanks very much for this. So basically i am an Automation Validation Engineer, While performing FAT on one of the systems on the HMI they are displaying RAW value and Scaled value for all the analogs of same make and model and signals are coming from same Festo but i see the difference between them is around 3 deg and for some transmitters it is 0.2 deg . My concern is which is actual field value . If we consider Raw value as actual field value, then i will ask them to calibrate the Instruments . Sorry for this long reply
May i request you sir to configure one topic about a Simple Feedback and generate it also into WINCC or Hmi. More power to you sir and to your channel. Thanks and great job.
Dear Pete. I wonder what's the sense of using NORM_X in regular programming (when no need to "adjust" the input values) if we know that the the PLC already knows that the INT range is between 0 to 27648? Why not jumping directly to SCALE_X? Thanks
kind sir i have a question does something over the scaled value ncrease the output of the voltage over the 10V like in the case of an overflow
Hello pete. Im new to plc analog io and i learned a lot from this video alone. You earned a sub from me. I would like to ask what kind of temperature sensor i can use for my project. I've been looking for around the internet and still i cant find the right thing to choose . I prefer a 2 wire sensor 0-10v or 4m-20 with any temperature range. Waiting for your response. Thanks a lot.
www.amazon.ca/Temperature-Transmitter-Sensor-Output-50-400/dp/B07W93JGKF/ref=pd_lpo_1?pd_rd_i=B07W93JGKF&psc=1
Thanks very nice...!
Its detail video. thanks
Amazing...but I have one question for U. In the video, I see only a red wire output in this Signal Generator in channel 10 V (I have a similar generator), but I don´t see other red wire output in the channel 0V connected to M2 in Analog Input Location, It`s correct? (or Maybe you use brigde between M ----- to -------M2 ???). Please Help me about this trouble
nice sir.. may i know when i need to put minimum value (-27648) at norm_x and (-10) at scale_x?
Can you just explain to me please why you have used INT data type in your Norm_x FB instead of using UINT? I might have some wrong understanding of data types in PLC, does it not matter as far as you are in the -32768 to +32768 range? And thanks for the video very explanatory.
(edit) And could you also explain what the resolution is? As I don't get why it is only 10 bits if 2**10=1024 and you use a range of 27648 that is at least 15 bits.
Thank You Pete. :-D
Pete, Could you please do a tutorial on how to do faceplate in Tia portal for a simple 2 motors program? Really stuck on that one brother.
-6 to 6 bar how to scale 4-20ma please keep video sir
good video
thanks Mr .
please show us one project simulation using PLCSIM 14 with TIA V14
okay i'll look into it and try to post one next week
Thanks
Dear sir,
Thank you for your great video. I have a question about it. You use a signal generator to send 0-10V to the %IW64 input on the PLC, but as shown in the video when the signal generator sends for example 1.08 V the value on %IW64 is 3037 , why is it not the same value on the signal generator (1.08V) ? And does that mean all the signal generators and the Temperature/Pressure/Flow/Level transmitters send similar values for example when a Temperature Transmitter wants to convert the value of Temperature sensor from Ohm to the Volt ?
The values for the Analog 0-10 volts are converted to a binary number between 0 and 27,648. 27648 * 1.08 = 2986
3037 is close to this value, off due to resolution error
@@PeteVree Dear sir,
Thank you very much for your clarification. So the PLC make use of the following equation
(27648 * (the value of input volts)) / 10
For example: ((27648 * 1.08)/10) = 2985.984
But how can we get the NORM_X value when the Analog Input Value is current (4-20 mA)?
Thank you again and I’m waiting for your kind reply.
excellent
Great explanation as always, I'm wondering if you can do the same thing with Schneider Twido PLC or the new Modicon 221. Is there any chance that happens ?. Thank you.
The Twido is obsolete, but the Modicon 221 looks like it comes with 2x 0-10 V DC Analog Inputs
@@PeteVree Yes, exactly like this Siemens S7 1200. To deal with 4-20mA you should add a TM3 analog input extension or a TM2 one. I'm stuck to scale the reading from an temperature 4-20mA transmitter to convert it to °C and store it in a variable for further communication with an hmi. It look like there is no a function in EcoStruxure Machine expert software available to do this, or I should use a user programmable function to do this.
As I understood you are using a self-powered type of transmitter which has a sensor in it?
It is a transmitter with a simply circuit that takes 24V dc and by changing the potentiometer you can get either 0 to 10 V dc or 4 to 20 mA dc out.
Hi Pete, great video. Just one question, I'm working on a college project with this plc v15.1 software. I have done the steps as in the video but getting 0 at my IW64 reading. Just to be sure do i have to configure anything in the plc or any other steps that i have missed that might be causing this? otherwise its probably just the TT that's not working
Do you have your sensor hooked up to the analog input? Usually if no signal is present it usually gives you 32767. Also, IW64 is the word associated with the analog input for this particular model. Make sure to click on your analog card and confirm that the address is the same for your PLC.
What if my AI 4-20mA is 0mA (diagram at 4:29 min in video), and i have AI module defined for 4-20mA. Will my scaled variable go to minus (4-20mA=0-120degC)?
All of the Siemens current modules I have used give you an option of 0-20ma or 4-20ma. That setting is in the module configuration
Can I buy a bier for u sir?
good☺️
thnx 😃
Sir I have a question regarding to norm_x. My trainer said we need to convert INT to DINT first before going to REAL. It means we cannot convert INT to REAL directly in the NORM_X. Is it true or wrong?
You don't need to convert to DINT. Here is another video on how to deal with analog values:ruclips.net/video/bSKgQRJbZ6g/видео.html
sir i am using LVDT for measuring height how can i convert 4-20mA into 3-250mm height .
is it crt for this 3-250mm valuses entering as min and max in the scale_x instruction
I believe you choose Current (4 to 20mA) for your input (you may need an additional analog card to do this as I think the S7-1200 just does 0-10 Volts) NormX will still be 0 to 27648, and the ScaleX will be Min 3 Max 250. Make sure to update your software, my tiaportal did not give me the option to choose current until I had updated.
@@PeteVree For 4-20mA use a 500Ω resistor (or two 1KΩ in parallel) , connected between 2M and O channel, then at NORM_X use as MIN value the equivalent digital value of 2 Volts (5530), that's all.
do you have any online teaching(paid one with certificate) to learn the total course of siemens industrial plc please let me know thank you.
Working on it, but it is taking me forever to complete. I would take Rajvir Singh's course on Udemy in the meantime.
@@PeteVree can you share that link about industrial plc course thank you
www.udemy.com/user/rvsingh/
Can we directly use ScaleX??
You can scale anything you wish with the ScaleX function, but to display the analog inputs, I have found that the combination of NormX and ScaleX works best.
For S7-300 I think NORM_X doesn't exist, only SCALE ("without" _X)...the scaling is direct.
support.industry.siemens.com/tf/ww/en/posts/using-only-scale-x-without-norm-x/244018
Make an Engineer out of me Pete!
Frank
Great video with great detail , very helpful. Thank you