Switch to desktop version  
Activating an output when remote access in progress - Printable Version

+- Ewon Technical Forum (https://techforum.ewon.biz)
+-- Forum: Development (https://techforum.ewon.biz/forum-50.html)
+--- Forum: BASIC Script (https://techforum.ewon.biz/forum-52.html)
+--- Thread: Activating an output when remote access in progress (/thread-958.html)



Activating an output when remote access in progress - saadzahabi_bowman - 25-06-2019

Hello All,

Has anyone tried to activate an output when remote access is in progress? 

I want to notify the operator on site that a remote engineer is connected to the ewon on site.

Kind regards,
Saad


RE: Activating an output when remote access in progress - Ludo - 25-06-2019

Hi Saad,

You can set up an Ewon tag for this.
As you set up a new tag, put it the server name as Ewon and the topic as SYS.


  talk2m-connected-user.png (Size: 31,08 KB / Downloads: 64)

The address is T2MConnectedUsers.
The value shows you how many users are connected to the Ewon through Talk2M (eCatcher or M2Web).

In Basic script, you can then act to display/show/... based on the value of this tag.


RE: Activating an output when remote access in progress - saadzahabi_bowman - 26-06-2019

Hi Ludo,

Thanks a lot, that works, I used in the script onchange command to monitor if the number of Talk2m user changes, then if that happens, it goes to IF loop.

Thanks for your prompt reply.

Kind regards,
Saad Zahabi


RE: Activating an output when remote access in progress - simon - 31-07-2020

FYI, an example of script to set the Digital Output of the Flexy when somebody is connected to the Machine through Talk2M :

ONCHANGE "Talk2NbOfUsers", "IF Talk2NbOfUsers@ > 0 THEN DO1@ = 1 ELSE DO1@ = 0"