ONSMS - ENVIAR MENSAJE

I’m not sure what the rates are, but if you’d like for us to write the code for you, then you can reach out to us-services@hms.se with a short description on what you’d like the code to do and get a quote from somebody in sales.

As for the switch condition, I don’t think we have something like that in BASIC but I would probably end up doing something equivalent with if statements

I did exactly what you are looking for.
Alarm que was done in the PLC.
PLC sets a bit in the PLC with the alarm.
Lets say Alarm1.
Then sets Alarm1_1
Alarm1_1 EWON sends a SMS to Ph No 1
If the Ph No 1 user does not acknowledge the alarm within set time.
Resets Alarm1_1 and Sets Alarm 1_2
Alarm1_2 EWON sends a SMS to Ph No 2
If the Ph No 2 user does not acknowledge the alarm within set time.
Resets Alarm1_2 and Sets Alarm 1_3
Alarm1_3 EWON sends a SMS to Ph No 3
And the pattern continues.
Are you using a PLC for this?
I have the code written in Schneider Unity.
Can help you further if you are interested.

I have a question, how do I do so that when the message arrives on my mobile, the Ewon finds out that it has been read

I don’t believe the eWON has any way to find out that your phone received a message, but if you have your phone return a message to the eWON you could do an OnSMS function

A question, the message that I wrote on the mobile and sent to Ewon can be, for example “Hello” or “OK” ??? Because the OnSMS function does not catch me and I have the function that I shared at the beginning of the post on

What kind of SIM card are you using and does that SIM card have the ability to send/receive text messages or is it just a data SIM card?

I don’t know, but the Jazztel have charged me for sending messages to Ewon, because I’ve been doing tests. There are also several Ewons from various facilities that I want to do the same to.

I can assure you 100% that it has the ability to send text messages, and if it has 100% ability to send, shouldn’t it be the same to receive?

I would think that should be the case. If you can send from the SIM card, you should be able to receive. Is the carrier Jazztel?

Is this a 3G or 4G connection

Most Ewons have 4g cards, although some still have 3g ones

Which of these cards are the devices using? Standard NA, Verizon, or EU? If it’s in the EU we might need to involve some colleagues in that region to see if they can replicate the issue.

You should be able to go to the debug here though and turn this on, and then be able to see some data show up in the real-time logs when you send a text message to the device

Can you tell me what brand PLC you use to monitor alarms.
I have the PLC program and the Script for EWON to do exactly what you need to do.
As I explained earlier,
When Alarm 1 occurs in the PLC.
It sets M11.
When M11 is on EWON send a SMS to Mobile Phone 1
SMS says Alarm1_1 and SMS 111 to Acknowledge.
If EWON receives 111 within set time,
EWON sends a SMS back to Mobile Phone 1 saying Alarm1_1 Acknowledged.
At the same time sends Value 111 to PLC in Alarm Ack Register MW1 to reset M11.
If the Alarm was not acknowledged by the Mobile Phone 1 within set time,
PLC resets M11 and set M12
When M12 is on EWON send a SMS to Mobile Phone 2
And this pattern continues to Phone 3-5
Hope you understand this concept.

I need activate error debug no?

To see data coming in from the phone, you’ll need to enable debug mode

In this image, i send in my mobile “Gracias” and he put “Gracias”, but have and a error, in the line of Almack, this code is one example of this page. What does bad do?

Ewon SMS Reception

What does LOGEVENT do?
Can i change with PRINT?

image

Log event will write to the eventlogs page.

image

Almack is what’s used to acknowledge an individual tag and also needs to know which user is acknowledging this.

what is the value you had for a$ at the time when you ran this code?

Print will just write to the console in the BASIC section, but if that’s what you’d prefer you can do that as well

a$ = Getsys Prg,“smsmsg”

I mean if you go into the console and run

print a$

What do you get for a value

The message that i write in my mobile, but the function ALMACK put me a error
not a variable ALMACK a$,"". This is for not specifying the user?

Do you have a tag that matches what you wrote from your mobile number?

Take a look at the syntax for the almack above. if a$ is the first parameter for the Almack, then you need to write the name of the tag, or the ID/index of that tag