grnick50
Lifetime Supporting Member
Hello all, considering good programming practices how do you handle press and release button events in HMIs.
I have seen people using the release event in favour of the press event. What is the reason for that?
i have seen people having momentary button function in HMIs using the press event to set a bit in the PLC and the release event to reset a bit in the PLC. On the other hand I ve seen people seting a bit with the release event in the HMI and resetting that bit in the PLC code right after it is used in the code (they consider it safer).
Personally I ve used most of the methods but as we are trying to set company standards, I am trying to find the best method.
Regards
I have seen people using the release event in favour of the press event. What is the reason for that?
i have seen people having momentary button function in HMIs using the press event to set a bit in the PLC and the release event to reset a bit in the PLC. On the other hand I ve seen people seting a bit with the release event in the HMI and resetting that bit in the PLC code right after it is used in the code (they consider it safer).
Personally I ve used most of the methods but as we are trying to set company standards, I am trying to find the best method.
Regards