2/4/2009 2:38 AM | |
Joined: 9/27/2006 Last visit: 11/18/2024 Posts: 12296 Rating: (2691) |
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 (1106 Downloads) |
This contribution was helpful to1 thankful Users |
Follow us on