174
(4) Program example
The following shows a program example of writing to the IP address storage area (flash ROM).
(a) Devices used in programs
*1
Set as follows.
Example When setting the IP address 192.168.3.40 in D100 to D103
(b) Sample program
Device number
Application
Device number
Application
M100
Write Instruction
SM1293
IP address storage area write complete
D100 to D103
*1
IP address to be changed
SM1294
IP address storage area write error
D104 to D107
*1
Subnet mask pattern to be changed
M101
Normal write completion indication
D108 to D111
*1
Default router IP address to be changed
M102
Abnormal write completion indication
SD1292 to SD1297
IP address setting
SD1298
IP address storage area write error factor
SM1292
IP address storage area write request
D100
Write error factor display
D100
40
D101
3
D102
168
D103
192
IP address is set to SD1292 to 1297
Write complete
Write start
Normal completion indication
Error completion indication
Error cause read
Содержание melsec q03ud(E)cpu
Страница 2: ......
Страница 11: ...9 Memo ...
Страница 209: ...207 APPENDICES A Appendix 4 Specifications Comparison with Ethernet Module Memo ...
Страница 213: ...211 Memo ...
Страница 219: ......