﻿Troubleshooting

Verify all values in the config file is correct.

The application can be run in console mode to help debug issues. 
To do this, first stop the PLC Service from the Windows Services window. Also check Task Manager for PLCSignalRService.exe to make sure the services is indeed stopped.
Navigate to the service install directory and either double click the .exe, or run from command line without any arguments.



If the application appears to be installed correctly and running without any errors 
but entering a host in OPC Host in Plant returns 'No Servers Found', do the following:

*Ensure there is an OPC Server running on the provided hostname

*Check to see if that host name is accessible from the machine the PLC Services is running on by pinging through command line

*Check successful DCOM configuration you need to locate the OPCEnum in the list of COM components. 
Start > ComponentServices > Open DCOM Config folder located under Computers > My Computer. 
Ensure OPCEnum is installed and running, if not:
Run the appropriate OPC Core Components Redistributable installer in the OPC Core Components Installer folder

If still having trouble enumerating servers, update the config value configuration/OpcDaLibLogging/factoryAdapter/level to "All" and run the PLC Service again in Console Mode
This should provide more logging information from the internal OPC DA library



If you are able to enumerate OPC DA servers and browse them, but there are no meter readings coming in:

This is most likely due to insufficient DCOM permissions. The OPC Server is not able to send events to the PLC Service.
Go to Start > dcomcnfg > Component Services > Right click "My Computer" > Properties
In "Default Properties" make sure "Enable Distributed COM on this computer" is checked
In "COM Security" > Access Permissions > Edit Default > Add the "Everyone" group and give them Allow permissions for both Local and Remote Access
In "COM Security" > Launch and Activation Permissions > Edit Default > Add the "Everyone" group and give them Allow permissions for both Local and Remote Access