1、shownbelow:-ResolutionDeclareFunctionTurnOnSqlTaskLibmissionvba(ByValcmd$)AsLongTurnsontask.cmd$parameteriscommandlinepassedtaskReturn0success.Currentloggedinusermusthavesecurityrightsturnon/offSAC.Ifnon-zeroerrorcodereturned,youcanuseerr2strutilityfixbasedirectorytranslatestringTurnOffSqlTask()offm
2、ustturnreturned,err2strPauseAlarmODBCPausesAlarmODBCdoesNOTrights.ThiswillexecuteregardlessAllowOperatorPauseAlarmLoggingSettingfoundiFIXServiceConfiguratorSystemConfigurationUtility.PrivateContinueAlarmODBCResumesAllthesefunctionsblockuntilrequestcompleted.2:iFIX如何使用vba开启和停止基于时间和事件的调度?Description:s
3、olutionshowshowtime-basedevent-basedschedulerunningbackground.Resolution:STOP/STARTEVENTBASEDSCHEDULEToStart:SubCommandButton1_Click()DimVar1ObjectVar2Set=GetObject(,FixBackGroundServer.Application)Var1.System.FindObject(SchedTest1.FIXEvent1Var2.StartEventEndSubStop:Var2.StopEventTIMEStopTimerObject
4、:GetObject(,Sched1.Timer1Var2.TimerEnabledFalseStartCommandButton2_Click()sched.Timer1TrueVar2.StartTimer3:iFIX如何使用vba进行网络打印机打印?followinganexampleprintingExcelDocumentNetworkPrinterprinterotherthanthedefaultmachine.objXLmyDocCreateObject(Excel.ApplicationobjXL.Workbooks.Open(C:testfile.xls,True)myDo
5、c.Printoutcopies:=1,preview:=False,ActivePrinter:=SERVERPRINTERprinttofile:collate:=TruemyDoc.CloseNothingNothingReferencesscriptbackgroundschedulewithFixBackgroundServerconfiguredrunService,Fixserviceunderaccountthathasprintersdefined.SeeKnowledgeBaseArticlei013417moreinformationconfiguration.Print
6、outdocumenttypes(Word,PowerPoint,etc),howeverdifferentsyntaxrequired,referexamples.4:iFIX报警状态代码以及意义?FIXdisplaysalarmstatuscodeseachSummaryLink.Whatmeaningcodes?Priority-Type1COMMCommunicationError(BADvalue)OCDOpencircuitdetectedOVEROverRangeUNDERUnderERRORAnyStatisticalDataalarm2CFNChangefromnormal(
7、digitalblocksonly)COSStateHIHIBlockstateLOLO3RATEValueexceedsrate-of-changesettingHILO4DEVDeviationAlarm5OK5:如何禁止和使能7X驱动标签点(对驱动自动禁止特别有用)?opcDriverNewOPCDrv.OPCServerobjDriverstrDRVAcronymStringstrProgIdVariablesGetChannellngNumChannelslngChanHandlesstrChanNamesGetDeviceslngNumDeviceslngDeviceHandles
8、strDeviceNamesGetDataBlockslngNumDataBlockslngDataBlockHandlesstrDataBlockNamesiIntegerjlngErrorsmyvarreadEnableInputBox(Pleaseenterdriversthreeletteracronym?&vbCrLf(ForExample:EnterABRDriver)Driverusing?Intellution.drvMatrikon.OPC.Simulation.1CreateObject(strProgId)opcDriver.GetChannels(lngChanHand
9、les,strChanNames)BuildSetPropertyDatafunction.lngHandlelngDataBlockHandles(0)varPropertiesEnabledvarProperyData1opcDriver.GetPropertyDatalngChanHandles(1),varProperties,对服器1置真readEnable0ThenlngErrorsopcDriver.SetPropertyData(lngChanHandles(1),varProperyData)IfopcDriver.GetDevices(lngChanHandles(1),l
10、ngDeviceHandles,strDeviceNames)opcDriver.GetDataBlocks(lngDeviceHandles(0),lngDataBlockHandles,strDataBlockNames)读工作组lngDeviceHandles(0),opcDriver.SetPropertyData(lngDeviceHandles(0),处理工作块lngDataBlockHandles(0),For1opcDriver.SetPropertyData(lngDataBlockHandles(i),Nexti6:iFIX_如何使用脚本实现驱动(7x)的启动和停止?exp
11、lains7.xdriverthroughcode.usesdriver.implementanotherdriver,changeacronymswitchreferencedriver.workdrivers.wantnewpictureneedsetIntellutionABRDrvOPCServer7.20Library.reference,steps:1)OnToolsmenuVBEditorchooseReferences.2)SelectLibrarylist.AddtwobuttonsyournamethemcmdStart_ClickcmdStop_Click.Thenpas
12、teintopicture:cmdStart_Click()ABRDriverABRDrv.ABRServerABRDriver.StopcmdStop_Click()ABRDriver.Start7:iFIX_如何使用脚本实现驱动(6x)的启动和停止?articlesdescribes(startstop)6.xdriversVBA,CommandScript,DOSratherControl.attachedapplicationDCTRL61.EXEenablesdothis.Belowusageinstructions.Usage:DCTRLdelaysleepwhereis:-driverpollingSTOP_EXITpollingexitSLEEPsleeptime(period)STATUScurrentvaluesDELAYWaitNumbermillisecondsbeforeexecuting(1000second).dctrl61.exelocatedFIX32Dynamicsdirectory.ALLCAPS.Exampleprompt:dctrl60MBRVBA:Shellc:fix32dctrl60MBRscript:Runtask8:iFIX_脚本进行调度的启动和关闭方法?Fals
copyright@ 2008-2023 冰点文库 网站版权所有
经营许可证编号:鄂ICP备19020893号-2