Jump to content

Recommended Posts

Posted

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!

0image.png.3c75456dd997fa9833a23e8ab9ee327f.png

  • MVP 2023
Posted

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.

  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.