Switch to desktop version  

Ewon TechForum
Providing technical solutions to technical requests


  API syncdata
Posted by: erniek - 9 hours ago - Replies (1)

Hi , I am using the Talk2M DataMailbox Viewer tool to test the syncdata data API function call 
I receive a transaction ID and use this ID on the next call, however the history points appear to be the same for each tag 
I was expecting to only see updated data on the next call.
Am I missing something ?

Regards
Ernie

Continue reading..

  CFGSAVE can be used without risk to memory?
Posted by: mickaa - 12-02-2025, 10:09 AM - Replies (1)

Hello,

I have about ten tags that I update about every second, I would like to save them in the memory so that they are not lost when the system starts. Is there a risk for the Ewon's memory at this rate?

Continue reading..

  RequestHTTPX failure [ssl or dns failure]
Posted by: djonedd - 05-02-2025, 10:46 AM - Replies (2)

Hi Everyone,

I have ewon to send data JSON format to local server
But i always got error dns: picture1
   
we use local server API, and use RequestHTTPX for send data
i configure the WAN with static and complete it with ip dns, it using local dns
ewon can't access internet for global [like google or else] but can connect to the local factory network

Here is what i already try to analyze the problem:
1. i try ping to server from my laptop and i got the replay
2. i try ping to ewon from my laptop and i got the replay [because i allow the security wan of ewon to enable icmp]
3. i try to send data use postman, it have error certificate, but if i disable ssl verification at postman it working fine and got response 200 [picture2]
   
4. i consult with it guys and ask the ssl certificate, i got it and try to insert additional certificate with name cert.pem to folder /usr/certificates use ftp [the reference: hms] and setting the HttpCertDir [picture 3]
   
5. i reboot the device and try RequestHTTPX it still no response (still got error dns)
6. i try to send data to another API Local Server using ewon, but the address use http, it working fine and got response from server (even it 422)
7. i try to send data to the server again (the real one) using ewon but the address http, it still not response
can someone help me to found out how to fix it?
here is the code:

Code:
Rem --- eWON start section: Init Section
eWON_init_section:
Rem --- eWON user (start)
TSET 1, 5
ONTIMER 1, "GOTO updateDataApi"
//ONCHANGE "M1004", "GOTO updateDataApi"
END

updateDataApi:
histAPI@=0
POSTDATA1$ = '{Test Connection}'
HEADER1$ = "Content-Type=application/json&Accept=application/json"
URL1$ = "http://serverAddress.co.id//api/v1/ccm" //the address like that but it not the real one
PRINT "Update API"
@HttpRequest$(URL1$,HEADER1$,POSTDATA1$)
END

FUNCTION HttpRequest$($URL$,$HEADER$,$POSTDATA$)
histAPI@=1
REQUESTHTTPX $URL$, "POST", $HEADER$, $POSTDATA$
$k% = GETSYS Prg,"ACTIONID"
$CHECKSCHEDULEACTION2:
SETSYS Prg, "ACTIONID", $k%
$m% = GETSYS Prg,"ACTIONSTAT"
IF $m% = -1 THEN GOTO $CHECKSCHEDULEACTION2
IF $m% = 0 THEN
PRINT TIME$ + " REQUEST OK on ActionID " + STR$ $k%
$StatusCode% = VAL RESPONSEHTTPX "STATUSCODE"
PRINT "Respone Code: ";$StatusCode%
IF $StatusCode% = 200 THEN
$HttpRequest$ = RESPONSEHTTPX "RESPONSE-BODY"
//PRINT "Body: ";$HttpRequest$
histAPI@=2
ELSE
$HttpRequest$ = "NOK1"
PRINT $HttpRequest$
histAPI@=3
ENDIF
ELSE
PRINT TIME$ + " REQUEST FAILED on ActionID " + STR$ $k%
$HttpRequest$ = "NOK2"
PRINT $HttpRequest$
ENDIF
ENDFN
Rem --- eWON user (end)
End
Rem --- eWON end section: Init Section
thanks,

Continue reading..

  JVM Errors MQTT I/O Server
Posted by: berntjb - 04-02-2025, 11:57 PM - Replies (1)

Hello

I've written an IO-Server that publishes tags over MQTT. I've had this installed on my Flexy 205 for 3 years now without any problems.
Today I installed it on a Flexy 201 with newer fw 19 vs 16, and I'm getting some weird errors.

Firstly I wasn't able to write new config using the textbox field in the IO-Server list. It just gave me an error saying "Board does not exists".
Then I added the config directly through the Setup - System - Storage - Edit System cfg and rebooted the unit.
It then picked up the config and connected to the MQTT broker and keeps pushing values... until it doesn't. It disconnects without any errors.

