Sign in to follow this  
Followers 0
Guest Roger

Sample Alarm Code

4 posts in this topic

Does anyone have some sample plc code for something similar to this:Check for new alarm, keep alarm until acknowledged even if alarm goes away, after alarm acknowledged and goes away watch for new. I have several words of alarms. Thanks

Share this post


Link to post
Share on other sites
Hi, What model PLC do you want this "alarm" detection for? What words have you programmed for alarms (and how!)? regards Steve

Share this post


Link to post
Share on other sites
This is a S7-413-2DP. DB106.DBW0 - 99 are the alarm bits being turned on (not set). DB106.DBW100-199 are the ACK. bits.

Share this post


Link to post
Share on other sites
Roger, can you give me more information or send me your code? Are you using an HMI ? To keep the alarm present then you really need to set the bits on alarm condition. This is simple ladder code. Then check all the bits in the alarm area for any bit changing state; ie: going high ? Once set then the equivalent ack area bit being set could act as a reset? this is only a suggestion, if you send more details then I will try and help you. Steve

Share this post


Link to post
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
Sign in to follow this  
Followers 0