In this tutorial, you will learn how to discover and configure the IP address of a G Series Modbus TCP module.
Components used:
Hardware: GL-9089 – Modbus TCP Module
Software: IOGuide
Tutorial Sections:
1 Introduction
2 Setting the IP manually
3 Setting the IP via BOOTP protocol
3.1 Downloading IOGuide
3.2 Discovering the device IP
3.3 Configuring the device IP address
1 Introduction
The module has a DIP Switch on its side, which has 10 pins:
As indicated in the image above, taken from the GL-9089 manual, there are two DIP switch configuration modes on the device: setting the lowest part of the IP address manually, or using the DHCP/BOOTP protocols.
The factory default IP address of the GL9089 is 192.168.100.100.
2 Setting the IP manually
To activate manual IP setting, you must turn on pin 10. When this pin is ON, the number represented by the first 8 bits of the DIP switch will be used in the device's IP. For example, if bits 1 and 2 are ON and the others are OFF, resulting in the bits 0000 0011, the device's IP will be xxx.xxx.xxx.3. The numbers represented by x are your previous IP. So, if your IP was 192.168.14.108, and you turn on pins 10, 1, and 2, your new IP will be 192.168.14.3.
When you turn off pin 10, the device's IP returns to the previous one.
Since this mode only changes part of the IP, you need to know the previous IP value of the device to access it.
3 Setting the IP via BOOTP protocol
By turning on pin 9, the device enters either DHCP mode or BOOTP mode, depending on the value of the internal register 0x1045, which by default starts in BOOTP mode.
When a module is powered on in BOOTP mode, it sends data to the network connected to the Ethernet port every 5 seconds, informing its MAC address and current IP, for a total of 20 times. If it does not receive any response command after this period, it will assume the last IP address saved in its memory.
3.1 Downloading IOGuide
To scan the network, check and change your IP in this protocol, we will use the IOGuide Pro software, available for download in the Downloads center on the Altus website.
Extract the downloaded .zip file and run the installer for IOGuide2, version 1.0.0.0.
Proceed with the steps presented by the file and complete the software installation.
After installation, in IOGuide2, go to Tools->Bootp Server.
In this tab, we can run a Bootp Server to receive and send IP information to the module if it has pin 9 on the DIP Switch enabled, thus being in DHCP/BOOTP mode.
On the screen, press the Start button to begin scanning the network for packets sent from the module.
After opening the Bootp server, we can power the module, ensuring that pin 9 is enabled, and observe the Ethernet port for a reading.
As shown in the image above, we found a device whose MAC address is displayed. The device's MAC address can be seen on a label attached to one side of the device. Make sure the address found in the software matches your device.
Note: If the device is in DHCP mode, it will appear like this:
In this case, the device can be found with a dynamic IP in the same default subnet as your internet.
3.3 Configuring the device IP address
If you have found a device with the same MAC address and it is using the Bootp protocol, right-click and select “Send Reply”.
In the new tab that opens, enter the desired IP address, as well as the gateway and subnet mask.
Important: You must be quick to perform this action, as the device listens for responses for a limited time: about 100 seconds (time for 20 messages to be sent, each sent every 5 seconds).
After finishing the configuration and sending the new parameters, stop the Bootp server by clicking the red square, press the reload button to clear the detected devices, and click Start again. After that, restart the device and check if its IP address has been changed.
As we can see, the IP was changed to 192.168.14.69, as sent in the previous tab.
If the device did not receive your response and remained with the old IP, remove and reapply power to the device to restart the module's data reception window and try again.
To confirm that the indicated IP address is correct, you can use the PING command in the Command Prompt.
After confirming that the IP is correct, you can turn off pin 9 of the device's DIP switch, as your configuration is now complete.
With this, you are now able to verify and configure the IP address of a G Series module.
Comments
0 comments
Please sign in to leave a comment.