Dynamically Loading Data Sources to Email Data Block

M

Thread Starter

maggie

Now I am using S7-300 and CP 343-1 IT to realizing the Email function.

According to the specification, I prepare the fixed Data Block with the email receiver, sender, subject, text and the attachment, then call FC5(AG_SEND), then it works.

The problem is: if there are different alarms or events and each will trigger one email, how S7 program can dynamically load the relative data sources (receiver, subject, text, attachment) according to different types of alarms/event, so that set up the email Data Block?

I hope anybody can help me, Thanks a lot in advance!
 
Top