PAC Display Data Log Trigger

You could have the PAC Controller monitor the computer and only set the variable if the computer goes down/comes back up…
The controller can ping the IP address of the computer. Not fool proof, but might be simple enough to do the job for you.

For a more complex method of checking if the HMI PC is up and running, look at this thread here;