Jump to content
micapp

SMS where the first part is the same, the last part changes

Recommended Posts

I have a project that receive a SMS of this type:

 

FIRE at Station 2 Time 11:11.11

 

FIRE at Station 2 Time 12:11.12

 

The first part is constant, but the last part changes.

 

Can this be received by V570 and used to trigger a MB ? The message Fire at Station 2 shall open a valve fully open.

 

 

 

 

Share this post


Link to post
Share on other sites

Hi,

It is possible to receive an SMS with mixed constants and numeric variables. I attached an application i modified for your convenience.

Please open the application and go to the SMS config function block.

You will see the MB1 is activated when message successfully received, and the time value is stored to three different MI's.

 

Please note that to send a variable, the syntax needed to be sent from the phone is as follows (let's assume that the time is 11:11.11):

 

FIRE at Station 2 Time #11#:#11.#11#

 

Just to make it clear - for the PLC to recognize a variable, you need to wrap it with pound signs

V120_SMS_Sub_Stations.vlp

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...