For the IP address 192.168.a.b:
a is set by bits 7..6, with a
range of 0 ~ 3 and a default value of
0.
b is set by bits 5..0, with a DIP
switch range of 0 ~ 32 and a default value of
100.
The actual value of b is calculated as
(DIP switch bits 5..0) × 4 to support 2-bit
expansion.
The default IP address is 192.168.0.100,
corresponding to the DIP switch setting
00011001 (bit7..bit0).
After changing the DIP switch settings, power must be turned off and
on again for the changes to take effect.
The IP address can be configured using the base address and the DIP
switch value.
If the DIP switch value of the GPCon2 module is x,
the IP address of the GPCon2 module becomes
100 + x.
The channel numbering is defined as indicated on the GPCon2
module.
For example, when the base address is
192.168.0.100 and the GPCon2 DIP switch value is
1, the resulting IP address becomes
192.168.0.101.
In this case, the upper port (ch0) corresponds to
channel = 0, and the lower port corresponds to
channel = 1.