dsula Posted October 27, 2013 Report Share Posted October 27, 2013 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 More sharing options...
MVP 2023 Joe Tauser Posted October 28, 2013 MVP 2023 Report Share Posted October 28, 2013 Expand on what you mean by "hysteresis". Is it a setpoint control with discrete outputs that you want to add deadband to? Joe T. Link to comment Share on other sites More sharing options...
dsula Posted October 28, 2013 Author Report Share Posted October 28, 2013 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 More sharing options...
MVP 2023 Joe Tauser Posted October 28, 2013 MVP 2023 Report Share Posted October 28, 2013 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 More sharing options...
dsula Posted October 29, 2013 Author Report Share Posted October 29, 2013 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 More sharing options...
MVP 2023 Joe Tauser Posted October 30, 2013 MVP 2023 Report Share Posted October 30, 2013 Creating hysteresis requires a couple of networks and some compare blocks. I have attached a file. Joe T. Deadband Example.vlp Link to comment Share on other sites More sharing options...
Cara Bereck Levy Posted October 31, 2013 Report Share Posted October 31, 2013 >If you post your code I can hack an example into it with comments, circles and arrows, and a paragraph on the back.< That might provoke a typical case of blind justice...especially if put on 27 color glossy photographs. 1 Link to comment Share on other sites More sharing options...
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