Switch to desktop version  

Ewon TechForum
Providing technical solutions to technical requests



Ewon Flexy easy I/O Setup as on Cosy
LordSerious
Junior Member
#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
Reply

ziozetti
Senior Member
#2
Here you are: https://hmsnetworks.blob.core.windows.ne...fddc56d7_5
Reply

LordSerious
Junior Member
#3
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
Reply

ziozetti
Senior Member
#4
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
Reply

LordSerious
Junior Member
#5
 
(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
End
Tried that still issue ,
see below pictures


Attached Files Thumbnail(s)
       
Reply

ziozetti
Senior Member
#6
Tag name of D1 should be D1, you named it VPN_Switch.
Reply




Possibly Related Threads…
  Erasing files on eWON Started by Marcus
6 Replies - 11.916 Views
30-04-2025, 01:30 PM
Last Post: mickaa
28-03-2025, 12:33 AM
Last Post: simon
17-03-2025, 07:14 PM
Last Post: Houns
  Ewon as Modbus RTU slave Started by lengomin
1 Replies - 301 Views
21-02-2025, 04:17 PM
Last Post: simon
30-01-2025, 10:58 AM
Last Post: Ellantra
  Ewon Flexy and Telegram Started by spessi
12 Replies - 5.596 Views
30-01-2025, 10:49 AM
Last Post: Ellantra
04-06-2024, 05:22 PM
Last Post: dmned
17-04-2024, 04:43 AM
Last Post: Vince_IH
  OpenVPN Flexy 205 Started by insyncs
5 Replies - 4.400 Views
26-03-2024, 12:43 PM
Last Post: insyncs
  eWON and ThingSpeak Started by BM_Atsafack
3 Replies - 1.257 Views
25-03-2024, 10:10 AM
Last Post: simon



Users browsing this thread:
1 Guest(s)



Theme © Ewon 2019 - Forum software by © MyBB - Cookie policy