组态王命令语言函数速查手册目录 1
目 录
Abs .................................................................................................................................1
Ack .................................................................................................................................1
AckByTagName ...............................................................................................................2
AckByGroupName ...........................................................................................................2
ActivateApp .................................................................................................................2
ActiveXIsVisible............................................................................................................3
ArcCos ...........................................................................................................................3
ArcSin ...........................................................................................................................3
ArcTan ...........................................................................................................................4
Average .........................................................................................................................4
BackUpHistData ...........................................................................................................5
Bit .................................................................................................................................5
BitSet ...........................................................................................................................6
ChangePassword ...........................................................................................................6
chartAdd .......................................................................................................................7
chartClear ...................................................................................................................8
chartSetBarColor .......................................................................................................8
chartSetValue .............................................................................................................9
ClosePicture .............................................................................................................10
ConfigODBC .................................................................................................................10
Cos ...............................................................................................................................11
Date .............................................................................................................................11
DisplayMCI .................................................................................................................11
Dtext ...........................................................................................................................12
EditUsers ...................................................................................................................13
EnableAllAlarm .........................................................................................................13
EnableNavigate .........................................................................................................13
EnableDisableKeys......................................................................................................14
北京亚控科技发展有限公司
2
组态王命令语言函数速查手册目录
EnableSaveTagValueToIniValueWhenValueChange................................................14
Exit .............................................................................................................................15
Exp ...............................................................................................................................15
FileCopy .....................................................................................................................15
FileDelete .................................................................................................................17
FileMove .....................................................................................................................17
FileReadFields .........................................................................................................19
FileReadStr ...............................................................................................................20
FileWriteFields .......................................................................................................21
FileWriteStr .............................................................................................................22
GetAlarmNumInGroup .................................................................................................23
GetBackupProgress ...................................................................................................23
GetCursorPosX ...........................................................................................................24
GetCursorPosY ...........................................................................................................24
GetDate .......................................................................................................................24
GetDatelocal .............................................................................................................25
GetGroupName .............................................................................................................25
GetHistMaxData .........................................................................................................26
GetHistMinData .........................................................................................................26
GetHistAveData .........................................................................................................27
GetHistMaxTime .........................................................................................................27
GetHistMinTime .........................................................................................................28
GetKey .........................................................................................................................28
GetPictureScrollXPos ..................................................................................................29
GetPictureScrollYPos ..................................................................................................29
GetProjectPath .............................................................................................................29
GetRealDBForBool .....................................................................................................30
GetRealDBForFloat.....................................................................................................30
GetRealDBForInt.........................................................................................................30
GetRealDBForString ...................................................................................................31
北京亚控科技发展有限公司
组态王命令语言函数速查手册目录 3
GetStationStatus .....................................................................................................31
GetTime .......................................................................................................................31
GetTimelocal .............................................................................................................32
HidePicture ...............................................................................................................33
HTConvertTime ...........................................................................................................33
HTGetPenName .............................................................................................................34
HTGetPenRealValue ...................................................................................................35
HTGetTimeAtScooter .................................................................................................36
HTGetTimeStringAtScooter......................................................................................37
HTGetValue .................................................................................................................37
HTGetValueAtScooter ...............................................................................................38
HTGetValueAtZone .....................................................................................................39
HTResetValueZone .....................................................................................................40
HTScrollLeft .............................................................................................................40
HTScrollRight ...........................................................................................................41
HTSetLeftScooterTime .............................................................................................41
HTSetPenName .............................................................................................................42
HTUpdateToCurrentTime ...........................................................................................42
HTZoomIn .....................................................................................................................43
HTZoomOut ...................................................................................................................44
InfoAppActive ...........................................................................................................44
InfoAppDir .................................................................................................................45
InfoAppTitle .............................................................................................................45
InfoDisk .....................................................................................................................46
InfoFile .....................................................................................................................46
InfoResource .............................................................................................................47
Int ...............................................................................................................................48
listLoadList .............................................................................................................48
listSaveList .............................................................................................................49
listAddItem ...............................................................................................................50
北京亚控科技发展有限公司
4
组态王命令语言函数速查手册目录
listClear ...................................................................................................................50
listDeleteItem .........................................................................................................51
listDeleteSelection ...............................................................................................51
listFindItem .............................................................................................................52
listGetItem ...............................................................................................................52
listGetItemCount .....................................................................................................53
ListGetCurSel ...........................................................................................................54
ListSetCurSel ...........................................................................................................54
listGetItemData .......................................................................................................55
listInsertItem .........................................................................................................55
listSetItemData .......................................................................................................56
ListLoadFileName .....................................................................................................56
LoadDriverConfig .....................................................................................................57
LoadText .....................................................................................................................58
LogE .............................................................................................................................59
LogN .............................................................................................................................59
LogOff .........................................................................................................................60
LogOn ...........................................................................................................................60
LogString ...................................................................................................................60
Max ...............................................................................................................................61
Min ...............................................................................................................................61
ModifyTagField .........................................................................................................61
MovePicture ...............................................................................................................62
PageDown .....................................................................................................................63
PageUp .........................................................................................................................63
PI .................................................................................................................................63
PlayAvi .......................................................................................................................64
PlaySound ...................................................................................................................64
PlaySound2 .................................................................................................................66
Pow ...............................................................................................................................67
北京亚控科技发展有限公司
组态王命令语言函数速查手册目录 5
PowerCheckUser .........................................................................................................67
PreviewWindow ...........................................................................................................68
PrintWindow ...............................................................................................................69
pvAddNewRealPt .........................................................................................................71
pvAddNewSetPt ...........................................................................................................73
pvClear .......................................................................................................................74
pvGetValue .................................................................................................................74
pvIniPreCuve .............................................................................................................75
pvLoadData .................................................................................................................77
pvModifyPreValue .....................................................................................................79
pvMoveSlide ...............................................................................................................79
pvSaveData .................................................................................................................80
pvSetLimits ...............................................................................................................81
ReadTag .......................................................................................................................82
ReBuildDDE .................................................................................................................83
ReBuildUnConnectDDE ...............................................................................................83
RecipeDelete .............................................................................................................83
RecipeInsertRecipe .................................................................................................84
RecipeLoad .................................................................................................................84
RecipeSave .................................................................................................................85
RecipeSelectNextRecipe .........................................................................................85
RecipeSelectPreviousRecipe..................................................................................86
RecipeSelectRecipe .................................................................................................86
Report1 .......................................................................................................................87
Report2 .......................................................................................................................88
ReportPrint ...............................................................................................................89
ReportPrint2 .............................................................................................................89
ReportPrintSetup .....................................................................................................90
ReportGetCellString ...............................................................................................90
ReportGetCellValue .................................................................................................91
北京亚控科技发展有限公司
6
组态王命令语言函数速查手册目录
ReportGetColumns .....................................................................................................91
ReportGetRows ...........................................................................................................92
ReportSetRows ...........................................................................................................92
ReportSetColumns .....................................................................................................92
ReportLoad .................................................................................................................93
ReportPageSetup .......................................................................................................93
ReportSaveAs .............................................................................................................94
ReportSetCellString ...............................................................................................94
ReportSetCellString2 .............................................................................................95
ReportSetCellValue .................................................................................................96
ReportSetCellValue2 ...............................................................................................97
ReportSetHistData ...................................................................................................98
ReportSetTime ...........................................................................................................99
ReportSetTimeEx .......................................................................................................99
ReportSetHistData2 ...............................................................................................100
ReportSetHistData3 ...............................................................................................100
ReportWebDownload .................................................................................................101
SampleVar .................................................................................................................102
SampleVarEnd ...........................................................................................................103
SaveText ...................................................................................................................103
SendKeys ...................................................................................................................104
SetAlarmWinDis .......................................................................................................106
SetNetNodeValid .....................................................................................................106
SetPrintAlarm ............................................................................................................107
SetRealDBForBool ....................................................................................................107
SetRealDBForFloat .................................................................................................108
SetRealDBForInt .....................................................................................................108
SetRealDBForString ..................................................................................................108
SetTrendPara ...........................................................................................................109
Sgn .............................................................................................................................109
北京亚控科技发展有限公司
组态王命令语言函数速查手册目录 7
ShowNavigateWindow ..............................................................................................110
ShowPicture .............................................................................................................110
Sin .............................................................................................................................111
SQLAppendStatement ...............................................................................................111
SQLClearStatement .................................................................................................111
SQLClearTable .........................................................................................................112
SQLCommit .................................................................................................................112
SQLConnect ...............................................................................................................113
SQLCreateTable .......................................................................................................114
SQLDelete .................................................................................................................114
SQLDisconnect .........................................................................................................115
SQLDropTable ...........................................................................................................115
SQLEndSelect ...........................................................................................................116
SQLErrorMsg .............................................................................................................116
SQLExecute ...............................................................................................................117
SQLFirst ...................................................................................................................117
SQLGetRecord ...........................................................................................................118
SQLInsert .................................................................................................................118
SQLInsertEnd ...........................................................................................................119
SQLInsertExecute ...................................................................................................119
SQLInsertPrepare ...................................................................................................120
SQLLast .....................................................................................................................120
SQLLoadStatement ...................................................................................................121
SQLNext .....................................................................................................................121
SQLNumRows ...............................................................................................................122
SQLPrepareStatement .............................................................................................122
SQLPrev .....................................................................................................................122
SQLRollback .............................................................................................................123
SQLSelect .................................................................................................................123
SQLSelectTop() .......................................................................................................125
北京亚控科技发展有限公司
8
组态王命令语言函数速查手册目录
SQLSetParamChar .....................................................................................................126
SQLSetParamDate .....................................................................................................126
SQLSetParamDateTime .............................................................................................127
SQLSetParamDecimal ...............................................................................................127
SQLSetParamTime .....................................................................................................128
SQLSetParamFloat ...................................................................................................128
SQLSetParamInt .......................................................................................................129
SQLSetParamNull .....................................................................................................129
SQLSetStatement .....................................................................................................130
SQLTransact .............................................................................................................131
SQLUpdate .................................................................................................................131
SQLUpdateCurrent ...................................................................................................132
Sqrt ...........................................................................................................................132
StartApp ...................................................................................................................132
StopApp .....................................................................................................................133
StrASCII ...................................................................................................................133
StrChar .....................................................................................................................134
StrFromInt ...............................................................................................................134
StrFromReal .............................................................................................................135
StrFromTime .............................................................................................................135
StrInStr ...................................................................................................................136
StrLeft .....................................................................................................................137
StrLen .......................................................................................................................137
StrLower ...................................................................................................................138
StrMid .......................................................................................................................138
StrReplace ...............................................................................................................139
StrRight ...................................................................................................................140
StrSpace ...................................................................................................................140
StrToInt ...................................................................................................................141
StrToReal .................................................................................................................141
北京亚控科技发展有限公司