Script to shutdown windows IPC

Hello,

Im looking for a way to shutdown our IPCs in the event of a power outage.
We are running Vision Edge on IPC HMIs and are going to be adding a DC/DC UPS.

I would like to monitor the status output from the AC/DC power supply feeding the DC/DC UPS from the PLC and trigger a script to shutdown the PC when this faults.
All machines run Windows OS.

Any ideas much appreciated?

I don't think Ignition can control what the OS is doing... feels like that would be rather dangerous.

FYI
Shutdown computer - Ignition - Inductive Automation Forum

Thank for the reply,
I have looked into third party software but was wondering if we could control it through Ignition instead.

Regarding that post Pturmel states Vision can do it?

Vision can run arbitrary executables on the client machine. You could use a broadcast message from the gateway (monitoring the UPS status) to run a message handler on every client, which would then run the local executable that shuts down the machine.

(I don't keep up with the tools for Windows, but on linux it would simply be the poweroff command.)

Note that this approach only works if the client machine is actually running a Vision client. If the Vision client died for any reason, it wouldn't get the broadcast message.

Thank you for the help.

I have created a shutdown batch file and call it with the system.util.execute command.
This works well.

3 Likes