Jump to content

Recommended Posts

Hi

 

I have a question about ladder programming (in visilogic):

 

MI1 is coming from a keypad entry, the value range is 0-100.

MI2 is coming from an analog input, and is already scaled to the range 0-100.

 

How can i force MI1 to #0 if MI2<20. The MI1 should not be changable by the keypad when MI2<20.

 

Sorry for such a easy and maby silly question.

 

--

 

IanM

Link to comment
Share on other sites

Hello IanM,

 

You can link a "Disable View" bit to the numeric variable.  Then in the ladder, use a compare function block to say "if MI2 < 20, then turn on 'Disable View' bit".  In other words, a 'less than' compare function block in series with a coil that is linked to the 'Disable View' bit. 

 

Let me know if this helps.

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