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.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


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

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old March 18th, 2018, 03:20 AM   #1
IdealDan
Member
Malaysia

IdealDan is offline
 
Join Date: May 2017
Location: MA
Posts: 163
Wonderware Intouch question

Hi Guy
1. Please how can I create a shutdown button on the intouch?


2. Also how can I configure graphical Trend for 9 different values/tags in it?
  Reply With Quote
Old March 18th, 2018, 04:57 AM   #2
iraiam
Member
United States

iraiam is offline
 
Join Date: Jul 2011
Location: Right here
Posts: 117
Do you want to shutdown the application or the computer?

If you want to shutdown or restart the computer, make a batch file and use the command "shutdown /s" or /r for restart to initiate shutdown. use the StartApp command in intouch to run the batch file.

To shutdown the WW application, you can use the WWControl command. I believe it would be this: WWControl (InfoAppTitle("View"),"Close");

Intouch version 10 and later have the 16 pen trend available, but I don't think it's installed by default.
  Reply With Quote
Old March 18th, 2018, 11:39 AM   #3
NetNathan
Lifetime Supporting Member
United States

NetNathan is offline
 
Join Date: Nov 2011
Location: Corona, CA
Posts: 1,357
An easier way to shut down the PC from inside Intouch app..
If you have access to download files from Wonderware...
Download this add-on:
"FactorySuite Script Function Library"

It will have these 2 files, which you place in the Intouch folder in program files directory.
WWTech32.wdf & WWTech32.dll

Then you will now have access to this command:
"WWShutDownWinNT40"

Make a button and make a Touch Pushbutton>action script with this command (using "On Left/Key Up")
WWShutDownWinNT40( 2 );


More info on command...

WWShutDownWinNT40 Shuts down Windows NT 4.0.
Function: Result = WWShutDownWinNT40( ShutDownFlag );
Return value: If an illegal ShutDownFlag is passed the return value will be a -2, if NT security will not allow the current user to shutdown NT or if there is a system error a -1 will be returned.
ShutDownFlag: (Integer) This tells the function how to shut the system down:
1 - Log the current user off NT.
2 - Shut down NT.
3 - Reboot the computer.

Example: This is how to cause Windows NT 4.0 to shutdown:

Result = WWShutDownWinNT40( 2 );

Note The user who is logged into Windows NT must have privileges to shut down or reboot the computer. The Windows NT security allows everyone the ability to log off the system. WWShutDownWinNT40() will force all applications to terminate at the time that the function is called.
__________________
****Control Freak****
Net is where I be and Nathan is me.

Last edited by NetNathan; March 18th, 2018 at 11:43 AM.
  Reply With Quote
Old March 19th, 2018, 12:03 AM   #4
IdealDan
Member
Malaysia

IdealDan is offline
 
Join Date: May 2017
Location: MA
Posts: 163
Quote:
Originally Posted by iraiam View Post
Do you want to shutdown the application or the computer?

If you want to shutdown or restart the computer, make a batch file and use the command "shutdown /s" or /r for restart to initiate shutdown. use the StartApp command in intouch to run the batch file.

To shutdown the WW application, you can use the WWControl command. I believe it would be this: WWControl (InfoAppTitle("View"),"Close");

Intouch version 10 and later have the 16 pen trend available, but I don't think it's installed by default.
YES, How is this command applied? ''WWControl (InfoAppTitle("View"),"Close")''?
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


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
Wonderware Intouch Redundancy question deljvk LIVE PLC Questions And Answers 2 September 6th, 2015 06:35 AM
Wonderware Intouch + Delta PLC valiantt LIVE PLC Questions And Answers 1 September 9th, 2014 04:20 AM
Run two instances of Wonderware InTouch 7.x mosama LIVE PLC Questions And Answers 22 January 4th, 2013 11:52 PM
WonderWare Intouch mab LIVE PLC Questions And Answers 6 November 9th, 2012 12:55 AM
s7 with wonderware intouch mehdir LIVE PLC Questions And Answers 1 September 23rd, 2012 06:57 AM


All times are GMT -5. The time now is 03:52 AM.


.