LordSerious
Joined:
Apr 2023
Posts:
3
Threads:
1
Good Day,
I have Ewon Flexy 205 starter kit for our remote project and I would like to set up easy DIGITAL I/O as key switch input to provide remote access and digital output to light that somebody is IN.
Is there any step-by-step procedure I see that this easy setup can be done on Cosy + but not on Flexy 205
ziozetti
Joined:
Oct 2017
Posts:
376
Threads:
13
LordSerious
Joined:
Apr 2023
Posts:
3
Threads:
1
02-05-2023, 10:55 AM
(This post was last modified: 02-05-2023, 11:23 AM by LordSerious .)
Thanks I will check it !
(21-04-2023, 03:44 PM) ziozetti Wrote: Here you are: https://hmsnetworks.blob.core.windows.ne...fddc56d7_5 unfortunately I'm trying to follow it up but cannot proceed when its running its blocked connection even that I close the digital input
ziozetti
Joined:
Oct 2017
Posts:
376
Threads:
13
02-05-2023, 11:27 PM
(This post was last modified: 02-05-2023, 11:28 PM by ziozetti .)
This script is working on a Flexy installed on field:
Init section
ONCHANGE "DI1", "GOTO VPN_Switch"
VPN_Switch_Section
VPN_Switch:
If DI1@=1 Then
Rem Open Internet connection
Logevent "VPN actived by DI switch", 120
Setsys COM,"load"
Setsys COM,"VPNCnxType","2"
Setsys COM,"save"
Print Time$;" Connection actived"
Else
Rem Close Internet connection
Logevent "VPN turned off by DI switch", 120
Setsys COM,"load"
Setsys COM,"VPNCnxType","0"
Setsys COM,"save"
Print Time$;" Connection closed"
Endif
End
LordSerious
Joined:
Apr 2023
Posts:
3
Threads:
1
(02-05-2023, 11:27 PM) ziozetti Wrote: This script is working on a Flexy installed on field:
Init section
ONCHANGE "DI1", "GOTO VPN_Switch"
VPN_Switch_Section
VPN_Switch:
If DI1@=1 Then
Rem Open Internet connection
Logevent "VPN actived by DI switch", 120
Setsys COM,"load"
Setsys COM,"VPNCnxType","2"
Setsys COM,"save"
Print Time$;" Connection actived"
Else
Rem Close Internet connection
Logevent "VPN turned off by DI switch", 120
Setsys COM,"load"
Setsys COM,"VPNCnxType","0"
Setsys COM,"save"
Print Time$;" Connection closed"
Endif
EndTried that still issue ,
see below pictures
Attached Files
Thumbnail(s)
ziozetti
Joined:
Oct 2017
Posts:
376
Threads:
13
Tag name of D1 should be D1 , you named it VPN_Switch .