Mitsubishi Electric Q03UDVCPU User Manual page 176

Qnucpu series (communication via built-in ethernet port)
Hide thumbs Also See for Q03UDVCPU:
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 Instruction
*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
(b) Sample program
174
Application
D100
D101
D102
D103
Device number
SM1293
IP address storage area write complete
SM1294
IP address storage area write error
M101
Normal write completion indication
M102
Abnormal write completion indication
SD1298
IP address storage area write error factor
D100
Write error factor display
40
3
168
192
Application
IP address is set to SD1292 to 1297
Write start
Normal completion indication
Error completion indication
Error cause read
Write complete

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents