RickL Posted February 26 Report Share Posted February 26 Hi! I need to do a logical "AND" to two output types of "MI" type. (the outputs are of the Set/Reset type) Apparently, this is an invalid type for use with logical functions'. Is there a way to compare these two outputs in an "AND" function? Thanks! Quote Link to comment Share on other sites More sharing options...
AlexUT Posted February 26 Report Share Posted February 26 What exactly would you like to do with Inputs/Outputs? Mask/Unmask? There are operations Test bit/Set bit/Reset bit. If this is not fit your needs - you can write simple subroutine for this. Quote Link to comment Share on other sites More sharing options...
RickL Posted February 26 Author Report Share Posted February 26 My error! I have type MB ( a "set" coil = 1 or 0) I need to convert to MI type so I can use this value with the logic function blocks type "AND" I don't see how I make these assignments to the function block. Thanks! Quote Link to comment Share on other sites More sharing options...
AlexUT Posted February 26 Report Share Posted February 26 Did you tested these FBs? Quote Link to comment Share on other sites More sharing options...
RickL Posted March 1 Author Report Share Posted March 1 On 2/26/2023 at 5:15 AM, AlexUT said: What exactly would you like to do with Inputs/Outputs? Mask/Unmask? There are operations Test bit/Set bit/Reset bit. If this is not fit your needs - you can write simple subroutine for this. It would be easy to better explain with my code clip and a pic of my HMI, but im out of my file allotment currently. when does this file upload allotment reset anyway? Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted March 1 MVP 2022 Report Share Posted March 1 Frankly, I'm at a loss as to what you are trying to do. You don't need AND or OR functions with bits. Simply do this: 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.