PLCS.net - Interactive Q & A

PLCS.net - Interactive Q & A (http://www.plctalk.net/qanda/index.php)
-   LIVE PLC Questions And Answers (http://www.plctalk.net/qanda/forumdisplay.php?f=2)
-   -   Intouch ***-On Script Functions (http://www.plctalk.net/qanda/showthread.php?t=112024)

NetNathan September 22nd, 2017 10:13 PM

Intouch ***-On Script Functions
 
1 Attachment(s)
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..

NetNathan September 22nd, 2017 10:21 PM

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

Bit_Bucket_07 September 23rd, 2017 12:01 AM

Quote:

Originally Posted by NetNathan (Post 752923)
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.

NetNathan September 23rd, 2017 03:52 AM

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..

JohnCalderwood July 11th, 2018 07:47 AM

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...

NetNathan July 11th, 2018 08:10 PM

Quote:

Originally Posted by JohnCalderwood (Post 784348)
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.

JohnCalderwood July 12th, 2018 03:15 AM

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

lostcontrol July 12th, 2018 05:35 AM

If ur using 2014R2, can you not use a .NET function from an A2 graphic?

NetNathan July 12th, 2018 10:42 AM

Quote:

Originally Posted by JohnCalderwood (Post 784450)
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.


All times are GMT -5. The time now is 12:37 PM.

.