wizard Posted March 21, 2012 Report Posted March 21, 2012 I am looking for a function or method to obtain the absolute value of a real number - |x|. I am using GX Works2. Quote
Gambit Posted March 21, 2012 Report Posted March 21, 2012 Which PLC series are you using System Q or FX? Quote
wizard Posted March 21, 2012 Author Report Posted March 21, 2012 Sorry, I forgot to mention: FX3U. Quote
kaare_t Posted March 21, 2012 Report Posted March 21, 2012 Not sure if I understand what you mean by "Absolute" number of a REAL value. What is it that you wan't to do? Quote
wizard Posted March 21, 2012 Author Report Posted March 21, 2012 http://en.wikipedia.org/wiki/Absolute_value Quote
Crossbow Posted March 21, 2012 Report Posted March 21, 2012 Why not do a compare and see if the number is less than zero, then subtract it from 0 to get a positive value. Quote
kaare_t Posted March 22, 2012 Report Posted March 22, 2012 Structured ladder: ABS_E instruction Simple ladder: See Crossbow's post Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.