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 September 22nd, 2017, 09:13 PM   #1
NetNathan
Lifetime Supporting Member
United States

NetNathan is offline
 
Join Date: Nov 2011
Location: Corona, CA
Posts: 1,452
Intouch ***-On Script Functions

Resently I posted how to shut down the PC from inside Intouch using "WWShutDownWinNT40" from the "WWTech32" Add-On Script Function library.
These Script functions are downloaded from Intouch support.
Located here: https://softwaresupportsp.schneider-...px?docId=TN124
Here is a file that describes all of them. A lot of them are very useful..
Attached Files
File Type: pdf Intouch Script Function Library-TN124.pdf (147.9 KB, 59 views)
__________________
****Control Freak****
Net is where I be and Nathan is me.

Last edited by NetNathan; September 22nd, 2017 at 09:54 PM.
  Reply With Quote
Old September 22nd, 2017, 09:21 PM   #2
NetNathan
Lifetime Supporting Member
United States

NetNathan is offline
 
Join Date: Nov 2011
Location: Corona, CA
Posts: 1,452
Weird...I do not know why title got changed from "Add-On" to "***-On"???

Here is list...be forewarned..some scripts have been adopted as $tags in later Intouch versions..and some no longer work in the newer versions.


CursorFn Script Function Library
CursorFn.wdf & CursorFn.dll

Hide_Cursor
Show_Cursor
SetCursorPosition
GetCursorPosition
Clip_Cursor
Restore_clip
back to top

FactorySuite Script Function Library
WWTech32.wdf & WWTech32.dll

Measurement Units Conversion
StdFromMetLinear
MetFromStdLinear
StdFromMetFluid
MetFromStdFluid
StdFromMetWeight
MetFromStdWeight

Area and Volume Calculations
GeoArea
GeoEqualSideArea
GeoEqualSideArea
GeoVolume

Writing to a .INI File
INIWriteString
INIWriteInteger
INIReadInteger
INIReadString

Writing to the Spcex.ini File
SPCEXSetStartDate
SPCEXSetStartTime
SPCEXSetEndDate
SPCEXSetEndTime
SPCEXSetProduct
SPCEXSetDataset
SPCEXSetOutputFile

Tag Support Functions
TagExists
GetDiscOnMsg
GetDiscOffMsg
SetTagEU
File Name Creation
CreateFilenameFromDate

Miscellaneous Script Functions
WWShutDownWinNT40
WWShutDownWin95
SystemIsNT
WWBeep32
WWCntx32
WWCntx32Cleanup


FileDeleteWC Script Function
WWDelete.wdf & WWDelete.dll (16-bit)
WWDelete.wdf & WWDelete.dll (32-bit)

FileDeleteWC

GetViewVersionInfo Script Function Library
GetViewVersionInfo.wdf & GetViewVersionInfo.dll

WWGetViewInstallPath
WWGetViewComments
WWGetViewCompanyName
WWGetViewFileDescription
WWGetViewFileVersion1
WWGetViewFileVersion2
WWGetViewLegalCopyRight
WWGetViewLegalTradeMarks
WWGetViewOriginalFileName
WWGetViewPrivateBuild
WWGetViewProductName
WWGetViewProductVersion
WWGetViewSpecialBuild
WWGetITFileDescription
WWGetITFileVersion1

GetWindowPosition Script Function
WndUtils.wdf & WndUtils.dll


ITAlmFn Script Function Library
ITAlmFn.wdf & ITAlmFn.dll

WWGetAlmGroup

ITExtras Script Function Library
ITExtras.wdf & ITExtras.dll


WIN.INI File Access Functions
ITXGetProfileString
ITXGetProfileInt
ITXPutProfileString
ITXPutProfileInt

Date/Time Functions
ITXCreateDateTime
ITXCreateDateTimeUTC
ITXCreateDate
ITXConvertDateTime
ITXConvertDate
ITXConvertDateTimeString
ITXConvertDateString
ITXCheckDate
TXSetSystemTime
ITXSetSystemDate
ITXSetLocalTime

Help File Access Functions
ITXShowHelpByNumber
ITXShowHelpByString
Window Manipulation Functions
ITXWindowCtrl
ITXAppActivate
ITXResizeApplication
ITXStartAppInDirectory

