Jump to content

Recommended Posts

Posted

Hi,

I am trying to automatically send an email via RSLogix 5000.

I have already set up my msg instructions to configure the mail server and created a string tag for the email body.

I can send an email to myself. I am just curious how I would go about adding the tag data in the message.

Has anyone done this?

Thanks 


Posted

There may be a better way to do this PaulKim, but a string tag is actually a defined data type of several elements.  A Length Variable usually a SINT/DINT and then an array of SINTS.  To add tag data to your email body it is a simple matter of copying the TAG from it's register into the proper SINTs of the string for body.  And then adjusting the length variable accordingly.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...