<Toc> <Ind>
<3. Procedures for Setting PR300 Functions>
3-23
IM 77C01E01-10E
3.5.8
Subnet Mask (for Ethernet communication)
[Procedure]
(1)
To set the subnet mask, write data to the four D registers in the table below. The data
type is integer.
(2)
After writing that value, write 1 to the Ethernet writing status register, D0294.
D Register
D0285
D0286
D0287
D0288
D0294
Reference No.
40285
40286
40287
40288
40294
H No.
011C
011D
011E
011F
0125
Description
Subnet mask-1 (SM-1)
Subnet mask-2 (SM-2)
Subnet mask-3 (SM-3)
Subnet mask-4 (SM-4)
Ethernet writing status
(D0281 to D0293 are
validated)
Effective Range
0 to 255
0 to 255
0 to 255
0 to 255
If other than 1: Invalid
If 1: Writing is executed
Subnet Mask
SM-1
0 to 255
SM-2
0 to 255
SM-3
0 to 255
SM-4
0 to 255
Initial value of subnet mask: 255.255.255.0
NOTE
•
A subnet mask value can be set for the PR300 with Ethernet communication function.
•
Subnet mask settings are only effective when the protocol is set to Modbus/TCP.
[Example]
To set the subnet mask to 255. 255. 255. 0:
For station number 01, use PC link communication (without checksum) and the random
write command as shown below:
[Command]
[STX]01010WRW05D0285,00FF,D0286,00FF,D0287,00FF,D0288,0000,D0294,0001[ETX][CR]
[Response]
[STX]0101OK[ETX][CR]
Summary of Contents for PR300
Page 141: ......