Sie sind auf Seite 1von 4

06/09/2019 SMS and email sent bit

Hello There, Guest!  Login  Register  Forums  Search  Members  Calendar  Help

View New Posts View Today's Posts

 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.

SMS and email sent bit

vn2054 Joined: May 2016


Junior Member Threads: 3
Posts: 3
Reputation: 0

 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

Kevin Joined: Jun 2016


Junior Member Threads: 4
Posts: 14
Reputation: 14

 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:

1.5.3.2 Setting a Tag value, deleting a Tag and acknowledging an alarm

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

There are other ways to change a Tag’s value. Examples:

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:

SETSYS TAG, "LOAD", "MM1"


SETSYS TAG, "DoAck", 1
SETSYS TAG, "SAVE"

It is possible to delete a Tag with:

Code:

SETSYS TAG, "LOAD", "MM1"


SETSYS TAG, "DoDelete", 1
SETSYS TAG, "SAVE"
CFGSAVE : REM Writes configuration to flash

Add Tag

Code:

SETSYS TAG, "LOAD", "MM1"


SETSYS TAG, "Name", "New_TagName"
SETSYS TAG, "Address", "New_address"
SETSYS TAG, "SAVE"
CFGSAVE : REM Writes configuration to flash

Note: The elds that are not speci ed will be taken over from the "MM1" tag

  Reply

simon Joined: Mar 2016


eWON Support Threads: 76
Posts: 1.072
Reputation: 101

 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"

REM: GET THE ACTION ID


a% = GETSYS PRG,"ACTIONID" 

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:

View New Posts View Today's Posts

  Reply

kabangafyelaw@gmail.com Joined: Sep 2018


Junior Member Threads: 0
Posts: 1
Reputation: 0

 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

simon Joined: Mar 2016


eWON Support Threads: 76
Posts: 1.072
Reputation: 101

 24-09-2018, 02:25 PM #5

Hi,

You could simply use the script line (to copy in init) :

ONCHANGE "MytriggerTag", "IF MytriggerTag@ = 1 THEN SENDSMS '0215465454,gsm,0',STR$ FlowTag@"

Simon

  Reply

Possibly Related Threads…

Thread Author Replies Views Last Post

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

 Subscribe to this thread


Forum Jump: -- BASIC Script Go
 View a Printable Version

 Users browsing this thread: 1 Guest(s)


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

Powered by MyBB, © 2002-2019 MyBB Group.


Theme designed by eWON © 2019.     

https://techforum.ewon.biz/thread-90.html 4/4

Das könnte Ihnen auch gefallen