Email Setup | FP |
|
|
or for a text attachment is:
{A_D_00200_00001_T01_filename.txt}
The parameters in this tag have the following meanings:
Char. Offset |
| Description | Example |
+ 0 |
| Tag must start on line with '{A_' | {A_ |
+ 3 |
| PLC register type: D=DT F=FL L=LD | D_ |
|
|
|
|
+ 5 |
| First PLC register address to read | 00200_ |
|
| TXT: Start of FPWIN Pro string header |
|
|
|
|
|
+11 |
| CSV: Number of PLC registers to read | 00066_ |
|
| TXT: Always indicator "00001_" | 00001_ |
|
|
| |
+17 |
| CSV: Cell terminator K=',' S=';' | S |
|
| TXT: Always indicator "T" | T |
|
|
| |
|
|
|
|
+18 |
| CSV: Number of CSV columns | 04_ |
|
| TXT: Always indicator "01_" | 01_ |
|
|
| |
|
|
|
|
+21 |
| Attachment file name up to the '}' | filename.xxx |
CSV Example:
In "Example2" we used the following email text to define an attachment containing PLC data read from the PLC's memory starting at DT200...DT266. It is sent to the email recipient in a CSV compatible file named 'file.csv':
TXT Example:
The text to send as an email attachment is stored in the PLC memory as an FPWIN Pro string. The string begins with a
For example, a string with the text "message" is stored at DT200: DT200 = 1000
DT201 = 7
DT202 ...DT205 = "message"
The tag must start at the first position of the email text after the lines "SUBJECT" and "TO" and before the email text starts.
6.1.3 Email Function Used for Communication TestsCommunication tests can be used with empty emails for a DNS request.
60