How to change the IP address of a PM5340 remotely?
The customer is not able to access the PM5340 to change its IP address.
The PM5340 does not have a webpage. Therefore, the only way to change the IP address remotely is through Modbus register writes.
Warning: The command procedure listed here can cause undesirable results to your product if applied incorrectly. Before sending any commands, verify all commands and parameters are correct. If you have any doubts, contact Technical Support for guidance.
Note: The PM5340 must be at firmware v1.37 or higher. For instructions on upgrading, refer to KB FA23792. The latest version of firmware is available here.
Command 1501 is used to write the new IP address to the device. The required parameters are detailed below:
|Set IP Parameters Address
||(1) Command Semaphore
(2-3) IP Address
(4-5) Subnet Mask
(For example Eg: 0xC0A8 and 0x0201 for 192.168.2.1)
Modbus Tester is referenced in the instructions below to read and write Modbus registers to the PM5340. For additional information regarding this application, please refer to FA180037.
Updating the IP Address remotely using Modbus Tester
- Convert the desired IP address, Subnet, and Gateway to decimal.
- Convert each octet to hex.
In the example, the desired IP address is 192.168.2.1.
- Concatenate the 1st and 2nd octet and the 3rd and 4th octet.
Combination 1: Octet 1 & Octet 2 = 0xC0A8
Combination 2: Octet 3 & Octet 4 = 0x0201
- Convert the 2 combination back to decimal.
Combination 1: 0xC0A8 = 49320
Combination 2: 0x0201 = 513
- Read the Semaphore at register 5680 using Modbus Tester
Note: The reading operation needs to be performed only once. Doing more than once will cause an error. If by mistake, the operation is performed more than one time, then it is advised to do the operation again after 4 minutes.
In the example, the semaphore was found to be 29327.
- Issue the Set IP Parameters Address command via Modbus Tester
The table below depicts the example values to be written to the device per the previously calculated decimal representations of the IP Address, Subnet Mask, and Gateway.
Note: It is recommend to perform the below as a block write.
||Example Values to be Written
||IP Address, Combination 1
||IP Address, Combination 2
||Subnet Mask, Combination 1
||Subnet Mask, Combination 2
||Gateway, Combination 1
||Gateway, Combination 2