Panasonic FP7 Series Command Reference Manual page 914

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

17.4 IPv4SET (IP Address Setting)
Examp
S
"IP=192.168.1.5"
le 3
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.
X61
R0
Ethernet
initialization active flag
R100
(
DF
)
Timing chart
The following figure shows the case for executing IPv4SET instruction using the FTP client
function and mail send function (SMTP client).
17-26
IPv4SET
"IP=192.168.1.5,MASK=255.255.255.0"
R100
IPv4SET
execution relay
UNITSEL
U100
U5
S1
S2
S
IPv4SET execution conditions
Ethernet initialization active flag: OFF
Specification of the slot port of
the communication unit
S1: Built-in ET-LAN in the CPU unit
(U100)
S2: Connection 5 (U5)
IPv4SET instruction execution
S: Setting parameters
(Changes the IP, MASK)
WUME-FP7CPUPGR-12

Advertisement

Table of Contents
loading

Table of Contents