Switch to desktop version  

Ewon TechForum
Providing technical solutions to technical requests


  Maximum String Memory Percentage
Posted by: mickaa - 2 minutes ago - No Replies

Hello,

What maximum value can be allocated to the string memory percentage without risking memory saturation? (Default: 10%)

   

Continue reading..

  Refuse to connect at the Web Interface
Posted by: Johnn8978 - 25-09-2024, 08:34 PM - Replies (3)

I have this connection problem that suddenly appears while working with the device.

When we went back to the web interface, we were unable to reconnect.
But we still have the ewon online on Ecatcher and able to link with the device.
We can access the ftp server but not able to connect to the web interface anymore.

   

Any hints as to why this is happening.

Note that we do not have access to the physical device.

Tank you,

Continue reading..

  Error setting up Java IOServer
Posted by: Manuele - 24-09-2024, 08:04 AM - Replies (2)

Hello,
I am trying to get multiple IOServers up and running on an eWon Flexy, however I am running into some difficulties:

I am setting up the servers as follows

Code:
List servers = new ArrayList();

// For testing purposes, this only has 1 server statically generated
servers.add(new MyIOServer());

Iterator it = servers.iterator();
while(it.hasNext()) {
    IOServerImpl server = it.next();
    Thread serverThread = new Thread(server);
    try {
        server.registerServer();
        serverThread.start();
    } catch (Exception e) {
        System.out.println(e.toString());
    }
}


And I am calling the "runEventManager" function after I finish setting up the servers

Code:
DefaultEventHandler.runEventManager()

1) If I try to send the JAR file to the eWon via FTP (along with the "jvmrun" file), the server does not appear on the IO Server list. If on the other hand I setup the "build.xml" to automatically push the JAR file when building, then the server shows up on the list.
2) If I try to edit the configuration of the new IO Server, I get the error "ERROR: Board does not exist".
3) If I reboot the device, the server is deleted from the list, which means that I have to re-build the solution to have the server show up on the page again.

What's weird is that from the Realtime Logs, everything seems to be working as expected. In the Event Logs I sometimes see the error "jio-IO Server is not ready". Did I make a mistake setting up the server?

Thanks

Continue reading..

  Quote too long error trying to read from a csv file
Posted by: Johnn8978 - 23-09-2024, 03:11 PM - Replies (3)

Hey,

I am trying to understand a error code who's now keep appearing every time the function is running.

This function is used to return a message related to an error code.
error code, semi column, message : 123;Message

Code:
FUNCTION GetStatus_CSV($fileString$,$integerValue%,@$statusString$)
// $fileString$: The name of the CSV file to read.
// $integerValue%: The fault code to search for.
// @$statusString$: A string that will hold the result (status) found in the file.


This line of code is the one to give "Quote too long(23)"
$Aint% = VAL $Astring$

Part of the code:

Code:
$ReadNextCode:
IF EOF 1 THEN GOTO $ReadDone
$Achar$ = GET 1,1
IF(($Achar$<>CHR$ 10) AND ($Achar$<>CHR$ 13) AND ($Achar$<>CHR$ 44) AND ($Achar$<>CHR$ 59)) THEN
$Astring$ = $Astring$ + $Achar$
GOTO $ReadNextCode
ELSE
IF($Astring$ = "") THEN GOTO $ReadNextCode
$Aint% = VAL $Astring$
$Astring$ = ""

It worked fine at first, but not anymore...and I can't figure out what's causing this situation.

I have a limited knowledge of Basic, so any help would be appreciated.

Thank you,

Continue reading..

  OPC UA can't find S73&400 Ewon Tag
Posted by: Xamilint - 13-09-2024, 01:56 PM - Replies (1)

Hello everyone,

I have trouble connecting the OPC UA Server/Value with a S73&400 value on an Ewon Flexy 201. 
I have connected a Value on the LAN port with a S73&400 controller and get values from it. I want to transfer that value to an OPCUA Value, which then sends the value through VPN to another Server. I set the settings for the OPCUA Server and enabled everything, but regardless what I do there is the red mark on the OPCUA Value. 

Does anyone has any idea what the problem could be? Right now I can't reset the ewon.

Thanks!

Continue reading..

  eGrabit no connect eWon with OpenVPN
Posted by: SIESATI - 10-09-2024, 05:42 PM - No Replies

Hello everyone!

I'm having trouble connecting to an eWon through OpenVPN with eGrabit, I know there are other forums that talk about similar topics but I haven't found one that fits what I need, I appreciate any help you can give me.


I have a pfsense server on the LAN 192.168.0.1/24 where I created an OpenVPN server, the OpenVPN server works well, connect the eWon to the VPN and it connects without problems, it is assigned the IP (VPN) 10.10.10.2 and a Pinging IP 10.10.10.2 received a response.

The problem comes when I try to access the eWon with eGrabit, fill out the fields requested:

