RickL Posted February 26, 2023 Report Posted February 26, 2023 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!
AlexUT Posted February 26, 2023 Report Posted February 26, 2023 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.
RickL Posted February 26, 2023 Author Report Posted February 26, 2023 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!
RickL Posted March 1, 2023 Author Report Posted March 1, 2023 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?
MVP 2023 Flex727 Posted March 1, 2023 MVP 2023 Report Posted March 1, 2023 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
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