Jump to content


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Arberhaziri's Achievements


Member (2/4)



  1. I want to address another problem related with this one that am presenting with photos . I think this is an issue that others can also find difficult to understand and solve . I do not know really why this problem is taking place but I want to know both of your opinions on that . The difference between the first and the second photo is just a 3 sec delay timer . The timer is activated when the PLC is on and the bit TB 383 is on after 3 sec. The second photo is the same as the first one but the signal is ON from the beginning and not just after 3 seconds from beginning. MI4095 has an initial value of 20 and as for the time we are speaking (21/06/2020) , every time that I will turn the PLC on it is going to increment MI4094 and after that MI4095 will take the value 21(I am simulating as the date has changed from 20th to 21th). The same thing happens at both photos but at the first one (with delay) incrementation takes place as the signal is ON all the time but after 3 seconds from when PLC is ON and at the second photo(without delay) incrementation doesn't take place as the signal is ON all the time from beginning.
  2. I tried to increment a value when it is ON first, just for testing , but it doesn't seem to work. MI4095 has the inital value 20 to simulate the 20th day of the month .
  3. It doesn't seems a big problem to me if it fails in that case, So I can use it for my purpose. Thank you very much .
  4. Actually , there is no specific time when the PLC is going to be powered ON , it may be ON in anytime throughout the day . That's why it seems a bit more complicated to manage that.
  5. Hi I need to fill a data table with information throughout the day and the information should be cleared once when the next day starts . So basically , I need a bit to be ON once a day when PLC is on (not every time that PLC is one in that day) , so I can send the information of that data table via email, and the information has to be cleared once, so it can be filled again with information. Is there anyone who can help me with this task , please.
  6. Thank you very much from both of you . I created a great connection from all you said . In my case I think the best way to stop the user to get in display where the outputs are controlled manually is to "disable " that button which opens that display . The outputs are controlled automatically in another display and unless there is an error which resets the bit (I use a bit called "START AUTO" to keep the process controlled automatically), it remains to control the process . So I can use that bit (START AUTO) to "disable" the button that opens the display to control my outputs manually. It means that I do not want the user to open that display while "START AUTO" bit is ON.
  7. In fact my program is a bit more complicated , the description was for understanding how subroutine work. The reason I need subroutine in this case is that I have a bunch of code which turns some Outputs ON and OFF automatically depending from conditions and I want the code to be separated in groups . Those Outputs can be controlled manually in another display .So I want to block the possibility for those outputs to be controlled manually while they are being controlled automatically . And yes you are right , sometimes I complicate things as I am new in programming Also is it better to create a subroutine and to call that bunch of code only when needed (in this case the code to be read only when I turn AUTOMATIC MODE ON) , or the code to be read all the time ? , is it better not to let microcontroller read unnecessarily?
  8. I'm struggling with subroutines and understanding the exact way how they works. I'm willing to controll some outputs with buttons but only when that display is activated . I'm using "is displayed operand " which calls a subroutine where the code for controlling output is . In that subroutine I turn on an Output with set coil when one button in that display is activated , but what happens if I go out from that display ? I'm not sure but I think the OUTPUT will be low , but what happens with set coil ? Is it going to be "reset" ? , or is it going to remain "SET"? Also I want to ask about "Choose "On unload" Subroutine" , how can we use it ?
  9. Is it the same for numeric number also . For example if I don't "check" the box on a numeric variable and I put the values from keyboard on the HMI screen , will the values be saved after I restart my PLC.
  • Create New...