12/27/2010 9:55 PM | |
Joined: 1/28/2009 Last visit: 9/10/2024 Posts: 6849 Rating: (1365) |
Dear member It is totally similiar.check the attachment.But I prefer STL. BR |
12/28/2010 3:54 AM | |
Joined: 10/7/2005 Last visit: 9/18/2024 Posts: 3020 Rating: (1054)
|
Hello TimB2011 gut feeling tells me that you "Type check of Addresses" ticked which causes this "problem". To solve it, open any Block, go to <Options> --> <Customize>,select the "LAD/FBD" tab in the popup and untick the"Type check of Addresses". The Editor will now allow youto compare bytes with the Integer comparator and I hope this helps. |
Cheers |
|
This contribution was helpful to2 thankful Users |
12/28/2010 5:10 AM | |
Joined: 1/28/2009 Last visit: 9/10/2024 Posts: 6849 Rating: (1365) |
Hello TimB2011 Another possible way to move one byte character to an integer TEMP area and compare two integers as shown in the attachment. Best regards |
12/28/2010 5:58 AM | |
Joined: 10/7/2005 Last visit: 9/18/2024 Posts: 3020 Rating: (1054)
|
And another possible way is to move one byte character to a Double Integer TEMPand compare two Double Integers (or perhpas evenfurther convert them to a REAL and then do a REAL comparison). Thequestion though is: Why would you? Call me old fashioned dear hdhosseini, but I find the creation of additional TEMP's and MOVE's leads to a wasteful andinefficient programming style with no benefits, wouldn't you agree (moreso since your orignal STL logic was spot on)? |
Cheers |
|
This contribution was helpful to1 thankful Users |
Follow us on