Directory Manipulation Functions
ITXCreateSubDirectory
ITXRemoveSubDirectory
ITXCreateDirectory
ITXRemoveDirectory
back to top

InBatch/InTouch Script Function Library
IBMATFNC.wdf & IBMATFNC.dll

InBatch Material Functions
ibMatAddCLB
ibMatAddDefChar
ibMatAddMat
ibMatAddUnit
ibMatChangeChar
ibMatChangeCLB
ibMatDeleteUnit
ibMatGetCharInfo
ibMatGetCLBInfo
ibMatGetDefCharInfo
ibMatGetMatInfo
ibMatGetUnitInfo
ibMatReadChars
ibMatReadCLBs
ibMatReadDefChars
ibMatReadMaterials
ibMatReadUnits
ibMatScaleCLBs
ibMatTotalMatQty
ibMatTotalUnitQty

InBatch Recipe Functions
ibRecReadRecipes
ibRecFilterRecipes
ibRecReadComments
ibRecReadInputs
ibRecReadOutputs
ibRecReadPhases
ibRecReadParams
ibRecReadVersions
ibRecReadInsts
ibRecChangeTarget
InBatch History Functions

ibHistReadInputs
ibHistReadInputs2
ibHistReadOutputs
ibHistReadOutputs2


InTouch Application Info Script Function Library
ITAppInf.wdf & ITAppInf.dll

GetResolutionStr
GetResolutionInt
GetAppVersion
GetOSVer
GetLastSaveDate
back to top

InTouch Statistical Script Functions
StatFunc.wdf & StatFunc.dll

StatReset
StatResetAll
StatSample
StatSampleAll
StatGetAverage
StatGetMax
StatGetMin
StatGetStdDev
StatGetSampleCount
StatGetSumXSquared


InTouchEntryDialogs Script Function Library
InTouchEntryDialogs.wdf & InTouchEntryDialogs.dll

InTouchLogon
ValueEntry
ProtectedValueEntry
ChangeWindowsPassword
OnScreenKeyboardOpen
OnScreenKeyboardClose

InTouchTagInfo Script Function
InTouchTagInfo.wdf & InTouchTagInfo.dll

ITTagType


InTouch Battery Status Script Functions
WW2kscriptfuncs.wdf & WW2kscriptfuncs.dll

WWSFGetLinePowerStatus
WWSFGetBatteryChargeStatus
WWSFGetBatteryLifePercent
WWSFGetBatteryLifetime
WWSFGetBatteryFullLifetime


Tech Support Script Function Library
WWTechSp.wdf & WWTechSp.dll

FilePrint
FileSelect
InfoAppStatus
InfoAppTitleExpand
InfoDosEnv
InfoWinEnv
MessageBox
MoveWindow
SendMail
SendSMTPConfig
SendSMTPClearConfig
SendSMTPMail
SendSMTPMailwAttachment
WWAlwaysOnTop
WWContext
WWControlPanel
WWDosCommand
WWFreeHandles
WWStartApp
WWMultiMonitorNode
WWPrimaryMonitorNode
WWPrimaryMonitorHeight


IntFromString() Script Function
WWHex.wdf & WWHex.dll

IntFromString


IsNodeAppRunning Function
WW2kscriptfuncs.wdf & WW2kscriptfuncs.dll

IsNodeAppRunning


Keytrap Script Functions
Keytrap.wdf & Keytrap.dll

KeyTrapSet
KeyTrapStatus


Multi-Language Script Functions for TrueType Fonts
WWmlent.wdf & WWmlent.dll

MLDialogValueEntry
MLDialogValueEntryEx
MLNoKeyDialogValueEntry
MLNoKeyDialogValueEntryEx
MLNoKeyDialogStringEntry
MLNoKeyDialogStringEntryEx


NumberRecipes Script Function
Numrecip.wdf & Numrecip.dll

NumberRecipes


RandInt InTouch Script Function
RandInt.wdf & RandInt.dll

RandInt

ServiceControl Script Function Library
ServiceControl.wdf & ServiceControl.dll

WWServiceControl
WWGetServiceName
WWGetServiceExeName
WWGetServiceStatus
WWServiceControlError


