Jump to content

hysteresis on analog input


Recommended Posts

Hi,

 

I'd like to add some small amount of hysteresis to an analog 4/20mA input. How can that be done? I'd very much appreciate if anybody could point me in the right direction. I'm a seasoned programmer, but I'm brand new to PLC and Ladder programming.

 

Many thanks.

 

Link to comment
Share on other sites

Expand on what you mean by "hysteresis".  Is it a setpoint control with discrete outputs that you want to add deadband to?

 

Joe T.

I have some legacy jazz ladder code I inherited that must be modified. The code reads a temperature sensor and controls a heating element to reach the setpoint. The temperature sensor jitters around the setpoint causing excessive on/off switching of the heater. Because I'm new to ladder programming I figured it would be easiest to simply add some hysteresis (deadband) directly at the sensor reading instead of trying to fiddle with the rest of the code.

Link to comment
Share on other sites

  • MVP 2023

Yes - the chattering output problem.  You need to disable your output until it falls a certain number of degrees below your setpoint.

 

If you post your code I can hack an example into it with comments, circles and arrows, and a paragraph on the back.

 

As far as your approach to programming the PLC, if you are schooled in other programming languages think of the PLC as a huge collection of If.. Then statements.  While there are a ton of function blocks for special features, the majority of programming is done with about 10 symbols that allow you to examine an manipulate boolean and signed integer variables.  The names are already set for you.

 

Joe T.

Link to comment
Share on other sites

Ok, thank you. I guess I have to go thru the code and actually understand what's going on. I was hoping there's a hysteresis option on the input similar to the filter one can enable. But if there isn't I'll just have to dive in and get it over with. *smile*.

 

Thank you

Daniel

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