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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.