name: ewon1
Hostname/IP: x.x.x.x (MY public IP)
--------------------------------------------------------

eWon LAN:

IP: 192.168.1.70/24
--------------------------------------------------------

Advanced

UDP port: 1196 (configure this port because 1194 is in use by another VPN)
eWon VPN IP: 10.10.10.2


And it returns "Failed to connect to ewon1 (time out)"


From eGrabit I receive this log (x.x.x.x = my public IP):

10/9/2024 09:16:20  Static Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
10/9/2024 09:16:20  Static Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
10/9/2024 09:16:20  Static Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
10/9/2024 09:16:20  Static Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
10/9/2024 09:16:20  LZO compression initialized
10/9/2024 09:16:20  MANAGEMENT: >STATE:1725981380,RESOLVE,,,
10/9/2024 09:16:20  MANAGEMENT: >STATE:1725981380,ASSIGN_IP,,10.10.10.1,
10/9/2024 09:16:20  TAP-WIN32 device [Conexión de área local] opened: \\.\Global\{72541CB5-99E9-5645VB-VB454G-VC47557}.tap
10/9/2024 09:16:20  TAP-Win32 Driver Version 9.21
10/9/2024 09:16:20  TAP-Win32 MTU=1500
10/9/2024 09:16:20  Notified TAP-Win32 driver to set a DHCP IP/netmask of 10.10.10.1/255.255.255.252 on interface {57DFGG78-XC55-5645VB-VB454G-VC47557} [DHCP-serv: 10.10.10.2, lease-time: 31536000]
10/9/2024 09:16:20  Successful ARP Flush on interface [7] {72541CB5-99E9-5645VB-VB454G-VC47557}
10/9/2024 09:16:20  Data Channel MTU parms [ L:1545 D:1450 EF:45 EB:135 ET:0 EL:0 AF:3/1 ]
10/9/2024 09:16:20  Local Options String: 'V4,dev-type tun,link-mtu 1545,tun-mtu 1500,proto UDPv4,ifconfig 10.10.10.2 10.10.10.1,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,secret'
10/9/2024 09:16:20  Expected Remote Options String: 'V4,dev-type tun,link-mtu 1545,tun-mtu 1500,proto UDPv4,ifconfig 10.10.10.1 10.10.10.2,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,secret'
10/9/2024 09:16:20  Local Options hash (VER=V4): '45dfg'
10/9/2024 09:16:20  Expected Remote Options hash (VER=V4): '45dfg'
10/9/2024 09:16:20  Socket Buffers: R=[65536->65536] S=[65536->65536]
10/9/2024 09:16:20  UDPv4 link local: [undef]
10/9/2024 09:16:20  UDPv4 link remote: x.x.x.x:1196
10/9/2024 09:16:20  UDPv4 WRITE [60] to x.x.x.x:1196:  DATA len=60
10/9/2024 09:16:20  UDPv4 READ [-1] from [undef]: DATA UNDEF len=-1
10/9/2024 09:16:20  TUN READ [64]
10/9/2024 09:16:20  UDPv4 WRITE [108] to x.x.x.x:1196:  DATA len=108
10/9/2024 09:16:20  TUN READ [48]
10/9/2024 09:16:20  UDPv4 WRITE [92] to x.x.x.x:1196:  DATA len=92
10/9/2024 09:16:20  TUN READ [76]
10/9/2024 09:16:20  UDPv4 WRITE [116] to x.x.x.x:1196:  DATA len=116
10/9/2024 09:16:20  TUN READ [143]
10/9/2024 09:16:20  UDPv4 WRITE [180] to x.x.x.x:1196:  DATA len=180
10/9/2024 09:16:20  TUN READ [76]
10/9/2024 09:16:20  UDPv4 WRITE [116] to x.x.x.x:1196:  DATA len=116
10/9/2024 09:16:20  TUN READ [81]
10/9/2024 09:16:20  UDPv4 WRITE [124] to x.x.x.x:1196:  DATA len=124
10/9/2024 09:16:20  TUN READ [76]
10/9/2024 09:16:20  UDPv4 WRITE [116] to x.x.x.x:1196:  DATA len=116
10/9/2024 09:16:20  TUN READ [76]
10/9/2024 09:16:20  UDPv4 WRITE [116] to x.x.x.x:1196:  DATA len=116
10/9/2024 09:16:20  TUN READ [76]
10/9/2024 09:16:20  UDPv4 WRITE [116] to x.x.x.x:1196:  DATA len=116
10/9/2024 09:16:20  NOTE: --mute triggered...
10/9/2024 09:17:19  125 variation(s) on previous 20 message(s) suppressed by --mute
10/9/2024 09:17:19  TCP/UDP: Closing socket
10/9/2024 09:17:19  Closing TUN/TAP interface
10/9/2024 09:17:19  SIGTERM[hard,] received, process exiting
10/9/2024 09:17:19  MANAGEMENT: >STATE:1725981439,EXITING,SIGTERM,,



