Jump to content

Logical "AND" with type "MI" set/reset output


Recommended Posts

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!   

Link to comment
Share on other sites

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!

 

Link to comment
Share on other sites

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?

Link to comment
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.

Guest
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...