Jump to content

what the difference between Float and Int compare operation?

Recommended Posts

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? 



Link to post
Share on other sites

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
Link to post
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...