Does anyone know what causes this? I remain attentive in case it is necessary to provide more information. Thank you!

Continue reading..

  Move eWon from Pro to Pro
Posted by: PA-Tord - 10-09-2024, 12:55 PM - Replies (3)

Hi

As I'm sure you have heard a lot already I would also like to voice my disapproval of the new subscription fees.
I have influenced several customers to acquire eWon-equipment as there was no monthly cost.
Now I get to inform them of the opposite. Thanks for that. ?

Now on to the next "problem".
I started the free trials on all the 7 free accounts I have created for our customers.
After some testing and thinking, I planned on merging all of them into one Pro-account, and separating them into groups/pools.

For some weird reason, there is no support for importing from one Pro-account into another (even if it's a trial account).
I want to combine my accounts now, and not have to wait for the full 3-month trial to expire.
Is there at least a way to deactivate the trial account?
I have 7 accounts and 11 units I need to merge, and none of them are within reasonable driving range, so it must be done remotely. (Cosy 131, all of them).
I have tried adding a new key and using name/account/login, but both these result in me being disconnected before the unit comes back after aborting the Talk2M-connection.

So, any solutions?

Continue reading..

  Volume PPPCLIn and PPPCLOut Reset
Posted by: Oestelle - 10-09-2024, 11:18 AM - Replies (1)

Hello everybody,

I would like to reset the 2 PPPCL counters by script.
I saw that this values in the INF file are Read Only.

So, is there a solution to do this action ?

Thank you for your answers

Olivier

Continue reading..

  ONCHANGE function with String
Posted by: Jules - 09-09-2024, 08:05 PM - No Replies

Hello everyone,

I’m currently facing an issue when handling string data types in my program. I’ve created a function that prints the value of a tag when it changes. This function works correctly for other data types (integers, floats, etc.), but it encounters a problem when it comes to strings.

Here’s the behavior observed with strings:

When the tag value changes, the function prints the result twice, with about a one-second delay between the two prints. In the first case, it shows the old value, and then in the second print, the new value.

Example:
Tag PLC = TEST
Change PLC tag to TEST10
The output is as follows:
TEST
TEST10

Tag PLC = TEST10
Change PLC tag to TEST102
The output is:
TEST10
TEST102

The only case where the function runs just once is when the length of the new string is the same as the previous one.

Problem:
I don’t understand why the function prints the old value first before displaying the new one, and why this behavior doesn’t occur with other data types.

Has anyone encountered this problem before, or does anyone have an idea of what could be causing this behavior with strings?

Here is the code for the function.
st.comment is a String PLC tag (Siemens).

Code:
Rem --- eWON start section: Init Section
eWON_init_section:
Rem --- eWON user (start)
@start()

Function Start()
  ONCHANGE "st.comment", '@MQTTPublish("st.comment")'
ENDFN

Function MQTTPublish($tagName$)
  SETSYS TAG, "LOAD", $tagName$
  tagValue$ = GETSYS TAG, "TagValue"
  PRINT tagValue$
ENDFN


Thank you in advance for your help!

Continue reading..

  Visibility of buttons and check boxes
Posted by: Ken Natton - 04-09-2024, 01:17 PM - No Replies

I have found other threads on the forum about this topic but a satisfactory explanation I have not found.

Under animations for buttons and check boxes, there is no option for a visibility animation. Equally, as others have pointed out, if you try to hide them by putting something else on top of them, that appears to work in development, but in runtime – simulation or real – the buttons and check boxes promote themselves to the front.

Why can you not control the visibility of buttons and check boxes? It is very frustrating.

Continue reading..

Forum Statistics
Members: 5.633,   Forum threads: 2.379,   Forum posts: 8.689,   Latest member: synix,   Full Statistics

Latest Threads
Maximum String Memory Percentage
Last post published by mickaa
2 minutes ago 0

Refuse to connect at the Web Interface
Last post published by simon
02-10-2024, 04:58 PM 3

Quote too long error trying to read from a csv file
Last post published by simon
27-09-2024, 04:43 PM 3

Error setting up Java IOServer
Last post published by simon
27-09-2024, 04:38 PM 2

Create a Tag
Last post published by Chris_M1
25-09-2024, 12:02 PM 1

OPC UA can't find S73&400 Ewon Tag
Last post published by simon
20-09-2024, 04:52 PM 1

Ewon can't establish connection to PC Simatic WinCC Runtime Advanced
Last post published by jason_karagiorgas
20-09-2024, 03:00 PM 11

Move eWon from Pro to Pro
Last post published by simon
18-09-2024, 04:39 PM 3

Access to flexy on two extension cards
Last post published by simon
18-09-2024, 04:37 PM 5

Volume PPPCLIn and PPPCLOut Reset
Last post published by simon
17-09-2024, 11:30 AM 1


Search Forums

Advanced Search



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