You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

Reply
 
Thread Tools Display Modes
Old July 13th, 2023, 01:01 PM   #1
Mas01
Member
United Kingdom

Mas01 is offline
 
Join Date: Oct 2020
Location: Leicester, England
Posts: 1,044
Siemens S7/TIA v18: WinCC: F7 needs to SAVE data AND advance the screen......

I'm a bit stuck again...

See the redacted picture.

At the moment, pressing F7 saves the "live" laser measurement into the boxes indicated by the arrows, and that's all it does.

I want to make it such that F7 will still perform the SAVE, but I want it to also advance to the next screen (screen 5).

Is there a way to assign two operations/commands to a single F-key, i.e. perform save AND advance to next screen?

i.e. I want to get rid of the NEXT button, which is a bit surplus to requirement.

Cheers
Attached Images
File Type: png screen-shot.png (56.4 KB, 37 views)

Last edited by Mas01; July 13th, 2023 at 01:08 PM.
  Reply With Quote
Old July 13th, 2023, 01:13 PM   #2
Mas01
Member
United Kingdom

Mas01 is offline
 
Join Date: Oct 2020
Location: Leicester, England
Posts: 1,044
Cancel that question...I've just seen this 'add function/ActivateScreen' thing:
Attached Images
File Type: png found it.png (22.3 KB, 36 views)

Last edited by Mas01; July 13th, 2023 at 01:19 PM.
  Reply With Quote
Old July 13th, 2023, 01:22 PM   #3
Mas01
Member
United Kingdom

Mas01 is offline
 
Join Date: Oct 2020
Location: Leicester, England
Posts: 1,044
Seems to be working, so job's a good 'un.
  Reply With Quote
Old July 14th, 2023, 08:09 AM   #4
Mas01
Member
United Kingdom

Mas01 is offline
 
Join Date: Oct 2020
Location: Leicester, England
Posts: 1,044
Bumping this thread for a reason...

Although the "save/advance to screen 5" is working fine, the operator does not get any confirmation of the save before screen 5 is displayed.

I just want to (for example) display the text "Saving..." in place of "SAVE" for a couple of seconds before advancing to screen 5. Then the operator's got some confidence the measurements were saved.

Anyone know how to do that, or got alternative suggestions?
Thanks
  Reply With Quote
Old July 14th, 2023, 08:27 AM   #5
JesperMP
Lifetime Supporting Member + Moderator
Denmark

JesperMP is offline
 
JesperMP's Avatar
 
Join Date: Feb 2003
Location: ᚴᚬᛒᛅᚾᚼᚬᚠᚾ
Posts: 16,132
Let the HMI button set a bit.
The HMI variable triggers that the PLC copies the values from one set of variables to the other set of variables,
AND sets an extended pulse timer
AND resets the HMI variable.

Let the HMI read the pulse timer status to display the text with visibility animation.
__________________
Jesper
NOTICE:
JesperMP has passive-aggressive tendencies, can be impolite and may even use sarcasm !
Also: ᛁᚠ ᚢᚬᚢ ᚴᚬᚾ ᚱᛅᚬᛏ ᚦᛁᛋ ᚦᛅᚾ ᚢᚬᚢ ᚼᚬᚠᛅ ᚴᚬᛁᚾᛅᛏ ᛘᚢ ᚱᛅᛋᛒᛅᚴᛏ
  Reply With Quote
Old July 14th, 2023, 08:33 AM   #6
parky
Member
United Kingdom

parky is online now
 
parky's Avatar
 
Join Date: Oct 2004
Location: Midlands
Posts: 5,485
Yep best way is to run a timer in your code, put up a message then when the timer is up change the screen, now I do not know the TP panels but on most there is a variable that either shows or allows a value (screen number) so by moving the screen required number in there will change the screen.
As you need confirmation I suggest you do the following.
Button to save is also used to trigger a TP timer i.e. on a transition from 0-1 of the input (use the save button) the timer will be true for the time value (perhaps display a text to say saving) then on a trasition falling pulse of the timer set a bit to change the screen, you may need to reset it again either another timer or perhaps use the new screen variable compare it to the expected screen number then reset the bit. or do like this
Attached Images
File Type: png Screen Change.png (55.4 KB, 23 views)
  Reply With Quote
Old July 14th, 2023, 08:49 AM   #7
JesperMP
Lifetime Supporting Member + Moderator
Denmark

