How to get digital output from analog input ***Siemens S7-1200 PLC***
Tech Tutorials Tech Tutorials
7.68K subscribers
16,431 views
271

 Published On Premiered Sep 26, 2019

Analog input and digital output programming in TIA portal for siemens s7 1200. Hi there, welcome to this new video. Today, I will show you how to take an analog input in the TIA portal for S7 1200 PLC.

To take an analog input for S7 1200 PLC, at first we need to insert a MOVE Operation into our ladder network. This MOVE operation will move value to our desired destination.
Now drag this Move operation to Ladder network like this. In this MOVE instruction, you can see an Input and an Output. You can increase numbers of output by clicking on the star icon. Type an analog input address PIW 64 in this input section. Right-click on this tag and rename this according to your input name. In my case, I renamed it a 0-10 Bar Pressure sensor. Now it's time to define output MW 10. MW is for memory word. It's a virtual address. Rename this tag also.
Now we need to insert another two Conversion Operations for processing analog signal Norm_X and Scale_X. Drag and drop them into the ladder network. Scale_X will scale the value at the VALUE input by mapping this to a specific range of values. And NORM_X means normalize. It normalizes the value of the tag at the value input by mapping this to a linear scale between 0.0 and 1.0. As we know that we need to convert from Integer Value to Real value. So we select Integer to Real in the NORM_X section.
We use 0 in MIN and 27648 in MAX because in Siemens integer value ranges from 0 to 27648. In this VALUE option, we need to set the output of the MOVE operation. Now we have to define the output of NORM_X. Type MW 12 for the output address. Oh! I am sorry It will be MD for the NORM_X output. Provide a proper tag name of the normalized output’s. One important thing is that the output of NORM_X will be the input of SCALE_X. So Scale_X will convert from real to Real.
Set the input value of Scale_X MD10. We know that the output from NORM_X will be the input of SCALE_X. Set Real to Real from this drop-down menu. Now define the sensor’s minimum and maximum range in this MIN and MAX section. In my case, I have taken a pressure sensor from 0-10 Bar. So 0.0 Bar will be the MIN range and 10.0 MAX range. Now set the output address as MD 12 because it is the real output. Also, rename the tag so that we can understand them easily.
Tags For This Video: Analog input and output examples, Analog input and output of PLC, what is analog input, analog input vs digital input, analog vs digital, digital input and output in plc, analog input module in plc, Siemens S7 1200 analog input scaling, Siemens S7 analog input programming, analog scaling siemens plc, s7-1200 analog output 0-10 V, Siemens s7 analog input scaling, s7-1200 analog output 4-20ma, siemens analog output scaling, Norm_X SCALE_X TIA Portal, How to scale unscale analog signal, analog signal unscaling, analog signal scaling, MOVE Operations, Conversion, Ladder Logic, tia portal programming, analog signal normalization, programmable logic controller, online plc training,

#Scale_Unscale #NORM_X #SCALE_X #Analog_Programing

show more

Share/Embed