Gili Posted April 10, 2021 Report Share Posted April 10, 2021 I want to do the following : when A>B -> SET , when A<B -->RESET. B in a constant value and A is a flout. how to use the float compare operator? why there are any difference between the compare int and compare float? Thanks! 0 Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted April 11, 2021 MVP 2022 Report Share Posted April 11, 2021 Yes, there is a difference. You don't need the additional SET coil of MB 9 on the float block. The output of the instruction is stored in MB 9 as you've shown. Your logic as written will always set MB 9. Your INT compare is correctly done. Joe T. 1 Quote Link to comment Share on other sites More sharing options...
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.