Siemens TIA Portal Tutorial (Analog Signal Scaling using the Norm_X and Scale_X instructions)

Поділитися
Вставка
  • Опубліковано 22 сер 2024
  • Full Siemens TIA Portal PLC Programming Course available here: petevree.think...
    This video will walk you through how to use Norm_X and Scale_X instructions to normalize and scale a 0 to 10 V DC signal into a Siemens S7-1200 PLC.
    Skip to developing the program in TIA Portal: 21:45
    Skip to completed program: 26:50
    Link for Powerpoint: wyedelta.wixsit...
    Link to Documents Video: • Siemens TIA Portal Tut...

КОМЕНТАРІ • 127

  • @PeteVree
    @PeteVree  Рік тому +1

    Full Siemens TIA Portal PLC Programming Course available here: petevree.thinkific.com/courses/siemens-tia-portal-plc-programming

  • @mohdshahzad9427
    @mohdshahzad9427 Рік тому +1

    So far one of the best explanations of NORM_X and SCALE_X

  • @orlandowall5523
    @orlandowall5523 Рік тому +1

    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.

  • @RS_83
    @RS_83 6 років тому +3

    Pete, your Siemens plc videos are the most complete and detailed on UA-cam. Thank you very much.

    • @RS_83
      @RS_83 6 років тому

      True!

  • @lokmanab4897
    @lokmanab4897 2 роки тому +1

    Keep these videos coming you r so organized which making it easier to follow and understand 👌

  • @shankarnair6916
    @shankarnair6916 4 роки тому

    Best automation channel in entire universe. Love from India.

  • @taranjotsabharwal
    @taranjotsabharwal 4 роки тому +3

    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 !!

    • @PeteVree
      @PeteVree  4 роки тому +1

      Thanks so much for the nice comment.

  • @piotrekdrag5234
    @piotrekdrag5234 6 місяців тому

    You are father of my success. Thank you.

  • @distancelab2010
    @distancelab2010 5 років тому +1

    Excellent video. The best explanation of analog scaling on UA-cam. Thank you 😊

  • @dalematthews8748
    @dalematthews8748 3 місяці тому

    Great video, well explained, no unnecessary waffle 👍🏿

  • @Blades-fm6ck
    @Blades-fm6ck Рік тому

    Liked and subscribed 👍 Crystal clear explanations throughout, both verbal and graphics. Love the way you recap and summarise each step. Many thanks.

  • @thomassaook7787
    @thomassaook7787 6 років тому +9

    Thank you for the detailed and awesome presentation & description...

  • @popovboban
    @popovboban 4 роки тому +2

    Well done! Fantastic video, great and helpful explanations.

  • @vishalmudpe8598
    @vishalmudpe8598 3 роки тому

    Your explanation is very good with full details

  • @orlandowall5523
    @orlandowall5523 Рік тому

    Simply the best! Thanks Pete!

  • @md.shafiqulislambachchubac5640
    @md.shafiqulislambachchubac5640 3 місяці тому

    Best explanation. Wish you best of luck.

  • @necipbattal1126
    @necipbattal1126 5 років тому

    Best PLC tutorial on the planet. Please, send me how to address long real variable

    • @PeteVree
      @PeteVree  5 років тому +1

      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

  • @royernest5734
    @royernest5734 Рік тому

    Quite insightful!👌🏾 thanks for putting it up

  • @anupsharma8548
    @anupsharma8548 11 місяців тому

    Excellent video and all concepts.

  • @Username64870
    @Username64870 4 роки тому

    You are a Good teacher ....keep it up...

  • @indran14
    @indran14 2 роки тому

    bro, this part of lesson is awesome.. 👌👌👌 from siemens analog

  • @McAndreJan
    @McAndreJan 2 роки тому

    Best plc tutorial 👍

  • @ventjemazzel8822
    @ventjemazzel8822 6 років тому +1

    Awesome man! Many thanks!!! Learned a lot again thanks to Pete. God bless.

  • @dermo46
    @dermo46 5 років тому +1

    Great video with great detail , very helpful. Thank you

  • @panasvid7825
    @panasvid7825 3 роки тому

    You are awesome mannn... Just watched the whole video.. keep up the good work

  • @jessyfataki7336
    @jessyfataki7336 2 роки тому

    Wonderful content, great details

  • @natriumguy8537
    @natriumguy8537 3 роки тому

    Absolutely amazing video!
    Thank you very much for bit by bit teaching😊👍👌

  • @phillyo51
    @phillyo51 3 роки тому

    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.

  • @dimitrisadamos9833
    @dimitrisadamos9833 3 роки тому

    excellent video , so clear and understanding , keep up the good work

  • @LL-ct8gt
    @LL-ct8gt 4 роки тому

    Thanks, this is great, easy to learn and understand, greetings from Croatia :)

  • @sauravjha2778
    @sauravjha2778 5 років тому

    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.

  • @adjalkhaled3008
    @adjalkhaled3008 2 роки тому

    Thank you so much for your great effort.. You are the best

  • @kristinejoyjavillonar6721
    @kristinejoyjavillonar6721 3 роки тому

    Thank you very much Pete!

  • @dextermazuka5022
    @dextermazuka5022 2 роки тому

    Just amazing.
    Your are the best

  • @sarkhanhacizade3567
    @sarkhanhacizade3567 5 років тому +2

    Thank u so much, very well explained

  • @arsalaanmughal9511
    @arsalaanmughal9511 5 років тому

    Thank you for taking the time to make this video.

  • @marcol5374
    @marcol5374 5 років тому +1

    thanks a lot for the job that u make for us. Great video Pete :)

  • @jamesarnoldherefordshire
    @jamesarnoldherefordshire 5 років тому

    You have been a live saver today, Thank you

    • @PeteVree
      @PeteVree  5 років тому

      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.

  • @neiljolliff8170
    @neiljolliff8170 4 роки тому

    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

  • @sakirdag2976
    @sakirdag2976 5 років тому +1

    thanks you’re great , hope to see more such videos

  • @richardgicharu8016
    @richardgicharu8016 3 роки тому

    very clear explanation..

  • @user-gm5sh5nz1p
    @user-gm5sh5nz1p 3 роки тому

    Спасибо Вам! за отличный урок.

    • @PeteVree
      @PeteVree  3 роки тому

      Без проблем. Спасибо за хороший комментарий. Всего наилучшего. Pete

  • @jasonryan2175
    @jasonryan2175 3 роки тому

    fantastic explanation! thank you very much

  • @rishikeshshah7294
    @rishikeshshah7294 5 років тому +1

    Thank you sir for awesome Video. It was really very helpful video. Great Job:)

  • @royernest5734
    @royernest5734 2 роки тому

    EXCELLENT STUFF! THANKS A LOT✌

  • @framos9991
    @framos9991 Рік тому

    Thanks! Very Helpful!!!

  • @chekando666
    @chekando666 5 років тому +2

    Thanks so much for this!

  • @chrismoje4321
    @chrismoje4321 6 років тому

    Thanks Pete, this is very informative.

  • @dharmavarapusivaanjaneyulu2677
    @dharmavarapusivaanjaneyulu2677 6 років тому

    Thanks for your valueble information

  • @alearnerforsafety3692
    @alearnerforsafety3692 2 роки тому

    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.

  • @zawwinn3753
    @zawwinn3753 2 роки тому

    Thank you very much.

  • @mohammadasim9379
    @mohammadasim9379 5 років тому +1

    well explained thank you so much.

  • @techsolver9347
    @techsolver9347 3 роки тому

    Very nice video 👍🏻

  • @samuelquartey4019
    @samuelquartey4019 3 роки тому

    Thank you for the detailed

  • @ijasmuhammed7222
    @ijasmuhammed7222 4 роки тому

    Thanks for the information..keep going

  • @angelitoenriquez3242
    @angelitoenriquez3242 5 років тому

    thank you I learn a lot pete.

  • @Bacilys13
    @Bacilys13 4 роки тому

    Amazing! Thank you very much! :)

  • @tznalcn
    @tznalcn 3 роки тому +1

    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!

  • @kestutiskerinas3325
    @kestutiskerinas3325 4 роки тому

    Beutiful! :D Thanks for easy explanation!

  • @orlandowall5523
    @orlandowall5523 Рік тому

    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.

    • @PeteVree
      @PeteVree  Рік тому

      I'll add it to my list of videos to create. Thanks

  • @ojarikreegbenine7757
    @ojarikreegbenine7757 4 роки тому

    Nice and helpful!

  • @pieterjamneck9507
    @pieterjamneck9507 5 років тому

    Awesome ! Great video.

    • @DAVIDALVARADO-xw5km
      @DAVIDALVARADO-xw5km 5 років тому

      You are just the BEST OF THE BEST making this Pete!! Do you have the same but scaling 4 to 20 mA ??

  • @framos9991
    @framos9991 3 роки тому

    Perfect ! Helpful !!!

  • @kostaing
    @kostaing 4 роки тому

    Super video!

  • @abdelatilaarass2635
    @abdelatilaarass2635 5 років тому

    very helpful thank you very much

  • @Sarfaraz831
    @Sarfaraz831 3 роки тому

    GREAT VEDIO

  • @nscbaptista
    @nscbaptista 2 роки тому

    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

  • @ganeshpadgalwar6119
    @ganeshpadgalwar6119 5 років тому

    Thank you sir....enjoyed a lot..

  • @mechanikalkraken
    @mechanikalkraken 3 роки тому

    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

  • @aleemsafdar2120
    @aleemsafdar2120 3 роки тому

    Thanks very nice...!

  • @irelandlotelugufamily2019
    @irelandlotelugufamily2019 3 роки тому

    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

  • @jimuellelontok8533
    @jimuellelontok8533 6 років тому

    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.

  • @learning9503
    @learning9503 4 роки тому

    Its detail video. thanks

  • @lyaeusv3828
    @lyaeusv3828 Рік тому

    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

  • @mateuszwieczorek7524
    @mateuszwieczorek7524 2 роки тому

    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.

  • @francescoc1037
    @francescoc1037 4 роки тому

    good video

  • @HetanHawke
    @HetanHawke 6 років тому

    thanks Mr .

  • @aldinandigodinez9740
    @aldinandigodinez9740 2 роки тому

    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.

    • @PeteVree
      @PeteVree  2 роки тому

      www.amazon.ca/Temperature-Transmitter-Sensor-Output-50-400/dp/B07W93JGKF/ref=pd_lpo_1?pd_rd_i=B07W93JGKF&psc=1

  • @letsdoit4825
    @letsdoit4825 4 роки тому

    Thanks

  •  6 років тому

    excellent

  • @yushaabid1775
    @yushaabid1775 4 роки тому

    nice sir.. may i know when i need to put minimum value (-27648) at norm_x and (-10) at scale_x?

  • @alearnerforsafety3692
    @alearnerforsafety3692 2 роки тому

    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 ?

    • @PeteVree
      @PeteVree  2 роки тому

      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

    • @alearnerforsafety3692
      @alearnerforsafety3692 2 роки тому

      @@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.

  • @MrMan2023_
    @MrMan2023_ 4 роки тому

    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

    • @PeteVree
      @PeteVree  4 роки тому

      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.

  • @touhidulalam376
    @touhidulalam376 6 років тому +1

    please show us one project simulation using PLCSIM 14 with TIA V14

    • @PeteVree
      @PeteVree  6 років тому

      okay i'll look into it and try to post one next week

  • @alikhanzulkashov4438
    @alikhanzulkashov4438 5 років тому

    As I understood you are using a self-powered type of transmitter which has a sensor in it?

    • @PeteVree
      @PeteVree  5 років тому

      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.

  • @prabukumar8400
    @prabukumar8400 3 роки тому

    -6 to 6 bar how to scale 4-20ma please keep video sir

  • @DzpcbElectronicWorld
    @DzpcbElectronicWorld 5 років тому

    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
      @PeteVree  5 років тому

      The Twido is obsolete, but the Modicon 221 looks like it comes with 2x 0-10 V DC Analog Inputs

    • @DzpcbElectronicWorld
      @DzpcbElectronicWorld 5 років тому

      @@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.

  • @yunusjakpar6660
    @yunusjakpar6660 4 роки тому

    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?

    • @PeteVree
      @PeteVree  4 роки тому

      You don't need to convert to DINT. Here is another video on how to deal with analog values:ua-cam.com/video/bSKgQRJbZ6g/v-deo.html

  • @saifaldain1013
    @saifaldain1013 6 років тому

    thnx 😃

  • @THOMPSONvk
    @THOMPSONvk 5 років тому

    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)?

    • @micontrols
      @micontrols 5 років тому

      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

  • @pmcoriginal4864
    @pmcoriginal4864 5 років тому

    good☺️

  • @devendrachowdary2333
    @devendrachowdary2333 5 років тому

    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.

    • @PeteVree
      @PeteVree  5 років тому

      Working on it, but it is taking me forever to complete. I would take Rajvir Singh's course on Udemy in the meantime.

    • @devendrachowdary2333
      @devendrachowdary2333 5 років тому

      @@PeteVree can you share that link about industrial plc course thank you

    • @PeteVree
      @PeteVree  5 років тому

      www.udemy.com/user/rvsingh/

  • @sathishsathish5652
    @sathishsathish5652 5 років тому

    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

    • @PeteVree
      @PeteVree  5 років тому

      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.

    • @yorgospaidis9171
      @yorgospaidis9171 5 років тому +1

      @@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.

  • @rewatpathak7917
    @rewatpathak7917 4 роки тому

    Can I buy a bier for u sir?

  • @nscbaptista
    @nscbaptista 2 роки тому

    For S7-300 I think NORM_X doesn't exist, only SCALE ("without" _X)...the scaling is direct.

    • @PeteVree
      @PeteVree  2 роки тому

      support.industry.siemens.com/tf/ww/en/posts/using-only-scale-x-without-norm-x/244018

  • @vsnaarayanan1997
    @vsnaarayanan1997 6 років тому

    Can we directly use ScaleX??

    • @PeteVree
      @PeteVree  6 років тому

      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.

  • @frankreiserm.s.8039
    @frankreiserm.s.8039 5 років тому

    Make an Engineer out of me Pete!
    Frank

  • @ilyessetta6189
    @ilyessetta6189 5 років тому +1

    thanks you’re great , hope to see more such videos

  • @dadyut
    @dadyut 4 роки тому

    Really your great sir thanks for you giving your valuable time ... god bless you sir ... 🤝

    • @PeteVree
      @PeteVree  4 роки тому

      Thanks so much for the nice comment.

  • @goghulrajkannan2289
    @goghulrajkannan2289 6 років тому

    Thank You Pete. :-D

    • @goghulrajkannan2289
      @goghulrajkannan2289 6 років тому

      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.