PaulKim1003 Posted May 1, 2024 Report Posted May 1, 2024 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
BobLfoot Posted May 9, 2024 Report Posted May 9, 2024 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now