But I keep seeing this in the logs, not sure if it's related:

 
Time                           Source        Event                                                                                                                      Clock  EventID
04/02/2025 22:00:55    JVM            ABORT Wonka: tryPutFifo 655: Could not push [B@0x0070e1e8 onto fifo 0x0044e8f8!    210793  28
04/02/2025 22:00:55    JVM                                                                                                                                          210793  27
04/02/2025 22:00:55    JVM            Failed to allocate 4096 bytes                                                                                      210792  26


The IO-server.jar was build 3 years ago. 

Here are the docs I've made for the installation:
https://docs.clarify.io/developers/hardware/ewon-flexy

Looking forward to any help ?

Continue reading..

  Ewon Device Alarm Notification in Telegram Group
Posted by: Ellantra - 30-01-2025, 10:58 AM - No Replies

Dear Team,
I have found some Threads in this Forum related to Ewon Device and Telegram.
In which they provided script for How to Send Message to Telegram Group and To Read from it.
My requirement is to send Alarm notification in Telegram Group chat and the script should only work when any alarm triggered and only send single message to group Chat.


Help me to find solution on it.

Thank You.

Continue reading..

  NAT and TF on WAN - Strange Behaviour
Posted by: tolis - 30-01-2025, 10:50 AM - No Replies

Hi all,

we noticed the following behaviour :

We have a Flexy EWON installed on a plant and that allows remote access to local devices on the network. On site there is a Siemens PLC (s7-1500), a Siemens HMI PC with WinCC Runtime Advanced (OS is Windows 10) and several other devices .

Initially we have set the EWON as Plug and Route NAT on LAN (Natltf=3). The client then decide to allow Internet access via the Siemens HMI PC and we have achieved that via NAT and TF on WAN Routing option (Natltf=2). Since we have done that , we can still monitor and program the PLC remotely, we can still access the local devices and we can still access the HMI via VNC. However, we are unable to download any modifications to the HMI PC. To get around this we have to keep switching the routing back to Natltf=3 , do the download and then switch back to Natltf=2.

In a nutshell:

if Natltf=3 : PLC can be accessed and downloaded, various LAN network devices can be accesses, HMI can accesses for monitoring via VNC, HMI program can be downloaded.
If Natltf=2 :  PLC can be accessed and downloaded, various LAN network devices can be accesses, HMI can accesses for monitoring via VNC, HMI program cannot be downloaded.

The PLC, the HMI PC and the various local devices are using as gateway the IP address of the EWON. Also, the above was checked with the same outcome when the Firewalls were disabled on HMI PC.

Has anyone came across the above behaviour? Are we missing something.

Any clues or assistance will be much appreciated.

Thank you.

Continue reading..

  Flexy 205 - Publish Modbus TCP 6 digits
Posted by: solister - 29-01-2025, 02:37 PM - Replies (1)

Hi,

I'm opening a topic, I think the question may be useful to others because the subject is poorly documented.

To share values with a Schneider PLC, I want to publish my flexy tag in modbus tcp, with the 6-digit standard (addresses: 400001-4XX XXX).

For reading, the 6-digit standard is well supported (by adding “+” in front of the register number).

For publishing, however, the “+” is not taken into account, and it's impossible to set the address to 400001.

Is there an alternative?

Continue reading..

  Reading a string from a Weintek HMI
Posted by: Liberty - 28-01-2025, 05:06 PM - Replies (1)

Hello everyone, I am using an Allen Bradley Micro 850 PLC, an Ewon Flexy 205 and a Weintek HMI to control a process. How can I set Ewon notification email addresses from the HMI ? From what I am seeing, Modbus does not support string data type in Ewon and I am also not seeing the string data type in Weintek. Your help will be highly appreciated.

Continue reading..

  Ewon Flexy 205 d'ont password reset
Posted by: mickaa - 28-01-2025, 02:45 PM - Replies (2)

Hello,

I have a new ewon flexy that I would like to reset, after a few tries (I don't remember the access password).

I have launched the level 1 and 2 reset procedure several times. 
The IP address has been reset to default, but it always gives me an unauthorized password error in eBuddy, when I launch a firmware update procedure with the default passwords.
I am also blocked at the Http login level, it does not want the login/password: adm

I am using firmware version 14.9s3.

I have already performed the system reset several times on Flexy 201 and 205 without encountering this problem.

Do you have another manipulation to suggest to me?

Continue reading..

  Alarm Custum Mail
Posted by: mickaa - 22-01-2025, 04:05 PM - Replies (3)

Hello, 
I use email customization to send emails when an alarm is active. https://developer.ewon.biz/content/custo...ail-or-sms

I have configured "AlTimeDB" to 60 seconds and AlAutoAck=1

My tag value is updated every 2 seconds.

I receive emails every 2 seconds when my tag is updated with values in the alarm range.

Is this normal?

Continue reading..

Forum Statistics
Members: 5.862,   Forum threads: 2.421,   Forum posts: 8.820,   Latest member: mforster23,   Full Statistics

Latest Threads
API syncdata
Last post published by simon
4 hours ago 1

CFGSAVE can be used without risk to memory?
Last post published by simon
11 hours ago 1

RequestHTTPX failure [ssl or dns failure]
Last post published by djonedd
11-02-2025, 04:53 AM 2

TLS/SSL support for Flexy SMTP client
Last post published by simon
10-02-2025, 10:53 AM 6

JVM Errors MQTT I/O Server
Last post published by simon
07-02-2025, 11:38 AM 1

Ewon Device Alarm Notification in Telegram Group
Last post published by Ellantra
30-01-2025, 10:58 AM 0

NAT and TF on WAN - Strange Behaviour
Last post published by tolis
30-01-2025, 10:50 AM 0

Ewon Flexy and Telegram
Last post published by Ellantra
30-01-2025, 10:49 AM 12

Flexy 205 - Publish Modbus TCP 6 digits
Last post published by solister
29-01-2025, 05:26 PM 1

Reading a string from a Weintek HMI
Last post published by ziozetti
29-01-2025, 10:05 AM 1


Search Forums

Advanced Search



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