Value in MW 2 is 0 because value in MD 4 still in range FC 106 and PQW set value 27648 (as limit range in unipolar). Set input value out of range (0 – 27648), data in MD 4 set into Hi_LIM 1.000000e+002 and MW 0 (RET_VAL) is 8.
As described, we set FC 105 with unipolar data (rang input 0 – 27648), when input still in the range there no error and MW 0 is 0. Compare data between PIW 256 and PQW 272, data must be same because we use Unscale data in MD 4 to PQW 272. Data in MD 4 is scaling from input PIW 256 with rang 0 – 100. Slide the slider PIW 256, and see data in MD 4. Change PLC condition to RUN, and position PIW 256 in 0. PIW we set with Slider:int, in simulation we will change input linearly and see the change in MD 4 and output PQW 272. Create input and output variable like figure 7.
Step 4 : Download Program and Run Simulationĭownload program into PLC, and run PLCSim. FC106 also returns an error by setting the RET_VAL to W#16#0008(hexadecimal).FC106 stores the integer value in PQW272 (parameter OUT). If the function is executed without error, FC106 sets the RET_VAL (MW4) to W#16#0000 (hexadecimal).If the input integer value is greater than 400 (HI_LIM) or less than 0 (LO_LIM), FC106sets the output (OUT) to 27648 or 0.00, respectively. Right click below network 1 for add new network, and select Insert New NetworkįC106 reads real number stored in memory MD4.Same with FC 105, the state of M 1.1 (parameter BIPOLAR) determines whether the input value is bipolar or unipolar.Because the value of M 1.1 is 0, FC106 processes the analog input as unipolar number (0 to 27648).FC106 converts the Real number that is scaled between 0.00(parameter LO_LIM) and 100.00(parameter HI_LIM). FC105 also returns an error by setting the RET_VAL to W#16#0008(hexadecimal).FC105 stores the scaled value in MD4 (parameter OUT). If the function is executed without error, FC105 sets the RET_VAL (MW2) to W#16#0000(hexadecimal).If the input integer value is greater than 27648 or less than 0, FC105sets the output (OUT) to 100.00 (HI_LIM) or 0.00 (LO_LIM),respectively. FC105 converts the integer value to a Real number, FC105 scales the Real number to a value between 0.00 (parameter LO_LIM) and 100.00 (parameter HI_LIM). Texts and Pictures can differ, depending on your version of SIMATIC Manager and your operating system. This description was created with SIMATIC Manager version 5.5. For this example, the state of M 1.1 (parameter BIPOLAR) determines whether the input value is bipolar or unipolar.Because the value of M 1.1 is 0, FC105 processes the analog input as a unipolar number (0 to 27648). The versiondog system supports SIMATIC Manager V5.1 up to V5.6. FC105 is a function in Simatic that can convert analog data.įC105 reads the integer value for analog input stored in PIW256 (parameter IN). In program object, in the left Panel expand library > Standard Library > TI-S7 Converting Block and select FC105 for scale the analog input. Step 1: Open Simatic Manager to PLC Programming Languageįollow Step 1 to Step 4 of the article about Simulation Analog Input and Output Programming in Simatic S7-PLCSim Bit Logic operations, Timers, Counters, Comparators, Analog Ios, scaling, Conversion operations, coil type timers, and counters, Simatic Manager connection with PLC SIM, Hardware configuration, Profibus DP MAster System.
Example the analog input is voltage with rang 0 – 12V, and we can scale them into variable with rang 0 – 100.įollowing step by step how to use FC105 SCALE CONVERT and FC106 UNSCALE CONVERT: In this course, you will learn about the SIEMENS PLC Programming software 'SIMATIC MANAGER'.
This course will help you to start learning the basics of PLC programming.For make user easier read the analog data, in simatic S7 there are function to scale analog data into parameter. Note: This course is designed for engineering students, entry-level employees, or for 1 to 2 years of experienced professionals. You must register and log in to your account during the course duration and follow the suggested steps in order to get your certificate. Please note, you can skip the member’s exclusive videos and you can complete the course to get your certificate.
How to Join our Youtube Membership? Click Here for Instructions
You will get access to all locked videos in all our free courses.
Then open the Automation License Manager application that is installed with. Our Youtube SILVER membership will cost you around 1.20 $ per month (one dollar and twenty cents). Jumpstart your Siemens HMI development using PCCs all new video tutorial. We also have plans to launch more free courses. Update: We decided to lock a few course videos for our Youtube “Silver” level paid members in order to cover the automation community website maintenance expenses. Siemens PLC Programming based on S7-300.The main objective of this course is to provide a novice understanding of Siemens PLC programming, ladder logic and familiarize enough with a variety of ladder logic instructions to develop a PLC program using Simatic manager.