You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old December 20th, 2017, 11:19 AM   #1
OkiePC
Lifetime Supporting Member
United States

OkiePC is offline
 
OkiePC's Avatar
 
Join Date: Mar 2005
Location: ENE of Nowhere Oklahoma
Posts: 9,870
Crimson 3.0 Alarm Emails with editable addresses

Customer is getting email alerts from a Graphite HMI and now want to be able to change the recipients' addresses at runtime.

I am not sure if this is possible without rolling my own alarm/email alert system in Crimson or by using some 3rd party service to do email forwarding.

If anyone knows of any slick methods to make this realistic, I'd be interested in hearing about them.
__________________
It's not all the variables I am most concerned with, it's the undiscovered constants.
  Reply With Quote
Old December 20th, 2017, 01:29 PM   #2
mts5096
Member
United States

mts5096 is offline
 
Join Date: May 2013
Location: Dallastown, PA
Posts: 15
In the Mail Manager's contact list, the address field can take a string tag instead of hardcoded string. The corresponding tag can then be edited at runtime. You can drag and drop a tag from the resource pane. If you type it in directly, you must prefix it with an equals sign, like =Tag1.
  Reply With Quote
Old December 20th, 2017, 01:56 PM   #3
OkiePC
Lifetime Supporting Member
United States

OkiePC is offline
 
OkiePC's Avatar
 
Join Date: Mar 2005
Location: ENE of Nowhere Oklahoma
Posts: 9,870
Quote:
Originally Posted by mts5096 View Post
In the Mail Manager's contact list, the address field can take a string tag instead of hardcoded string. The corresponding tag can then be edited at runtime. You can drag and drop a tag from the resource pane. If you type it in directly, you must prefix it with an equals sign, like =Tag1.
Doh, I can't believe I didn't even try that...
__________________
It's not all the variables I am most concerned with, it's the undiscovered constants.
  Reply With Quote
Old December 20th, 2017, 10:15 PM   #4
OkiePC
Lifetime Supporting Member
United States

OkiePC is offline
 
OkiePC's Avatar
 
Join Date: Mar 2005
Location: ENE of Nowhere Oklahoma
Posts: 9,870
I got a little carried away

Okay, so to make it easy on the oeprator, I set it up so that they can enter phone numbers and select their carrier from a drop down list for Email to SMS gateways. They can enter 4 phone numbers and 4 email addresses, then build the MAILTO string.

I could not get the numeric entry field to work properly with 10 digit phone numbers as integers so I ended up making the phone numbers into strings. If anyone has any ideas about how to allow a 10 digit numeric (internal) tag to be entered I'd like to know. I can enter 9 digits but not ten.

At least they don't have to figure out how to find the semicolon and look up their carrier SMS gateway.

They still have to use the alphanumeric keypad to enter the phone number which is not as easy as the numeric keypad on the 7" Graphite.

The other issue is that when I set the string tag with a format string (nnn)nnn-nnnn, if you go to enter a new value and just start typing, it will not allow you to enter a number. It will work if you first backspace and leave the first "(" character.

I did my testing in the emulator, and I am about to go try it on the real hardware.

I will attach an example that has all my hard work importing a list of 85 US cell phone carriers and their gateway sms suffixes into tag format fields.

I am sure others may find it useful. It also has my standard PLC fault code breakout objects in it aimed at the Micrologix 1400 model.
Attached Files
File Type: zip EMAIL.zip (96.1 KB, 8 views)
__________________
It's not all the variables I am most concerned with, it's the undiscovered constants.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Issue with Mapping Floating Point Addresses from Click PLC to Red Lion in Crimson 3.0 waynesun95 LIVE PLC Questions And Answers 3 June 23rd, 2016 07:23 PM
Creating an onscreen editable Text Box in Crimson 3.0 G310 cockrell960 LIVE PLC Questions And Answers 3 September 19th, 2014 09:38 AM
Red Lion Crimson 3.0 flags bfly23 LIVE PLC Questions And Answers 4 July 30th, 2013 08:50 PM
Crimson 3.0 Smiulator not working shiftedbits LIVE PLC Questions And Answers 6 November 6th, 2011 12:10 PM
Crimson 3.0 SetNetConfig YujinT LIVE PLC Questions And Answers 3 September 27th, 2011 07:38 AM


All times are GMT -5. The time now is 10:27 AM.


.