ryangriggs
Lifetime Supporting Member
Hello, I am dealing with a AB PanelView 5510 device which needs to be accessible via VNC (local only, NO internet access!).
To enable the VNC server, I must physically go to the unit, enter the Settings menu, and activate the VNC server.
If the unit is rebooted or power-cycled, the VNC server is again disabled, which is a big problem if nobody is onsite to re-enable it.
The system exposes a local tag, ::Local:HMIDevice.VNCServer.AccessMode, which allows the current VNC mode to be viewed and changed. To change the mode, a string is assigned to this tag, from the following list: "off" = disable VNC, "view" = allow view-only, and "full" = allow full VNC access.
I thought it would be a simple matter to set a Process Event which evaluates every 30 seconds, to check the following condition:
, and if this condition evaluates to True, it can execute a Value Event to set the value of this tag to "full".
However, this simply doesn't work, for some unknown reason.
I added a text display on the screen to show the value of the tag. It starts with the value "off" and never changes.
I tried replacing the ExecuteWhen tag check with a simple number 1, setting the Evaluation Time to 30 seconds, with the hope that every 30 seconds it would simply set the value to "full", but even this doesn't work.
Below are screenshots of the Project Event.
Here is a link to the manual. Page 709 discusses VNC tags.
If anyone has any ideas why this isn't working, I would be very grateful.
To enable the VNC server, I must physically go to the unit, enter the Settings menu, and activate the VNC server.
If the unit is rebooted or power-cycled, the VNC server is again disabled, which is a big problem if nobody is onsite to re-enable it.
The system exposes a local tag, ::Local:HMIDevice.VNCServer.AccessMode, which allows the current VNC mode to be viewed and changed. To change the mode, a string is assigned to this tag, from the following list: "off" = disable VNC, "view" = allow view-only, and "full" = allow full VNC access.
I thought it would be a simple matter to set a Process Event which evaluates every 30 seconds, to check the following condition:
Code:
::Local:HMIDevice.VNCServer.AccessMode != "full"
However, this simply doesn't work, for some unknown reason.
I added a text display on the screen to show the value of the tag. It starts with the value "off" and never changes.
I tried replacing the ExecuteWhen tag check with a simple number 1, setting the Evaluation Time to 30 seconds, with the hope that every 30 seconds it would simply set the value to "full", but even this doesn't work.
Below are screenshots of the Project Event.
Here is a link to the manual. Page 709 discusses VNC tags.
If anyone has any ideas why this isn't working, I would be very grateful.