(0)| 9/21/2021 9:43 PM | |
|
Posts: 13 Rating:
|
and if to turn a bit there is a difference of 2% up or down, to show that the signal has a discrepancy |
| 9/21/2021 10:51 PM | |
|
Joined: 9/27/2006 Last visit: 1/14/2026 Posts: 12481 Rating:
|
Hello alexandre; I have prepared one possible FBD function that could rsolve your issue. If the difference between the 2 REAL inputs x_value and y_value is greater than 2%, bit DB10.DBX0.3 will turn ON. Please feel free to modify it as you need. If this is a single call program it as you see. If you need to do this test recurrently, program it inside an FC, which you can call with different parameters x_value and y_value. Here is a link to the S7-300 FBD programming language, it may prove useful. https://support.industry.siemens.com/cs/ww/en/view/109751819 Hope this helps, Daniel Chartier |
| 9/22/2021 9:08 AM | |
|
Posts: 5521 Rating:
|
hi alexandredr, have a look to the Library of general functions. The block "LGF_CompareLRealByPrecision" does exactly what you want. Have a look into the documentation chapter 3.3.3. hope this helps, regards, |
This contribution was helpful to
|
|
Follow us on