E-mail, Email (send e-mail), Hapter – IDEC MicroSmart Pentra User Manual

Page 99: Email (send e-mail) -1, Mail, Introduction

Advertising
background image

W

EB

S

ERVER

CPU M

ODULE

U

SER

S

M

ANUAL

FC9Y-B1278

10-1

10: E-

MAIL

Introduction

This chapter describes how to use the e-mail functions in the Web server CPU module. The EMAIL instruction sends an
e-mail that is configured in WindLDR.

EMAIL (Send E-mail)

The EMAIL instruction sends an e-mail.

Symbol

Operation Details

When the input to the EMAIL instruction is on, the EMAIL instruction sends an e-mail specified by S1. Once the Web
server CPU module receives a response from the sending e-mail server, the completion output specified by D1 is turned
on, and the operation status (operation transition state and error code) is stored in the device specified by D2. D2+1 is
reserved for the system.
In order to use EMAIL instructions, the e-mail settings, such as e-mail server name, should be configured in the Function
Area Settings. E-mails to send should also be configured in the E-mail Editor dialog box.
The EMAIL instruction is executed when the input to the instruction is on. While the input to the EMAIL instruction is on,
the EMAIL instruction is continuously executed. To avoid executing the EMAIL instruction continuously, a transitional
off-to-on SOTU or on-to-off SOTD instruction should be used.

Valid Devices

*1: Special internal relays cannot be used.

Devices in EMAIL Instruction

S1 (Source 1)
Specify the e-mail number. A constant or data register can be specified.

D1 (Destination 1)
Specify an internal relay or output as the completion output bit. When the Web server CPU module receives a reply from
the sending e-mail server, the completion output bit is turned on. The completion output bit is also turned on when
there is no reply from the sending e-mail server within the timeout.

D2 (Destination 2)
Specify a data register as the operation status. Destination 2 occupies two consecutive data registers starting with the
data register specified by D2. The operation status is stored in D2. D2+1 is reserved for the system. Data registers D0 to
D1998, D2000 to D7998, and D10000 to D49998 can be specified.

Notes:

• When the system program version is 100, do not specify the same e-mail number in multiple EMAIL instructions. When the

system program version is 100 and a data register is specified as S1, do not store the same e-mail number used by the other
EMAIL instructions in the user program to the data register.

• When a data register is specified as S1, do not change the data register value while EMAIL instruction is executed.

Device

Function

I

Q

M

R

T

C

D

Constant

Repeat

S1

Source 1

E-mail number

-

-

-

-

-

-

X

1 - 255

-

D1

Destination 1

Completion output

-

X

*1

-

-

-

-

-

-

D2

Destination 2

Operation status

-

-

-

-

-

-

X

-

-

Advertising