IP-address (IP)
Function | Defines the IP-address of the device |
Set (S) command format | SIPxxx.xxx.xxx.xxx , where xxx.xxx.xxx.xxx is the IP-address in dot-decimal notation (i.e. 192.168.100.40) |
Get (G) command format | GIP |
Initialize (I) command effect | Initialized unconditionally through serial command or initialized only if invalid through network command |
Post-initialization value | 1.0.0.1 |
Change takes effect | After reboot |
Relevance conditions: | DHCP (DH) setting =0 (disabled) |
IP-address must be compatible with the network on which the device is installed. Many networks have DHCP server, in this case it is better to make the device obtain the IP-address automatically on startup (this is enabled by programming the DHCP (DH) setting to 1 (enabled)).
When DHCP is activated the IP-address obtained from the DHCP server is saved into the IP-address setting thus overwriting older value that might have been set before.
Some IP-addresses are not valid in principle. Many devices and operating systems (including Windows) automatically discard network packets that refer to such incorrect IPs. The device will allow such an IP-address to be saved into the EEPROM but will assume a modified address on startup:
Invalid IP-address | IP-address that the device will actually use |
---|---|
x.x.x.0 | x.x.x.1 |
x.x.x.255 | x.x.x.1 |
223.x.x.x | 223.x.x.x |
Example: if the IP-address is 224.168.100.255 then the device actually use 223.168.100.1. The EEPROM data will not be modified and GIP command will still return original data (224.168.100.255) but the actual IP-address used by the device will be corrected according to the above rules.