flag (X69). An operation error occurs if this instruction is executed when the flag (X69) is
OFF.
● When the instruction is completed successfully, the system relay SR9 (carry flag CY) and the
system data register SD29 (Ethernet communication error code) are cleared.
■
Precautions for programming
● Insert the UNITSEL instruction immediately before this instruction and specify the unit (built-
in ET-LAN in the CPU unit) and the connection number.
● This instruction is not available in interrupt programs.
■
Operand [S] setting
Setting item Settings
Setting
range
S Send number Specify the device address storing a send number or a constant. 0 to 15
■
Timing chart
● The following diagram shows the process in which a transfer request is executed and data
transfer from a server to FP7 is completed successfully.
● The control relays (bit0 to bit15) can be monitored by using the ETSTAT instruction to read
and store their state in arbitrary operation devices.
Transfer cancel request
relay ETSTAT [D] bit14
Send request relay
ETSTAT [D] bit0
SMTP client preparation
done flag (X69)
(1) (2) (3) (4) (5) (6)
Send active relay
ETSTAT [D] bit1
Send retry active relay
ETSTAT [D] bit2
Execution done relay
ETSTAT [D] bit3
Execution result relay
ETSTAT [D] bit4
Transfer disable relay
ETSTAT [D] bit15
Turns OFF when sending is requested.
Normal completion
Execution result relay: 0
Transfer done code: 0
Ethernet initialization
active flag (X61)
(1) RUN (Power on) (4) Transfer request (Executes SMTPcREQ instruction)
(2) SMTP client preparation done (5) SMTP client login succeeded (Starts transfer)
(3)
Transfer setting (Executes SMTPcSET
instruction)
(6)
Transfer process done (Completes the execution of
SMTPcREQ instruction)
17.26 SMTPcREQ (Mail Send Request)
17-136 WUME-FP7CPUPGR-12