Mitsubishi L02CPU User Manual page 187

Melsec-l series
Hide thumbs Also See for L02CPU:
Table of Contents

Advertisement

(4) Program example
The following shows a program example of writing to the IP address storage area (flash ROM).
(a) Devices used in programs
Device number
M100
Write command
*1
IP address to be changed
D100 to D103
*1
Subnet mask pattern to be changed
D104 to D107
*1
Default router IP address to be changed
D108 to D111
SD1292 to SD1297
IP address setting
SM1292
IP address storage area write request
*1
Set as follows.
Example: When setting the IP address 192.168.3.40 in D100 to D103
D100
D101
D102
D103
(b) Sample program
Application
SM1293
SM1294
M101
M102
SD1298
D100
40
3
168
192
CHAPTER 13 IP ADDRESS CHANGE FUNCTION
Device number
IP address storage area write complete
IP address storage area write error
Normal write completion indication
Abnormal write completion indication
IP address storage area write error factor
Write error factor display
IP address is set to SD1292 to 1297
Write start
Normal completion indication
Error completion indication
Error cause read
Write complete
Application
185
13

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents