Failure to Download new project

Hi All, What is better than just PLCnext? PLCnext… with lasers! A SICK laser, to be exact. It communicates via RS-422 with one of our new gateway products, and I have been programming it to work with PLCnext, but unfortunately, I have run into a problem. The program builds successfully, but upon attempting to download, the green RUN light starts blinking, I get a solid red FAIL light, and when i look at the logs (attached), something looks like it really did not like what I was trying to do. I have narrowed the issue down to either something I did in the “Communication” Function Block, or the PROFINET block. I have included both the project and the Output.log file. I believe the relevant part of the log file is this output:

30.01.18 15:19:57.597 Arp.Plc.Domain.Internal.PlcManager ERROR - Exception occurs while setting up plc component 'Arp.Io.FbIo.PnC': AddBuffer: Port with ID: Arp.Io.FbIo.PnC/20:Sequence Number already exists!  
> Exception of type 'Arp::System::Commons::ArgumentException' was thrown  
>  at: Arp::Io::Fbm::Internal::FbIoController::InstallTicPorts()  
>  at: Arp::Io::Fbm::FbIoComponent::SetupPlc(bool)  
>  at: Arp::Plc::Commons::Services::Internal::PlcComponentServiceImpl::SetupPlc(bool)  
>  at: Arp::Plc::Domain::Internal::PlcComponentInfo::SetupPlc(bool)  
>  at: Arp::Plc::Domain::Internal::PlcManager::LoadAndSetupPlcComponents(bool)  
>  at: Arp::Plc::Domain::Internal::PlcManager::SetupPlcInternal()  
>  at: Arp::Plc::Domain::Internal::PlcManager::SetupPlc(bool)  
>  at: Arp::Plc::Domain::Services::PlcManagerServiceImpl::Load(bool)  
>  at: Arp::Plc::Domain::Services::PlcManagerServiceSecurityStub::Load(bool)  
>  at: Arp::Plc::Domain::Services::PlcManagerServiceStub::Load(Arp::System::Rsc::Services::RscServerContext&)  
>  at: Arp::Plc::Domain::Services::PlcManagerServiceStub::Invoke(int, Arp::System::Rsc::Services::RscServerContext&)  
>  at: Arp::System::Rsc::Internal::Remoting::RscServiceStubAdapter::Invoke(int, CommonRemoting::RemotingServerContext&)  
>  at: CommonRemoting::RemotingServiceBase::Invoke(CommonRemoting::RemotingServerContext&)  
>  at: CommonRemoting::ServiceInvocationSink::ProcessRequest(CommonRemoting::RemotingServerSession&, CommonRemoting::RemotingServerContext&)  
>  at: CommonRemoting::AuthorizationSink::ProcessRequest(CommonRemoting::RemotingServerSession&, CommonRemoting::RemotingServerContext&)  
>  at: CommonRemoting::RemotingServiceBrokerSink::ProcessInvokeServiceCommand(CommonRemoting::RemotingServerSession&, CommonRemoting::RemotingServerContext&)  
>  at: CommonRemoting::RemotingServiceBrokerSink::ProcessRequest(CommonRemoting::RemotingServerSession&, CommonRemoting::RemotingServerContext&)  
>  at: CommonRemoting::SecurityContextSink::ProcessRequest(CommonRemoting::RemotingServerSession&, CommonRemoting::RemotingServerContext&)  
>  at: CommonRemoting::RemotingServerSession::ProcessInternal()  
>  at: CommonRemoting::RemotingServerSession::RunSession(void*)  
>  at: CommonRemoting::RemotingThreadBase::RunInternal(void*)  
>  at: /usr/lib/libCommonRemoting.so(+0x25fa4) [0xb6ee7fa4]

Any ideas or help would be appreciated! Thanks!

Hey, The problem is the duplicate variable “Sequence Number”

of the Output Submodule.
Mostlikely this is a Bug of the GSDML file.
Wich GSDML exactly did you include?
I will forward this Error to the development. I will update you with a Hotfix as soon as I have something…

Hi Oliver, Thank you for the fast response! I tried to factory reset the controller, and then download the project without the PROFINET device at all, and the same problem is occurring. Perhaps an issue with cleaning up deleted PROFINET devices? Here are the GSDML files I included.

GSDML-V2.33-PhoenixContact-GWPNASCII-20171001 - EDIT (2).zip

Hey,

If I remove the GW PN from the projekt (on the left) and simply download again.
No Factory Reset or anything, I get it running without any issues… Maybe reboot your controler, I think there is something else wrong…
check the logfile again…

