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
ipAddressis set correctly - Ensure
slaveIdis set correctly - Ensure
portis set correctly
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.
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.

