S7-1200 using User-Defined Web Page HMI functions

marko18

Member
Join Date
Nov 2021
Location
USA
Posts
47
I am working on a project on an s7-1200 with an hmi, but I am looking to remove the HMI and substitute its functionality using the User-Defined Web Pages.

The User-Defined Web Pages have been able to replicate most of the program, as I can edit Data tags from the web server. However, I was wondering how I could go about replicating the "SetBitWhileKeyPressed" function from the HMI, as I want a button on the User-Defined Web Pages that sets the bit of a data tag to "1", but only for one scan cycle, instead of making the tag "1" permanently.

I have certain functionalities in the PLC program that depend on positive and negative edge triggers, and wanted to replicate that on the User-Defined Web Pages. Any suggestions?
 
Wherever the PLC looks at that bit, have it (the PLC) Reset that bit on the next rung, or as the last rung in OB1.
 
The "SetBitWhileKeyPressed" does nothing else than setting the bit to true when you press the button, and on button release setting the bit to false. There is no continously write function in the background. Because if you press the button on the HMI, and while pressing the button power off the HMI or disconnect the network connection, the bit will stay true.

On a webpage you can imitate this by using two function, one at button pressed and one at button release event. If somethin can go wrong, you need a kind of live bit if the website is active used in any browser.
 

Similar Topics

Hi All, I have a closed loop stepper motor (Nanotec make), https://en.nanotec.com/products/2512-pd4-e601l42-e-65-4. This uses MODBUS TCP for...
Replies
4
Views
3,844
Hello everybody. I need to print temperature data every 30 seconds. For this I need to print on a thermal printer that is connected to a CM1241...
Replies
0
Views
1,461
How do you program a Micrologic 1200 RTD module using a Micrologic 1400 PLC? I'm using RSLogix Micro to program the ladder logic. I've wired the...
Replies
4
Views
2,836
i am new in robotics programming and configuration. this is completely education project talking to ABB robot with devicenet option irc5...
Replies
0
Views
1,942
Dear all I want to make S7-1200 as Modbus RTU gateway (Master and slave all in one) I have bought : 1 x 1214C CPU 2 x CM1241 RS422/485 The fisrt...
Replies
2
Views
4,066
Back
Top Bottom