Change Alarm server mode by script

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
kim
Posts: 15
Joined: Fri Feb 03, 2012 11:38 am

Change Alarm server mode by script

Post by kim »

I have a project with several terminals, all are the same X2 Pro 10 (its a serial produced machine). For handling alarms we use Alarm server/client function, it works very well. We would like to have exact same project to load in each terminal (it would make life easier 8-) ) and just by parameter tell if this terminal is the Server or Client X (1-9).

Today we must change Server mode = Both (server) or Disabled (clients) before downloading. Anybody know if possible (and how) to change this by script ? Rebooting after change is no problem.

The setting is done only a few times in machine life time.
Other suggestions how to solve this is also welcome :roll:


Thank you.

User avatar
Russ C.
Posts: 213
Joined: Thu Nov 16, 2017 3:32 pm
Contact:

Re: Change Alarm server mode by script

Post by Russ C. »

Have you already tried setting this setting to a tag?
2020-02-05 15_35_14-Properties.png
2020-02-05 15_35_14-Properties.png (22.8 KiB) Viewed 3883 times

If that doesn't work you could try using this line in scripting:

Code: Select all

Globals.AlarmServer.ServerMode = Neo.ApplicationFramework.Interfaces.AlarmServerMode.Local;
//Disclaimer: Changing the Alarm Server settings using scripting could cause unexpected behavior.
Best regards,

Russ
(801) 708-6690
Technical Support
Contact Us

Beijer Electronics AB
http://www.beijerelectronics.us

Post Reply