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

Hello, I have an issue where I want to simulate an Siemens HMI panel, through NAT connection to a PLC. I have the possibility through extended...
Replies
1
Views
47
Hi there, I'm trying to learn about the siemens TIA HMI features and have been following tutorials on a simple start/stop button test, however I...
Replies
3
Views
87
hi there, I'm a beginner pls help when transferring pc to hmi there's an error message on shihlin hmi written com1 station 1: communication...
Replies
1
Views
94
Hello, I have a Mitsubishi FX3G 14M PLC and a E615 HMI from Mitsubishi/Beijer. I'm using GXWorks 2 to do the programming and I have no problem...
Replies
4
Views
160
Good people of PLCs.net, I am currently working with an HMI that is advantech 1250H, that communicates with a 1769 Compact logix and Currently...
Replies
2
Views
82
Back
Top Bottom