tonymony Posted January 18, 2016 Report Share Posted January 18, 2016 I set up a alarm program with a alarm blink, the problem is, the alarm blinks weird. Link to comment Share on other sites More sharing options...
s.pratt Posted January 18, 2016 Report Share Posted January 18, 2016 Could you explain the issue a little further? Or attach the program for us to test here? Link to comment Share on other sites More sharing options...
tonymony Posted January 18, 2016 Author Report Share Posted January 18, 2016 Yes of course, I will attach my program, in the picture you can see a red circule, this one is suppose to blink. It blinks but not normal. I do not know how to upload a file in the forum, anyway I will upload in google drive. Here is my project. I upload because I have two more questions which I am trying to solve. https://drive.google.com/file/d/0B2KvxQP-uoqGTTJxQ001X1ZjM3c/view?usp=sharing Thanks a lot Link to comment Share on other sites More sharing options...
s.pratt Posted January 18, 2016 Report Share Posted January 18, 2016 Hello, The issue you are experiencing is due to the subrouotine "ALARMS" being called twice in one scan. You have the subroutine being called through the "DISPLAYS" Routine, then also when the Alarms screen is being displayed. I would delete one of the calls for the "ALARMS" subroutine; I deleted the calls from the "Links and Jumps" section for the screen. I do not believe you need these calls (upon loading the screen, while the screen is displayed, and upon unload of the screen). Please let me know if this helps. Link to comment Share on other sites More sharing options...
tonymony Posted January 20, 2016 Author Report Share Posted January 20, 2016 Thanks, I did not realize about it. I am newbie sorry. I have another question, for example when I set up botton 1,2,3 in the Diesel Fuel & transfer system, the alarm change, but when I change of HMI the alarm forgot the state. Any suggestion? Link to comment Share on other sites More sharing options...
s.pratt Posted January 20, 2016 Report Share Posted January 20, 2016 I am unsure what you are referring to. Which buttons are button 1, 2, and 3? Which alarm are you referring to? Link to comment Share on other sites More sharing options...
tonymony Posted January 20, 2016 Author Report Share Posted January 20, 2016 I create three buttons to simulate swithes. These buttons are in the red square. I am referring to a sounder which I draw in the HMI inside the yellow square. This Sounder has three states as you can she in the net called Alarm graphics: State 1-- is linked with: (WHITE state) Analog input by range 0-218 OR switch 2 --> button 2 is pulse OR switch 3 --> button 3 is pulse State 2-- is linked with: (YELLOW state) Analog input by range 219-243 OR switch 1 --> button 1 is pulse State 3-- is linked with: (RED state) Analog input by range 244-260Then depend of the state it is storage in MI13 which is linked with a by point picture in the HMI. The main problem is the picture does not refresh properly and if I change the HMI, the screen refres to initial state. Link to comment Share on other sites More sharing options...
tonymony Posted January 20, 2016 Author Report Share Posted January 20, 2016 The picture is here I forgot added in the early post. http://subefotos.com/ver/?44a1338c2c1a18fbcac0dce402e351cfo.png Link to comment Share on other sites More sharing options...
s.pratt Posted January 20, 2016 Report Share Posted January 20, 2016 Hello, I believe this may have something to do with the multiple times this subroutine (FUEL & TRANSFER SYSTEM) is being called. You have the subroutine linked via the Links & Jumps section attached to this HMI screen (FUEL & TRANSFER SYSTEM) sow when the display is loaded, being displayed, and when the screen is unloaded, this subroutine is called. Then, on top of these calls, you call the routine from the DISPLAYS routine, ALARMS subroutine, and again in the POWER PLANT subroutine. So the logigc for the alarm is ran about 4 times in one scan. Please remove all calls for the FUEL & TRANSFER SYSTEM subroutine and only call it from the DISPLAYS routine (the Main Routine). Please let me know if this helps. If now, please send the updated code to support@unitronics.com for further support, or upload it here for me to review. Link to comment Share on other sites More sharing options...
tonymony Posted January 21, 2016 Author Report Share Posted January 21, 2016 What I am trying to do is this Cycle. http://subefotos.com/ver/?ed56fc8854cbe06920de8f92bb66dd16o.jpg 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