Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:sw:01-mervis:sending-email-hidden [2023/08/03 12:30] – avsetula | en:sw:01-mervis:sending-email-hidden [2023/08/25 13:25] (current) – avsetula | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| <WRAP half column 100%> | <WRAP half column 100%> | ||
| #;; | #;; | ||
| - | < | + | < |
| <span class=" | <span class=" | ||
| <span class=" | <span class=" | ||
| Line 26: | Line 26: | ||
| </ | </ | ||
| <WRAP half column 15%> | <WRAP half column 15%> | ||
| - | {{ sending_emails_01_sendmailtrig_fbd_block.png? | + | {{ en: |
| </ | </ | ||
| Line 33: | Line 33: | ||
| <WRAP center round important 90%> | <WRAP center round important 90%> | ||
| **Caution: | **Caution: | ||
| - | When creating a program it is necessary to ensure that only one email is at least one-second pause before the next email is sent. | + | When creating a program it is necessary to ensure that only one email is sent at least one-second pause before the next email is sent. |
| </ | </ | ||
| Line 41: | Line 41: | ||
| For email sending to work properly, you must first set up an alarm channel. Double-click **PLC** in the **left panel**, select the **Messaging** tab, right-click in the main window area (list of alarm channels) and select **Add Alarm Channel** from the context menu: | For email sending to work properly, you must first set up an alarm channel. Double-click **PLC** in the **left panel**, select the **Messaging** tab, right-click in the main window area (list of alarm channels) and select **Add Alarm Channel** from the context menu: | ||
| - | {{ : | + | {{ .: |
| ---- | ---- | ||
| A new alarm channel appears. By default, it is set to send email messages. It is now possible to define a name that is then used on the **sendmailtrig** block input, or leave the default name **alrchannel**. | A new alarm channel appears. By default, it is set to send email messages. It is now possible to define a name that is then used on the **sendmailtrig** block input, or leave the default name **alrchannel**. | ||
| - | {{ : | + | {{ .: |
| Next, the connection type **SMTP** is defined. After clicking on alarm channel in the main window, the properties table of the selected channel is displayed in the right column: | Next, the connection type **SMTP** is defined. After clicking on alarm channel in the main window, the properties table of the selected channel is displayed in the right column: | ||
| Line 52: | Line 52: | ||
| * **Server**: from which the email will be sent | * **Server**: from which the email will be sent | ||
| * **Port**: on which RT will communicate (according to the email server) | * **Port**: on which RT will communicate (according to the email server) | ||
| - | * **Use login**: | + | * **Use login**: '' |
| * **User name**: in case of login (usually email address) | * **User name**: in case of login (usually email address) | ||
| * **Password**: | * **Password**: | ||
| * **Enable SSL**: for secure communication | * **Enable SSL**: for secure communication | ||
| - | * **Certificate validation**: | + | * **Certificate validation**: |
| - | {{ : | + | {{ .: |
| It is necessary to confirm all changes by clicking on OK button in red bar: | It is necessary to confirm all changes by clicking on OK button in red bar: | ||
| - | {{ : | + | {{ .: |
| ===== Sending emails ===== | ===== Sending emails ===== | ||
| - | The **sendmailtrig** function block can be found in the left panel under the **FUPLA blocks** tab, or in the **Add library block** context menu by pressing the right mouse button in the area of the **fbd program**: | + | The **sendmailtrig** function block can be found in the left panel under the **FUPLA blocks** tab, or in the **Add library block** context menu by pressing the right mouse button in the **main window** (area of the fbd program): |
| - | {{ : | + | {{ .: |
| ---- | ---- | ||
| - | This function block requires | + | This function block has 6 inputs. For more convenient debugging |
| - | {{ : | + | {{ .: |
| ---- | ---- | ||
| Line 83: | Line 83: | ||
| |< 100% 15% 15% 70%>| | |< 100% 15% 15% 70%>| | ||
| ^ Input ^ Type ^ Meaning | ^ Input ^ Type ^ Meaning | ||
| - | | CHANNEL | + | | CHANNEL |
| | FROM | STRING | | FROM | STRING | ||
| | RECIPIENT | STRING | | RECIPIENT | STRING | ||
| Line 94: | Line 94: | ||
| The result should look something like this: | The result should look something like this: | ||
| - | {{ : | + | {{ .: |
| ---- | ---- | ||
| Line 116: | Line 116: | ||
| ==== Example of use ==== | ==== Example of use ==== | ||
| - | Typically, this function can be used to report | + | Typically, this function can be used to report |
| - | {{ : | + | {{ .: |