win7下intouch的alarm db logger以服务启动
创始人
2022-06-17 22:40:53
0

1、在弄个intouch的项目时,升级到WIN7,发现没办法用服务来启动。而原来是在代码中控制启动服务的。也有问到别人说,那就应用启动,代码中加一条启动,当然也不是行,只是单纯的不想改代码。还是想以服务来启动

2、后来想了个办法,在设置里把启动改成服务,然后手写了一段注册表信息来启动服务,看起来也可以了,以为妥了。但连到PLC后 发现并没有得到报警信息,没搞懂为什么

3、于是只能想其它办法了

这下面是一段官方的原文,但我也没找到它提到的服务软件包的下载


Tech  Note

InTouch:  10.1

All  Tech Notes, Tech Alerts and KBCD documents and software are provided "as is"  without warranty of any kind. See the Terms of Use for more  information.

Topic#: 00xxxx
Created: April  2011

 

Running  AlarmDBLogger as Windows Service on Windows2008 and Windows7 (32  & 64-Bit)

Introduction

Currently,  InTouch’s Alarm DB Logger is not able to run as a Windows service on Windows  2008, Windows 7. This limit puts many restrictions on the design of a SCADA  system using Alarm DB Logger, in some cases, making alarm logging completely  impossible. For example, when there is no platform deployed, nor is there an  InTouch application (WindowViewer) running, starting Alarm DB Logger on Windows  2008 and Windows 7 becomes impossible without user login.

Application  Versions

  • InTouch  10.1 and later

  • Windows  2008, Windows 7 and other Windows operating systems

 

Install  aaAlarmDbLogger Service

1.      Download  “AlarmLoggerServiceSetup.zip” file from here. (No link  yet)  (这个HERE真的坑,还备注一个目前没有链接)

2.      Unzip the files, and  run AlarmLoggerService  Setup.

3.      In the setup wizard,  choose the default settings for all screens and press next until the setup  completes.

4.      If InTouch is  installed at default directory, that is, “C:\Program Files  (x86)\Wonderware\InTouch”, you are ready to start the service. If not, please go  to Windows registry by Registry Editor and create a key as below and assign the  FilePath (String) the actual path of your wwAlmLogger.exe  file.

[HKEY_LOCAL_MACHINE\SOFTWARE\ArchestrA\aaAlarmDbLoggerService]

"FilePath"="C:\\Program Files  (x86)\\Wonderware\\InTouch\\wwalmlogger.exe"


image

Start/Stop  aaAlarmDbLogger Service

 

To Star AlarmDBLogger  Service

1-      Go to the Start menu >> All Programs  >>Wonderware>>InTouch>> Alarm Logger Service>> Start  Service.

2-      The command prompt should appear.

3-      Make sure the “service was started successfully” message  appears.

4-      Press any key to finish the command.

 

 

image

image


 


To Stop AlarmDBLogger  Service

1-      Go to Start menu >> All Programs  >>Wonderware>>InTouch>> Alarm Logger Service>> Stop  Service.

2-      The command prompt should appear.

3-      Make sure the “service was stopped successfully” message  appears.

4-      Press any key to finish the command.

 

image

image

 

以上就是原文,在百度还有其它文库里也有看到相应的文档,只是没有图片,今天我补上

难道真的没有办法了吗?也不至于


我找到了一个别人的系统,装的intouch2012,里面就有装的这个服务,于是搬过来,然后把它的服务名称直接改成了我原来代码中的服务名称

image

现在通过控制这个服务就可以实现以WINDOWS服务来启动alarm db logger了 


另外,有这个服务设置里还是要设置以应用来启动,我的代码applicationCONFIG里有一段初始化这个,开始没注意,一启动就变成服务。找半天才找到。烦的不行

{ --- CONFIGURAZIONE ALARM LOGGER ------------------------------------------------------------------------------------------------------------------------------------------ }

DBRunAs = "Normal";

pdAlarmDBLoggerInit (DBSQLName,DBAlarmName, DBMasterUser, DBMasterPassword, DBLoggingMode, DBRunAs , 0, 1000 );

后来把上面的SERVICE改成Normal就好了


相关内容

热门资讯

intouch中自定义Acti... 正常情况,我们都是通过Maker的这个界面来添加ActiveX控件如图然后出现的画面,如下。上面是已...
win7下intouch的al... 1、在弄个intouch的项目时,升级到WIN7,发现没办法用服务来启动。而原来是在代码中控制启动服...
GEA控件更新记录 2022.10.10问题:在实时报警界面,报警消除后颜色没有及时变色处理:开始以为是自动刷新时间的问...
intouch执行后数据库没有... 1、现象,数据库没有成功附加打开数据库管理工具,没有显示工程文件对应的数据库,对应工程肯定是提示数据...
GEA控件代码修改记录 22.09.28问题:说SmartSensor曲线页面,如果有一块主板没通讯上,要卡很久其它按钮才可...
intouch从XP升级到WI... 网上查到的,很多是说在代码里写一段启动wwalmlogger.exe也不是不行。也可以用隐藏方式启动...
intouch系统装完后的处理 1、关闭登陆时输入密码功能,这对于工控机来说比较友好【开始】【运行】输入control userpa...
无菌水系统的修改 230619:1、06.02.00切换中文显示时,操作记录不显示。因为把语言文件改了后,数据库查询不...