Page 1 of 1

Change Alarm server mode by script

Posted: Tue Jan 29, 2019 1:18 am
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.

Re: Change Alarm server mode by script

Posted: Wed Feb 05, 2020 4:38 pm
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 7653 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.