WWField Script Function Library
WWField.wdf & WWField.dll (16 Bit)

WWField.wdf & WWField.dll (32 Bit-1000)

WWField.wdf & WWField.dll (32 Bit-2000)

SetCommentField
SetDiscOnMsg
SetDiscOffMsg
GetEUDesc


SetCursorPosition() Script Function
Setcursr.wdf & Setcursr.dll

SetCursorPosition


SysBeep InTouch Script Function
SysBeep.wdf & SysBeep.dll for IT6.0

SysBeep


SysInfo Script Function Library
SysInfo.wdf & SysInfo.dll

wwGetUserName
wwGetComputerName


SystemInformation Script Library
SystemInformation.wdf & SystemInformation.dll

SICPULoadPercent
SINumberOfCPUs
SIIsProcessRunning


TimeFunctions Script Function Library
TimeFunctions.wdf & TimeFunctions.dll

WWDaylightSavingsTime
WWCurrentLocalTime
WWCurrentUTCTime
WWOffsetFromUTC
WWLocalTimeZone


WWGetString Function
WWGetStr.wdf & WWGetStr.dll

WWGetString


WWHtmlHelp Functions
WWHtmlHelpFuncs.wdf & WWHtmlHelpFuncs.dll

WWSFShowHtmlHelpByNumber
WWSFShowHtmlHelpByTopic


WWMoveViewWindow Script Function
WWMoveViewWindow.wdf & WWMoveViewWindow.dll

WWMoveViewWindow
__________________
****Control Freak****
Net is where I be and Nathan is me.

Last edited by NetNathan; September 22nd, 2017 at 09:43 PM.
  Reply With Quote
Old September 22nd, 2017, 11:01 PM   #3
Bit_Bucket_07
Member
United States

Bit_Bucket_07 is offline
 
Bit_Bucket_07's Avatar
 
Join Date: Feb 2013
Location: Southeast US
Posts: 1,404
Quote:
Originally Posted by NetNathan View Post
Resently I posted how to shut down the PC from inside Intouch using "WWShutDownWinNT40" from the "WWTech32" Add-On Script Function library.
These Script functions are downloaded from Intouch support.
Located here: https://softwaresupportsp.schneider-...px?docId=TN124
Here is a file that describes all of them. A lot of them are very useful..
You know, I've always loved the fact that WW offered this enhanced scripting functionality, but I've always hated the fact that it is required of the person tasked with installing the WW software to manually install the DLL files for the extended functionality of the enhanced WW scripting library.

It makes it more difficult for an integrator to provide service for a prior programmer's HMI application.
__________________
  Reply With Quote
Old September 23rd, 2017, 02:52 AM   #4
NetNathan
Lifetime Supporting Member
United States

NetNathan is offline
 
Join Date: Nov 2011
Location: Corona, CA
Posts: 1,452
Yes....

If you can download them, then I wonder why Intouch doesn't install them into Intouch scripting??

I keep a zip file named "Copy to Intouch Folder.zip" that is listed as part of our installs, because I use a few of them for:
WWShutDownWinNT40 (To "gracefully" shut down Intouch and PC from a button in Intouch)
File Select
File Copy
File Print
Number of Recipes
Current version of Intouch App
Sys Info tags

and a few others...

They also work if you install in Intouch app directory..
__________________
****Control Freak****
Net is where I be and Nathan is me.

Last edited by NetNathan; September 23rd, 2017 at 02:57 AM.
  Reply With Quote
Old July 11th, 2018, 06:47 AM   #5
JohnCalderwood
Member
Scotland

JohnCalderwood is offline
 
Join Date: Feb 2014
Location: Stirling
Posts: 594
Hi NetNathan,

sorry to hijack an old thread, but I am new to this issue.

I need to add FileSelect to a running 2014R2 Application (why is it not there anyway?), so how would I do it?

Have been trawling Schneider/Aveva help pages to no avail, going round in circles, and have found 3 possibles (wwfld16.zip, wwfld32_1000.zip, wwfld32_2000.zip) but no explanation as to the differences...maybe not even suitable for my modern application and PC hardware...
  Reply With Quote
Old July 11th, 2018, 07:10 PM   #6
NetNathan
Lifetime Supporting Member
United States

NetNathan is offline
 
