That won't perform exactly like a Rockwell LMT instruction. The LMT can be true inside a range or true outside a range. The inside a range case is like the S7 FC3, where the lower limit is less than the upper limit. With the LMT if the lower limit is greater than the upper limit you have the outside a range case.