2/3/2009 11:24 PM | |
Posts: 1 Rating:
|
public and private replys appriciated |
2/4/2009 2:38 AM | |
Joined: 9/27/2006 Last visit: 4/2/2025 Posts: 12345 Rating:
|
Hello Bart; The following attachment will try to show different ways you can use the standard instructions of Step 7 to do what you want; First, in the Compare instructions, you will find extensions _I, _D and _R on the various comparisons. You can compare your FC105 output (a REAL value) directly through EQ_R (equal) to a REAL constant (100.0), or GT_R (greater than) or GE_R (greater or equal). Simply set the IN2 of the comparison to a REAL value (100.0 for example). Or you may use the Conversion instructions to ROUND (or TRUNC) the output of your FC105 function. Thios will transform the output of FC105 (a REAL: 100.0) to a Double Integer (DI: L#100). If the value is less tha the maximum integer value of 32767, thenyou can comparethe lower integer address directly in a EQ_I instruction. Hope this helps, Daniel Chartier AttachmentStep 7_Compares_Conversions.pdf (1135 Downloads) |
This contribution was helpful to
1 thankful Users |
To explore the new Forum, you can follow the textbox in the right column, which will lead you to the corresponding page in the new Forum. Alternatively, you can start from the main page by following this link:
https://sieportal.siemens.com/en-ww/support/forum
In the coming days, we will update the configuration step by step, so that you are directed to the new Forum by default. The “classic Forum” will remain available for all known functionalities alongside the new one.
We are thrilled to finally share the future of our Forum with you. Thank you for your commitment!
Kind regards,
the Forum Support Team
Follow us on