Gili Posted April 10, 2021 Report 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
MVP 2023 Joe Tauser Posted April 11, 2021 MVP 2023 Report 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now