IDEC MicroSmart Pentra User Manual

Page 100

Advertising
background image

10: E-

MAIL

10-2

W

EB

S

ERVER

CPU M

ODULE

U

SER

S

M

ANUAL

FC9Y-B1278

The operation status includes the operation transition state (status code) and the error detail (error code). The status
code can be obtained by masking the least 4 bits of the operation status. The error code is stored in the least 4 bits of the
operation status.

Note: If the status code is anything other than the codes listed above, an error of EMAIL instruction is suspected.

Note 1

: The detail of the error code 7 is stored in special data register D8457.

Note 2

: When converting a data register value fails, ---- is inserted in the e-mail body instead of data register value.

E-mails can be sent to the recipients by the relay of the sending e-mail (SMTP) servers. Even when the value stored in D2
is 64 after the execution of an EMAIL instruction, the recipients of the e-mail may not be able to receive the e-mail if one
of the following conditions is met. The Web server CPU module does not detect such problem.

1.

The SMTP server that relays the e-mails is not functioning normally.

2.

The e-mail recipient filters the in-coming e-mails by specifying the e-mail address or e-mail domain.

Status Code

(Decimal)

Operation Transition State

Description

16

Preparing transmission

From turning on the start input for an EMAIL instruction, until the
e-mail is sent out to the sending e-mail server.

32

Waiting for response

From sending the e-mail to the sending e-mail server, until the
response is received.

64

EMAIL instruction complete

The execution of the EMAIL instruction is completed, allowing for the
next transmission to be processed.

Error Code

Error details

Completion output

0

Normal

ON (The status code is 64)

1

-

-

2

Timeout error
Port number may be incorrect.

ON

3

The host name of the sending e-mail server could not be resolved
with DNS.
Ethernet cable may be disconnected or broken. Web server CPU
module may not be connected to the network properly.

ON

4

The specified e-mail is not configured.

ON

5

Multiple EMAIL instructions are executed simultaneously.

ON

6

Parameter error

ON

7

Other errors (Note 1)

ON

8

Converting a data register value failed (Note 2)

ON

Advertising