A critical step during commissioning is to verify that the controller has successfully established communication with all devices in the microgrid. This is essential for running the application. There are several methods to check the connection between the controller and the devices. One method is to use a tool called MQTT Explorer to monitor the devices in the microgrid. The state of each device will indicate whether it is operational or has a communication fault. Another method is to run a custom NATS application. This application retrieves measurements from the controller and can display the device ID and state of each device, providing insight into their operational state. Both approaches are effective. For more details on using MQTT Explorer or running the custom application, refer to the information below.

Get Device State

To determine whether the controller has successfully connected to the devices in the microgrid, it is necessary to check the state of each device. This can be accomplished through either MQTT Explorer or by running a custom NATS application. Detailed instructions for retrieving the device states using both methods are provided below. When checking the device’s state, it is important to verify the devices that communicate over Modbus TCP/IP. If the connection between the controller and the Modbus device is not established, the state will display communicationFault. This indicates that the controller was unable to establish a connection, and further troubleshooting is needed.

Resolve Communication Failure

Below are the steps to help resolve the communication failure:
1

Ensure the Modbus device is powered on

2

Verify the Modbus device is connected to the network switch

Verify that the Modbus device is connected to the network switch of the PPL controller using Ethernet cables. Check the Ethernet cable connections at both ends to ensure they are plugged in correctly.
3

Check the network settings on the Modbus device

Check the network settings on the Modbus device to ensure the IP address, subnet mask, and gateway are correctly configured.
4

Review the device settings in the devices.json file

Review the device settings in the devices.json file, located in the /etc folder in the ppl-base repository:
  • Ensure ipAddress is set correctly
  • Ensure slaveId is set correctly
  • Ensure port is set correctly
Compare the IP address, slave ID, and port settings on the Modbus device with those in the devices.json file, and update them as needed.For more information on modifying device settings and uploading them to the controller, see the Configure PPL Files page.
5

Confirm only one controller is connected to the Modbus device

Confirm that there is no other controller currently connected to the device (some devices only support a single Modbus client connection).
6

Check if the device’s address map includes a communicationCheck register

Check if the device’s address map includes a communicationCheck register. For instructions on adding Modbus registers to the address map, refer to the Configure PPL Files page.
What’s next?
If none of the above steps resolve the connection issue, retrieve the log files from the controller. Refer to the next section on how to retrieve the log files. If you need assistance, contact PPL Support by emailing pplsupport@directenergypartners.com.