Академический Документы
Профессиональный Документы
Культура Документы
Hello There, Guest! Login Register Forums Search Members Calendar Help
eWON Technical Forum › Programming › BASIC Script › SMS and email sent bit
eWON TechForum is meant to answer all questions concerning the development realized with or in an eWON device, in collaboration (or not) of Talk2M service,
destined to take advantage of IIOT... This targets coding (Basic, Java, HTML, ...), viewON, APIs, Flexy oriented questions.
If you need help to set up an eWON device, establish a connection from/to an eWON, Cosy 131 related matters... please refer to your eWON distributors first as
he is probably the best choice to quickly troubleshoot configuration issue.
If you are not sure, post your questions into the relevant section here under and someone will guide you so you can receive the correct answer.
13-06-2016, 02:54 PM #1
currently we are having problem when sometime low 3G signal in ewon and PLC generate alarm, ewon does not generate alarm.
if we use ewon for emailing and sms , how do our PLC system know that email or sms has been sent ?
is there any way we get sent bit from ewon ? so our system can keep Alarm bit alive until it get sent by ewon ?
Reply
29-06-2016, 08:40 PM (This post was last modi ed: 29-06-2016, 08:41 PM by Kevin.) #2
Hello vn2054,
I'm not entirely sure what you are trying to do, but have you seen the section in the BASIC documentation for acknowledging alarms?
You can nd it in RG-002-0-EN on the BASIC Programming page (BASIC Programming) under section 1.5.3.2.
I've copied it here for convenience. Let me know if this is what you need.
Quote:
A Tag value can be set using the following sequence (shown for a Tag MM1):
Code:
https://techforum.ewon.biz/thread-90.html 1/4
06/09/2019 SMS and email sent bit
SETSYS TAG, "LOAD", "MM1"
SETSYS
Hello There, TAG,
Guest! "TAGVALUE",
Login 1234 Register Forums Search Members Calendar Help
SETSYS TAG, "DoSetVal",1
SETSYS TAG, "SAVE"
View New Posts View Today's Posts
Quote:
MM1@ = 1234
setio "MM1",1234
Let’s the MM1 Tag is in alarm state. It is then possible to acknowledge its alarm with the following command:
Code:
Code:
Add Tag
Code:
Note: The elds that are not speci ed will be taken over from the "MM1" tag
Reply
04-07-2016, 09:57 AM #3
Kevin,
Thanks for your response!
However, I think that what VN2054 is looking for is a script to check whether the alarm noti cation is well sent or not.
To do that you have to check the status of the Scheduled actions (send mail, send sms, send trap, send FTP, ...) in BASIC script
This is done in BASIC with the event ONSTATUS which is triggered when a scheduled action's status changes.
Code:
SendSMS:
ONSTATUS "goto ProcessStatus"
SENDSMS "12346,gsm,0","test message"
https://techforum.ewon.biz/thread-90.html 2/4
06/09/2019 SMS and email sent bit
END
Hello There, Guest! Login Register Forums Search Members Calendar Help
ProcessStatus:
Reply
21-09-2018, 04:58 AM #4
Hello,
Help me a script in BASIC which would send an sms with only a value of the tag without attaching the date,senders details. im using ewon2101.
Reply
24-09-2018, 02:25 PM #5
Hi,
You could simply use the script line (to copy in init) :
Simon
Reply
13-12-2018, 04:45 PM
Send Report via Email mtappa 1 900
Last Post: ziozetti
02-10-2018, 12:14 AM
Reboot the ewon with a email kharlytoz 3 1.146
Last Post: kharlytoz
27-10-2017, 09:12 AM
Best way of sending an alarm list in email jiayuan0727 3 1.823
Last Post: jiayuan0727
About eWON
By breaking down the barrier between industrial applications and IT
https://techforum.ewon.biz/thread-90.html 3/4
06/09/2019 SMS and email sent bit
standards, eWON's mission is to connect industrial machines securely to the
Internet, enabling
Hello There, Guest!easy remote access and
Login gathering
Register all types of technical Forums Search Members Calendar Help
data originating from industrial machines.
Typical applications would include remote maintenance, predictive
maintenance, remoteView
View New Posts services, asset
Today's management, remote metering, multi-
Posts
site building management, M2M, ...
NAVIGATION LINKS
Forums eWON Support Website
Portal eWON Developers Website
Search Talk2M Server Status
Help Subscribe to our Developers Mailing
Show Team HMS Privacy Policy
https://techforum.ewon.biz/thread-90.html 4/4