HMI and hard-wired push buttons. Simultaneous operation.

Zes

Member
Join Date
Jul 2012
Location
Saint Petersburg
Posts
15
Hello!

I have a control panel with two hard-wired push buttons. One button to switching on, and another one to switching off. And I have an HMI with one button to switching on/off (toggle). For some reasons I can't use two separate buttons on HMI. So I need to implement simultaneous operation with HW-buttons and HMI-button.

Here is my code for FB that alternates two outputs from one input:
Code:
All variables are boolean type.

(* Asynchronous reset. *)
IF (RST) THEN
	A := FALSE;

(* Normal operation. *)
ELSE
	A := A XOR (CLK AND NOT(M));
	Q01 := CLK AND A;
	Q02 := CLK AND NOT(A);
	M := CLK;	
END_IF;

And here is my diagram for simultaneous control:
image.png


The problem is if coil was turned on with HW-button, it takes two pushes to turn it off with HMI-button. Maybe I need to add small changes to handle this issue:
Code:
(* Asynchronous reset. *)
IF (RST) OR (SET) THEN
	A := NOT RST;

(* Normal operation. *)
ELSE
	A := A XOR (CLK AND NOT(M));
	Q01 := CLK AND A;
	Q02 := CLK AND NOT(A);
	M := CLK;	
END_IF;

image.png


But maybe I missing something, this approach is wrong and there is more suitable and simple solution. Any advice, recommendations or thoughts will be greatly appreciated.
All buttons are momentary. 'SwitchedOn' is sealed internally in 'FB_L'.
 
Last edited:
Does your HMI button start/stop have to be toggle or can it be momentary? If the latter you can use a one shot from it in series with the "switched on" bit so it can mimic a start or stop button depending on whether the machine has started or not.
 
Why separate hardwired on/off buttons, and for the HMI a toggle button ?
Just keep the user interface consistent.
Choose separate buttons or toggle buttons for both.

I do not like the toggle button, but if you do go that way, I would add de-bounce timers.
 
Unfortunately I can't. In this particular project I must strictly follow to all requirements. One of them is two separate HW-buttons and one on a HMI. :confused:
 
Unfortunately I can't. In this particular project I must strictly follow to all requirements. One of them is two separate HW-buttons and one on a HMI. :confused:

But does it have to be a toggle switch on the HMI? If not then use a momentary and you should be able to do it no problem.
 
Use your single button on the HMI to implement a toggle on a state bit in the PLC.
Use the physical buttons to unconditionally latch or unlatch the state bit.
Use the state bit as an indicator for the HMI.
 

Similar Topics

I am using Factory Talk view Machine Edition Runtime HMI. I want to configure on button in such way that when i press this button I want to...
Replies
3
Views
117
Good Day to all of you, this is my first post, i will try to explain as best as possible, english is not my natural language. I am performing an...
Replies
0
Views
40
Does anyone happen to know how to install the graphic picture in HMI when I go into blower selection there are no graphics shown not only blower...
Replies
1
Views
65
Does anyone happen to know how to install the graphic picture in HMI when I go into blower selection there are no graphics show not only blower...
Replies
1
Views
99
Hello All, I've been tasked with automating a flatbed press that runs with some pretty extreme temperatures. I've been told it can run close to...
Replies
4
Views
167
Back
Top Bottom