Join Date: Nov 2011
Location: Corona, CA
Posts: 1,452
Quote:
Originally Posted by JohnCalderwood View Post
Hi NetNathan,

sorry to hijack an old thread, but I am new to this issue.

I need to add FileSelect to a running 2014R2 Application (why is it not there anyway?), so how would I do it?

Have been trawling Schneider/Aveva help pages to no avail, going round in circles, and have found 3 possibles (wwfld16.zip, wwfld32_1000.zip, wwfld32_2000.zip) but no explanation as to the differences...maybe not even suitable for my modern application and PC hardware...
You do not see "FileSelect" as a tag, it is a function.
when you enter the "FileSelect" script, if it asks you to add FileSelect as a tag, then the add-on is not seen.
The Dll needs to be either in your InTouch application directory or the Intouch folder in the ProgramFiles (x86) folder.

Here is my button script to select file...
"V2-RunFileRead-PathDB= FileSelect ("", V2-PathRuns, "*.CSV", "V2-XXXXXX-RD.CSV");"

I have been using this function since before Intouch 7.1, and now using it on Intouch 2017.
__________________
****Control Freak****
Net is where I be and Nathan is me.
  Reply With Quote
Old July 12th, 2018, 02:15 AM   #7
JohnCalderwood
Member
Scotland

JohnCalderwood is offline
 
Join Date: Feb 2014
Location: Stirling
Posts: 594
Hi NetNathan,

Thanks for the info.

Aye, I know it is a function and the script is there from the 3rd party supplier which is similar to yours. When I tried to change the path to make it work, it asked me to define FileSelect.

Just I was not sure, as there were 3 zip files I found, each of which have a dll file in them
I do not want to overwrite any functionality by adding/replacing the dll file, as not sure on the different versions.

The 3rd party supplier says it is what it is, it does open a notepad window, just does not point the user to the directory where, in this case, the alarm log files reside.

I may try creating an offline copy first and try it. cheers
  Reply With Quote
Old July 12th, 2018, 04:35 AM   #8
lostcontrol
Member
New Zealand

lostcontrol is offline
 
lostcontrol's Avatar
 
Join Date: May 2009
Location: NeverSayNever
Posts: 775
If ur using 2014R2, can you not use a .NET function from an A2 graphic?
  Reply With Quote
Old July 12th, 2018, 09:42 AM   #9
NetNathan
Lifetime Supporting Member
United States

NetNathan is offline
 
Join Date: Nov 2011
Location: Corona, CA
Posts: 1,452
Quote:
Originally Posted by JohnCalderwood View Post
Hi NetNathan,

Thanks for the info.

Aye, I know it is a function and the script is there from the 3rd party supplier which is similar to yours. When I tried to change the path to make it work, it asked me to define FileSelect.

Just I was not sure, as there were 3 zip files I found, each of which have a dll file in them
I do not want to overwrite any functionality by adding/replacing the dll file, as not sure on the different versions.

The 3rd party supplier says it is what it is, it does open a notepad window, just does not point the user to the directory where, in this case, the alarm log files reside.

I may try creating an offline copy first and try it. cheers
To get the FileSelect Add-On function,
To get it..... you will need the "WWTechSp" Add-On Function Script library. You can download from Intouch support site.
https://softwaresupportsp.schneider-electric.com/#/

It will be a zip file with WWTechSp.wdf & WWTechSp.dll inside. These files either go in your Intouch folder or your intouch application folder.
__________________
****Control Freak****
Net is where I be and Nathan is me.

Last edited by NetNathan; July 12th, 2018 at 09:51 AM.
  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
Is there any way for InTouch script to check Windows username? defcon.klaxon LIVE PLC Questions And Answers 3 August 11th, 2017 09:22 PM
Batch script executed from InTouch doesn't generate output gardarog LIVE PLC Questions And Answers 5 May 13th, 2017 06:09 AM
Intouch action script MLR5000 LIVE PLC Questions And Answers 6 March 26th, 2013 03:26 PM
Intouch Application script.. drspanda LIVE PLC Questions And Answers 23 December 25th, 2006 08:26 AM
InTouch Application Script Query jaichains LIVE PLC Questions And Answers 7 July 19th, 2006 07:37 AM


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


.