Examp
le 3
S “IP=192.168.1.5”
Settings IP address: 192.168.1.5; Subnet mask: Not change; Default gateway: Not change
■
Program example
● After confirming that the Ethernet initialization active flag (X61) is OFF, the instruction is
executed.
● The UNITSEL instruction is used to specify a slot number (LAN port: U100) and a connection
number (U1 to U16).
● Once the instruction is executed, the IPv4 setting parameter will be written into the system
work area, and initialization will be requested to the unit.
● Once initialization is requested, the unit will close all connections and disconnect
communication.
● The unit turns OFF the IP address established flag (X62) and initializes the Ethernet unit with
the value specified in the system work area.
● The unit starts auto negotiation at the time of initialization.
● The IP address established flag (X62) turns ON upon the completion of initialization. It takes
about three seconds to complete initialization.
● Each communication task of FTPc, HTTPc and SMTPc starts according to the settings. It is
possible to confirm those states with the ready flag for each operation.
● Each connection which automatic connection has been set is made, and the clear to send
flag turns ON when the connections are complete.
R100
UNITSEL U100 U5
IPv4SET
IPv4SET
execution relay
Specification of the slot port of
the communication unit
S1: Built-in ET-LAN in the CPU unit
(U100)
S2: Connection 5 (U5)
IPv4SET execution conditions
Ethernet initialization active flag: OFF
IPv4SET instruction execution
S: Setting parameters
(Changes the IP, MASK)
Ethernet
initialization active flag
( )DF
S1 S2
S
"IP=192.168.1.5,MASK=255.255.255.0"
■
Timing chart
The following figure shows the case for executing IPv4SET instruction using the FTP client
function and mail send function (SMTP client).
17.4 IPv4SET (IP Address Setting)
17-26 WUME-FP7CPUPGR-12