JesperMP is offline
 
JesperMP's Avatar
 
Join Date: Feb 2003
Location: ᚴᚬᛒᛅᚾᚼᚬᚠᚾ
Posts: 16,132
Just a comment, but I and anyone else I know absolutely hate it when the screen changes forcibly.
Better is to end the save by hinting what to do next. Use the aforementioned bit to display a text for example "use button Fx to proceed to the next step".
__________________
Jesper
NOTICE:
JesperMP has passive-aggressive tendencies, can be impolite and may even use sarcasm !
Also: ᛁᚠ ᚢᚬᚢ ᚴᚬᚾ ᚱᛅᚬᛏ ᚦᛁᛋ ᚦᛅᚾ ᚢᚬᚢ ᚼᚬᚠᛅ ᚴᚬᛁᚾᛅᛏ ᛘᚢ ᚱᛅᛋᛒᛅᚴᛏ
  Reply With Quote
Old July 14th, 2023, 09:09 AM   #8
parky
Member
United Kingdom

parky is online now
 
parky's Avatar
 
Join Date: Oct 2004
Location: Midlands
Posts: 5,485
Yep, it can be a problem I have seen where the screen changes but there is a button in the same location so this becomes active before the operator takes off finger, some do not as they need to see a change of state once screen is active.
Just make sure if it is required to change screen there is no button or touch area in the same position as the previous screen.
  Reply With Quote
Old July 14th, 2023, 09:16 AM   #9
Mas01
Member
United Kingdom

Mas01 is offline
 
Join Date: Oct 2020
Location: Leicester, England
Posts: 1,044
Quote:
Originally Posted by parky View Post
Yep best way is to run a timer in your code, put up a message then when the timer is up change the screen, now I do not know the TP panels but on most there is a variable that either shows or allows a value (screen number) so by moving the screen required number in there will change the screen.
As you need confirmation I suggest you do the following.
Button to save is also used to trigger a TP timer i.e. on a transition from 0-1 of the input (use the save button) the timer will be true for the time value (perhaps display a text to say saving) then on a trasition falling pulse of the timer set a bit to change the screen, you may need to reset it again either another timer or perhaps use the new screen variable compare it to the expected screen number then reset the bit. or do like this
That's brilliant, did you do this code on the fly?
I'd need ages to come up with that.

Quote:
Originally Posted by JesperMP View Post
Just a comment, but I and anyone else I know absolutely hate it when the screen changes forcibly.
Better is to end the save by hinting what to do next. Use the aforementioned bit to display a text for example "use button Fx to proceed to the next step".
Hmm, I can see the merits of this.
Ultimately, I'm not the operator, so I need to ask them about it.
  Reply With Quote
Old July 14th, 2023, 10:45 AM   #10
parky
Member
United Kingdom

parky is online now
 
parky's Avatar
 
Join Date: Oct 2004
Location: Midlands
Posts: 5,485
Yes I did it took me all of about 3 minutes to code Years ago on the older S5 systems bits (M or F for english) were not retentive so I used to copy all bits I wanted as retentive to a DB at the end of scan, then on startup OB20 or what ever it was copy them back, I also set what we called a hold process flags so that it did not automatically start, this was not just a "NOT" contact on all outputs but a hold in the task processes, the task process was the overall control block for a group of Unit processes for example a Taks was say one batching tank, the code was written in what we called Unit Processes, it was all to do with a standard for one of our main clients.
@DR: even Seal in circuits if the status of an out instruction is not retentive on a stop in many PLC's it's status is still true, as it's own contact is the Seal then it remains true. Tried it on 4 platforms although not on AB stuff.
That is to say there may be others that reset bits on a warm start
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Panel view Plus 1000-real time data issue on the screen sinanmoral LIVE PLC Questions And Answers 2 January 5th, 2022 10:27 AM
Koyo Click save data registers to PC dpmanthei LIVE PLC Questions And Answers 13 May 2nd, 2017 11:57 PM
Migration Panel View Kristian LIVE PLC Questions And Answers 2 August 8th, 2014 01:32 PM
Exchange data in "large" Siemens S7 network Werner LIVE PLC Questions And Answers 4 May 26th, 2009 07:56 AM
Siemens network configuration data mister wiggle LIVE PLC Questions And Answers 2 February 19th, 2005 07:41 PM


All times are GMT -4. The time now is 07:39 AM.


.