Hi Oliver, Once I changed the gsdml, I now get new error. Log attached. EDIT: I should add that I factory reset the controller, and I have had the same problem with a fresh out of the box 2152 as well.

31.01.18 14:40:18.014 Arp.System.Rsc.Internal.Remoting.RscServiceStubAdapter ERROR - Exception occurs while invoking service method 'Arp.Plc.Commons.Services.Internal.IPlcComponentService:1':   
> Exception of type 'Arp::System::Commons::XmlException' was thrown  
>  at: Arp::Io::ProfinetStack::Controller::Internal::TicConfig::TicPNModule::ReadTicAttributeList(Arp::System::Commons::Configuration::TicReader&, Arp::System::Commons::Configuration::TicSerializationContext&)  
>  at: Arp::Io::ProfinetStack::Controller::Internal::TicConfig::TicPNModule::ReadTic(Arp::System::Commons::Configuration::TicReader&, Arp::System::Commons::Configuration::TicSerializationContext&)  
>  at: Arp::Io::ProfinetStack::Controller::Internal::TicConfig::TicPNModules::ReadTicElementList(Arp::System::Commons::Configuration::TicReader&, Arp::System::Commons::Configuration::TicSerializationContext&)  
>  at: Arp::Io::ProfinetStack::Controller::Internal::TicConfig::TicPNModules::ReadTic(Arp::System::Commons::Configuration::TicReader&, Arp::System::Commons::Configuration::TicSerializationContext&)  
>  at: Arp::Io::ProfinetStack::Controller::Internal::TicConfig::TicPND::ReadTicElementList(Arp::System::Commons::Configuration::TicReader&, Arp::System::Commons::Configuration::TicSerializationContext&)  
>  at: Arp::Io::ProfinetStack::Controller::Internal::TicConfig::TicPND::ReadTic(Arp::System::Commons::Configuration::TicReader&, Arp::System::Commons::Configuration::TicSerializationContext&)  
>  at: Arp::Io::ProfinetStack::Controller::Internal::TicConfig::FbIoTicDoc::ReadTic(Arp::System::Commons::Configuration::TicReader&, Arp::System::Commons::Configuration::TicSerializationContext&)  
>  at: Arp::Io::ProfinetStack::Controller::Internal::Controller::loadConfigTic(Arp::BasicString)  
>  at: Arp::Io::ProfinetStack::Controller::ControllerComponent::LoadPlc(bool)  
>  at: Arp::Plc::Commons::Services::Internal::PlcComponentServiceImpl::LoadPlc(bool)  
>  at: Arp::Plc::Commons::Services::Internal::PlcComponentServiceStub::LoadPlc(Arp::System::Rsc::Services::RscServerContext&)  
>  at: Arp::Plc::Commons::Services::Internal::PlcComponentServiceStub::Invoke(int, Arp::System::Rsc::Services::RscServerContext&)  
>  at: Arp::System::Rsc::Internal::Remoting::RscServiceStubAdapter::Invoke(int, CommonRemoting::RemotingServerContext&)  
>  at: CommonRemoting::RemotingServiceBase::Invoke(CommonRemoting::RemotingServerContext&)  
>  at: CommonRemoting::ServiceInvocationSink::ProcessRequest(CommonRemoting::RemotingServerSession&, CommonRemoting::RemotingServerContext&)  
>  at: CommonRemoting::RemotingServiceBrokerSink::ProcessInvokeServiceCommand(CommonRemoting::RemotingServerSession&, CommonRemoting::RemotingServerContext&)  
>  at: CommonRemoting::RemotingServiceBrokerSink::ProcessRequest(CommonRemoting::RemotingServerSession&, CommonRemoting::RemotingServerContext&)  
>  at: CommonRemoting::RemotingServerSession::ProcessInternal()  
>  at: CommonRemoting::RemotingServerSession::RunSession(void*)  
>  at: CommonRemoting::RemotingThreadBase::RunInternal(void*)  
>  at: /usr/lib/libCommonRemoting.so(+0x25fa4) [0xb6edffa4]

Output.zip

Hi dfenton, That error is related to a issue with some GSDML files, and is already resolved. If you check the folder on the controller:

/opt/plcnext/projects/PCWE/Io/Arp.Io.PnC

You will notice tic files. the tic file for your PN-device is there, remove it by executing:

rm NAME_OF_YOUR_DEV.tic

And restart the controller (powercycle or sudo reboot), the latter being more elegant :wink: After this you can reprogram the controller again. (but you will have to wait a bit for the fix to use this GSDML file)